Papers › Learning Kernel-Smoothed Machine Translation with Retrieved Examples

Learning Kernel-Smoothed Machine Translation with Retrieved Examples

21 Sep 2021EMNLP 2021 11arXiv:2109.09991archive 2025-07-28

Qingnan Jiang, Mingxuan Wang, Jun Cao, Shanbo Cheng, ShuJian Huang, Lei LI

How to effectively adapt neural machine translation (NMT) models according to emerging cases without retraining? Despite the great success of neural machine translation, updating the deployed models online remains a challenge. Existing non-parametric approaches that retrieve similar examples from a database to guide the translation process are promising but are prone to overfit the retrieved examples. In this work, we propose to learn Kernel-Smoothed Translation with Example Retrieval (KSTER), an effective approach to adapt neural machine translation models online. Experiments on domain adaptation and multi-domain machine translation datasets show that even without expensive retraining, KSTER is able to achieve improvement of 1.1 to 1.5 BLEU scores over the best existing online adaptation methods. The code and trained models are released at https://github.com/jiangqn/KSTER.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2109.09991")

Code

Syntology Ran 2 of 10 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jiangqn/kster officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
cordercorder/knn-models pytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 2 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
8unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jiangqn/KSTER. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

FaissIndex jiangqn/KSTER/joeynmt/combiners.py official repository ran Apache-2.0 (permissive) · 2c10660b4d784c0d · report
GaussianKernel jiangqn/KSTER/joeynmt/combiners.py official repository ran Apache-2.0 (permissive) · 9cd13fd04403e663 · report
Combiner jiangqn/KSTER/joeynmt/combiners.py official repository unverified Apache-2.0 (permissive) · 2519fc0edb3124c4 · report
Database jiangqn/KSTER/joeynmt/combiners.py official repository unverified Apache-2.0 (permissive) · 604e698c3ad33407 · report
DynamicCombiner jiangqn/KSTER/joeynmt/combiners.py official repository unverified Apache-2.0 (permissive) · 12081610491cba7c · report
EnhancedDatabase jiangqn/KSTER/joeynmt/combiners.py official repository unverified Apache-2.0 (permissive) · 922f84b50145339d · report
Kernel jiangqn/KSTER/joeynmt/combiners.py official repository unverified Apache-2.0 (permissive) · 85f94e4c607f3908 · report
build_scheduler jiangqn/kster/joeynmt/builders.py official repository unverified Apache-2.0 (permissive) · ecf1add161d46a9b · report
generate_id jiangqn/kster/joeynmt/build_database.py official repository unverified Apache-2.0 (permissive) · 2b08b87924c54731 · report
token_batch_size_fn jiangqn/kster/joeynmt/data.py official repository unverified Apache-2.0 (permissive) · cb329af957271d21 · report

Tasks

Domain AdaptationMachine TranslationNMTRetrievalTranslation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections