AI News HubLIVE
Original source2 min read

Evaluating Prompt Scope and Demonstration Similarity in Local LLM Machine Translation

This paper investigates prompt scope and demonstration selection as experimental variables in local LLM machine translation. Comparing three local instruction-tuned LLMs against dedicated MT baselines, the study finds that dedicated systems remain strongest, especially for Germanic languages. Few-shot prompting helps some models but hurts others, and family-scope prompting exposes failures in smaller models. The results call for evaluating LLM translation beyond language pairs and metrics, considering prompt scope, retrieval strategy, and multi-target compliance.

SourcearXiv Computational LinguisticsAuthor: Mihael Arcan

-->

[Submitted on 28 Jul 2026]

Title:Evaluating Prompt Scope and Demonstration Similarity in Local LLM Machine Translation

View a PDF of the paper titled Evaluating Prompt Scope and Demonstration Similarity in Local LLM Machine Translation, by Mihael Arcan

View PDF HTML (experimental)

Abstract:Large language models (LLMs) are increasingly used as general-purpose translation systems, but their behavior is usually evaluated under a single prompt shape: translate one source sentence into one target language. In practice, users may ask for one target language, for several related languages at once, or for translations conditioned on examples. This paper studies prompt scope and demonstration selection as experimental variables for local LLM machine translation. We evaluate English-to-Romance and English-to-Germanic translation on the full FLORES devtest split for nine official European Union languages. We compare three local instruction-tuned LLMs, llama3.2:3b, mistral:latest, and qwen2.5:14b, against dedicated MT baselines from OPUS-MT and NLLB-200. We test zero-shot prompting and k=5 few-shot prompting with random, lexical-similarity, and embedding-similarity demonstration selection. We also compare single-target prompts with JSON-formatted family-scope prompts that request all languages in a family at once. Results show that dedicated MT systems remain strongest overall, especially for Germanic languages. Few-shot prompting helps mistral:latest and qwen2.5:14b, but hurts llama3.2:3b; embedding retrieval is best on average for the stronger LLMs, but its advantage over random and lexical examples is modest. Family-scope prompting is feasible for stronger local LLMs but exposes structured-output failures in smaller models. These findings motivate evaluating LLM translation not only by language pair and metric, but also by prompt scope, retrieval strategy, and multi-target compliance.

Subjects:

Computation and Language (cs.CL)

Cite as: arXiv:2607.26286 [cs.CL]

(or arXiv:2607.26286v1 [cs.CL] for this version)

https://doi.org/10.48550/arXiv.2607.26286

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Mihael Arcan [view email] [v1] Tue, 28 Jul 2026 21:26:36 UTC (18 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled Evaluating Prompt Scope and Demonstration Similarity in Local LLM Machine Translation, by Mihael Arcan

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.CL

new | recent | 2026-07

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)