Neural Fourier Transform: A General Approach to Equivariant Representation Learning

Masanori Koyama, Kenji Fukumizu, Kohei Hayashi, Takeru Miyato · OpenReview

Abstract: Symmetry learning has proven to be an effective approach for extracting the hidden structure of data, with the concept of equivariance relation playing the central role. However, most of the current studies are built on architectural theory and corresponding assumptions on the form of data. We propose Neural Fourier Transform (NFT), a general framework of learning the latent linear action of the group without assuming explicit knowledge of how the group acts on data. We present the theoretical foundations of NFT and show that the existence of a linear equivariant feature, which has been assumed ubiquitously in equivariance learning, is equivalent to the existence of a group invariant kernel on the dataspace. We also provide experimental results to demonstrate the application of NFT in typical scenarios with varying levels of knowledge about the acting group.

Introduction

Symmetry is a fundamental property of data, ranging from the rotational invariance of 3D objects to the translational shifts in images. In machine learning, the concept of "equivariance" is employed to ensure models respect these symmetries. However, traditional tools such as the classical Fourier Transform (FT) and Group Convolutions (GC) require explicit, prior knowledge of how a symmetry group acts on the data (e.g., specific pixel coordinate mappings).

In real-world scenarios, these actions are often nonlinear and complex. For instance, a fisheye lens distorts a simple horizontal shift into a complex warp, and 2D projections of rotating 3D objects involve occlusions where parts of the object appear and disappear. Standard methods struggle when the group action is not explicitly defined in the input space. This research introduces the Neural Fourier Transform (NFT) to learn underlying symmetries and their "frequencies" even when the action is nonlinear and unknown.

Methodology: The NFT Framework

The Neural Fourier Transform (NFT) is an autoencoder-based framework consisting of an Encoder ($\Phi$) and a Decoder ($\Psi$). Its primary objective is to map data into a latent space where complex, nonlinear group actions in the input space become simple linear transformations.

The NFT architecture linearizes nonlinear group actions by mapping them to a latent space where they are represented by block-diagonal matrices.

The core mathematical requirement is the relation $\Phi(g \circ x) = M(g)\Phi(x)$, where $M(g)$ is a linear map (a group representation). The framework is adaptable to three levels of supervision:

  1. Unsupervised (U-NFT): Neither the group $G$ nor the specific action $g$ is known; the model learns from data sequences (e.g., video frames).
  2. G-supervised (G-NFT): The type of group is known (e.g., rotation), but the specific magnitude of the action between frames is unknown.
  3. g-supervised (g-NFT): The exact group element $g$ applied to the data is known.

Theoretical analysis proves that a linear equivariant feature exists if and only if a group-invariant kernel exists on the data space. NFT effectively acts as a data-dependent filter, automatically identifying the irreducible representations (frequencies) necessary to describe the data's structure.

Experimental Evaluation and Results

The researchers evaluated NFT across diverse domains, including 1D synthetic warped signals, 2D images with fisheye distortions, and 3D object renderings.

Key Results

  • Frequency Recovery: In 1D warped signals, NFT successfully identified ground-truth frequencies that classical Discrete Fourier Transforms (DFT) failed to capture due to nonlinearities.
  • Out-of-Domain Generalization: On rotated MNIST tasks, the "g-NFT-norm" variant outperformed established baselines like SimCLR and Steerable CNNs in generalizing to unseen rotations.
  • 3D View Synthesis: NFT demonstrated the ability to predict 2D renderings of 3D objects from novel angles using a single input image. By analyzing the latent space, the authors found that specific blocks (frequencies) correspond to different geometric details, such as global color versus fine-grained structural symmetry.
NFT enables 3D view synthesis by learning the underlying group structure of rotations, allowing it to predict novel viewpoints from a single image.

Discussion and Insights

NFT provides a "nonlinear spectral analysis" tailored to specific datasets, finding hidden frequencies that standard transforms miss. By linearizing intractable actions, it handles complex phenomena like 3D rotation and occlusion through simple matrix operations in the latent space. Furthermore, the latent space is highly interpretable; lower frequencies capture global features like orientation, while higher frequencies encode structural details.

Conclusion and Future Work

While NFT is a powerful tool for symmetry learning, it currently requires data sequences or tuples (e.g., $x$ and $g \circ x$) to learn equivariance, rather than static independent images. Additionally, while the existence of solutions is proven, current optimization via standard autoencoder loss does not yet guarantee convergence to the global optimum in all cases. Future research will focus on more robust optimization algorithms to ensure consistent convergence to ideal equivariant representations.

Summary updated

BibTeX
@inproceedings{koyama2024neural,
  author = {Masanori Koyama and Kenji Fukumizu and Kohei Hayashi and Takeru Miyato},
  title = {{Neural Fourier Transform: A General Approach to Equivariant Representation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=eOCvA8iwXH},
}
Figure