TL;DR
This paper introduces SLT-FAI, a "plug-and-play" framework that improves unsupervised sentence embeddings by addressing the "anisotropy" problem in Pre-trained Language Models (PLMs). By using adversarial tuning to make embeddings frequency-invariant and a novel filtering task to emphasize informative low-frequency words, the authors achieve state-of-the-art results on standard semantic similarity benchmarks.
What Problem Does This Paper Address?
Modern Natural Language Processing relies heavily on PLMs like BERT to turn sentences into mathematical vectors (embeddings). Ideally, sentences with similar meanings should have similar vectors. However, PLMs suffer from anisotropy: their embedding space is shaped like a narrow cone rather than being uniform.
The authors trace this back to word frequency. High-frequency words (like "the" or "is") cluster tightly together, while low-frequency words are scattered sparsely. This leads to two major issues:
- Similarity Bias: Semantically similar words (like "like" and "prefer") can be far apart in vector space simply because one is much more common than the other.
- Information Bias: Sentence embeddings are often dominated by high-frequency words, even though low-frequency words (like "hanged" or "prison") carry the actual "meat" of the sentence's meaning.
Methods
The proposed SLT-FAI (Sentence Representation Learning with Frequency-induced Adversarial tuning and Incomplete sentence filtering) framework introduces two main strategies to fine-tune PLMs:
-
Adversarial Tuning (AT) for Similarity Bias: The authors calculate word frequencies from the PLM's original pre-training corpus and label words as either "high-frequency" or "low-frequency." They then introduce a similarity discriminator that tries to guess a word's frequency label based on its embedding. The PLM is trained to "fool" this discriminator, effectively forcing it to create embeddings that are frequency-invariant.
-
Incomplete Sentence Filtering (ISF) for Information Bias: To ensure the model doesn't ignore rare but important words, the authors create "incomplete" sentences by masking out several low-frequency words. An information discriminator is then tasked with distinguishing between original and incomplete sentences. This forces the model to pay more attention to the contribution of low-frequency tokens when forming the overall sentence representation.
SLT-FAI is designed to be integrated with existing contrastive learning methods (like SimCSE or ConSERT), acting as an additional set of regularization objectives.
Datasets
- Training: The model was trained using two sets: 89,192 unlabeled sentences from Semantic Textual Similarity (STS) tasks and 1,000,000 raw sentences from English Wikipedia.
- Evaluation: Performance was measured on the STS12-STS16, STSBenchmark (STSb), and SICK-Relatedness (SICKR) datasets.
- Frequency Reference: Word frequencies were calculated using the BookCorpus, which contains roughly 1.1 billion tokens.
Key Insights and Ideas
- Frequency as a Proxy for Information: The paper leans on information theory, suggesting that high-frequency words (like stopwords) contain scarce information, while low-frequency words are "information-rich."
- Balanced Labeling Matters: Through sensitivity analysis, the authors found that the best results occur when the threshold for "high" vs "low" frequency is balanced (around the 50th percentile).
- Visualizing the "Cone": The authors used 2D visualizations to show that while vanilla BERT embeddings are highly clustered (anisotropic), SLT-FAI successfully spreads them out into a more uniform, isotropic space, which correlates with better semantic performance.
Key Results
SLT-FAI consistently outperformed its backbone models (SimCSE and ConSERT) across all benchmarks:
- Average Improvement: SLT-FAI improved the average Spearman correlation scores of ConSERT by 1.31 points and SimCSE by 1.59 points.
- Efficiency: Even when trained on the smaller STS dataset, the model often outperformed baselines trained on the much larger Wikipedia dataset.
- Ablation Studies: Removing either the Adversarial Tuning (AT) or the Incomplete Sentence Filtering (ISF) led to a drop in performance, proving that both components are necessary to solve the frequency bias problem.
Limitations and Future Work
The authors acknowledge that their framework increases spatial complexity. Because the ISF task requires generating and processing an "incomplete" version of every sentence in the batch, it requires more memory and computational overhead during training. They suggest that optimizing this complexity is a primary direction for follow-up research. Additionally, the current implementation relies on a static frequency list from a specific corpus (BookCorpus), which might not perfectly align with every downstream domain.
Summary updated