Extracting Synonyms from Bilingual Dictionaries

Mustafa Jarrar, Eman Karajah, Muhammad Khalifa, Khaled Shaalan

TL;DR

Building lexical resources like WordNets is notoriously resource-intensive and complex. This paper introduces a lightweight, language-independent algorithm that extracts bilingual synonyms from simple, flat bilingual dictionaries by analyzing cyclic paths in a translation graph. By consolidating these paths, the approach achieves an impressive F-measure of over 82% in reconstructing Arabic-English synsets without relying on any pre-existing morphological or part-of-speech data.

What Problem Does This Paper Address?

Synonyms are foundational to natural language processing tasks like machine translation, information retrieval, and question answering. However, automatically extracting synonyms is a notorious challenge due to two main linguistic hurdles: polysemy (words having multiple meanings) and domain specificity (words being synonymous only in certain contexts, like "room" and "hall" in school settings).

While modern techniques often rely on massive parallel corpora or complex word embeddings, these methods can be noisy and data-hungry. The authors tackle a more constrained but highly practical question: Can we reliably extract high-quality synonyms using nothing more than a basic bilingual dictionary?

Methods

The authors propose a two-phase, graph-based algorithm designed to work under the most ambiguous conditions—assuming no part-of-speech tags, morphological features, or pre-existing semantic links.

  1. Extracting Cyclic Paths: The algorithm first models the bilingual dictionary as an undirected graph where nodes represent words from both languages, and edges represent translation pairs. It then applies a modified version of Johnson’s algorithm to find all directed cycles up to a maximum path length ($k$). The core intuition is that if Word $A$ translates to Word $B$, which translates to Word $C$, which translates back to Word $A$, then $A$, $B$, and $C$ are highly likely to be synonyms.
  2. Consolidation: Because paths are cut off at length $k$ to prevent infinite loops, some synonym sets (synsets) end up fragmented. The consolidation phase merges synsets that share identical sets of translations (e.g., unioning Arabic synsets that map to the exact same English words).
Figure 1: Example of a translation graph

Datasets

To rigorously evaluate the algorithm, the authors used the Arabic WordNet (AWN). They intentionally stripped away all of AWN's internal synonymy links and semantic hierarchies, flattening it into a basic list of Arabic-English translation pairs. The goal was to see how accurately the algorithm could reconstruct the original, human-curated synsets from scratch.

Key Insights and Ideas

  • The Power of the Cycle: Cyclic paths in a bilingual graph are remarkably strong indicators of semantic equivalence. If a translation chain loops back to its origin, it naturally filters out many incorrect meanings.
  • Consolidation is Crucial: The "aha moment" of the paper lies in the consolidation step. Without it, the algorithm suffers from lower precision because short path limits ($k$) leave synsets incomplete. Merging overlapping translation sets acts as a powerful error-correction mechanism.
  • More is Not Always Better ($k$-limit): Intuitively, one might think searching for longer paths (higher $k$) would yield more synonyms. However, the authors found that increasing $k$ from 6 to 8 actually decreased performance. Longer paths allow highly polysemous words to introduce irrelevant nodes, polluting the graph with noise.

Key Results

The algorithm proved highly effective at rebuilding the fractured WordNet synsets. At an optimal path length of $k=6$, the consolidation phase provided a massive boost to precision:

  • Arabic Synset Extraction: Achieved a Precision of 80.5%, Recall of 84.2%, and an F-Measure of 82.3% (up from 74.4% without consolidation).
  • English Synset Extraction: Achieved a Precision of 80.4%, Recall of 83.8%, and an F-Measure of 82.1% (up from 70.1% without consolidation).
Table 1: Results on the AWN for Arabic synsets extractions
Results for English synset extraction across different path lengths.

Limitations and Future Work

While the algorithm's simplicity makes it highly reusable across different language pairs, it currently treats words with different diacritics or inflections as entirely separate entities. For instance, in Arabic, slight diacritic variations of the same base word were treated as distinct nodes, which artificially fragmented some potential cycles.

The authors note that integrating basic linguistic preprocessing—such as part-of-speech tagging, lemmatization, and diacritic normalization—is a clear next step that would likely push the algorithm's accuracy even higher.

Summary updated

BibTeX
@inproceedings{jarrar2021extracting,
  author = {Mustafa Jarrar and Eman Karajah and Muhammad Khalifa and Khaled Shaalan},
  title = {{Extracting Synonyms from Bilingual Dictionaries}},
  booktitle = {GWC},
  year = {2021},
  url = {https://openreview.net/forum?id=BdO-I873wz9},
}
Figure