Machine learning models designed for sets—such as point clouds or groups of objects—must be permutation invariant, meaning their output remains unchanged regardless of the order of the input elements. To guarantee this property, foundational models like DeepSets and PointNet rely on fixed pooling operations (such as sum, mean, or max) to aggregate individual element embeddings into a single global vector.
However, this "hard-coded" pooling acts as a significant bottleneck. It forces the encoder to learn embeddings tailored specifically to a pre-chosen, non-trainable operation. This limits the model's overall expressivity and often results in learned features that transfer poorly to other tasks. While some learnable aggregators have been proposed, they frequently lack theoretical grounding or fail to maintain strict mathematical structure.
To address this, researchers have introduced Quasi-Arithmetic Neural Networks (QUANNs), which replace fixed set-pooling operations with a learnable Neuralized Kolmogorov Mean (NKM). By utilizing an invertible neural network to define the aggregation logic, QUANNs achieve superior performance across diverse benchmarks and learn highly structured, transferable latent representations.
The Neuralized Kolmogorov Mean (NKM)
The core innovation of this work is the NKM, which is based on the Kolmogorov (or quasi-arithmetic) mean—a mathematical generalization of common means defined as:
$$M_f(X) = f^{-1}\left(\frac{1}{n} \sum_{i=1}^n f(x_i)\right)$$
where $f$ is a continuous, invertible "generating function." By selecting different $f$ functions, one can recover the arithmetic, geometric, or harmonic mean.
The authors "neuralize" this concept by implementing $f$ as an invertible neural network (denoted as $\psi$). This transformation makes the pooling operation itself fully trainable.
Based on this framework, the authors propose two main architectures:
- QUANN-1: A unary model that encodes individual set elements independently before aggregation.
- QUANN-2: A binary model that incorporates an attention mechanism to capture interactions between pairs of elements (similar to a SetTransformer) before aggregating them via the NKM.
To ensure invertibility and prevent "dimensional collapse" (where critical information is lost during training), the generating function $\psi$ is constructed using RevNet (Reversible Residual Network) blocks.
Experimental Setup and Datasets
The authors evaluated QUANNs against a wide array of baselines across several diverse tasks:
- Synthetic Point Clouds: 10 different vector aggregation tasks, such as finding the geometric median or variance of a point cloud.
- MNIST-sets: Aggregating sets of handwritten digits to predict properties like the sum, max, or mode of the underlying labels.
- Omniglot-sets: A multi-label classification task to identify which of 40 alphabets are represented in a set of character images.
- ModelNet40 & QM9: Real-world applications including 3D object recognition from point clouds and predicting molecular properties (HOMO/LUMO energy levels) where atoms are treated as a set.
Key Insights and Results
Theoretical Guarantees and Regularization The paper provides theoretical proofs demonstrating that QUANNs are universal approximators for any set function that is uniformly continuous with respect to the Wasserstein metric. Furthermore, enforcing invertibility on the pooling function acts as a natural regularizer. Because the generating function $\psi$ is invertible, its Jacobian is non-singular. This ensures that gradients flow back through every dimension during training, preserving information that fixed pooling might otherwise discard and preventing the network from collapsing different inputs into the same representation.
Superior Transferability and Latent Structure One of the most striking findings is the transferability of encoders trained within a QUANN framework. When an encoder trained on a set task was repurposed for a simple image classification task, it significantly outperformed encoders extracted from DeepSets or PointNet. UMAP projections of the high-dimensional embeddings revealed that QUANNs naturally learn to separate classes (e.g., digit classes in MNIST) in the latent space, even when the primary task does not explicitly require it. In contrast, baselines produced much more "tangled" representations.
Empirical Performance * Synthetic Benchmarks: QUANN-1 outperformed ablated versions and baselines in 9 out of 10 experiments, showing significant gains in complex statistical aggregations like the Geometric Median. * Image Sets: QUANN-2 consistently achieved the best performance on MNIST-sets. In the Omniglot alphabet identification task, QUANNs surpassed all baselines, including SetTransformer and Slot Attention. * Real-world Molecules: On the QM9 dataset, QUANN-2 achieved the lowest Mean Squared Error (MSE) for both HOMO and LUMO energy prediction tasks compared to all other Janossy and non-Janossy pooling methods.
Limitations and Future Directions
While highly expressive, QUANNs are fundamentally mean-pooling architectures. The authors acknowledge that they have a limited capacity for purely additive (sum-decomposable) functions where the output scales linearly with set size; in such specific cases, simple sum-pooling might still be preferable.
Additionally, the current theory and experiments focus on finite, countable sets. Extending this framework to uncountable sets (like continuous surfaces) would require replacing the sum in the NKM formula with computational integration. Future work may explore "multi-head" learnable pooling (using multiple NKMs in parallel) and applying these techniques to Graph Neural Networks (GNNs) to replace standard message-passing aggregators.
Summary updated