arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.17279cs.CL

CASE -- 基于条件的句子嵌入用于条件语义文本相似性度量

CASE -- Condition-Aware Sentence Embeddings for Conditional Semantic Textual Similarity Measurement

University of Liverpool(利物浦大学);Cardiff University(卡迪夫大学);Amazon(亚马逊)

Gaifan Zhang, Yi Zhou, Danushka Bollegala

AI总结:

CASE通过条件感知嵌入方法提升基于LLM的文本在条件语义相似性任务中的表现。

摘要:

句子所传达的意义往往取决于其出现的上下文。尽管句子嵌入方法取得了进展,但如何最好地修改句子嵌入以适应其上下文仍不清楚。为了解决这个问题,我们提出了条件感知句子嵌入(CASE),一种高效且准确的方法,用于在给定条件下创建句子嵌入。首先,CASE使用大型语言模型(LLM)编码器为条件创建嵌入,其中句子影响在条件中计算的标记的注意力分数。接下来,学习了一种监督方法,将基于LLM的文本嵌入与条件语义文本相似性(C-STS)任务对齐。我们发现,减去条件嵌入能够一致地提高基于LLM的文本嵌入在C-STS任务上的性能,通过提高嵌入空间的各向同性。此外,尽管仅需要少量嵌入维度,我们的监督投影方法显著提高了LLM嵌入的性能。

英文摘要:

The meaning conveyed by a sentence often depends on the context in which it appears. Despite the progress of sentence embedding methods, it remains unclear as how to best modify a sentence embedding conditioned on its context. To address this problem, we propose Condition-Aware Sentence Embeddings (CASE), an efficient and accurate method to create an embedding for a sentence under a given condition. First, CASE creates an embedding for the condition using a Large Language Model (LLM) encoder, where the sentence influences the attention scores computed for the tokens in the condition during pooling. Next, a supervised method is learnt to align the LLM-based text embeddings with the Conditional Semantic Textual Similarity (C-STS) task. We find that subtracting the condition embedding consistently improves the C-STS performance of LLM-based text embeddings by improving the isotropy of the embedding space. Moreover, our supervised projection method significantly improves the performance of LLM-based embeddings despite requiring a small number of embedding dimensions.

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

↑