LitMind Dictionary: An Open-Source Online Dictionary

Cunliang Kong, Xuezhi Fang, Liner Yang, Yun Chen, Erhong YangarXiv 2022 · DOI

Introduction

Traditional dictionaries function as "discrete inventories," presenting word senses as a fixed list of pre-written entries. While useful, this retrieval-based model faces two significant challenges: the "Polysemy Trap," where users must manually disambiguate multiple meanings, and "Lag Time," as lexicographers struggle to keep pace with the rapid evolution of language.

LitMind addresses these issues by introducing a generative approach to lexicography. Instead of looking up a static entry, LitMind utilizes a Transformer-based Definition Generation Model (DGM) to write a precise definition on the fly, tailored to the specific context in which a word appears.

LitMind generates a context-aware definition for 'squarely' based on the provided sentence.

System Architecture and Methodology

The core of the LitMind system is the Definition Generation Model (DGM), which treats definition generation as a sequence-to-sequence task. The system takes a query word ($w$) and its surrounding context ($c$) as input, concatenating them into a single sequence: (w, [SEP], c).

The architectural workflow of the LitMind dictionary system.

To ensure high-quality output, the researchers employed state-of-the-art Pre-trained Language Models (PLMs). Specifically, BART was used for English monolingual tasks, while mBART supported Chinese and cross-lingual (Chinese-to-English) queries.

A key engineering feature of LitMind is the integration of a Named Entity Recognition (NER) module. If the system identifies a query as a proper noun (e.g., a specific city or organization), it bypasses the generative model and retrieves information from a predefined list. This hybrid approach significantly reduces "hallucinations"—a common issue in generative models where the system might invent plausible-sounding but incorrect facts about specific entities.

Datasets and Training

The models were trained and evaluated using three primary datasets:

  • Oxford Dataset: A standard English corpus containing approximately 97,000 training entries.
  • Contemporary Chinese Learner’s Dictionary (CCLD): A major contribution of this work, the authors digitized a physical Chinese dictionary via OCR and manual proofreading, resulting in 89,000 entries.
  • CCLD-Cross: A manually curated subset used to evaluate zero-shot cross-lingual transfer capabilities.

Key Insights and Results

The transition from retrieval to generation yielded substantial performance gains. In English monolingual tasks, the BART-based model achieved a BLEU score of 29.51, nearly doubling the performance of non-pretrained baselines like LOG-CaD (18.76).

The research also demonstrated the viability of zero-shot cross-lingual transfer. By training on English-English data and leveraging the multilingual embeddings of mBART, the system successfully generated English definitions for Chinese words without requiring a massive parallel cross-lingual dataset. Manual evaluations confirmed that while mBART provided higher fluency, mBERT-based models often produced more accurate, dictionary-style definitions.

Conclusion and Future Directions

LitMind represents a significant step toward dynamic, context-aware language tools. However, the authors identify several avenues for future development. One priority is difficulty control, ensuring that generated definitions are linguistically simpler than the target word to better serve language learners. Additionally, the team aims to improve example sentence selection, ensuring that provided examples always align perfectly with the specific sense of the generated definition.

By open-sourcing the code and the CCLD dataset, the authors provide a robust foundation for future research in generative lexicography and natural language understanding.

Summary updated

BibTeX
@misc{kong2022litmind,
  author = {Cunliang Kong and Xuezhi Fang and Liner Yang and Yun Chen and Erhong Yang},
  title = {{LitMind Dictionary: An Open-Source Online Dictionary}},
  year = {2022},
  eprint = {2204.11087},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.11087},
}
Figure