GenEOL: Harnessing the Generative Power of LLMs for Training-Free Sentence Embeddings

Raghuveer Thirukovalluru, Bhuwan Dhingra
10/18/2024
cs.CLcs.AI

No official code found. Best implementation: raghavlite/GenEOL (5 stars, last commit 2025-02-09).

Abstract

Training-free embedding methods directly leverage pretrained large language models (LLMs) to embed text, bypassing the costly and complex procedure of contrastive learning. Previous training-free embedding methods have mainly focused on optimizing embedding prompts and have overlooked the benefits of utilizing the generative abilities of LLMs. We propose a novel method, GenEOL, which uses LLMs to generate diverse transformations of a sentence that preserve its meaning, and aggregates the resulting embeddings of these transformations to enhance the overall sentence embedding. GenEOL significantly outperforms the existing training-free embedding methods by an average of 2.85 points across several LLMs on the sentence semantic text similarity (STS) benchmark. GenEOL also achieves notable gains in clustering, reranking, and pair-classification tasks from the MTEB benchmark. Additionally, GenEOL stabilizes representation quality across LLM layers and remains robust to perturbations of embedding prompts.

View on arXivView PDF

Code Implementations(1)

raghavlite/GenEOLCommunity100%
50Shell, PythonOct 18, 20241 years ago

Similar Papers

Cite this paper

@article{thirukovalluru2024geneol,
  title  = {GenEOL: Harnessing the Generative Power of LLMs for Training-Free Sentence Embeddings},
  author = {Raghuveer Thirukovalluru and Bhuwan Dhingra},
  year   = {2024},
  eprint = {2410.14635},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.14635v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.14635.svg)](https://codeofpaper.com/paper/2410.14635)

Discussion