atlas

Research map / Large language models / Language, safety and interpretability

Adaptive Few-shot Prompting for Machine Translation with Pre-trained Language Models

AAAI 2025 · Large language models › Language, safety and interpretability · approach: Multilingual LLM data and culture · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes AFSP, an adaptive few-shot prompting framework that retrieves translation demonstrations using the deployed LLM's own embeddings (hybrid dense/sparse/multi-vector), samples multiple candidates, and reranks them with a self-supervised BERT reranker, and releases a 5,528-sentence Diplomatic Chinese-English corpus.

Problem

LLM-based machine translation with in-context learning is prompt-sensitive, so a fixed set of demonstrations is suboptimal across inputs; the paper targets selecting input-specific demonstrations and improving semantic consistency of outputs.

Approach

Retrieve top-k demonstrations using a training-free hybrid score (dense, sparse, and multi-vector) computed from the deployed LLM's own embedding layer rather than third-party embedders, then sample multiple candidate translations and select one with a BERT reranker trained via self-supervised negative sampling with text degradation operations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use AFSP instead of the strongest listed baselineChatGLM3-6B translation · Diplomatic English-to-ChineseBLEU-4: 20.27 -> 27.36Helped
Use AFSP instead of the strongest listed baselineInternLM2-7B translation · Diplomatic Chinese-to-EnglishBLEU-4: 24.73 -> 31.28Helped
Add the re-ranker (ablation)AFSP with ChatGLM3-6B · UN Chinese-to-EnglishBLUE-4: 29.35 -> 29.07Hurt
Use deployed LLM embeddings instead of BGE-large (ablation)AFSP with ChatGLM3-6B · Diplomatic Chinese-to-EnglishBLUE-4: 22.91 -> 29.17Helped
Set retrieval weights to 0.4/0.4/0.2 instead of 0.3/0.3/0.4 (ablation)AFSP with ChatGLM3-6B · Diplomatic Chinese-to-EnglishBLUE-4: 27.85 -> 28.14Helped
Use 3 demonstrations instead of 1 (ablation)AFSP with ChatGLM3-6B · Diplomatic Chinese-to-EnglishBLUE: 26.71 -> 29.17Helped

Surprising findings

Limitations

Experimental setup

Datasets: UN Open Corpus v1.0 (Chinese-English) Diplomatic Chinese-English corpus

Benchmarks: Diplomatic Chinese-English corpus UN Open Corpus v1.0 Chinese-English subset

Metrics: BLEU-4 METEOR ROUGE-1 ROUGE-2 ROUGE-L CHRF COMET-Kiwi

Baselines: Zero-shot prompting Few-shot prompting KNN Few-shot BGE-M3 E5-Large BGE-large BCE

Builds on: M3-Embedding BERT in-context learning kNN few-shot prompting

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy