paper-with-me

홈 › Papers

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

2024-08-01 · Armel Zebaze, Benoît Sagot, Rachel Bawden

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. We provide a study covering multiple LLMs and multiple in-context example retrieval strategies, comparing multilingual sentence embeddings. We cover several language directions, representing different levels of language resourcedness (English into French, German, Swahili and Wolof). Contrarily to previously published results, we find that sentence embedding similarity can improve MT, especially for low-resource language directions, and discuss the balance between selection pool diversity and quality. We also highlight potential problems with the evaluation of LLM-based MT and suggest a more appropriate evaluation protocol, adapting the COMET metric to the evaluation of LLMs. Code and outputs are freely available at https://github.com/ArmelRandy/ICL-MT.

📄 PDF Abstract BibTeX arXiv:2408.00397

Code (1)

armelrandy/icl-mt 공식 구현 pytorch

Tasks

DiversityIn-Context LearningMachine TranslationSentenceSentence EmbeddingSentence-EmbeddingSentence EmbeddingsTranslation

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Going Beyond Word Matching: Syntax Improves In-context Example Selection for Machine Translation

2024-03-28 · Chenming Tang, Zhixiang Wang, Yunfang Wu

In-context learning (ICL) is the trending prompting strategy in the era of large language models (LLMs), where a few examples are demonstrated to evoke LLMs' power for a given task. How to select informative examples rem…

In-Context LearningMachine TranslationTranslation

Exploring Example Selection for Few-shot Text-to-SQL Semantic Parsing

2022-01-16 · Anonymous

We study example selection methods for few-shot text-to-SQL tasks with unseen databases. Annotating natural language questions with corresponding SQL queries is expensive, but we can use abundant unlabeled questions to e…

Few-Shot LearningIn-Context LearningSemantic ParsingText to SQL+1

Exploring the Role of Diversity in Example Selection for In-Context Learning

2025-05-03 · Janak Kapuriya, Manit Kaushik, Debasis Ganguly, Sumit Bhatia

In-Context Learning (ICL) has gained prominence due to its ability to perform tasks without requiring extensive training data and its robustness to noisy labels. A typical ICL workflow involves selecting localized exampl…

DiversityIn-Context LearningReranking

Failures Are the Stepping Stones to Success: Enhancing Few-Shot In-Context Learning by Leveraging Negative Samples

2025-07-31 · Yunhao Liang, Ruixuan Ying, Takuya Taniguchi, Zhe Cui arxiv

Large Language Models exhibit powerful few-shot in-context learning (ICL) capabilities, but the performance is highly sensitive to provided examples. Recent research has focused on retrieving corresponding examples for e…

Semantic Similarity

Visual Prompt Selection for In-Context Learning Segmentation

2024-07-14 · Wei Suo, Lanqing Lai, Mengyang Sun, Hanwang Zhang 외

As a fundamental and extensively studied task in computer vision, image segmentation aims to locate and identify different semantic concepts at the pixel level. Recently, inspired by In-Context Learning (ICL), several ge…

DiversityImage SegmentationIn-Context LearningSegmentation+1