Synergistic union of Word2Vec and lexicon for domain specific semantic similarity

Keet Sugathadasa, Buddhi Ayesha, Nisansa de Silva, Amal Shehan Perera, Vindula Jayawardana, Dimuthu Lakmal, Madhavi PereraICIIS 2017

Introduction

Semantic similarity—the computational capacity to recognize that terms like "attorney" and "lawyer" are conceptually related—is a fundamental challenge in Natural Language Processing (NLP). General-purpose models, such as those trained on broad datasets like Google News, frequently underperform in specialized domains. In the legal field, terminology often involves Latin roots and specific technical interpretations that diverge from common usage. Furthermore, standard models often fail to handle inflected forms (e.g., "judge," "judges," "judged") efficiently, leading to redundant vocabulary and diluted semantic relationships. This research proposes a hybrid approach that bridges distributional semantics (contextual usage) and topological semantics (expert-curated ontologies).

Methodology

The proposed system utilizes a multi-stage pipeline to generate a domain-specific similarity measure. The process begins with Text Lemmatization using the Stanford CoreNLP library to map inflected words to their base lemmas, concentrating semantic weight and reducing model "bloat." Subsequently, a Word2Vec model is trained using the Continuous Bag of Words (CBOW) architecture on a specialized legal corpus.

To enhance these neural embeddings, the system integrates three established Lexical Similarity Measures derived from WordNet:

  • Wu & Palmer: Taxonomy depth-based similarity.
  • Jiang & Conrath: A hybrid approach using corpus statistics and taxonomy.
  • Hirst & St-Onge: Path length and directionality between synsets.

Finally, a Neural Weighting layer (a single-hidden-layer neural network) learns the optimal combination of Word2Vec scores and lexical measures, allowing the system to dynamically prioritize the most reliable measure for any given word pair.

System architecture and processing pipeline for the legal semantic similarity model.

Experimental Design

The study leveraged a Legal Corpus consisting of over 35,000 case documents (approximately 20 billion words) sourced from Findlaw. A Generic Baseline ($word2vec_G$) was established using the Google News dataset (100 billion words). To evaluate performance, a Golden Standard benchmark was developed in collaboration with legal experts, comprising 100 concepts paired with five highly related terms selected from a pool of 1,500 legal words.

Results and Discussion

The performance of four distinct models was evaluated: $word2vec_G$ (Google), $word2vec_{LR}$ (Raw Legal), $word2vec_{LL}$ (Lemmatized Legal), and $word2vec_{LLS}$ (the proposed Synergistic model).

The synergistic model ($word2vec_{LLS}$) consistently outperformed all other configurations across various $k$ values (the number of retrieved similar words). At $k=200$, the $word2vec_{LLS}$ model achieved an F1-score of 0.60, compared to 0.57 for the Google baseline and 0.58 for the lemmatized legal model.

Comparative performance metrics (Precision, Recall, F1) for the evaluated models across different k values.

Key insights from the results include:

  • Domain Specificity: Models trained on smaller, highly relevant datasets can outperform massive general-purpose models.
  • Impact of Lemmatization: Lemmatization significantly improved accuracy and reduced the memory footprint by grouping related grammatical forms.
  • Hybridization Benefits: Combining neural embeddings with formal lexicons addresses the contextual and structural blind spots of each individual method, particularly improving recall—a critical metric for legal research.

Conclusion

This research demonstrates that a synergistic approach combining Word2Vec and lexical ontologies provides superior semantic similarity performance in the legal domain. Future work will explore extending this methodology to sentence and document-level similarity to further enhance automated legal research and retrieval systems.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Golden Standard Word Vector evaluationword2vecLRF10.30+0.01 vs baselineSemantic Similarity · corpus=domain-specific · requested-neighbors=20
Source quote
L202: 0.30
Golden Standard Word Vector evaluationword2vecLRF10.56+0.27 vs baselineSemantic Similarity · corpus=domain-specific · requested-neighbors=200
Source quote
L211: 0.56 word2vecLL
Golden Standard Word Vector evaluationword2vecLLF10.58+0.29 vs baselineSemantic Similarity · corpus=domain-specific · requested-neighbors=200
Source quote
L223: 0.58 word2vecLLS
Golden Standard Word Vector evaluationword2vecLLSF10.52+0.23 vs baselineSemantic Similarity · corpus=domain-specific · requested-neighbors=50 · lexical-augmentation=semantic-similarity-measures
Source quote
L229: 0.52
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Golden Standard Word Vector evaluationword2vecG baselineF10.29Semantic Similarity · corpus=generic · requested-neighbors=20
Source quote
L190: 0.29
BibTeX
@inproceedings{sugathadasa2017synergistic,
  author = {Keet Sugathadasa and Buddhi Ayesha and Nisansa de Silva and Amal Shehan Perera and Vindula Jayawardana and Dimuthu Lakmal and Madhavi Perera},
  title = {{Synergistic union of Word2Vec and lexicon for domain specific semantic similarity}},
  booktitle = {ICIIS},
  year = {2017},
  doi = {10.1109/iciinfs.2017.8300343},
}
Figure