In neural network design, we often face a "bottleneck" problem: how to condense a set of features into a single representative vector. Whether we are pooling spatial features in a CNN, aggregating neighbor information in a Graph Neural Network (GNN), or fusing predictions in an ensemble, we typically rely on fixed mathematical heuristics like Mean, Sum, or Max pooling.
However, these fixed operations represent extreme statistical assumptions. Mean pooling assumes every element is equally important (global context), while Max pooling assumes only the single most salient element matters (local detail). Recent research suggests that the optimal way to aggregate information is rarely at these extremes. Instead, a growing body of work proposes Learnable Aggregation Functions, which allow models to discover the optimal mathematical "middle ground" for a specific task.
The Continuum of Generalized Means
The most common way to bridge the gap between Mean and Max pooling is through the Generalized Mean (GeM), also known as the $L_p$-norm. By introducing a parameter $p$, we can define a function that smoothly interpolates between different behaviors:
- When $p=1$, we get the Arithmetic Mean.
- As $p \to \infty$, we approach Max Pooling.
- When $p \to -\infty$, we approach Min Pooling.
In FastReID, Lingxiao He and colleagues demonstrate that making $p$ a learnable parameter allows a model to adaptively focus on salient features for person re-identification. Similarly, MinkLoc++ uses GeM pooling to fuse LiDAR and image data, allowing the network to adjust its focus based on the reliability of each sensor. By treating $p$ as a differentiable parameter, the network can optimize its "pooling order" via backpropagation, a concept also explored in $\alpha$-pooling by Marcel Simon and Trevor Darrell.
From Power Means to f-Averages
While GeM pooling covers the spectrum between mean and max, it is still a relatively simple functional form. Researchers like Mathieu Vu, Jean-Christophe Pesquet, and Émilie Chouzenoux have pushed this further with Aggregated $f$-averages (AFA).
The $f$-mean is a generalized framework where an invertible function $f$ is applied to the data before averaging, and its inverse $f^{-1}$ is applied after. This framework can represent not just arithmetic means, but also Geometric and Harmonic means. In their work on Few-Shot Class Incremental Learning, they show that a shallow neural network can learn to weight these different types of averages. This allows the model to dynamically choose the best "statistical center" for a given set of predictions, significantly reducing catastrophic forgetting.
Universal Aggregators for Graphs and Sets
The need for flexible aggregation is perhaps most acute in Graph Neural Networks and Set Transformers, where the number of elements to aggregate can vary wildly.
Alessandro Tibo introduced Learnable Aggregation Functions (LAF), which use a parametric family of functions to capture complex statistical properties like variance and skewness. This is echoed in the GenAgg framework, which parameterizes the "aggregation space" to represent virtually all standard aggregators (sum, mean, max) within a single differentiable unit.
By incorporating learnable scalars for cardinality scaling (adjusting for the number of neighbors), these models can decide whether to treat information as a cumulative sum (where more neighbors increase the signal) or an average (where signal intensity is independent of neighbor count).
Why Learnable Aggregation Works
The intuition behind this research direction is that aggregation is a form of attention.
- Content-Dependent Saliency: In Set Transformer, aggregation is performed by a learnable "seed vector" that attends to the set. This allows the model to pick out features that are relevant to the global context of the set, rather than just the most intense local feature.
- Noise Suppression: Fixed max-pooling is highly sensitive to outliers. A learnable $L_p$ norm or a log-mean-exp (MEX) operator, as proposed by Nadav Cohen and Amnon Shashua, provides a smoother transition that can ignore noise while still capturing peak activations.
- Task Adaptation: Different tasks require different levels of granularity. $\alpha$-pooling demonstrates that lower exponents favor global scene-level appearance, while higher exponents are better for fine-grained object part matching.
By moving from fixed operations to learnable functions, we allow the architecture itself to adapt its "statistical lens" to the data, leading to more robust representations across computer vision, speech processing, and relational reasoning.