atlas

Research map / Architectures and efficiency / Attention and transformers

Pool Me Wisely: On the Effect of Pooling in Transformer-Based Models

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives closed-form expressivity bounds for Transformers with Average, Sum, Last-token and Max pooling, and empirically compares pooling strategies across vision, NLP, and time-series tasks with frozen backbones.

Problem

Pooling, the step that aggregates token embeddings into a fixed-size vector, is widely used in Transformers but has little theoretical analysis; its effect on expressivity and downstream performance is unclear.

Approach

Model a single-layer Transformer plus pooling as a Lipschitz map and bound its (epsilon, sigma, gamma)-expressivity per pooling type, where the pooling operator's norm (1/sqrt(n) for average, sqrt(n) for sum, 1 for last-token, sqrt(min(n,d)) for max) sets contractive, non-expansive or expansive behavior; then validate empirically with frozen backbones.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Average rather than Last-token poolingViT-small · MiniPlacesaccuracy: 54.51 ± 0.38 -> 56.94 ± 0.66Helped
use Average rather than Last-token poolingViT-small · CUB-200-2011accuracy: 77.45 ± 0.13 -> 71.48 ± 0.18Hurt
use Average rather than Last-token poolingBERT · STSBSpearman: 0.587 ± 0.009 -> 0.713 ± 0.008Helped
use Last-token rather than Average poolingMistral-7B · TinyStoriesTop-10 Acc: 61.047 ± 0.228 -> 89.948 ± 0.092Helped
use Attention rather than Average poolingMOMENT-small · Traffic imputationMSE: 1.583 ± 0.016 -> 0.265 ± 0.015Helped
use Sum rather than Average poolingMOMENT-base · classificationaccuracy: 65.19 ± 0.00 -> 83.30 ± 1.51Mixed
learn scalar weights over token positions instead of using fixed poolingTransformer models · downstream tasks across vision and NLPtask-specific performanceMixed
use Attention pooling rather than fixed poolingMOMENT models · time-series classificationaccuracyHelped
use Last-token rather than global poolingTransformer models · next-token predictionTop-10 AccHelped
use Average rather than Sum poolingTransformer models · global-context vision taskstask performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 ImageNet-100 CUB-200-2011 MiniPlaces CelebA Oxford Flowers-102 Oxford-IIIT Pet PascalVOC STSB HellaSwag TinyStories

Benchmarks: CIFAR-10 CIFAR-100 ImageNet-100 CUB-200-2011 MiniPlaces CelebA Oxford Flowers-102 Oxford-IIIT Pet PascalVOC STSB HellaSwag TinyStories

Metrics: accuracy MSE Spearman correlation F1 top-10 accuracy

Baselines: Last-token pooling Average pooling Sum pooling Max pooling Attention pooling Weighted Average pooling

Builds on: L2-MHA LipsFormer Swin Transformer MOMENT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy