English

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

Computation and Language 2021-12-10 v3

Abstract

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.

Keywords

Cite

@article{arxiv.2106.01040,
  title  = {Hi-Transformer: Hierarchical Interactive Transformer for Efficient and Effective Long Document Modeling},
  author = {Chuhan Wu and Fangzhao Wu and Tao Qi and Yongfeng Huang},
  journal= {arXiv preprint arXiv:2106.01040},
  year   = {2021}
}

Comments

ACL 2021

R2 v1 2026-06-24T02:44:36.870Z