Introduction
Word embeddings, such as word2vec or BERT, serve as the foundational numerical representations in modern Natural Language Processing (NLP). Despite their utility, these dense vectors remain "black boxes"—mathematical abstractions that are unintelligible to humans. In contrast, dictionaries provide human-readable "glosses" that define a word's meaning explicitly. The CODWOE (Comparing Dictionaries and Word Embeddings) shared task was designed to investigate the semantic alignment between these two representations: do they encode the same information, and can we translate between them?
Bridging this gap has significant implications for explainable AI, the development of lexical resources for low-resource languages, and the fundamental evaluation of whether neural models truly "understand" concepts in a manner consistent with human lexicography.
Task Definition and Methodology
The CODWOE challenge was structured into two complementary tracks to test the bidirectional mapping between vectors and text:
- Track 1: Definition Modeling (Vector-to-Sequence): Given a word embedding (e.g., a vector representing the word cod), the model must generate a corresponding textual definition (e.g., "any of various bottom-dwelling fishes...").
- Track 2: Reverse Dictionary (Sequence-to-Vector): The mathematical inverse. Given the text of a definition, the model must reconstruct the original word embedding.
To establish a baseline, the organizers provided Transformer-based architectures for both tasks. For the Reverse Dictionary track, a Transformer encoder was used, where hidden states were aggregated and passed through a non-linear layer to predict the target vector. For Definition Modeling, a Transformer decoder was employed, using the word embedding as the initial token to guide the generation process.
Dataset and Experimental Setup
The organizers developed a multilingual benchmark covering English, French, Russian, Italian, and Spanish. Definitions were sourced from DBnary, an RDF version of Wiktionary, focusing on major parts of speech (nouns, adjectives, verbs, and adverbs).
To ensure a fair comparison, three types of embeddings were provided, all trained on consistent corpora:
- SGNS (word2vec): Standard static embeddings.
- ELECTRA: Contextualized embeddings representing modern transformer-based approaches.
- Character-based: A baseline using an LSTM auto-encoder to capture orthographic and morphological features rather than deep semantics.
Each language dataset was substantial, containing approximately 43,600 training instances and over 6,000 test points.
Key Insights and Results
The competition drew 159 submissions from 15 international teams. Top-performing teams, such as BLCU-ICALL and Edinburgh, often utilized multi-task learning or leveraged large-scale pre-trained language models to improve performance.
The "Spelling" Trap and Contextual Complexity
A surprising finding was the competitiveness of character-based embeddings. This suggests that models may be over-relying on surface-level patterns (spelling) rather than deep semantic understanding, or that many words have "transparent" meanings where the form strongly hints at the definition. Furthermore, mapping contextualized embeddings like ELECTRA to static dictionary definitions proved difficult, as these embeddings vary by context while standard glosses remain fixed.
Evaluation Challenges
The task highlighted a major bottleneck in NLP: evaluation metrics. Standard metrics like BLEU, which rely on exact word overlap, proved unsatisfactory for definitions. A model might generate a semantically perfect synonym-based definition that receives a near-zero score due to lack of lexical overlap with the reference. To address this in the Reverse Dictionary track, the organizers introduced a Ranking metric, measuring what proportion of the entire test set was closer to the model's prediction than the actual target vector.
Performance Trends
- Definition Modeling: Performance remained low across all participants (S-BLEU scores often below 0.10), confirming that generating precise definitions from a single vector is an extremely difficult task.
- Reverse Dictionary: Models were significantly more successful here. In many top submissions, at least a third of the test set was closer to the model's output than the intended target, indicating that models can effectively navigate the semantic neighborhood of a definition.
Conclusion and Future Work
The CODWOE task demonstrates that while we can bridge the gap between dense vectors and human language, current models and metrics still struggle with the nuances of lexicography. Future work will focus on scaling the task to embeddings trained on web-scale corpora and developing more robust, human-aligned evaluation frameworks for natural language generation in the dictionary domain.
Summary updated