Group Equivariant Conditional Neural Processes

Makoto Kawano, Wataru Kumagai, Akiyoshi Sannai, Yusuke Iwasawa, Yutaka Matsuo

TL;DR

Researchers have developed Group Equivariant Conditional Neural Processes (EquivCNP), a meta-learning framework that bakes physical symmetries—like rotation and scaling—directly into the model's architecture. By combining the flexibility of Neural Processes with the mathematical rigor of Lie group convolutions, EquivCNP achieves impressive zero-shot generalization, successfully completing images of scaled or rotated objects even when trained exclusively on standard versions.

What Problem Does This Paper Address?

In deep learning, "symmetry" is a superpower. Convolutional Neural Networks (CNNs) are famous for translation equivariance: if you move an object to the left in an image, the network’s internal features move to the left accordingly. However, standard networks struggle with other continuous symmetries, like rotation or scaling, unless they are explicitly trained on massive, heavily augmented datasets.

Conditional Neural Processes (CNPs) are a class of meta-learning models designed to predict a function given just a few "context" points, making them ideal for few-shot learning. While CNPs are naturally permutation-invariant (they process data points regardless of order), they lack a built-in understanding of spatial symmetries. If a standard CNP learns to complete a picture of a "3," it might fail completely if that "3" is shrunk or tilted. The authors aim to bridge this gap by creating a model that is both permutation-invariant and equivariant to any specified Lie group (a mathematical group representing continuous symmetries).

Methods

To build a model capable of understanding these complex symmetries, the authors introduce EquivCNP, which relies on two primary pillars:

  1. The Decomposition Theorem: The authors provide a mathematical proof showing that any map that is both permutation-invariant and group-equivariant can be decomposed into a specific functional representation. This provides the theoretical "blueprint" for building the model's encoder and decoder.
  2. Lie Group Convolutions (LieConv): To make the theory practical, they utilize LieConv layers. Unlike standard convolutions that only slide over a fixed 2D grid, LieConv allows the model to perform convolutions across more complex continuous structures, like the rotation group ($SO(2)$) or the scaling group ($R_{>0}$).
  3. Separable LieConv: For better computational efficiency, the authors implemented a "separable" version of LieConv, splitting the operation into spatial and channel directions—similar to depthwise separable convolutions used in mobile-friendly architectures.
EquivCNP Architecture

Datasets

The paper evaluates EquivCNP across three main scenarios:

  • 1D Synthetic Regression: Using data generated from Gaussian Processes with RBF, Matern-5/2, and Periodic kernels.
  • Digital Clock Digits: A newly introduced 2D dataset of 7-segment display digits. This was created because standard datasets like MNIST contain "accidental" symmetries (handwritten digits are naturally tilted or scaled inconsistently), making it hard to measure exactly how much the model is learning versus what is already present in the data.
  • Rotated-MNIST: Used as a secondary benchmark for image completion tasks.

Key Insights

  • Inductive Bias is a Shortcut: By "hard-coding" the laws of symmetry into the model's architecture, the researchers drastically reduced the need for the model to "learn" those laws from scratch, making it highly data-efficient.
  • Zero-Shot Generalization: The most striking insight is that if the model is equipped with scaling symmetry ($R_{>0}$), it can complete an image of a tiny digit even if it only ever saw large digits during training. It understands the concept of size, eliminating the need to see examples at every scale.
  • Functional Latent Space: Unlike standard CNPs that map data to a fixed-size vector, EquivCNP maps context points into an infinite-dimensional latent space (a functional representation). This preserves the continuous nature of symmetries like rotation.

Key Results

EquivCNP demonstrated strong performance across both 1D and 2D tasks:

  • 1D Regression: EquivCNP performed comparably to ConvCNP (the previous state-of-the-art for translation-only symmetry), proving that adding capacity for more complex symmetries doesn't degrade performance on simpler tasks.
  • 2D Image Completion: On the digital clock dataset, EquivCNP equipped with Rotation + Scaling equivariance ($R_{>0} \times SO(2)$) significantly outperformed other models. It achieved a log-likelihood of 1.8398, compared to just 1.0998 for a model that only understood translation ($T(2)$).
Image Completion Results

Qualitatively, when presented with digits scaled down to 25% of their original size, the EquivCNP model produced clear, recognizable completions. In contrast, the translation-only model (ConvCNP) produced blurry, unrecognizable blobs.

Limitations and Future Work

  • Choosing the Right Group: The model's performance depends heavily on the user selecting the "correct" symmetry group for the data. For instance, using a rotation-equivariant model on data where orientation strictly matters (like distinguishing a "6" from a "9") might confuse the model.
  • Computational Complexity: While "Separable LieConv" helps mitigate costs, group convolutions remain generally more computationally expensive than standard CNNs.
  • Future Directions: The authors suggest future work could involve learning the symmetry group directly from the data, rather than requiring manual specification. They also highlight potential applications in robotics, such as hand-eye coordination tasks where scaling and rotation are constant, predictable factors.

Summary updated

BibTeX
@inproceedings{kawano2021group,
  author = {Makoto Kawano and Wataru Kumagai and Akiyoshi Sannai and Yusuke Iwasawa and Yutaka Matsuo},
  title = {{Group Equivariant Conditional Neural Processes}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=e8W-hsu_q5},
}
Figure