RetroGAN: A Cyclic Post-Specialization System for Improving Out-of-Knowledge and Rare Word Representations

Pedro Colon-Hernandez, Yida Xin, Henry Lieberman, Catherine Havasi, Cynthia Breazeal, Peter Chin · DOI

Abstract

Retrofitting is a technique used to move word vectors closer together or further apart in their space to reflect their relationships in a Knowledge Base (KB). However, retrofitting only works on concepts that are present in that KB. RetroGAN uses a pair of Generative Adversarial Networks (GANs) to learn a one-to-one mapping between concepts and their retrofitted counterparts. It applies that mapping (post-specializes) to handle concepts that do not appear in the original KB in a manner similar to how some natural language systems handle out-of-vocabulary entries. We test our system on three word-similarity benchmarks and a downstream sentence simplification task and achieve the state of the art (CARD-660). Altogether, our results demonstrate our system's effectiveness for out-of-knowledge and rare word generalization.

Introduction

Word embeddings, such as FastText or Word2Vec, serve as the foundational representations for modern Natural Language Processing (NLP). Despite their utility, these distributional models often fail to capture nuanced semantic relationships—such as the distinction between synonyms and antonyms—because they rely exclusively on textual co-occurrence.

To address this, researchers use retrofitting, which leverages external Knowledge Bases (KBs) like ConceptNet to refine vector spaces by "nudging" synonyms closer and pushing antonyms apart. However, retrofitting suffers from a significant limitation: it can only modify words explicitly listed in the KB. Rare words, slang, or domain-specific terms remain in their unrefined state. RetroGAN addresses this through post-specialization, learning the global geometric transformation applied by retrofitting to generalize it across the entire vocabulary, including out-of-knowledge (OOK) words.

Methodology

RetroGAN adapts the CycleGAN architecture for vector space transformation. The system is designed to learn a robust, one-to-one mapping between a general distributional space and a specialized (retrofitted) space.

The RetroGAN architecture utilizes dual generators and discriminators to enforce cyclic consistency across embedding spaces.

Key Components

  • Dual Generators: The system employs two generators: $G$ maps distributional embeddings to the specialized space, while $F$ learns the inverse mapping.
  • Cyclic Consistency: To prevent information loss or "mode collapse," the model enforces the constraint $F(G(x)) \approx x$. This ensures the transformation preserves the unique identity of each word vector.
  • Cyclic Max-Margin Loss: A novel loss function ensures that generated embeddings are not only proximal to their gold-standard retrofitted counterparts but also sufficiently distant from random "confounder" words throughout the cycle.
  • Conditional Discriminators: Unlike standard GANs, RetroGAN’s discriminators evaluate both the input and output vectors to verify the authenticity of the semantic transformation.

Experimental Setup

The model was evaluated using English Common Crawl FastText and Numberbatch embeddings. Training constraints were derived from the Attract-Repel procedure. Performance was measured across several benchmarks:

  • SimLex-999 (SL) & SimVerb-3500 (SV): Standard word and verb similarity tasks.
  • CARD-660: The Cambridge Rare Word dataset, a critical test for infrequent term handling.
  • Light-LS: A downstream Lexical Simplification task to measure real-world utility.

Results and Discussion

RetroGAN demonstrated superior performance, particularly in generalizing to words absent from the training KB (the "Disjoint" scenario).

Comparative performance of RetroGAN against baselines, demonstrating state-of-the-art results on the CARD-660 rare-word benchmark.

Key Findings

  • State-of-the-Art Performance: RetroGAN achieved a SOTA score of 0.5240 on the CARD-660 benchmark, significantly outperforming previous methods like AuxGAN and Attract-Repel.
  • Generalization (The "Doggo" Effect): While a KB might lack the word "doggo," it contains "dog." RetroGAN learns the geometric shift applied to "dog" and successfully applies a similar shift to "doggo," moving it closer to semantic neighbors like "pooch" rather than just other internet slang.
  • Downstream Impact: In Lexical Simplification, RetroGAN improved accuracy to 0.7595 (using FastText), a substantial leap from the distributional baseline of 0.6553.
  • Scalability: Unlike earlier models that plateau, RetroGAN’s performance scales effectively as more constraints are introduced, indicating a more accurate capture of the underlying mapping function.

Conclusion

RetroGAN provides a powerful framework for post-specializing word embeddings, effectively bridging the gap for rare and out-of-knowledge words. While the model occasionally trades a small amount of precision for words already in the KB to achieve broader generalization, its success on rare-word benchmarks and downstream tasks is significant. Future research will explore applying these cyclic specialization constraints to contextual encoders like BERT and GPT.

Summary updated

BibTeX
@inproceedings{colonhernandez2021retrogan,
  author = {Pedro Colon-Hernandez and Yida Xin and Henry Lieberman and Catherine Havasi and Cynthia Breazeal and Peter Chin},
  title = {{RetroGAN: A Cyclic Post-Specialization System for Improving Out-of-Knowledge and Rare Word Representations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=_r03MPr3KBj},
}
Figure