Nonlinear ICA Using Auxiliary Variables and Generalized Contrastive Learning

Aapo Hyvärinen, Hiroaki Sasaki, Richard E. Turner

Abstract

Nonlinear Independent Component Analysis (ICA) is a fundamental problem for unsupervised representation learning, emphasizing the capacity to recover the underlying latent variables generating the data (identifiability). This research introduces a general framework for Nonlinear ICA that addresses the long-standing challenge of unidentifiability—the mathematical inability to uniquely recover original source signals from nonlinear mixtures without additional constraints. By leveraging an auxiliary variable (such as time, history, or class labels) and a generalized contrastive learning objective, we provide a unified theory demonstrating that underlying latent variables can indeed be recovered.

Introduction

In the field of representation learning, the primary goal is to identify the "true" latent factors (sources) that explain observed data. While Linear ICA is well-understood—recovering sources if they are non-Gaussian—Nonlinear ICA has historically been considered an ill-posed problem. Without specific constraints, an infinite number of transformations can yield independent components that do not correspond to the original sources, a phenomenon known as the identifiability problem.

Previous research addressed this through specialized solutions, such as assuming temporal dependencies in time-series data. This paper proposes a "Grand Unified Theory" that explains these existing methods and extends them to non-temporal data by utilizing auxiliary variables to provide the necessary structure for identifiability.

Methodology: Generalized Contrastive Learning

The proposed framework centers on the use of an auxiliary variable ($u$). While latent sources ($s$) are assumed to be independent of one another, they are modeled as conditionally dependent on the observed auxiliary information $u$.

The core algorithm, Generalized Contrastive Learning, follows a four-step process:

  1. Data Pairing: Observed data $x$ is paired with its associated auxiliary variable $u$ (e.g., a timestamp or segment label).
  2. Contrastive Sampling: A randomized dataset is created where $x$ and $u$ are paired arbitrarily to represent "fake" data.
  3. Discriminative Training: A neural network is trained to distinguish between "real" pairs $(x, u)$ and "fake" pairs $(x, u^*)$.
  4. Source Recovery: The authors prove that the hidden layers of this network naturally learn to extract the independent components $s$.

This approach unifies previous methods like Time-Contrastive Learning (TCL) and Permutation-Contrastive Learning (PCL), showing they are specific instances of this broader auxiliary variable framework.

Experimental Setup

To evaluate the model, the study utilizes synthetically generated non-stationary sources, allowing for direct comparison between recovered sources and known ground truths. Two primary data types were tested:

  • Non-exponential sources: Generated on a 2D grid using a scale mixture model with a Laplacian distribution.
  • Conditionally exponential sources: Generated as time series divided into segments with varying variances.

Results and Discussion

The theoretical contribution is supported by a rigorous proof that the contrastive learning objective leads to a consistent estimator of the demixing function. Empirically, the method demonstrates high performance across various scenarios.

Performance comparison of the proposed framework against baseline methods across different synthetic datasets.

As shown in the experimental results, the proposed method consistently achieves high Pearson correlation coefficients (often exceeding 0.9) between estimated and true sources. Notably, the "Proposed with ICA" variant—which applies standard Linear ICA as a post-processing step to resolve linear indeterminacy in exponential family sources—shows high stability and accuracy. Unlike previous methods like TCL, this framework is robust and does not require manual data segmentation, making it more applicable to real-world datasets.

Conclusion

This framework bridges the gap between supervised and unsupervised learning by demonstrating how auxiliary information can guide the discovery of latent structures. While the theory assumes invertibility of the mixing function and requires the auxiliary variable to have a sufficiently strong effect on the sources, it opens new avenues for self-supervised learning in computer vision and audio processing. Future work will focus on applying these principles to complex, real-world tasks where learned features may correspond to physically meaningful independent components.

Summary updated

BibTeX
@inproceedings{hyvarinen2019nonlinear,
  author = {Aapo Hyvärinen and Hiroaki Sasaki and Richard E. Turner},
  title = {{Nonlinear ICA Using Auxiliary Variables and Generalized Contrastive Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
  url = {https://openreview.net/forum?id=rfEhUSKsg5},
}
Figure