What Makes Decoder-Based Sentence Embeddings Strong? Rethinking Encoder and Decoder Architectures for Sentence Embeddings
Abstract
It is known that adapting large pre-trained decoder models for sentence embeddings achieves strong performance. However, it remains unclear whether this advantage comes from the decoder itself or from substantially larger pre-training. In this study, we systematically align encoder and decoder pairs with identical parameter counts, tokenizers, training data, and training procedures, and evaluate them in Japanese and English at 0.5B and 1B parameters. Under these controlled settings, the randomly initialized encoder consistently outperforms the randomly initialized decoder on average across all languages, model sizes, and decoder implementations, within pre-training budgets of up to 20B tokens. In contrast, a decoder pre-trained on 10T tokens surpasses the encoder when adapted with the same training recipe. These results provide no evidence that decoders are inherently superior for sentence embeddings. Instead, their advantage largely stems from transferred pre-training, and adapting a model pre-trained on 100B tokens achieves performance comparable to adapting another pre-trained one on 18T tokens, suggesting that pre-training volume alone does not fully explain the gain. Furthermore, we reveal that sentence-level language understanding, rather than span extraction, is more closely associated with embedding quality. Our findings suggest a simple guideline: train an encoder when starting from scratch, and adapt a pre-trained model when available.
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper