mlsanityData to 14 Oct 2026

Resource-Efficient Adaptation of Large Language Models for Text Embeddings via Prompt Engineering and Contrastive Fine-tuning

arXiv 2507.22729 ↗First posted 30 Jul 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have become a cornerstone in Natural Language Processing (NLP), achieving impressive performance in text generation. Their token-level representations capture rich, human-aligned semantics. However, pooling these vectors into a text embedding discards crucial information. Nevertheless, many non-generative downstream tasks, such as clustering, classification, or retrieval, still depend on accurate and controllable sentence- or document-level embeddings. We explore several adaptation strategies for pre-trained, decoder-only LLMs: (i) various aggregation techniques for token embeddings, (ii) task-specific prompt engineering, and (iii) text-level augmentation via contrastive fine-tuning. Combining these components yields competitive performance on the English clustering track of the Massive Text Embedding Benchmark (MTEB). An analysis of the attention map further shows that fine-tuning shifts focus from prompt tokens to semantically relevant words, indicating more effective compression of meaning into the final hidden state. Our experiments demonstrate that LLMs can be effectively adapted as text embedding models through a combination of prompt engineering and resource-efficient contrastive fine-tuning on synthetically generated positive pairs.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 16 of its 22 references that are in the map. First posted on arXiv 30 Jul 2025.

Builds on

16 of 22 references.

References · 16

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  5. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
  6. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  7. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  8. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  9. 2025MMTEB: Massive Multilingual Text Embedding Benchmarkcited by 125
  10. 2021A Survey on Data Augmentation for Text Classificationcited by 111
  11. 2023Scaling Sentence Embeddings with Large Language Modelscited by 85
  12. 2024GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuningcited by 40
4 more
  1. 2024Simple Techniques for Enhancing Sentence Embeddings in Generative Language Modelscited by 26
  2. 2024Recent advances in text embedding: A Comprehensive Review of Top-Performing Methods on the MTEB Benchmarkcited by 19
  3. 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
  4. 2023Ditto: A Simple and Efficient Approach to Improve Sentence Embeddingscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.