TNCSE: Tensor's Norm Constraints for Unsupervised Contrastive Learning of Sentence Embeddings
Tianyu Zong, Bingkang Shi, Hongzhu Yi, Jungang Xu
TL;DR
This work tackles the limitation of cosine-only metrics in unsupervised sentence embeddings by introducing Tensor Norm Constraints (TNCSE) that jointly optimize alignment and magnitude between positive samples. The method uses a dual-encoder ensemble with three losses—InfoNCE ($L_{NCE}$), interaction-constrained InfoNCE ($L_{ICNCE}$), and interaction-constrained Tensor Norm ($L_{ICTN}$)—and a norm-based objective $l_{TN}$ to constrain embedding magnitudes, with $l_{TN}(k,t) = \frac{\sqrt{1+k^{2}-2kt}}{1+k}$ when $||h^{+}|| = k||h||$ and $t=\cos \gamma$. Evaluated on seven STS tasks and extensive zero-shot MTEB benchmarks, TNCSE achieves state-of-the-art results and demonstrates robustness via ablations and significance tests, while offering improved efficiency over larger ensembles. The findings show that combining norm-based constraints with ensemble learning yields more discriminative sentence representations with practical inference costs, benefiting downstream tasks and multilingual settings.
Abstract
Unsupervised sentence embedding representation has become a hot research topic in natural language processing. As a tensor, sentence embedding has two critical properties: direction and norm. Existing works have been limited to constraining only the orientation of the samples' representations while ignoring the features of their module lengths. To address this issue, we propose a new training objective that optimizes the training of unsupervised contrastive learning by constraining the module length features between positive samples. We combine the training objective of Tensor's Norm Constraints with ensemble learning to propose a new Sentence Embedding representation framework, TNCSE. We evaluate seven semantic text similarity tasks, and the results show that TNCSE and derived models are the current state-of-the-art approach; in addition, we conduct extensive zero-shot evaluations, and the results show that TNCSE outperforms other baselines.
