cs.CLOct 17, 2026

Training with Ciphers to Enhance In-Context Terminology Learning For Translation from Rare Languages

Authors: Deevyanshu Malu, Deeptanshu Malu, Sunita Sarawagi

Organizations: IIT Bombay

Abstract

Fine-tuning LLMs with in-context examples (IC-Train) lets translation models adapt to new parallel data at deployment, but it is unclear whether they actually learn the translations of rare terms from those examples. We formalize this capability as in-context term learning (ICTL). We show that standard IC-Train develops this capability only weakly, and propose RareCipherFT, which strengthens it without any lexical resources. RareCipherFT pairs each training target with in-context examples that share a rare term with it. It then replaces that term with a character-shuffled cipher in both the context and the reference, so the term can only be recovered by copying from context. The ciphered fraction of training data is annealed to preserve translation quality. Across seven translation directions between English and Tamil, Assamese, Mizo, Nepali and Hausa, and four models from 1B to 7B parameters, RareCipherFT raises term recall over standard IC-Train by 5-15 absolute points without lowering COMET. Probes using synonyms, nonce words and controls for shared surface context show that these gains come from linking source terms to their in-context translations rather than from shortcuts.

Figures & tables

Appendix figures & tables5 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Rashid: A Cipher-Based Framework for Exploring In-Context Language Learning

    Mar 23, 2026Niyati Bafna, Ryan Soh-Eun Shim, Barbara Plank +2In-Context LearningLow-Resource Language Processing

  2. An Empirical Study of Many-Shot In-Context Learning for Machine Translation of Low-Resource Languages

    Apr 3, 2026Yinhan Lu, Gaganpreet Jhajj, Chen Zhang +2In-Context LearningLow-Resource MT

  3. Reasoning about In-Context Samples for Machine-Translation

    Aug 27, 2026Maxime Bouthors, Josep Crego, François YvonMachine TranslationIn-Context Learning