Antonym-Synonym Classification Based on New Sub-Space Embeddings

Muhammad Asif Ali, Yifang Sun, Xiaoling Zhou, Wei Wang, Xiang Zhao

Introduction

Distinguishing antonyms from synonyms remains a fundamental challenge in natural language processing (NLP). While the "distributional hypothesis"—the idea that words appearing in similar contexts share similar meanings—is effective for many tasks, it fails to differentiate between words with opposite meanings (antonyms like hot and cold) and those with similar meanings (synonyms like hot and burning). Standard word embeddings such as GloVe or Word2Vec often cluster these pairs together because they frequently appear in identical linguistic environments.

Existing solutions typically rely on massive text corpora to identify specific patterns or manually curated lexicons like WordNet. However, these methods are often computationally expensive or limited by data sparsity. This paper introduces Distiller, a framework that projects pre-trained word embeddings into specialized sub-spaces using novel loss functions to capture relational properties like transitivity and "trans-transitivity."

Methodology: The Distiller Framework

The authors propose a two-phase framework designed to "distill" relevant features directly from existing embeddings without requiring raw text corpora at runtime.

Phase I: Sub-space Distillation

The core innovation involves using two non-linear neural encoders to project high-dimensional word embeddings into two 60-dimensional sub-spaces: SYN (synonyms) and ANT (antonyms). The training is guided by two primary loss functions:

  • Synonym Loss: Enforces symmetry and transitivity. If word A is a synonym of B, and B is a synonym of C, the model ensures A and C are proximal in the SYN sub-space.
  • Antonym Loss: Captures trans-transitivity. As illustrated in Figure 1, if A is an antonym of B, and B is a synonym of C, then A must be an antonym of C. The model correlates the ANT and SYN sub-spaces to enforce this logical consistency.
Relational logic of trans-transitivity (a) and the limitations of simple vector translation (b).

Phase II: Classification

Once the sub-spaces are trained, the model extracts synonymy and antonymy scores as features for an XGBoost classifier. The system also incorporates auxiliary features such as distributional similarity and negation prefixes (e.g., un-, ir-, dis-).

Results and Evaluation

The model was evaluated on a standard benchmark of 15,632 word pairs and a newly curated Urdu dataset to test language agnosticism.

Performance Gains

As shown in Table 2, the proposed model achieved significant improvements over state-of-the-art methods like AntSynNET. Using dLCE embeddings, the model improved F1 scores by approximately 18% for adjectives, 17% for verbs, and 6% for nouns.

Performance comparison of the proposed model against baselines across different word categories and embeddings.

Efficiency and Language Agnosticism

Distiller is remarkably efficient, training in less than 30 minutes—over 100x faster than previous corpus-based models that required over 50 hours. Furthermore, the model demonstrated strong cross-lingual capabilities; on the Urdu dataset, it achieved an F1 score of 0.881, compared to a direct baseline of 0.575, proving it can be applied to any language with pre-trained embeddings.

Conclusion and Future Work

By baking linguistic rules like transitivity directly into the loss function, Distiller effectively separates contrast from similarity in a low-dimensional space. While the model significantly outperforms previous benchmarks, the authors note that polysemy remains a challenge, accounting for 76% of classification errors. Future research will focus on addressing multi-sense words and extending this sub-space distillation approach to other lexical relations, such as hypernymy.

Summary updated

BibTeX
@inproceedings{ali2019antonym,
  author = {Muhammad Asif Ali and Yifang Sun and Xiaoling Zhou and Wei Wang and Xiang Zhao},
  title = {{Antonym-Synonym Classification Based on New Sub-Space Embeddings}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33016204},
}
Figure