Equivariant Discrete Normalizing Flows

Avishek Joey Bose, Ivan KobyzevarXiv 2021

Abstract

This paper introduces Equivariant Finite Normalizing Flows (EFNFs), a framework for building discrete, invertible generative models that natively respect data symmetries. By extending classical architectures like RealNVP and Residual Flows with equivariant layers, the authors achieve significant gains in parameter efficiency and faster convergence on symmetric datasets such as rotated MNIST and CIFAR-10. The work bridges the gap between the theoretical elegance of continuous equivariant flows and the practical efficiency of discrete implementations.

Introduction

Generative models, particularly Normalizing Flows, aim to transform simple probability distributions into complex data distributions using a series of invertible mappings. Many real-world datasets possess underlying symmetries—for instance, molecular properties remain invariant under rotation, and image classification is often robust to horizontal flips. Capturing these symmetries through equivariance provides a powerful inductive bias.

However, most existing equivariant flows are Continuous Normalizing Flows (CNFs), which require solving computationally expensive Ordinary Differential Equations (ODEs). Discrete (finite) flows are faster and more scalable but imbuing them with equivariance while maintaining invertibility and expressiveness presents a significant mathematical challenge. EFNFs address this by proposing equivariant versions of standard discrete flow architectures.

Methodology

The authors propose three primary types of equivariant discrete flows, leveraging Steerable CNNs to ensure internal features transform consistently with the input.

  1. $G$-Residual Flows: Based on the i-ResNet architecture, these use residual connections where the internal network is a steerable CNN. The authors prove these flows are universal, meaning they can represent any equivariant diffeomorphism if the input is padded with zeros (augmented space).
  2. $G$-Affine Coupling Flows: Based on RealNVP, these split the input and apply transformations to one half based on the other. A key finding is the Permutation Constraint: to maintain equivariance during element-wise multiplication (Hadamard product), the group representation must act as a permutation on the feature indices.
  3. $G$-Inverse Autoregressive Flows (IAF): An extension of the coupling approach that allows for more complex dependencies while remaining equivariant.
Illustration of a group action acting as a permutation on feature indices, a necessary condition for equivariant coupling layers.

Experimental Evaluation

The models were evaluated across several benchmarks to test their handling of rotation and reflection symmetries:

  • Synthetic 2D Data: Mixtures of 8-Gaussians and concentric rings exhibiting $SO(2)$ and $O(2)$ symmetries.
  • Rotation MNIST (Rot-MNIST): Handwritten digits rotated at arbitrary angles.
  • Augmented CIFAR-10: Natural images transformed by elements of rotation and reflection groups to test high-dimensional symmetry handling.

Key Results

  • Parameter Efficiency: On Rotation MNIST and CIFAR-10, $G$-Resflows achieved comparable performance to non-equivariant baselines while using 2x to 3x fewer parameters.
  • Faster Convergence: $G$-Coupling flows converged to lower bits-per-dimension (BPD) significantly faster than standard flows in ablation studies.
  • Sharper Densities: On synthetic tasks, equivariant models produced sharper probability distributions that respected the underlying symmetry of the modes, whereas standard models tended to "smear" the probability mass.

Discussion and Limitations

A major insight of this work is the proof of universality via augmentation, bridging the gap between theoretical expressivity and practical discrete implementation. However, several challenges remain:

  • Optimization Trade-offs: The Lipschitz continuity constraints required for invertibility in $G$-Residual flows can sometimes conflict with equivariance constraints, making optimization difficult.
  • Group Restrictions: $G$-Coupling flows are currently restricted to permutation representations, which limits their application to certain group types and requires specific data structures (e.g., multi-channel RGB images).
  • Non-Compact Symmetries: The current framework focuses on compact groups like rotations. Extending this to non-compact symmetries, such as scaling or translations in infinite space, is a subject for future research.

Summary updated

BibTeX
@misc{bose2021equivariant,
  author = {Avishek Joey Bose and Ivan Kobyzev},
  title = {{Equivariant Discrete Normalizing Flows}},
  year = {2021},
  eprint = {2110.08649},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.08649},
}
Figure