Abstract
Definition modelling aims to automatically generate dictionary definitions for words based on their usage in specific contexts. This paper introduces a novel approach that leverages the T5 (Text-to-Text Transfer Transformer) model combined with a re-ranking mechanism to solve the "Goldilocks problem" of specificity: ensuring definitions are neither too vague (under-specific) nor too tied to a single sentence (over-specific).
Introduction
Generating accurate definitions is a complex NLP task. Previous models frequently encountered two primary obstacles. First, the Out-of-Vocabulary (OOV) Problem caused older models to fail on rare words or slang. Second, the Specificity Problem led to definitions that were either too generic (ignoring context) or over-specific (incorporating irrelevant details from the example sentence, such as proper nouns).
The proposed method seeks to generate definitions that are accurate to the specific sense of the word used in a sentence while remaining general enough to serve as a standard dictionary entry.
Methodology
The authors implement a two-stage pipeline consisting of generation and re-ranking.
1. Generation with T5
A T5-base model is fine-tuned to take a target word and its local context as input. Using beam search, it produces a list of $n$-best candidate definitions. By utilizing sub-word tokenization and massive pre-training, T5 effectively eliminates the OOV issues that plagued previous RNN-based architectures.
2. Re-ranking for Specificity
The core innovation is a re-ranking model that scores candidates based on their information flow. Two additional T5 models are used to calculate specific metrics:
- Under-specificity Score ($P_{general}$): This model attempts to predict the definition using only the target word. If the definition is easily guessed without context, it is likely too generic.
- Over-specificity Score ($P_{specific}$): This model attempts to reconstruct the original context sentence using only the candidate definition. High certainty here suggests the definition contains too much "leaked" information from the context.
Experimental Setup and Datasets
The method was evaluated across four diverse benchmarks to test its robustness:
- WordNet: A standard lexical database.
- Oxford: Complex, professional dictionary definitions.
- Urban Dictionary: Challenging slang with high OOV rates.
- Wikipedia: Contexts and definitions derived from encyclopedic entries.
Key Results
The proposed method achieved significant performance gains over previous state-of-the-art (SOTA) models. On the Oxford dataset, BLEU scores rose from 18.57 to 26.52, while NIST scores—which the authors prefer for their ability to weight informative content words more heavily—jumped from 38.22 to 74.17.
Crucially, the T5-based approach achieved 0% OOV across all datasets, including Urban Dictionary, where previous models had OOV rates as high as 90%. Human validation confirmed that the re-ranking mechanism successfully reduced under-specific errors by 4%.
Discussion and Future Work
While highly effective, the model does introduce additional computational costs by requiring three separate T5 passes. Furthermore, the weights for balancing the re-ranking scores currently require manual tuning per dataset. Future research may explore automating this tuning process or extending the framework to cross-lingual definition generation, such as defining terms from one language in another.
Summary updated