Translate Meanings, Not Just Words: IdiomKB's Role in Optimizing Idiomatic Translation with Language Models

Shuang Li, Jiangjie Chen, Siyu Yuan, Xinyi Wu, Hao Yang, Shimin Tao, Yanghua Xiao

Abstract

Idiomatic expressions pose a significant challenge for machine translation due to their non-compositional nature. This paper introduces IDIOMKB, a large-scale multilingual knowledge base distilled from Large Language Models (LLMs), and KB-CoT (Knowledge Base Chain-of-Thought), a prompting strategy that enables smaller, efficient models to translate idioms with high accuracy. By grounding translations in retrieved figurative meanings, this approach allows 7B-parameter models to rival the performance of much larger counterparts.

What Problem Does This Paper Address?

Machine Translation (MT) systems often struggle with idioms because they are trained to predict words based on composition. Consequently, they frequently default to literal translations. For example, the Chinese idiom "走马观花" (zǒu mă guān huā) might be translated literally as "viewing flowers while riding a horse," missing its figurative meaning of "having a superficial understanding."

Figure 1: Comparison between literal translation and IDIOMKB-enhanced figurative translation.

While massive LLMs like GPT-4 handle idioms better, they are computationally expensive for large-scale deployment. Smaller models lack the internal knowledge to avoid literal traps, and existing idiom dictionaries are often too limited in scope or language coverage.

Methods

The authors propose a two-pronged solution to bridge this gap:

  1. IDIOMKB Construction: Using "symbolic knowledge distillation," the researchers prompted teacher LLMs (GPT-3.5 and ChatGPT) to generate figurative meanings for idioms across English, Chinese, and Japanese. This resulted in a scalable, high-quality repository of idiomatic common sense.
  2. KB-CoT (Knowledge Base Chain-of-Thought): Instead of direct translation, the system retrieves the figurative meaning from IDIOMKB and includes it in the prompt. This "hint" guides the model to prioritize figurative interpretation over literal word-for-word translation.
  3. GPT-4 Evaluation Metric: Standard metrics like BLEU are ineffective for idioms as they focus on word overlap rather than semantic accuracy. The authors developed a reference-free GPT-4 evaluation prompt that scores translations on a 1-3 scale based on figurative nuance.

Datasets

IDIOMKB was built and tested using aggregated idioms from several benchmarks:

  • English: 3,990 idioms (from MAGPIE, IMIL, EPIE, PIE).
  • Chinese: 8,643 idioms (from PETCI, CCT, ChID).
  • Japanese: 270 idioms (from ID10M, OpenMWE).

Key Insights

  • Target Language Advantage: Providing the idiom's meaning in the target language yields better results than providing it in the source language. This indicates that the primary difficulty lies in expressing the concept correctly in the destination language.
  • English Prompting Bias: Using English instructions often outperformed instructions in other languages, likely due to the models' extensive pre-training on English data.
  • Grounding vs. Hallucination: Smaller models often hallucinate when asked to explain idioms themselves (Self-CoT). External grounding via IDIOMKB (KB-CoT) is essential for preventing these errors.

Key Results

The KB-CoT strategy consistently improved the performance of smaller models like BLOOMZ (7.1B) and Alpaca (7B).

Figure 3: Performance comparison of Direct vs. KB-CoT prompting across various models and datasets.

As shown in Figure 3, the KB-CoT method significantly boosts the GPT4Score for smaller models, making them competitive with ChatGPT. Furthermore, the performance gains remained robust on a "no-leakage" dataset of recent news, confirming that the models are utilizing the knowledge base rather than simply memorizing training data.

Conclusion

IDIOMKB and the KB-CoT strategy provide a practical path for deploying high-quality idiomatic translation on smaller, more efficient hardware. By focusing on the figurative "meaning" rather than just the "words," this approach overcomes one of the most persistent hurdles in machine translation. Future work will focus on expanding Japanese coverage and integrating automated idiom detection.

Summary updated

BibTeX
@inproceedings{li2024translate,
  author = {Shuang Li and Jiangjie Chen and Siyu Yuan and Xinyi Wu and Hao Yang and Shimin Tao and Yanghua Xiao},
  title = {{Translate Meanings, Not Just Words: IdiomKB's Role in Optimizing Idiomatic Translation with Language Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i17.29817},
}
Figure