Unraveling Antonym's Word Vectors through a Siamese-like Network

Mathías Etcheverry, Dina WonseverACL 2019

Introduction: The Paradox of Simultaneous Similarity

A persistent challenge in Natural Language Processing (NLP) is the "paradox of simultaneous similarity." Standard word embedding models rely on the distributional hypothesis, which posits that words appearing in similar contexts have similar meanings. While effective for identifying synonyms like big and large, this approach often fails to distinguish antonyms. Words like hot and cold appear in nearly identical linguistic contexts (e.g., "the water is very ___"), causing their vector representations to cluster closely together in vector space.

Visual representation of the synonym/antonym similarity paradox.

Methodology: The Parasiamese Network

To address this, researchers from Republic University (Uruguay) proposed the Parasiamese Network. This architecture leverages the algebraic properties of lexical relations: synonymy is transitive, whereas antonymy is antitransitive. Specifically, if $A$ is the antonym of $B$, and $B$ is the antonym of $C$, then $A$ and $C$ are likely synonyms (e.g., the opposite of "not cold" is "hot").

Two-Phase Training

The model is trained in two distinct phases to "unravel" these relationships:

  1. Siamese Pre-training: A base network ($F_\theta$) is first trained on synonym pairs. The goal is to map synonyms to the same point in a new transformed vector space, establishing a baseline for "sameness."
  2. Parasiamese Training: The network is then trained on antonym pairs $(x, y)$. In this phase, $x$ is passed through the network once, while $y$ is passed through it twice ($F_\theta(F_\theta(y))$). This forces the model to learn a transformation where applying it twice brings an antonym back to its synonymous origin.
The Parasiamese architecture designed for antonym detection.

Relaxed Loss Function

The authors also introduced a relaxed contrastive loss. Rather than forcing distances to be exactly zero, the model only penalizes distances that exceed a specific threshold ($\rho$). This prevents overfitting and allows the model to respect the natural semantic nuances of language.

Experimental Setup

The model was evaluated using a dataset developed by Nguyen et al. (2017), which contains balanced pairs of antonyms and synonyms extracted from WordNet and Wordnik. The evaluation spanned three word classes: Adjectives, Verbs, and Nouns. The researchers tested the architecture using both static embeddings (FastText) and contextualized embeddings (ELMo).

Key Results

The Parasiamese model outperformed both standard neural baselines and the previous pattern-based state-of-the-art model, AntSynNet, across all categories. Notably, the model achieves these results using only raw word vectors, without requiring complex dependency parsing or external knowledge bases.

Model Adjective ($F_1$) Verb ($F_1$) Noun ($F_1$)
Baseline (Concat) 0.677 0.694 0.739
AntSynNet 0.784 0.777 0.855
Parasiam (FastText) 0.856 0.891 0.848

The most significant performance gains were observed in the Verb category, where the $F_1$ score reached 0.891, a substantial improvement over prior methods.

Discussion and Future Work

Visualization of the transformed space reveals that the Parasiamese transformation effectively splits the vector space into two distinct poles of meaning. While highly effective, the model currently struggles with "non-related" pairs, occasionally identifying relationships between unrelated words. Future research may explore applying this antitransitive logic to other domains, such as social network analysis (e.g., "the enemy of my enemy is my friend"), or further optimizing the architecture for contextualized embeddings.

This summary is based on the paper presented at ACL 2019.

Summary updated

BibTeX
@inproceedings{etcheverry2019unraveling,
  author = {Mathías Etcheverry and Dina Wonsever},
  title = {{Unraveling Antonym's Word Vectors through a Siamese-like Network}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1319},
}
Figure