Harmonics of Learning: Universal Fourier Features Emerge in Invariant Networks

Giovanni Luca Marchetti, Christopher Hillar, Danica Kragic, Sophia Sanborn · DOI

Abstract

This paper provides a formal mathematical proof for the consistent emergence of Fourier-like features, such as Gabor filters and circular harmonics, in both artificial neural networks and biological systems. We demonstrate that if a network is invariant to a specific group of symmetries (e.g., rotations or translations), its learned weights must algebraically recover the Fourier transform of that group. This provides a rigorous theoretical explanation for the "universality" observed in representation learning.

Introduction

Researchers have long observed a "universality" in representation learning: whether examining the primary visual cortex of a macaque or the early layers of an ImageNet-trained CNN, similar patterns—Gabor filters and color-contrast detectors—consistently appear. While empirically well-documented, a rigorous theoretical explanation for this ubiquity has been lacking.

Emergent Fourier-like features (circular harmonics) in invariant networks.

We argue that the missing link is invariance. Natural data is rich with symmetries. If a learning system is designed to be invariant to these symmetries—meaning its output remains unchanged under transformations like rotation or shifting—it imposes strict algebraic constraints on internal representations. This work formalizes these constraints using group theory and harmonic analysis, suggesting that Fourier features are not merely a heuristic but a mathematical necessity for representing data under group symmetries.

Methods

We employ Harmonic Analysis on Groups to bridge neural network weights and abstract algebra. The approach includes:

  • Unitary Symmetries: Defining parametric functions where output meaning is preserved under unitary transformations of weights.
  • The Adjunction Property: A mathematical bridge relating input invariance (e.g., image rotation) to specific algebraic structures in the weights.
  • Generalizing Spectral Networks: Extending models designed for polynomial invariants from commutative to complex non-commutative groups.
  • Group Recovery Algorithm: A method to reconstruct the multiplication table of an unknown symmetry group directly from the weights of a trained, invariant network.

Results

The theoretical framework was validated using procedurally generated synthetic datasets, including group-action data (cyclic group $C_6$, dihedral group $D_3$) and noise-corrupted sets.

Theoretical Proofs

We formally prove (Theorem 10 and Corollary 11) that under specific conditions, the weights of an invariant network coincide with the irreducible unitary representations—the "harmonics"—of the symmetry group.

Empirical Group Recovery

The "Group Recovery" algorithm successfully reconstructed multiplication tables for several groups, including $C_6$, $C_2 \times C_2 \times C_2$, and the non-commutative $D_3$. The algorithm demonstrated significant robustness, maintaining high accuracy even with isotropic Gaussian noise (standard deviation up to 0.5).

Discussion

The emergence of Fourier features is an algebraic necessity for group-invariant representation. For non-commutative groups, these features become matrix-valued, providing a theoretical foundation for "Capsule Networks," where neurons process multi-dimensional signals. Furthermore, this framework allows for Symmetry Discovery: training a network to be invariant to an unknown transformation allows one to "read" the weights after training to discover the exact algebraic structure of that transformation.

Limitations and Future Work

Current proofs focus on finite groups. Future work will extend these results to continuous Lie groups (like continuous rotation). Additionally, while the theory utilizes complex-valued weights, finding real-valued analogues is a priority for mainstream deep learning applications. Finally, moving from groups to groupoids may explain the spatial localization seen in biological filters like Gabors, which are local rather than global Fourier transforms.

Summary updated

BibTeX
@inproceedings{marchetti2024harmonics,
  author = {Giovanni Luca Marchetti and Christopher Hillar and Danica Kragic and Sophia Sanborn},
  title = {{Harmonics of Learning: Universal Fourier Features Emerge in Invariant Networks}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  url = {https://openreview.net/forum?id=FGht8e5g1b},
}
Figure