SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignment

Ziyang Chen, Zhenxuan Huang, Yile Wang, Weiqin Wang, Lu Yin, Hui Huang


Abstract
Traditional sentence embedding methods employ token-level contrastive learning on non-generative pre-trained models. Recently, there have emerged embedding methods based on generative large language models (LLMs). These methods either rely on fixed prompt templates or involve modifications to the model architecture. The former lacks further optimization of the model and results in limited performance, while the latter alters the internal computational mechanisms of the model, thereby compromising its generative capabilities. We propose SemPA, a novel approach that boosts the sentence representations while preserving the generative ability of LLMs via semantic preference alignment. We leverage sentence-level Direct Preference Optimization (DPO) to efficiently optimize LLMs on a paraphrase generation task, where the model learns to discriminate semantically equivalent sentences while preserving inherent generative capacity. Theoretically, we establish a formal connection between DPO and contrastive learning under the Plackett-Luce model framework. Empirically, experimental results on both semantic textual similarity tasks and various benchmarks for LLMs show that SemPA achieves better semantic representations without sacrificing the inherent generation capability of LLMs.
Anthology ID:
2026.findings-acl.1858
Volume:
Findings of the Association for Computational Linguistics: ACL 2026
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Maria Liakata, Viviane P. Moreira, Jiajun Zhang, David Jurgens
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
37299–37312
Language:
URL:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1858/
DOI:
Bibkey:
Cite (ACL):
Ziyang Chen, Zhenxuan Huang, Yile Wang, Weiqin Wang, Lu Yin, and Hui Huang. 2026. SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignment. In Findings of the Association for Computational Linguistics: ACL 2026, pages 37299–37312, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
SemPA: Improving Sentence Embeddings of Large Language Models through Semantic Preference Alignment (Chen et al., Findings 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl/2026.findings-acl.1858.pdf
Checklist:
 2026.findings-acl.1858.checklist.pdf