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

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

计算机科学 > 计算与语言

arXiv:2206.15195 (cs)
[提交于 2022年6月30日]

标题:The Topological BERT: Transforming Attention into Topology for Natural Language Processing

作者:Ilan Perez, Raphael Reinauer
查看论文《The Topological BERT: Transforming Attention into Topology for Natural Language Processing》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:In recent years, the introduction of the Transformer models sparked a revolution in natural language processing (NLP). BERT was one of the first text encoders using only the attention mechanism without any recurrent parts to achieve state-of-the-art results on many NLP tasks. This paper introduces a text classifier using topological data analysis. We use BERT's attention maps transformed into attention graphs as the only input to that classifier. The model can solve tasks such as distinguishing spam from ham messages, recognizing whether a sentence is grammatically correct, or evaluating a movie review as negative or positive. It performs comparably to the BERT baseline and outperforms it on some tasks. Additionally, we propose a new method to reduce the number of BERT's attention heads considered by the topological classifier, which allows us to prune the number of heads from 144 down to as few as ten with no reduction in performance. Our work also shows that the topological model displays higher robustness against adversarial attacks than the original BERT model, which is maintained during the pruning process. To the best of our knowledge, this work is the first to confront topological-based models with adversarial attacks in the context of NLP.
主题: 计算与语言 (cs.CL); 机器学习 (cs.LG); 代数拓扑 (math.AT)
引用方式: arXiv:2206.15195 [cs.CL]
  (或者 arXiv:2206.15195v1 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2206.15195

提交历史

来自:Raphael Reinauer
[v1] 2022年6月30日 星期四 11:25:31 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.CL
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-06
切换浏览方式为:
cs
cs.LG
math.AT

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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