DelTA: An Online Document-Level Translation Agent Based on Multi-Level Memory

Yutong Wang, Jiali Zeng, Xuebo Liu, Derek F. Wong, Fandong Meng, Jie Zhou, Min Zhang

Large Language Models (LLMs) have proven to be highly capable at translating isolated sentences. However, when tasked with translating entire documents, they frequently lose the plot—struggling to maintain consistency, tone, and accuracy over long contexts. To address this, researchers have introduced DelTA (Document-levEL Translation Agent), an AI agent that translates documents sentence-by-sentence while maintaining a dynamic, "multi-level memory." This approach drastically improves translation consistency and quality while avoiding the skipped sentences and memory crashes common in standard document-level translation methods.

The Challenge of Document-Level Translation

Translating an entire document (Document-Level Machine Translation, or DocMT) is significantly more complex than translating a single sentence. A successful DocMT system must maintain the overall tone, resolve pronouns correctly across paragraphs, and ensure that specific entities—like a character's name or a technical term—are translated exactly the same way on page 50 as they were on page 1.

Currently, the standard approach is to feed LLMs large chunks of text at once (a "Doc2Doc" approach). However, this introduces two major problems:

  1. Translation Inaccuracy (Undertranslation): When given a massive block of text, LLMs tend to act like summarizers. They focus on the general meaning and frequently skip or omit specific source sentences.
  2. Translation Inconsistency: Even with large context windows, LLMs struggle to remember how they translated a specific proper noun dozens of paragraphs ago.

The core challenge is finding a way to guarantee sentence-for-sentence accuracy without losing the rich, document-wide context required for a coherent translation.

Enter DelTA: A Multi-Level Memory Agent

To solve these issues, the authors built DelTA. Instead of translating huge chunks of text at once, DelTA uses an "online" (sequential) sentence-by-sentence approach. To ensure the LLM doesn't lose the broader context, DelTA is equipped with a Multi-Level Memory system. This system is updated dynamically by auxiliary LLM calls as the agent reads through the document.

DelTA Architecture and Multi-Level Memory

The memory hierarchy is divided into four distinct levels:

  • Proper Noun Records: A strict dictionary that logs every new proper noun and its first translation. This forces the LLM to reuse that exact translation later, ensuring entity consistency.
  • Bilingual Summary: The agent periodically writes and merges summaries of both the source and target texts. This acts as a high-level memory of the document's domain, style, and tone.
  • Long-Term Memory: A rolling window of the last $l$ sentences. An LLM-based retriever searches this memory for past sentences most relevant to the current one, using them as few-shot examples.
  • Short-Term Memory: The immediately preceding $k$ sentences, providing instant local context for smooth transitions.

When translating a new sentence, DelTA packages relevant information from all four memory levels into the prompt. This gives the translator LLM the exact context it needs without overwhelming its context window.

Key Insights

  • Chunking is a trap for translation: The authors demonstrated that increasing the translation window size (e.g., translating 50 sentences at once) directly correlates with the LLM hallucinating or entirely skipping sentences. A strict sentence-by-sentence approach is safer, provided the right context is injected.
  • Memory needs hierarchy: Just like a human translator, an AI doesn't need to hold every single past sentence in its working memory. It needs immediate context for flow (Short-Term), specific rules for names (Proper Nouns), a general vibe (Summary), and the ability to look up relevant past examples (Long-Term).
  • Long-distance recall is the real bottleneck: DelTA particularly shines when a proper noun reappears after a gap of 50+ sentences. Standard LLM approaches fail here, but DelTA's explicit memory records keep it perfectly consistent.

Experimental Results

The researchers tested DelTA across several datasets, including IWSLT2017 (TED talk transcripts), Guofeng Webnovel (Chinese-to-English fiction), QMSum, and Europarl v9. The results demonstrated significant improvements over strong baselines.

Main Results on IWSLT2017
  • Massive Consistency Gains: On the IWSLT2017 dataset, DelTA improved translation consistency (measured by the LTCR-1 metric) by approximately 4.5 percentage points on average.
  • Dominating Fiction Translation: On the Guofeng web novel dataset—where keeping character names straight is paramount—DelTA improved consistency by a staggering 48.5 percentage points (jumping from 37.00% to 85.50% when using Qwen2-7B).
  • Higher Overall Quality: DelTA improved overall translation quality by an average of ~3.15 COMET points across various language pairs and models (including GPT-3.5, GPT-4o-mini, and Qwen2).
  • Memory Efficiency: Standard Doc2Doc approaches hit an Out-Of-Memory (OOM) GPU error after processing about 490 sentences due to context bloat. In contrast, DelTA's memory footprint grew very slowly, easily handling long documents on local hardware.

Limitations and Future Directions

The primary limitation of DelTA is inference speed. Because the agent relies on multiple LLM calls per sentence (to extract nouns, update summaries, retrieve long-term memory, and finally translate), it is computationally expensive and slower than standard batch translation.

For future work, the authors suggest several optimizations to speed up the pipeline:

  1. Batching multiple sentences using explicit boundary tags to reduce the number of LLM invocations.
  2. Replacing the LLM-based proper noun extractor with faster, deterministic alignment scripts.
  3. Swapping the LLM-based long-term memory retriever with a cheaper, standard dense vector retriever.

Summary updated

BibTeX
@inproceedings{wang2025delta,
  author = {Yutong Wang and Jiali Zeng and Xuebo Liu and Derek F. Wong and Fandong Meng and Jie Zhou and Min Zhang},
  title = {{DelTA: An Online Document-Level Translation Agent Based on Multi-Level Memory}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=hoYFLRNbhc},
}
Figure