Meta-Task Prompting Elicits Embeddings from Large Language Models

Yibin Lei, Di Wu, Tianyi Zhou, Tao Shen, Yu Cao +2 more
2/28/2024
cs.CL

No official code found. Best implementation: Yibin-Lei/MetaEOL (12 stars, last commit 2024-07-25).

Abstract

We introduce a new unsupervised text embedding method, Meta-Task Prompting with Explicit One-Word Limitation (MetaEOL), for generating high-quality sentence embeddings from Large Language Models (LLMs) without the need for model fine-tuning. Leveraging meta-task prompting, MetaEOL guides LLMs to produce embeddings through a series of carefully designed prompts that address multiple representational aspects. Our comprehensive experiments demonstrate that embeddings averaged from various meta-tasks are versatile embeddings that yield competitive performance on Semantic Textual Similarity (STS) benchmarks and excel in downstream tasks, surpassing contrastive-trained models. Our findings suggest a new scaling law, offering a versatile and resource-efficient approach for embedding generation across diverse scenarios.

View on arXivView PDF

Code Implementations(1)

Yibin-Lei/MetaEOLCommunity100%

Implementation for ACL 2024 paper "Meta-Task Prompting Elicits Embeddings from Large Language Models"

120Shell, PythonJul 25, 20242 years ago

Similar Papers

Cite this paper

@article{lei2024metatask,
  title  = {Meta-Task Prompting Elicits Embeddings from Large Language Models},
  author = {Yibin Lei and Di Wu and Tianyi Zhou and Tao Shen and Yu Cao and Chongyang Tao and Andrew Yates},
  year   = {2024},
  eprint = {2402.18458},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.18458v2}
}

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/2402.18458.svg)](https://codeofpaper.com/paper/2402.18458)

Discussion