[Paper Review] Learning to Remember Translation History with a Continuous Cache
This paper proposes a continuous cache mechanism to enhance neural machine translation (NMT) by storing and retrieving bilingual hidden representations from previous translations, enabling dynamic adaptation to document-level context. The method improves translation consistency and accuracy across diverse domains with minimal computational overhead, outperforming strong baselines by leveraging both source and target-side history without error propagation.
Existing neural machine translation (NMT) models generally translate sentences in isolation, missing the opportunity to take advantage of document-level information. In this work, we propose to augment NMT models with a very light-weight cache-like memory network, which stores recent hidden representations as translation history. The probability distribution over generated words is updated online depending on the translation history retrieved from the memory, endowing NMT models with the capability to dynamically adapt over time. Experiments on multiple domains with different topics and styles show the effectiveness of the proposed approach with negligible impact on the computational cost.
Motivation & Objective
- To address translation inconsistency and ambiguity in neural machine translation caused by processing sentences in isolation.
- To exploit document-level context—especially target-side history—without suffering from error propagation common in previous methods.
- To design a lightweight, efficient memory mechanism that scales to long-range translation history.
- To enable NMT models to dynamically adapt by retrieving and incorporating relevant translation history in real time.
- To improve translation quality across diverse domains and styles using a continuous, robust memory structure.
Proposed method
- Augment standard NMT with a continuous key-value memory network that stores decoder hidden states (values) and attention vectors (keys) from previous translations.
- At each decoding step, use the current attention vector as a query to retrieve relevant history from the cache via dot-product similarity.
- Combine the retrieved context vector with the current decoder state to update the probability distribution over target words.
- Store and update the cache online during inference, maintaining a fixed-size buffer of recent translation history.
- Use continuous representations instead of discrete words or phrases to avoid error propagation and improve robustness.
- Integrate the cache into the standard attention-based NMT framework with minimal architectural changes and low computational cost.
Experimental results
Research questions
- RQ1Can a lightweight, continuous cache mechanism improve translation consistency and accuracy by leveraging document-level context?
- RQ2How does incorporating target-side translation history affect performance compared to source-side-only approaches?
- RQ3To what extent can a continuous cache reduce error propagation compared to discrete phrase-based caching methods?
- RQ4How does the proposed method scale across different domains, topics, and translation styles?
- RQ5What types of translation patterns (e.g., lexical, phrase-level) can the continuous cache effectively learn and retrieve?
Key findings
- The continuous cache significantly improves translation performance across multiple domains, including news, biomedical, and web texts, with consistent gains over strong NMT baselines.
- The method achieves substantial improvements in BLEU scores while incurring negligible computational overhead, making it suitable for real-time deployment.
- The cache effectively learns and retrieves both exact and fuzzy-matching patterns at word and phrase levels, enhancing consistency in repeated terms.
- The approach outperforms prior methods that rely on discrete caches or source-side-only context, particularly in handling ambiguity and tense inconsistency.
- Experiments show the cache is robust across diverse topics and styles, demonstrating generalization beyond narrow domain adaptation.
- The model maintains high efficiency during both training and inference, with minimal memory and computation cost due to the use of continuous representations and efficient dot-product matching.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.