SageLite: Harmonizing Text and Code Through Multi-Stage Training
Its authors withdrew this paper, so there is no full text to read or summarize.
Abstract
Creating versatile embedding models that excel across both text and code domains is essential, as modern applications often involve diverse, heterogeneous data. While data mixing is a typical starting point, we take a significant step forward by addressing the limitations of naive data mixing. In this work, we introduce SageLite, a unified embedding model capable of handling both text and code within a single framework. Our approach begins with pretraining on a blended dataset of text and code, fostering shared representations that are crucial for strong cross-domain performance. We then enhance domain-specific capabilities by independently applying large-scale contrastive learning to text and code from various web sources. Our key finding is that, despite the inherent differences between text and code, starting from a model pretrained on mixed data enables the domain-specific contrastive learning stages to produce models that remain closely aligned. This alignment allows us to effectively integrate domain-specific improvements at the constrastive learning stage into a final model through model weights interpolation. Through comprehensive ablation studies, we explore the mechanisms behind our approach, offering insights to guide future research in this area.
BibTeX
@misc{zhang2025sagelite,
author = {Dejiao Zhang and Sam Mayers and Jun Wang and Sanjay Krishna Gouda and Nihal Jain and Jiyang Zhang and Xiaofei Ma and Anoop Deoras},
title = {{SageLite: Harmonizing Text and Code Through Multi-Stage Training}},
year = {2025},
url = {https://openreview.net/forum?id=9vorqLGgyx},
howpublished = {OpenReview},
note = {Submitted to ICLR 2025},
}Ask Althea to put this paper to the test.
Loading related content...