Rethinking Global Average Pooling: Your Classifier Is Secretly a Multi-Instance Learner

Aray Karjauv
6/12/2026
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Modern image classifiers widely adopt global average pooling (GAP) followed by a linear classification head. This linearity ensures that the image-level logits equal the average of logits obtained by applying the classification head pointwise to the feature grid prior to GAP.

Show full abstract

Consequently, standard classifiers may inherently retain spatial class evidence that remains recoverable even when the image-level prediction is incorrect. This structure naturally suggests a multiple-instance learning (MIL) interpretation, where an image is viewed as a bag of spatial instances. Within this formulation, we demonstrate that standard classifiers trained with a single label per image can still learn the intended classification task in multi-object scenes. We further exploit this property to decompose image-level logits into a prediction grid, providing a post-hoc diagnostic to extract spatial class evidence that GAP otherwise obscures. Our systematic evaluation reveals that off-the-shelf models consistently recover the ground-truth class within foreground regions. The MIL interpretation further suggests that common classifier failures reflect known limitations of mean aggregation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{karjauv2026rethinking,
  title  = {Rethinking Global Average Pooling: Your Classifier Is Secretly a Multi-Instance Learner},
  author = {Aray Karjauv},
  year   = {2026},
  eprint = {2606.14555},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.14555v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.14555.svg)](https://codeofpaper.com/paper/2606.14555)

Discussion