SLoW: Select Low-frequency Words! Automatic Dictionary Selection for Translation on Large Language Models

Hongyuan Lu, Zixuan Li, Zefan Zhang, Wai Lam

TL;DR

This paper introduces Automatic Dictionary Selection (ADS), a new task aimed at optimizing dictionary usage for Large Language Models (LLMs) in machine translation. They propose SLoW, a method that selects low-frequency words for dictionary inclusion, demonstrating significant improvements in translation quality and efficiency across numerous languages, often outperforming even full dictionary approaches.

What Problem Does This Paper Address?

Large Language Models (LLMs) have revolutionized many NLP tasks, but their multilingual capabilities, especially for low-resource languages, remain limited. While dictionary-based prompting can enhance translation for these languages, current methods tend to use all available dictionaries indiscriminately. This "greedy" approach can lead to unnecessary token consumption and potentially introduce irrelevant information, which might even distract the LLM. The authors identify a gap in systematically selecting which dictionaries are most beneficial, proposing a new task: Automatic Dictionary Selection (ADS). ADS aims to find a subset of dictionaries that maximizes translation performance while considering a trade-off between token usage and accuracy.

Methods

The core contribution is the Automatic Dictionary Selection (ADS) task, which formulates the problem as finding an optimal subset of dictionaries. To tackle this, they propose SLoW (Select Low-frequency Words!). SLoW's central idea is to prioritize dictionaries containing low-frequency words. The hypothesis is that LLMs are already proficient with high-frequency words due to their extensive training data, and adding dictionaries for less frequent words can more effectively bridge knowledge gaps and improve translation. A key advantage of SLoW is that it estimates word frequencies using readily available online resources, circumventing the need for access to the LLM's proprietary training data. This method requires no additional LLM tuning.

Datasets

The primary dataset used for evaluation is FLORES (NLLB-Team, 2022), specifically focusing on 100 languages from its devtest set. The FLORES dataset consists of 1,012 sentences sourced from English Wikipedia, covering diverse topics and domains, meticulously translated into hundreds of languages by professional human translators. This makes it suitable for evaluating machine translation performance, especially for low-resource languages.

Key Insights and Ideas

  • Low-frequency words are key: The surprising insight is that focusing on low-frequency words in dictionaries, rather than all available words, can lead to better translation performance. This suggests that LLMs have a stronger grasp of common vocabulary, and targeted dictionary support for rarer terms is more impactful.
  • No need for LLM training data: A significant practical advantage is that SLoW can estimate word frequencies using public web resources, making it applicable even when the LLM's training data is inaccessible. This democratizes the approach.
  • Efficiency gains: SLoW not only improves translation quality but also demonstrably saves token usage by selecting a smaller, more effective set of dictionaries.
  • Universally applicable: The effectiveness of SLoW is observed across various LLMs (LLaMa, ChatGPT, DeepSeek) and translation directions (English-to-X, X-to-English, and non-English-centric).

Key Results

Experiments on 100 languages from FLORES show that SLoW consistently outperforms strong baselines, including methods that use all available dictionaries or focus on high-frequency words.

  • Improved Performance: SLoW achieved improvements in COMET scores across a large majority of language pairs. For instance, in the "En-X-LLaMa" direction, 88 out of 100 language pairs showed improvement, with 22% of those improving by more than 20 COMET points.
  • Surpassing Full Dictionaries: In several cases, SLoW even surpassed the performance of using the full dictionary, demonstrating its efficiency and effectiveness.
  • Robustness: The method showed consistent gains across different LLMs and translation directions, including challenging non-English-centric translations.

Limitations and Future Work

  • Limited Language Coverage: The current study analyzes 100 languages, while the world has over 7,000. Extending this to more languages is a natural next step, though data collection remains a challenge.
  • No Access to LLM Training Data: The authors acknowledge that not having access to the LLM's actual training data prevents them from estimating word frequencies directly from it, which could potentially yield even better results.
  • Fixed Dictionary Size (V): For computational efficiency, a fixed dictionary size (V) was used. Future work could explore adaptive strategies for determining the optimal dictionary size.
  • Exploration of Other Dictionary Types: While SLoW focuses on low-frequency words, further research could explore other criteria for dictionary selection.

Summary updated

BibTeX
@inproceedings{lu2025slow,
  author = {Hongyuan Lu and Zixuan Li and Zefan Zhang and Wai Lam},
  title = {{SLoW: Select Low-frequency Words! Automatic Dictionary Selection for Translation on Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure