arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18458cs.CL
收藏

元任务提示从大型语言模型中引出嵌入

Meta-Task Prompting Elicits Embeddings from Large Language Models

University of Amsterdam(阿姆斯特丹大学);University of Maryland(马里兰大学);University of Technology Sydney(悉尼科技大学);Microsoft Corporation(微软公司);Tencent IEG(腾讯互动娱乐事业群)

Yibin Lei, Di Wu, Tianyi Zhou, Tao Shen, Yu Cao, Chongyang Tao, Andrew Yates

AI总结:

本文提出MetaEOL方法,通过元任务提示从大型语言模型生成无监督句子嵌入,无需微调,在STS基准和下游任务中表现优异,并揭示新的缩放定律。

摘要:

我们提出了一种新的无监督文本嵌入方法,即带有显式单词限制的元任务提示(MetaEOL),用于从大型语言模型(LLMs)中生成高质量句子嵌入,而无需进行模型微调。利用元任务提示,MetaEOL通过一系列精心设计的提示引导LLMs生成嵌入,这些提示处理多个表征方面。我们的综合实验表明,从各种元任务中平均得到的嵌入是通用嵌入,在语义文本相似性(STS)基准上产生有竞争力的性能,并在下游任务中表现出色,超越了对比训练模型。我们的发现提出了一种新的缩放定律,为跨不同场景的嵌入生成提供了一种通用且资源高效的方法。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑