[Paper Review] Poolingformer: Long Document Modeling with Pooling Attention
Poolingformer introduces a two-level attention mechanism for long document modeling, combining sliding-window attention with pooling-based global context aggregation to achieve linear computational complexity. It sets new state-of-the-art results on long-context QA and summarization benchmarks, improving F1 by 1.9 points on NQ and 1.9 points on TyDi QA passage answer.
In this paper, we introduce a two-level attention schema, Poolingformer, for long document modeling. Its first level uses a smaller sliding window pattern to aggregate information from neighbors. Its second level employs a larger window to increase receptive fields with pooling attention to reduce both computational cost and memory consumption. We first evaluate Poolingformer on two long sequence QA tasks: the monolingual NQ and the multilingual TyDi QA. Experimental results show that Poolingformer sits atop three official leaderboards measured by F1, outperforming previous state-of-the-art models by 1.9 points (79.8 vs. 77.9) on NQ long answer, 1.9 points (79.5 vs. 77.6) on TyDi QA passage answer, and 1.6 points (67.6 vs. 66.0) on TyDi QA minimal answer. We further evaluate Poolingformer on a long sequence summarization task. Experimental results on the arXiv benchmark continue to demonstrate its superior performance.
Motivation & Objective
- Address the quadratic computational and memory complexity of standard self-attention in Transformers for long sequences.
- Overcome the limitation of fixed sequence length (e.g., 512 tokens) in existing pretrained models that hinders performance on long-context tasks.
- Design a scalable attention mechanism that maintains long-range dependencies without sacrificing efficiency or compatibility with pretrained models.
- Enable effective modeling of extremely long documents, such as full research papers, in tasks like question answering and summarization.
Proposed method
- Introduces a two-level attention schema: first-level uses a small sliding window to attend to local neighbors, reducing computation per token.
- Second-level applies pooling attention with a larger window to aggregate distant context, reducing the number of tokens to attend to via max-pooling on keys and values.
- The pooling operation is applied to both key and value vectors, decreasing sequence length and enabling linear complexity with respect to input length.
- The architecture preserves local inductive bias through sliding-window attention while extending receptive fields via pooling, balancing local and global modeling.
- The model is designed to be compatible with existing pretrained models, allowing incremental integration without catastrophic forgetting.
- Employs a hybrid attention mechanism that combines local neighborhood aggregation with global context compression, minimizing information loss during pooling.
Experimental results
Research questions
- RQ1Can a two-level attention mechanism effectively reduce computational cost in long sequence modeling while preserving performance?
- RQ2How does pooling-based global attention compare to standard self-attention in terms of long-range dependency capture and efficiency?
- RQ3To what extent can Poolingformer be integrated into existing pretrained models without degrading their prior knowledge?
- RQ4Does the proposed architecture outperform existing sparse or kernelized attention mechanisms on long-context NLP tasks?
- RQ5Can Poolingformer generalize beyond question answering to other long-sequence tasks like document summarization?
Key findings
- Poolingformer achieves a new state-of-the-art F1 score of 79.8 on the NQ long answer task, outperforming the previous SOTA by 1.9 points.
- On the TyDi QA passage answer task, Poolingformer achieves an F1 of 79.5, a 1.9-point improvement over the prior SOTA.
- For the TyDi QA minimal answer task, Poolingformer reaches an F1 of 67.6, a 1.6-point improvement over the previous best model.
- On the arXiv long-document summarization benchmark, Poolingformer sets a new SOTA, demonstrating strong generalization beyond QA tasks.
- Experiments show that replacing one-fourth of the standard Transformer layers with Poolingformer layers yields optimal performance, balancing long-range modeling and fine-tuning stability.
- The model maintains linear computational and memory complexity with respect to sequence length, enabling efficient inference on very long documents.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.