[Paper Review] Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings
This paper proposes VisualCSE and AudioCSE, multi-modal, multi-task contrastive learning frameworks that improve sentence embeddings by jointly training on unpaired text and non-linguistic data (images or audio). By leveraging unpaired visual and audio data, the method achieves superior performance on semantic textual similarity benchmarks, outperforming supervised SimCSE even when the latter uses noisy or suboptimal NLI datasets.
Semantic representation learning for sentences is an important and well-studied problem in NLP. The current trend for this task involves training a Transformer-based sentence encoder through a contrastive objective with text, i.e., clustering sentences with semantically similar meanings and scattering others. In this work, we find the performance of Transformer models as sentence encoders can be improved by training with multi-modal multi-task losses, using unpaired examples from another modality (e.g., sentences and unrelated image/audio data). In particular, besides learning by the contrastive loss on text, our model clusters examples from a non-linguistic domain (e.g., visual/audio) with a similar contrastive loss at the same time. The reliance of our framework on unpaired non-linguistic data makes it language-agnostic, enabling it to be widely applicable beyond English NLP. Experiments on 7 semantic textual similarity benchmarks reveal that models trained with the additional non-linguistic (images/audio) contrastive objective lead to higher quality sentence embeddings. This indicates that Transformer models are able to generalize better by doing a similar task (i.e., clustering) with unpaired examples from different modalities in a multi-task fashion.
Motivation & Objective
- Address the high dependency of supervised contrastive learning on large, high-quality NLI datasets, which are costly and often unavailable for low-resource languages.
- Explore whether unpaired non-linguistic data (e.g., images, audio) can serve as effective supervision for sentence embedding learning.
- Develop a language-agnostic framework that improves sentence representation quality without requiring paired text-modal data.
- Investigate whether multi-modal, multi-task contrastive learning enhances generalization and robustness in sentence embedding models.
- Demonstrate that non-linguistic supervision can compensate for poor-quality or small NLI datasets in contrastive learning.
Proposed method
- Train a shared Transformer encoder on two independent contrastive learning tasks: one on text (using standard SimCSE loss) and one on unpaired non-linguistic data (images or audio).
- Use a BERT-based text encoder and a Vision Transformer (ViT) or audio encoder to process text and non-linguistic inputs separately before feeding into the shared encoder.
- Apply the SimCLR contrastive loss independently on both modalities: clustering augmented views of the same example while pushing apart different examples.
- Train the model end-to-end with a multi-task loss combining text and non-linguistic contrastive objectives, using unpaired data from public datasets (e.g., Wikipedia + ImageNet, LibriSpeech).
- Ensure modality independence by avoiding any cross-modality alignment or pairing, making the method scalable and language-agnostic.
- Use [CLS] tokens from the shared encoder as final sentence embeddings for downstream evaluation.
Experimental results
Research questions
- RQ1Can unpaired non-linguistic data (images or audio) serve as effective supervision to improve sentence embedding quality in an unsupervised setting?
- RQ2Does multi-modal, multi-task contrastive learning lead to better generalization than text-only contrastive learning, especially when the NLI dataset is noisy or small?
- RQ3To what extent can non-linguistic supervision compensate for the absence of high-quality labeled NLI data in supervised sentence embedding learning?
- RQ4How does the inclusion of non-linguistic supervision affect key representation properties like alignment and uniformity of sentence embeddings?
- RQ5Is the proposed method applicable and effective across low-resource languages due to its language-agnostic design?
Key findings
- VisualCSE and AudioCSE outperform both unsupervised and supervised SimCSE on 7 semantic textual similarity benchmarks, demonstrating the effectiveness of non-linguistic supervision.
- When the NLI dataset used in supervised SimCSE is degraded by 40% random deletions, VisualCSE surpasses it, indicating that non-linguistic supervision can compensate for poor-quality labeled data.
- Models trained with non-linguistic supervision show better alignment (lower distance between positive pairs) than text-only SimCSE, confirming improved clustering of semantically similar sentences.
- Despite better alignment, VisualCSE exhibits lower uniformity than SimCSE, suggesting representations are more clustered in certain regions of the embedding space.
- The performance of supervised SimCSE drops significantly when trained on noisy or suboptimal datasets like ParaNMT or QQP, while VisualCSE maintains strong performance.
- The method is language-agnostic and does not require paired data, enabling deployment in low-resource language settings where high-quality NLI data is unavailable.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.