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

用于文档理解的长距离Transformer架构

Long-Range Transformer Architectures for Document Understanding

INSA Lyon(里昂国立应用科学学院);Esker(Esker公司)

Thibault Douzon, Stefan Duffner, Christophe Garcia, Jérémy Espinas

AI总结:

本文提出两种用于文档理解的多模态长距离Transformer模型,并引入2D相对注意力偏置,使模型能高效处理长篇多页文档,在信息检索任务上取得提升。

摘要:

自发布以来,Transformer已经彻底了从自然语言理解到计算机视觉的诸多领域。文档理解(DU)也不甘落后,首批基于Transformer的DU模型可追溯至2019年底。然而,自注意力操作的计算复杂度将其能力限制在较小序列上。本文探索了将基于Transformer的模型应用于长篇多页文档的多种策略。我们为DU引入了2种新的多模态(文本+布局)长距离模型。它们基于针对长序列的Transformer高效实现。长距离模型能够一次性有效处理整篇文档,且较少受文档长度影响。我们将它们与LayoutLM进行比较,后者是专为DU适配并在数百万文档上预训练的经典Transformer。我们进一步提出2D相对注意力偏置,以引导自注意力关注相关token,同时不损害模型效率。我们观察到在多页商业文档的信息检索任务上有所提升,代价是在较小序列上产生轻微性能损耗。2D相对注意力被证明在密集文本上对普通和长距离模型均有效。

英文摘要:

Since their release, Transformers have revolutionized many fields from Natural Language Understanding to Computer Vision. Document Understanding (DU) was not left behind with first Transformer based models for DU dating from late 2019. However, the computational complexity of the self-attention operation limits their capabilities to small sequences. In this paper we explore multiple strategies to apply Transformer based models to long multi-page documents. We introduce 2 new multi-modal (text + layout) long-range models for DU. They are based on efficient implementations of Transformers for long sequences. Long-range models can process whole documents at once effectively and are less impaired by the document's length. We compare them to LayoutLM, a classical Transformer adapted for DU and pre-trained on millions of documents. We further propose 2D relative attention bias to guide self-attention towards relevant tokens without harming model efficiency. We observe improvements on multi-page business documents on Information Retrieval for a small performance cost on smaller sequences. Relative 2D attention revealed to be effective on dense text for both normal and long-range models.

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

↑