A resource-light method for cross-lingual semantic textual similarity

Goran Glavas, Marc Franco-Salvador, Simone Paolo Ponzetto, Paolo Rosso · DOI

Introduction

Semantic Textual Similarity (STS) is a fundamental task in Natural Language Processing that involves determining the degree of semantic equivalence between two text snippets. While high-performance systems exist for English, Cross-Lingual STS (CL-STS)—comparing sentences across different languages—remains a significant challenge. Traditionally, CL-STS relies on "heavy" resources such as full-blown Machine Translation (MT) systems or complex linguistic tools like syntactic parsers and Named Entity Recognition (NER) modules.

This paper addresses two major flaws in these traditional approaches. First, the Resource Gap: robust MT systems and parsers are unavailable for many of the world's language pairs. Second, the Circularity Problem: CL-STS is often used to identify parallel sentences for training MT systems; requiring a high-quality MT system to build one creates a logical bottleneck. To solve this, the authors propose an unsupervised, resource-light method that projects word embeddings into a shared bilingual space using simple linear mapping.

Methodology

The proposed approach follows a modular three-step pipeline that requires only large raw text corpora for each language and a minimal "seed" dictionary of word translations.

The proposed pipeline for resource-light cross-lingual semantic textual similarity, moving from monolingual corpora to a final similarity score.

1. Monolingual Embeddings

The process begins by training standard word embeddings (e.g., Word2Vec or GloVe) for each language independently. Initially, these vectors exist in separate mathematical spaces; for instance, the English vector for "dog" and the Italian vector for "cane" share no inherent spatial relationship.

2. Shared Bilingual Space

Using a small set of approximately 2,000–4,000 word translation pairs, the system learns a linear translation matrix. This matrix acts as a bridge, mathematically rotating and scaling the source language's vector space to align it with the target language's space. This transformation allows words from different languages to be compared directly using cosine similarity.

3. Unsupervised Similarity Metrics

Once the words are aligned in a shared space, the authors evaluate three methods for calculating sentence-level similarity:

  • Aggregation (Aggreg): Averaging all word vectors in a sentence to create a single "sentence vector."
  • Greedy Association (GrAssoc): For every word in sentence A, the system finds the single most similar word in sentence B and averages those scores.
  • Optimal Alignment (OptAlign): The most sophisticated method, which utilizes the Hungarian algorithm to find a global one-to-one mapping between words that maximizes the total similarity score.

Experimental Setup

The model was evaluated on both intrinsic similarity datasets (SemEval 2012 and 2016) and extrinsic downstream tasks, including parallel sentence extraction from Wikipedia and cross-lingual plagiarism detection (PAN-PC-11). The study covered English (EN), Spanish (ES), Italian (IT), and Croatian (HR), with Croatian serving as a representative under-resourced language.

Key Insights and Results

  • Linearity and Efficiency: The research demonstrates that a simple linear transformation is remarkably effective for aligning language spaces. Performance stabilizes with as few as 2,000 word pairs, suggesting that massive dictionaries are unnecessary.
  • Metric Performance: OptAlign emerged as the superior metric. On the English-Spanish News dataset, the model achieved an 86.6% correlation with human judgments, coming remarkably close to state-of-the-art systems (90.6%) that utilize far more complex resources.
  • The "Fuzzy" Vector Problem: Simple aggregation works well for short captions but degrades on longer news headlines. As sentence length increases, the average vector becomes "fuzzier," losing the specific lexical nuances captured by alignment-based methods.
  • Cross-Lingual Robustness: The method performed nearly as well on Croatian as it did on Spanish, proving its viability for languages with limited computational resources.

Conclusion

This resource-light approach offers a scalable alternative to traditional CL-STS methods. While it currently suffers from syntactic blindness—treating sentences as "bags of words" and failing to distinguish between "The dog bit the man" and "The man bit the dog"—its performance on lexical semantics is highly competitive. Future work will focus on zero-resource mapping and applying these techniques to broader tasks like cross-lingual document retrieval.

Summary updated

Abstract

Recognizing semantically similar sentences or paragraphs across languages is beneficial for many tasks, ranging from cross-lingual information retrieval and plagiarism detection to machine translation. Recently proposed methods for predicting cross-lingual semantic similarity of short texts, however, make use of tools and resources (e.g., machine translation systems, syntactic parsers or named entity recognition) that for many languages (or language pairs) do not exist. In contrast, we propose an unsupervised and a very resource-light approach for measuring semantic similarity between texts in different languages. To operate in the bilingual (or multilingual) space, we project continuous word vectors (i.e., word embeddings) from one language to the vector space of the other language via the linear translation model. We then align words according to the similarity of their vectors in the bilingual embedding space and investigate different unsupervised measures of semantic similarity exploiting bilingual embeddings and word alignments. Requiring only a limited-size set of word translation pairs between the languages, the proposed approach is applicable to virtually any pair of languages for which there exists a sufficiently large corpus, required to learn monolingual word embeddings. Experimental results on three different datasets for measuring semantic textual similarity show that our simple resource-light approach reaches performance close to that of supervised and resource-intensive methods, displaying stability across different language pairs. Furthermore, we evaluate the proposed method on two extrinsic tasks, namely extraction of parallel sentences from comparable corpora and cross-lingual plagiarism detection, and show that it yields performance comparable to those of complex resource-intensive state-of-the-art models for the respective tasks.
BibTeX
@article{glavas2018resource,
  author = {Goran Glavas and Marc Franco-Salvador and Simone Paolo Ponzetto and Paolo Rosso},
  title = {{A resource-light method for cross-lingual semantic textual similarity}},
  journal = {Knowledge-Based Systems},
  year = {2018},
  doi = {10.1016/j.knosys.2017.11.041},
}
Figure