Abstract
This paper introduces Syntactically Aligned Negative (SAN) samples to improve unsupervised sentence embeddings. By generating "structural twins"—sentences that share the same syntax but have different meanings—and training with a novel Hierarchical-InfoNCE (HiNCE) loss, the authors help models move past superficial word-matching and toward a deeper understanding of semantics.
The Problem: Feature Suppression
In Natural Language Processing (NLP), sentence embeddings are essential for tasks like search and document clustering. While unsupervised models are scalable, they often suffer from "feature suppression." Because they usually learn by comparing a sentence to a slightly modified version of itself, they become "lazy," relying on superficial cues like sentence length or word overlap. If two sentences share 90% of the same words, a typical model might assume they mean the same thing, even if a single changed verb completely flips the meaning. Existing strategies often fail to provide enough diversity to break this habit.
Methodology
The authors propose a two-part solution to force models to focus on semantics rather than structure.
1. SAN (Syntactically Aligned Negative) Generation
The core strategy involves creating "structural twins" that share the same syntax but describe different actions or objects.
- Semantic Importance Scoring: The authors assign scores to different Parts of Speech (POS). Nouns and verbs receive high importance (e.g., "9"), while punctuation receives low importance.
- SIA-MLM (Semantic Importance-Aware Masked Language Model): Using these scores, the system masks the most important words. A pre-trained model then fills those masks with contextually plausible but semantically different words.
2. HiNCE (Hierarchical-InfoNCE) Loss
Standard contrastive learning treats all negative samples the same. HiNCE introduces a differential temperature weighting using a specific parameter ($\tau_2$) for SAN samples. This allows the model to "decouple" textual similarity from semantic similarity, preventing over-sensitization to hard negatives while still forcing the model to learn subtle differences.
Key Results and Insights
- State-of-the-Art (SOTA) Gains: Integrating SAN into existing frameworks like SimCSE, SNCSE, and RankCSE led to consistent improvements. Their best configuration (RLRD-BERT-base + SAN) achieved an average score of 81.01 across STS tasks.
- The "Structural Twin" Strategy: By giving the model negatives with identical syntax, the model has no choice but to look at the actual semantics of the words to differentiate them.
- Verbs and Nouns are Critical: Weighting nouns and verbs higher for masking ensures that the "core" of the sentence changes, providing a much stronger training signal than minor adjective changes.
- LLM Potential: While the primary method uses a Masked Language Model (MLM), using a Large Language Model (like GPT-4o mini) to generate these negatives yielded even better results, suggesting that sample quality is a major bottleneck.
Limitations and Future Work
The current method relies on manual heuristics for POS importance scores and increases training time by approximately 25%. Furthermore, the study was limited to English datasets. Future work will explore automatically learning importance weights and evaluating the method across different language families.
Summary updated