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

Hi-Transformer:用于高效长文档建模的分层交互式Transformer

Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modeling

Tsinghua University(清华大学);Microsoft Research Asia(微软亚洲研究院)

Chuhan Wu, Fangzhao Wu, Tao Qi, Yongfeng Huang

摘要:

Transformer对于文本建模非常重要。然而,由于输入文本长度的二次复杂性,它在处理长文档时有困难。为了处理这个问题,我们提出了一个层次化的交互式Transformer(Hi-Transformer),以实现高效和有效的长文档建模。Hi-Transformer以分层的方式对文档进行建模,即,首先学习句子表示,然后学习文档表示。它可以有效地降低复杂度,同时捕获全局文档上下文的建模中的每一个句子。更具体地说,我们首先使用句子Transformer来学习每个句子的表示。然后,我们使用一个文档Transformer来从这些句子表示中建模全局文档上下文。接下来,我们使用另一个句子Transformer来使用全局文档上下文增强句子建模。最后,我们使用层次池方法来获得文档嵌入。在三个基准数据集上的大量实验验证了Hi-Transformer在长文档建模中的效率和有效性。

英文摘要:

Transformer is important for text modeling. However, it has difficulty in handling long documents due to the quadratic complexity with input text length. In order to handle this problem, we propose a hierarchical interactive Transformer (Hi-Transformer) for efficient and effective long document modeling. Hi-Transformer models documents in a hierarchical way, i.e., first learns sentence representations and then learns document representations. It can effectively reduce the complexity and meanwhile capture global document context in the modeling of each sentence. More specifically, we first use a sentence Transformer to learn the representations of each sentence. Then we use a document Transformer to model the global document context from these sentence representations. Next, we use another sentence Transformer to enhance sentence modeling using the global document context. Finally, we use hierarchical pooling method to obtain document embedding. Extensive experiments on three benchmark datasets validate the efficiency and effectiveness of Hi-Transformer in long document modeling.

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

↑