Evaluating Prompt Scope and Demonstration Similarity in Local LLM Machine Translation
This paper evaluates how prompt scope and demonstration selection strategies affect the machine translation performance of local instruction-tuned LLMs across multiple language families, finding that while dedicated MT systems remain superior, embedding-based few-shot prompting and family-scope prompts can enhance larger models despite introducing structured-output challenges for smaller ones.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you have a super-smart robot friend who can speak almost any language. You ask it to translate a sentence from English to French, and it does a great job. But what happens if you ask it to translate that same sentence into French, Spanish, and Italian all at once? Or what if you give it a few example sentences to show it how you like things done before it starts? This paper lives in the world of Machine Translation, which is the science of teaching computers to turn one language into another. For a long time, we tested these robots by asking them one simple question at a time: "Translate this." But real life is messier. People often ask for multiple languages at once, or they give the robot a "cheat sheet" of examples to help it understand the style they want. The big question is: does asking for more things at once, or giving the robot a cheat sheet, actually make it better, or does it just confuse it? This matters because more and more people are running these "robots" (called Large Language Models) on their own computers for privacy and speed, rather than using giant cloud servers. We need to know if these local robots are ready for the real world, or if they only work when the test is super simple.
The authors of this paper decided to put these local robots to the test in a very specific way. They didn't just ask them to translate one sentence into one language; they treated the way they asked the question as a variable. They tested three different "local" robots (smaller models you can run on your own computer) against some very serious, dedicated translation machines. They asked the robots to translate English into nine different European languages, grouped into two families: the "Romance" family (like French, Spanish, and Italian) and the "Germanic" family (like German, Dutch, and Swedish).
The researchers tried three different strategies for giving the robots "cheat sheets" (called few-shot prompting). First, they gave the robot zero examples. Second, they gave it five random examples. Third, they gave it five examples that were carefully picked to be very similar to the sentence they wanted translated, either by looking at the words used or by using a smart computer program to find similar meanings. They also tested two different "scopes": asking for just one language at a time, or asking for all five languages in a family to be translated at once, with the answers packed neatly into a JSON format (a specific computer file structure).
Here is what they found, and it's a bit of a mixed bag. First, the old-school, dedicated translation machines are still the champions. They are the most reliable, especially when translating into Germanic languages. The local robots are getting better, and they can hold their own for some Romance languages like Spanish and Portuguese, but they aren't quite beating the pros yet.
Second, the "cheat sheet" strategy depends entirely on which robot you are using. For the two stronger local robots (mistral:latest and qwen2.5:14b), giving them examples actually helped. They got better at translating when they saw examples first. But for the smallest robot (llama3.2:3b), giving it examples was a disaster. It got worse when it had to read the extra examples. It's like a student who does great on a test when they just read the question, but gets confused and makes mistakes when you show them a sample answer first.
Third, the way you ask the question matters a lot. When the researchers asked the robots to translate into all five languages at once (the family-scope prompt), the bigger robots handled it well, producing a neat list of translations for every language. But the smallest robot? It completely fell apart. It often forgot to translate some of the languages, or it couldn't follow the instructions to put the answers in the right format. It's as if the small robot got overwhelmed by the big order and just dropped half the items.
The paper also looked at whether the "smart" way of picking examples (finding the most similar sentences) was better than just picking random ones. For the robots that could use examples, the smart, similar examples did help a little bit more than random ones. But the difference wasn't huge. The most important thing was simply that the robot was capable enough to use the examples at all. If the robot was too small or confused, even the best examples couldn't save it.
In short, this paper suggests that we can't just say "AI translation is good" or "AI translation is bad." It depends on how you ask the question. If you want a local robot to translate for you, you need to pick a model that is big enough to handle complex instructions and multiple languages at once. If you pick a tiny model and ask it to do too much at once, or give it too much extra information, it might fail spectacularly. The authors conclude that when we test these translation tools, we shouldn't just look at the translation quality; we also need to check if the robot can follow complex instructions and deliver exactly what we asked for, without dropping any balls.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.