Abstract
Recently, it has been shown that many functions on sets can be represented by sum decompositions. These decompositions easily lend themselves to neural approximations, extending the applicability of neural nets to set-valued inputs—Deep Set learning. This work investigates a core component of Deep Set architecture: aggregation functions. We suggest and examine alternatives to commonly used aggregation functions, including learnable recurrent aggregation functions. Empirically, we show that the Deep Set networks are highly sensitive to the choice of aggregation functions: beyond improved performance, we find that learnable aggregations lower hyper-parameter sensitivity and generalize better to out-of-distribution input size.
Introduction
Standard neural network architectures are typically designed for fixed-size, ordered inputs. However, many real-world domains—such as 3D point cloud processing, particle physics, and set-based tagging—require models that are permutation-invariant and capable of handling variable-sized inputs. The "Deep Sets" framework addresses this by transforming set elements independently and then aggregating them into a fixed-size vector. While theoretical results suggest that a simple sum is sufficient for universal approximation, this paper argues that the practical choice of aggregation function (sum, mean, or max) is a critical bottleneck for performance and robustness.
Methodology
The authors propose extending the Deep Set framework by exploring alternative aggregation strategies and introducing learnable components.
Sum Isomorphism and LogSumExp
The paper proves a "Sum Isomorphism" corollary, showing that many common aggregations, such as the mean or LogSumExp (LΣE), are isomorphic to a sum in a transformed space. LΣE is particularly highlighted as a numerically stable middle ground between sum and max, offering "diminishing returns" as set size increases—a property beneficial for statistical consistency.
Recurrent and Query Aggregations
To overcome the limitations of fixed aggregations, the authors propose learnable recurrent aggregations. Inspired by "Read-Process-Write" architectures, they use an LSTM-based attention mechanism to iteratively query the set. To mitigate the "forgetting" issue inherent in RNNs, they incorporate a backward-pass processing layer, ensuring stable gradients and that early queries remain influential.
Empirical Evaluation
The proposed methods were evaluated across four tasks: Minimal Enclosing Circle regression, GMM Mixture Weight estimation, ModelNet40 point cloud classification, and unsupervised Spatial Attention on Multi-MNIST.
Key Results
- Regression Accuracy: In the Minimal Enclosing Circle task, the recurrent model significantly outperformed the standard non-recurrent version, reducing Mean Squared Error (MSE) from 0.71 to 0.42.
- Robustness to Set Size: On ModelNet40, models using learnable aggregations (e.g.,
r-sum) showed superior generalization. When set size was reduced from 1000 points (training) to 50 points (testing), accuracy for the standardmax/maxmodel dropped to 47.0%, while ther-summodel maintained 61.0%. - Hyperparameter Sensitivity: Learnable aggregations were found to be less sensitive to hyperparameter tuning, achieving high performance across a broader range of settings compared to fixed aggregations.
Discussion and Insights
A key finding is the "Max Trap": while max-pooling is common in point cloud classification for its ability to capture discriminative features, it fails in regression or density estimation tasks that require global information. Furthermore, fixed aggregations often overfit to the training set size. Learnable aggregations mitigate this by providing a more flexible and robust mechanism for information pooling.
Conclusion
This work demonstrates that the choice of aggregation in Deep Set architectures is not trivial. By introducing learnable recurrent aggregations, the authors provide a path toward models that are more accurate, more robust to hyperparameters, and better at generalizing to unseen input sizes. Future work remains to reconcile the computational overhead of recurrent layers with their performance gains and to further explore the theoretical limits of these complex aggregations.
Summary updated