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

HDT:层次化文档Transformer

HDT: Hierarchical Document Transformer

University of Tübingen(蒂宾根大学);Tübingen AI Center(蒂宾根人工智能中心);Technical University of Darmstadt(达姆施塔特工业大学);Hessian Center for AI (hessian.AI)(黑森人工智能中心(hessian.AI))

Haoyu He, Markus Flicke, Jan Buchmann, Iryna Gurevych, Andreas Geiger

AI总结:

针对现有方案处理层次化文档效率低、未利用文档结构的问题,提出带稀疏多层注意力和新型稀疏注意力核的HDT架构,可提升效率与下游任务性能。

摘要:

本文提出了层次化文档Transformer(Hierarchical Document Transformer,HDT),这是一种专为结构化层次化文档定制的新型稀疏Transformer架构。这类文档在科学、法律、医学等众多领域都极为重要,但现有大多数解决方案效率低下,且未能利用文档固有的结构。HDT通过引入辅助锚点token,并将注意力机制重新设计为稀疏多层级结构,来利用文档结构。该方法在保持稀疏性的同时促进了不同层级token间的信息交换,从而在将文档结构作为归纳偏置加以利用的同时,提升了计算和内存效率。我们通过开发一种考虑文档层次结构的新型稀疏注意力核,解决了实现HDT依赖样本的层次注意力模式这一技术挑战。实验表明,利用文档中存在的结构信息可带来更快的收敛速度、更高的样本效率,以及在下游任务上更优的性能。

英文摘要:

In this paper, we propose the Hierarchical Document Transformer (HDT), a novel sparse Transformer architecture tailored for structured hierarchical documents. Such documents are extremely important in numerous domains, including science, law or medicine. However, most existing solutions are inefficient and fail to make use of the structure inherent to documents. HDT exploits document structure by introducing auxiliary anchor tokens and redesigning the attention mechanism into a sparse multi-level hierarchy. This approach facilitates information exchange between tokens at different levels while maintaining sparsity, thereby enhancing computational and memory efficiency while exploiting the document structure as an inductive bias. We address the technical challenge of implementing HDT's sample-dependent hierarchical attention pattern by developing a novel sparse attention kernel that considers the hierarchical structure of documents. As demonstrated by our experiments, utilizing structural information present in documents leads to faster convergence, higher sample efficiency and better performance on downstream tasks.

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

↑