Efficient Distribution Matching of Representations via Noise-Injected Deep InfoMax

Ivan Butakov, Alexander Semenenko, Aleksander Tolmachev, Andrey Gladkov, Marina Munkhoeva, Alexey A. Frolov · OpenReview

TL;DR

By simply injecting independent noise into the normalized outputs of an encoder during Deep InfoMax (DIM) training, this paper demonstrates that you can automatically force learned representations to match a target prior distribution (like a Gaussian or Uniform distribution). This elegant, non-intrusive modification achieves exact distribution matching without requiring auxiliary adversarial networks or complex post-hoc normalizing flows, while maintaining high performance on downstream tasks.

What Problem Does This Paper Address?

In self-supervised representation learning (SSRL), frameworks like Deep InfoMax (DIM) excel at creating rich, low-dimensional embeddings by maximizing the mutual information between different augmented views of data. However, standard SSRL doesn't give you control over the shape of the resulting latent space.

Forcing embeddings to follow a specific target distribution—a task known as Distribution Matching (DM)—is highly desirable. It simplifies downstream generative modeling, aids in outlier detection, and improves feature disentanglement. Traditional approaches to DM either rely on heavy mathematical assumptions, require training unstable adversarial secondary networks (like in Adversarial Autoencoders), or apply computationally expensive post-hoc transformations (like normalizing flows). The authors look for a simpler, cost-effective, and non-intrusive alternative.

Methods

The authors propose a remarkably simple fix: Noise-Injected Deep InfoMax.

Instead of passing the raw encoder outputs $f(X)$ directly to the InfoMax objective, they apply a normalization step and then inject independent noise $Z$. The new Markov chain becomes: $$f(X) + Z \longrightarrow f(X) \longrightarrow X \longrightarrow X' \longrightarrow f(X')$$

The training objective simply maximizes the mutual information $I(f(X'); f(X) + Z)$, where $X'$ is an augmented version of the input data $X$.

Depending on the desired target distribution, the architecture is tweaked slightly:

  • Gaussian Distribution Matching: The encoder outputs are constrained using standard batch normalization (setting the variance to 1), and isotropic Gaussian noise $Z \sim \mathcal{N}(0, \sigma^2 I)$ is injected.
  • Uniform Distribution Matching: The encoder outputs are bounded using a Sigmoid activation function to fit within $[0, 1]^d$, and uniform noise $Z \sim U([-\epsilon, \epsilon]^d)$ is injected.

Mathematically, the authors prove that maximizing this noise-injected mutual information objective inherently minimizes the Kullback-Leibler (KL) divergence between the embedding distribution and the target maximum-entropy distribution (Gaussian or Uniform).

Datasets

The method was evaluated across several standard image benchmarks:

  • MNIST: Used for low-dimensional ($d=2$) visualization, downstream classification, and clustering analysis.
  • CIFAR-10 and CIFAR-100: Used to evaluate linear probing performance under contrastive (SimCLR) and non-contrastive (VICReg) setups.
  • ImageNet-100 and ImageNet-1k: Used to validate the scalability of the noise-injection mechanism on large-scale datasets using VICReg.

Key Insights and Ideas

  • The Power of Maximum Entropy: The core intuition relies on information theory's maximum entropy theorems. When you inject noise, you create an information bottleneck (limiting channel capacity). To pass as much information as possible through this noisy channel, the encoder is forced to spread its representations out to perfectly fill the geometry of the noise, naturally adopting the maximum entropy distribution shape (e.g., a perfect Gaussian).
  • No Extra Parameters: Unlike adversarial or flow-based methods, this approach introduces zero additional neural network parameters or complex loss terms. It leverages the existing contrastive/InfoMax loss infrastructure.
  • Universal Compatibility: Though motivated by Deep InfoMax, the authors show this dual formulation of noise injection seamlessly carries over to other popular SSRL frameworks like InfoNCE (SimCLR) and covariance-based methods (VICReg, Barlow Twins).

Key Results

The authors uncovered a clear, quantifiable trade-off between the exactness of distribution matching and downstream task performance, controlled entirely by the noise magnitude (or channel capacity $C$).

Figure 1: Results for MNIST dataset in the Gaussian DM setup for d = 2 with varying capacity C = d

As shown in Figure 1, when the channel capacity is tightly restricted (high noise/low $C$), the embeddings perfectly pass multivariate normality tests (high p-values for D'Agostino-Pearson and Shapiro-Wilk), but downstream classification accuracy (MLP, kNN) suffers. As capacity increases, downstream performance climbs and stabilizes, revealing a "sweet spot" where you get both excellent downstream representation quality and highly accurate distribution matching.

When scaled up to complex datasets like ImageNet-1k using VICReg, injecting noise resulted in only a negligible drop in linear probing accuracy (e.g., Top-1 accuracy shifting from 67.41% with no noise to 67.19% with $\sigma=0.2$), proving that the method preserves high-quality semantic features even in high dimensions.

Limitations and Future Work

While Gaussian matching works smoothly, Uniform Distribution Matching presents a slight theoretical quirk: the equality bound is strictly achieved only when the embeddings conform to a discrete uniform distribution over an equidistant grid. While it approaches a continuous uniform distribution asymptotically as the noise window $\epsilon \to 0$, it makes uniform matching slightly less clean than the Gaussian alternative.

For future work, the authors plan to explore the dual formulation further to extend automatic distribution matching to a wider variety of non-standard target distributions and conduct more extensive conditional/unconditional image generation experiments.

Summary updated

BibTeX
@misc{butakov2024efficient,
  author = {Ivan Butakov and Alexander Semenenko and Aleksander Tolmachev and Andrey Gladkov and Marina Munkhoeva and Alexey A. Frolov},
  title = {{Efficient Distribution Matching of Representations via Noise-Injected Deep InfoMax}},
  year = {2024},
  eprint = {2410.06993},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.06993},
}
Figure