Robust contrastive learning and nonlinear ICA in the presence of outliers

Hiroaki Sasaki, Takashi Takenouchi, Ricardo Pio Monti, Aapo Hyvärinen

Introduction

Nonlinear Independent Component Analysis (ICA) is a fundamental framework in unsupervised representation learning. Its primary objective is to disentangle complex, nonlinearly mixed signals—such as fMRI brain activity or high-dimensional video data—into their original, independent source components. Modern approaches, including Time Contrastive Learning (TCL) and Permutation Contrastive Learning (PCL), typically frame this problem as a classification task. By training a neural network to distinguish between true data and randomized noise using logistic regression, these models can theoretically identify the underlying latent variables.

However, a significant practical hurdle remains: sensitivity to outliers. Real-world datasets are frequently contaminated by sensor noise, motion artifacts, or physiological variability. Because standard logistic regression is highly sensitive to data points that deviate from the main distribution, even minor contamination can lead to a complete failure in representation recovery. This paper addresses this vulnerability by introducing robust variants of these contrastive learning algorithms.

The Problem: Tail Vulnerability in Contrastive Learning

The authors identify a specific phenomenon termed "tail vulnerability." In contrastive learning, the model learns by comparing the target data distribution to a noise distribution. Outliers are most damaging when they appear in the "tails" of the target distribution—regions where data is sparse. In these areas, the ratio of outlier density to target density can become disproportionately large, effectively "tricking" the logistic regression objective into focusing on noise rather than the signal. This results in learned representations that reflect artifacts rather than the true latent sources.

Methodology: Robustness via $\gamma$-Divergence

To mitigate the impact of outliers, the researchers propose two new algorithms: Robust Time Contrastive Learning (RTCL) and Robust Permutation Contrastive Learning (RPCL).

The core innovation lies in replacing the standard Kullback-Leibler (KL) divergence (the basis of logistic regression) with $\gamma$-divergence. This objective function possesses a "super robustness" property characterized by a latent bias. Unlike standard losses that attempt to account for every data point, $\gamma$-divergence effectively ignores observations that are far from the high-density regions of the true distribution.

As the hyperparameter $\gamma$ increases, the model becomes increasingly resilient to outliers. This allows the neural network to focus exclusively on the "clean" underlying signal, even when the dataset is heavily contaminated. The authors provide a rigorous theoretical analysis proving that this $\gamma$-based objective naturally mitigates the interference caused by outliers in the distribution tails.

Experimental Validation

The proposed methods were evaluated against two distinct benchmarks:

  1. Artificial Data: The authors generated 10-dimensional source signals mixed through a three-layer neural network. They introduced two types of contamination: independent Laplace noise and a modulated mixture of Gaussians.
  2. Hippocampal fMRI Data: To test real-world applicability, the methods were applied to resting-state fMRI measurements from a single subject collected over 84 days. This dataset is notoriously noisy due to head movement and other physiological factors, providing a rigorous test for robustness.

Key Results and Insights

Superior Latent Recovery

On artificial datasets with 10% contamination, standard TCL performance—measured by the correlation between recovered and true sources—dropped to approximately 0.62. In contrast, the proposed RTCL maintained a high correlation of 0.89. Furthermore, as the contamination ratio increased, the robust methods showed significantly more stability and slower performance degradation compared to standard PCL and TCL.

Causal Plausibility in Brain Imaging

One of the most compelling findings emerged from the fMRI analysis. Robustness proved to be essential for scientific accuracy, not just numerical stability. When performing causal discovery on the recovered components:

  • Standard TCL identified a direct causal link between the $CA_1$ and $PHc$ regions of the hippocampus, a connection considered anatomically implausible.
  • RTCL identified indirect causal effects mediated by the subiculum. This finding is consistent with known neuroanatomy, suggesting that the robust method successfully filtered out noise artifacts that otherwise created "phantom" causal links.

Conclusion and Future Directions

By integrating $\gamma$-divergence into the nonlinear ICA framework, this research provides a powerful tool for representation learning in the presence of messy, real-world data. While the introduction of the $\gamma$ hyperparameter requires careful tuning and potentially more complex optimization, the benefits in stability and scientific validity are substantial.

Future work may extend this robust framework to other contrastive unsupervised learning tasks, such as self-supervised visual representation learning (e.g., SimCLR). As these models increasingly rely on massive, uncurated datasets, the ability to automatically ignore outliers will be critical for building reliable and interpretable AI systems.

Summary updated

BibTeX
@inproceedings{sasaki2020robust,
  author = {Hiroaki Sasaki and Takashi Takenouchi and Ricardo Pio Monti and Aapo Hyvärinen},
  title = {{Robust contrastive learning and nonlinear ICA in the presence of outliers}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2020},
}
Figure