NAACL 2025findings3 citations

In-Context Example Selection via Similarity Search Improves Low-Resource Machine Translation

Armel Randy Zebaze, Benoît Sagot, Rachel Bawden

Abstract

The ability of generative large language models (LLMs) to perform in-context learning has given rise to a large body of research into how best to prompt models for various natural language processing tasks. In this paper, we focus on machine translation (MT), a task that has been shown to benefit from in-context translation examples. However no systematic studies have been published on how best to select examples, and mixed results have been reported on the usefulness of similarity-based selection over random selection, although these results have mainly been shown for high-resource languages only. We provide a study covering multiple LLMs and in-context example retrieval strategies. Contrarily to previously published results, we find that retrieval based on sentence embedding similarity can improve MT, especially for low-resource language directions, and we also discuss the balance between selection pool diversity and quality. Code and outputs will be made freely available.

BibTeX
@inproceedings{zebaze-etal-2025-context,
    title = "In-Context Example Selection via Similarity Search Improves Low-Resource Machine Translation",
    author = "Zebaze, Armel Randy  and
      Sagot, Beno{\^i}t  and
      Bawden, Rachel",
    editor = "Chiruzzo, Luis  and
      Ritter, Alan  and
      Wang, Lu",
    booktitle = "Findings of the Association for Computational Linguistics: NAACL 2025",
    month = apr,
    year = "2025",
    address = "Albuquerque, New Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.findings-naacl.68/",
    pages = "1222--1252",
    ISBN = "979-8-89176-195-7"
}
In-Context Example Selection via Similarity Search Improves Low-Resource Machine Translation · NAACL 2025