Polynomial Width is Sufficient for Set Representation with High-dimensional Features

Peihao Wang, Shenghao Yang, Shu Li, Zhangyang Wang, Pan Li

Introduction

Set representation has become ubiquitous in deep learning for modeling the inductive bias of neural networks that are insensitive to input order. DeepSets is the most widely used neural network architecture for this purpose. It operates by embedding each element of a set into a latent space of dimension $L$, applying a sum-pooling operation to obtain a whole-set embedding, and finally mapping that embedding to an output.

The core theoretical question surrounding DeepSets is: How large does the latent dimension $L$ need to be to perfectly represent any set function? This paper proves that the DeepSets architecture only requires a polynomial latent dimension (width) to represent any continuous function over sets with high-dimensional features. By moving beyond previous theories that suggested an exponential "curse of dimensionality," the authors provide a practical theoretical foundation for why DeepSets work efficiently in real-world applications like particle physics and computer vision.

The Bottleneck Problem

For sets of simple scalars (1D features), it has been known since 2017 that $L$ only needs to be as large as the set size $N$. However, when set elements are vectors (high-dimensional features of dimension $D$), the mathematics become significantly more complex.

Previous theoretical analyses either oversimplified high-dimensional features to 1D, relied on complex analytic activations that diverge from practical use, or concluded that $L$ must grow exponentially with the set size $N$ and feature dimension $D$. This "exponential bottleneck" contradicted the empirical success of DeepSets, where researchers routinely use relatively small widths and achieve excellent performance.

Comparison of prior arts and our results

The authors aim to bridge this gap between theory and practice by proving that a polynomial width—specifically $L = \text{poly}(N, D)$—is sufficient for exact representation and equivariance, even when $D > 1$.

Proposed Methods: LP and LE Layers

To investigate the minimal value of $L$ that achieves sufficient expressive power, the authors propose and analyze two specific types of element-wise embedding layers:

  1. Linear + Power Activation (LP): This layer projects the input into a higher dimension using a linear layer and then applies a power series activation (e.g., $z, z^2, \dots, z^N$).
  2. Linear + Exponential Activation (LE): This layer uses a linear projection followed by a standard exponential activation function.
Architecture of LP and LE embedding layers

The mathematical heavy lifting of the paper involves proving injectivity. To represent a set function accurately, the sum-pooling step must not lose information about the unique elements of the set. In high dimensions, the danger is that different feature channels might "shuffle" independently during sum-pooling, losing the connection between distinct features of a specific object.

To solve this, the authors introduce the concept of an anchor—a mathematical device that aligns different feature channels so that the identity of each set element is preserved during summation. Using tools from topology, they show that these architectures have continuous inverses, ensuring they can represent any continuous set function.

Key Results and Insights

The paper establishes concrete upper and lower bounds for the bottleneck dimension $L$:

  • For LP Layers: The minimal width $L$ is bounded by $N(D+1) \le L < N^5 D^2$.
  • For LE Layers: The minimal width $L$ is bounded by $ND \le L \le N^4 D^2$.

These results yield several critical insights:

  • Breaking the Exponential Curse: You do not need to generate every possible multivariate symmetric polynomial (which are exponentially numerous) to represent a set. Ensuring the embedding is injective is sufficient.
  • Real-World Activations: Unlike previous proofs requiring "complex analytic" activations, this work applies to practical neural network setups using real numbers and standard non-linearities.
  • Equivariance Extension: The polynomial bounds hold not just for invariant functions (single-value outputs), but also for equivariant functions where the output must permute in tandem with the input.

To validate these claims empirically, the authors conducted numerical experiments on a synthetic median task. By varying $N$ and $D$, they found that the "critical width" $L^*$ required to achieve low error followed a linear trend on a log-log plot, confirming that $L^*$ grows polynomially in practice.

Limitations and Future Work

While this paper makes significant theoretical strides, a few open questions remain:

  • Decoder Complexity: The paper proves the existence of a decoder function that works with polynomial width, but it does not specify its required complexity. In practice, the decoder might need to be exceptionally deep or wide to "unpack" the sum-pooled embedding.
  • Tightness of Bounds: The gap between the lower bounds (e.g., $\approx ND$) and the upper bounds (e.g., $\approx N^5 D^2$) remains large. Future work could focus on tightening these bounds to find the absolute minimum $L$ required.
  • Broader Architectures: Exploring how these polynomial bounds and anchor techniques apply to other set-based architectures, such as Transformers, remains an exciting area for future research.

Summary updated

BibTeX
@inproceedings{wang2024polynomial,
  author = {Peihao Wang and Shenghao Yang and Shu Li and Zhangyang Wang and Pan Li},
  title = {{Polynomial Width is Sufficient for Set Representation with High-dimensional Features}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=34STseLBrQ},
}
Figure