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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.LG
- Comments
- EACL2027 Main
Related papers
What Survives a Loop? A Shared Decision Model for Encoders and Decoders
Shared title terminologycs.CLYixin Peng, Stefan Decker
A Hands-On Introduction to Modern Decoder-Only Transformers
Shared title terminologycs.CLYang He
Prompt-Based Speculative Decoding for Grammatical Error Correction
Shared title terminologycs.CLRyszard Staruch, Filip Graliński
Lost After the First Sentence: How Fine-Tuning Stores Facts
Shared title terminologycs.CLZhiyun Shi, ChiChih Hsieh, Yuxuan Chen et al.
Predicting Training Exposure and Response Reliability in a Small Language Model with a Two-Expert Architecture
Shared title terminologycs.CLArtem Suslov
Explaining Length Extrapolation Across Attention Architectures
Shared title terminologycs.CLXinying Hu, Xiang Hu, Xinyu Wei et al.