BeLLM:用于句子嵌入的向后依赖增强大型语言模型
BeLLM: Backward Dependency Enhanced Large Language Model for Sentence Embeddings
AI总结:
提出BeLLM模型,通过将特定注意力层从单向转为双向来增强自回归LLM的向后依赖,从而提升句子嵌入的语义相似度测量性能,并在多个STS任务和下游应用中达到最先进水平。
摘要:
句子嵌入在衡量语义相似度中至关重要。最近的大多数研究采用大型语言模型(LLMs)来学习句子嵌入。现有的LLMs主要采用自回归架构,没有显式的向后依赖建模。因此,我们考察了LLMs中向后依赖对语义相似度测量的影响。具体地,我们提出了一种新颖的模型:向后依赖增强大型语言模型(BeLLM)。它通过将特定的注意力层从单向转换为双向来学习句子嵌入。我们在各种语义文本相似度(STS)任务和下游应用中进行了广泛的实验。BeLLM在不同场景下均取得了最先进的性能。这表明自回归LLMs受益于向后依赖以生成句子嵌入。
英文摘要:
Sentence embeddings are crucial in measuring semantic similarity. Most recent studies employed large language models (LLMs) to learn sentence embeddings. Existing LLMs mainly adopted autoregressive architecture without explicit backward dependency modeling. Therefore, we examined the effects of backward dependencies in LLMs for semantic similarity measurements. Concretely, we propose a novel model: backward dependency enhanced large language model (BeLLM). It learns sentence embeddings via transforming specific attention layers from uni- to bi-directional. We extensively experiment across various semantic textual similarity (STS) tasks and downstream applications. BeLLM achieves state-of-the-art performance in varying scenarios. It shows that auto-regressive LLMs benefit from backward dependencies for sentence embeddings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。