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

Ditto:一种改进句子嵌入的简单高效方法

Ditto: A Simple and Efficient Approach to Improve Sentence Embeddings

Alibaba Group(阿里巴巴集团)

Qian Chen, Wen Wang, Qinglin Zhang, Siqi Zheng, Chong Deng, Hai Yu, Jiaqing Liu, Yukun Ma, Chong Zhang

AI总结:

针对BERT句子嵌入对无信息词偏置导致的各向异性问题,提出无监督的对角注意力池化方法Ditto,通过加权词表示生成嵌入,无需参数与学习即可提升STS任务性能。

摘要:

先前研究诊断了预训练语言模型(如BERT)在未微调时句子表示的各向异性问题。我们的分析表明,BERT的句子嵌入存在对无信息词的偏置,限制了其在语义文本相似性(STS)任务中的性能。为解决该偏置,我们提出一种简单高效的无监督方法——对角注意力池化(Ditto),它通过基于模型的重要性估计对词进行加权,并将预训练模型词表示的加权平均值作为句子嵌入。Ditto可作为后处理操作轻松应用于任何预训练语言模型。与现有方法相比,Ditto不增加参数且无需学习。实验表明,Ditto能缓解各向异性问题,并在STS任务中提升多种预训练模型性能。

英文摘要:

Prior studies diagnose the anisotropy problem in sentence representations from pre-trained language models, e.g., BERT, without fine-tuning. Our analysis reveals that the sentence embeddings from BERT suffer from a bias towards uninformative words, limiting the performance in semantic textual similarity (STS) tasks. To address this bias, we propose a simple and efficient unsupervised approach, Diagonal Attention Pooling (Ditto), which weights words with model-based importance estimations and computes the weighted average of word representations from pre-trained models as sentence embeddings. Ditto can be easily applied to any pre-trained language model as a postprocessing operation. Compared to prior sentence embedding approaches, Ditto does not add parameters nor requires any learning. Empirical evaluations demonstrate that our proposed Ditto can alleviate the anisotropy problem and improve various pre-trained models on STS tasks.

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

↑