Pool Me Wisely: On the Effect of Pooling in Transformer-Based Models
Not on the map. Why?
Abstract (arXiv)
Transformer models have become the dominant backbone for sequence modeling, leveraging self-attention to produce contextualized token representations. These are typically aggregated into fixed-size vectors via pooling operations for downstream tasks. While much of the literature has focused on attention mechanisms, the role of pooling remains underexplored despite its critical impact on model behavior. In this paper, we introduce a theoretical framework that rigorously characterizes the expressivity of Transformer-based models equipped with widely used pooling methods by deriving closed-form bounds on their representational capacity and the ability to distinguish similar inputs. Our analysis extends to different variations of attention formulations, demonstrating that these bounds hold across diverse architectural variants. We empirically evaluate pooling strategies across tasks requiring both global and local contextual understanding, spanning three major modalities: computer vision, natural language processing, and time-series analysis. Results reveal consistent trends in how pooling choices affect accuracy, sensitivity, and optimization behavior. Our findings unify theoretical and empirical perspectives, providing practical guidance for selecting or designing pooling mechanisms suited to specific tasks. This work positions pooling as a key architectural component in Transformer models and lays the foundation for more principled model design beyond attention alone.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 34 of its 48 references that are in the map. First posted on arXiv 2 Oct 2025.
Builds on
34 of 48 references.
References · 34
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2016Layer Normalizationcited by 5,579
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2018How Powerful are Graph Neural Networks?cited by 4,355
22 more
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 878
- 2022Transformers learn in-context by gradient descentcited by 714
- 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
- 2024MOMENT: A Family of Open Time-series Foundation Modelscited by 453
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
- 2018Lipschitz regularity of deep neural networks: analysis and efficient estimationcited by 413
- 2016Multimodal Compact Bilinear Pooling for Visual Question Answering and Visual Groundingcited by 243
- 2024Foundation Models for Time Series Analysis: A Tutorial and Surveycited by 234
- 2020The Lipschitz Constant of Self-Attentioncited by 171
- 2023Foundational Models Defining a New Era in Vision: A Survey and Outlookcited by 109
- 2023Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformercited by 101
- 2022Graph Pooling for Graph Neural Networks: Progress, Challenges, and Opportunitiescited by 52
- 2021Lipschitz Normalization for Self-Attention Layers with Application to Graph Neural Networkscited by 38
- 2024Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LNcited by 37
- 2023LipsFormer: Introducing Lipschitz Continuity to Vision Transformerscited by 33
- 2021DefSent: Sentence Embeddings using Definition Sentencescited by 20
- 2024Pooling And Attention: What Are Effective Designs For LLM-Based Embedding Models?cited by 19
- 2024Towards Understanding Inductive Bias in Transformers: A View From Infinitycited by 13
- 2024Comparative Analysis of Pooling Mechanisms in LLMs: A Sentiment Analysis Perspectivecited by 12
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026LMK > CLS: Landmark Pooling for Dense Embeddingscited by 1
- 2026Stochasticity in Tokenisation Improves Robustnesscited by 1
- 2026Be Wary of Your Time Series Preprocessingcited by 0
- 2026From Evaluation to Optimisation: Hierarchy-Aware Training Signals for CWE Prediction in Pythoncited by 0
- 2026Rethinking Latent Visual Reasoning: Grounding Latent Reasoning in Visual Evidencecited by 0
- 2026Raw-Routed Mixture of Adapters: A Causal Intervention for Routing Collapse in Time Series Foundation Modelscited by 0
- 2026Raw-Routed Mixture of Adapters: A Causal Intervention for Routing Collapse in Time Series Foundation Models30 Sep 2026
- 2026Rethinking Latent Visual Reasoning: Grounding Latent Reasoning in Visual Evidence28 Sep 2026
- 2026From Evaluation to Optimisation: Hierarchy-Aware Training Signals for CWE Prediction in Python23 Jul 2026
- 2026Stochasticity in Tokenisation Improves Robustness17 Apr 2026
- 2026Be Wary of Your Time Series Preprocessing19 Feb 2026
- 2026LMK > CLS: Landmark Pooling for Dense Embeddings29 Jan 2026