跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算与语言

arXiv:2408.08073 (cs)
[提交于 2024年8月15日 (v1),最后修订于 2025年2月20日 (此版本, v2)]

标题:Extracting Sentence Embeddings from Pretrained Transformer Models

作者:Lukas Stankevičius, Mantas Lukoševičius
查看论文《Extracting Sentence Embeddings from Pretrained Transformer Models》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Pre-trained transformer models shine in many natural language processing tasks and therefore are expected to bear the representation of the input sentence or text meaning. These sentence-level embeddings are also important in retrieval-augmented generation. But do commonly used plain averaging or prompt templates sufficiently capture and represent the underlying meaning? After providing a comprehensive review of existing sentence embedding extraction and refinement methods, we thoroughly test different combinations and our original extensions of the most promising ones on pretrained models. Namely, given 110 M parameters, BERT's hidden representations from multiple layers, and many tokens, we try diverse ways to extract optimal sentence embeddings. We test various token aggregation and representation post-processing techniques. We also test multiple ways of using a general Wikitext dataset to complement BERT's sentence embeddings. All methods are tested on eight Semantic Textual Similarity (STS), six short text clustering, and twelve classification tasks. We also evaluate our representation-shaping techniques on other static models, including random token representations. Proposed representation extraction methods improve the performance on STS and clustering tasks for all models considered. Very high improvements for static token-based models, especially random embeddings for STS tasks, almost reach the performance of BERT-derived representations. Our work shows that the representation-shaping techniques significantly improve sentence embeddings extracted from BERT-based and simple baseline models.
评论: Postprint update
主题: 计算与语言 (cs.CL); 信息检索 (cs.IR); 机器学习 (cs.LG); 机器学习 (stat.ML)
引用方式: arXiv:2408.08073 [cs.CL]
  (或者 arXiv:2408.08073v2 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2408.08073
期刊参考: Appl. Sci. 2024, 14(19), 8887
相关 DOI: https://doi.org/10.3390/app14198887

提交历史

来自:Mantas Lukoševičius
[v1] 2024年8月15日 星期四 10:54:55 UTC
[v2] 2025年2月20日 星期四 14:33:47 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-02
切换浏览方式为:
cs
cs.CL
cs.IR
stat.ML

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站