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

基于层次注意力Transformers的长文档分类研究

An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classification

University of Copenhagen(哥本哈根大学);CSIRO Data61(澳大利亚联邦科学与工业研究组织Data61);Athens University of Economics and Business(雅典经济与商业大学);Pioneer Centre for AI(人工智能先锋中心)

Ilias Chalkidis, Xiang Dai, Manos Fergadiotis, Prodromos Malakasiotis, Desmond Elliott

摘要:

基于非层次稀疏注意力转换器的模型,如Longformer和Big Bird,是处理长文档的流行方法。与原始的Transformer相比,这些方法在效率方面有明显的好处,但分层注意力Transformer(HAT)模型是一个研究不足的替代方案。我们开发并发布了完全预训练的HAT模型,这些模型使用分段编码器,然后使用跨段编码器,并将它们与Longformer模型和部分预训练的HAT进行比较。在几个长文档下游分类任务中,我们最好的HAT模型优于同等大小的Longformer模型,同时使用的GPU内存减少10-20%,处理文档的速度提高40-45%。在一系列消融研究中,我们发现HAT在整个模型中的跨段情境化表现最好,而不是实施早期或晚期跨段情境化的替代配置。我们的代码在GitHub上:https://github.com/coastalcph/hierarchical-transformers。

英文摘要:

Non-hierarchical sparse attention Transformer-based models, such as Longformer and Big Bird, are popular approaches to working with long documents. There are clear benefits to these approaches compared to the original Transformer in terms of efficiency, but Hierarchical Attention Transformer (HAT) models are a vastly understudied alternative. We develop and release fully pre-trained HAT models that use segment-wise followed by cross-segment encoders and compare them with Longformer models and partially pre-trained HATs. In several long document downstream classification tasks, our best HAT model outperforms equally-sized Longformer models while using 10-20% less GPU memory and processing documents 40-45% faster. In a series of ablation studies, we find that HATs perform best with cross-segment contextualization throughout the model than alternative configurations that implement either early or late cross-segment contextualization. Our code is on GitHub: https://github.com/coastalcph/hierarchical-transformers.

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

↑