Discovery of Single Independent Latent Variable

Uri Shaham, Jonathan Svirsky, Ori Katz, Ronen Talmon

TL;DR

This paper introduces a framework to solve a specific but widely applicable version of nonlinear Independent Component Analysis (ICA): recovering a hidden source from a mixture when one other component is already observed. By combining an autoencoder with a discriminator in a GAN-like minimax game, the authors prove that the hidden variable can be recovered up to an entropy-preserving transformation, enabling both high-fidelity signal extraction and controllable data synthesis.

What Problem Does This Paper Address?

A fundamental challenge in data science is "latent variable discovery"—finding the hidden factors that combine to create observed data. While techniques like PCA work for linear relationships, Nonlinear Independent Component Analysis (ICA) is notoriously difficult because it is generally "non-identifiable." Without extra constraints, there are infinitely many ways to decompose a nonlinear mixture into independent parts, making it impossible to know if you've found the "true" underlying sources.

The authors tackle a specific case: you have an observed mixture $X$ generated by two independent factors, $S$ and $T$. You happen to observe $T$ (the "condition"), but $S$ remains hidden. The goal is to recover $S$. This setup mirrors many real-world problems:

  • Fetal ECG: An abdominal recording ($X$) is a mixture of the mother's heart ($T$) and the baby's heart ($S$). We can easily measure the mother's heart separately ($T$).
  • Voice Cloning: A speech signal ($X$) combines the text spoken ($S$) and the speaker's unique identity ($T$).

Methods

The authors propose an Autoencoder Model with a Discriminator. The architecture consists of three main parts:

  1. Encoder ($E$): Maps the mixture $x$ to a latent code $s'$.
  2. Decoder ($D$): Takes the code $s'$ and the observed condition $t$ to reconstruct the original input $\hat{x}$.
  3. Discriminator ($g$): Tries to predict the condition $t$ from the latent code $s'$.
Figure 1: A diagram of the proposed approach. Learned functions are colored in blue, while the objective functions are colored in gray.

The system is trained using a minimax game. The autoencoder wants to reconstruct the data perfectly (ensuring no information is lost) while simultaneously "confusing" the discriminator so that the code $s'$ contains absolutely no information about $t$.

The core theoretical contribution is Lemma 4.1, which proves that if the autoencoder achieves perfect reconstruction and the code is truly independent of the condition, then the code $s'$ is a mathematically valid recovery of the hidden source $S$, differing only by a transformation that preserves its information content (entropy).

Datasets

The researchers validated their approach across several diverse domains:

  • Synthetic 2D Data: Used to visualize linear and nonlinear mixing and verify independence.
  • Rotating Figures: A dataset of two toys (Bulldog and Bunny) rotating at different speeds, captured by two cameras.
  • Voice Cloning: The CSTR VCTK Corpus, containing speech from 30 different speakers with various accents.
  • Fetal ECG: The NIFEADB dataset from PhysioNet, featuring multi-channel abdominal and thorax ECG recordings from pregnant women.
  • Image Manipulation: Colored MNIST and domain conversion tasks (e.g., Oranges to Apples).

Key Insights and Ideas

  • Breaking Non-Identifiability: The "aha moment" is realizing that observing just one component ($T$) provides enough of a "hint" to make the nonlinear ICA problem solvable. This bridges the gap between theoretical impossibility and practical application.
  • Controllable Synthesis: Because the decoder explicitly uses the condition $t$, once the model is trained, you can perform "style transfer" or "voice cloning" by feeding the hidden code $s'$ of one sample into the decoder along with a different condition $t_{new}$.
  • Entropy-Preserving Recovery: The recovery isn't necessarily a perfect replica of the original values, but it is a "sufficient statistic"—it captures every bit of information present in the original hidden source.

Key Results

  • 2D Analysis: The model successfully disentangled latent variables even under complex nonlinear mixing. As shown in Figure 2, the joint density of the recovered code and the condition becomes a simple grid, indicating they are statistically independent. Figure 2: Analysis demonstration showing the recovery of latent factors in linear and nonlinear mixing scenarios.

  • Voice Cloning: The method achieved a Mel Cepstral Distortion (MCD) of 6.27, significantly outperforming established baselines like VQ-VAE (8.43) and PPG-GMM (8.57).

  • Fetal ECG Extraction: The approach proved superior to traditional signal processing filters (like LMS and RLS) in enhancing the fetal heartbeat signal while suppressing the much stronger maternal signal.
  • Image Manipulation: In the rotating figures task, the model successfully isolated the rotation of the "Bunny" from the "Bulldog," allowing researchers to change the Bulldog's position in an image without affecting the Bunny. Figure 4: The rotating figures experiment demonstrating the ability to manipulate one latent factor (Bulldog rotation) while preserving another (Bunny rotation).
Figure 2: Analysis demonstration. The reconstruction plots show train data in red and reconstructed test data in blue. The learned code s′ is a recovery of the latent factor s, up to entropy-preserving transformation (e.g., an arbitrary monotonic transformation). The approximate independence of the S′ and the condition T can be recognized by noticing that the joint density of the code and the condition is an outer product of the marginal distributions. The p-values of χ2 independence test for the shown results are 0.75 (linear mixing) and 0.83 (nonlinear mixing)
Figure 3: Experiment setup of the rotating figures. Bulldog and Bunny rotate in different speeds. The right camera captures both Bulldog and Bunny, while the left camera captures only Bulldog. Images from the right camera are considered as the input x, which is generated from two independent factors – the rotation angles of the figures. Bulldog is considered as the condition t. The goal is to recover the rotation angle of Bunny, and to manipulate a given input image x by plugging in a different condition than the one present in the image. The fact that t and x are captured from two different viewpoints prevents modification of the image simply by pasting Bulldog into x.

Limitations and Future Work

The authors identify a few areas for improvement:

  • Perfect Reconstruction Assumption: The theory relies on "zero generalization loss," which is rarely possible with real-world, noisy neural networks. Future work aims to generalize the proofs for "bounded" loss.
  • Noise Sensitivity: The current model assumes the mixture $X$ and condition $T$ are clean. In reality, sensors introduce noise, which might require new loss functions to handle gracefully.
  • Global Optima: Like all GAN-based methods, the model's success depends on the optimization reaching a stable equilibrium, which can be finicky in practice.

Summary updated

Abstract

Latent variable discovery is a central problem in data analysis with a broad range of applications in applied science. In this work, we consider data given as an invertible mixture of two statistically independent components and assume that one of the components is observed while the other is hidden. Our goal is to recover the hidden component. For this purpose, we propose an autoencoder equipped with a discriminator. Unlike the standard nonlinear ICA problem, which was shown to be non-identifiable, in the special case of ICA we consider here, we show that our approach can recover the component of interest up to entropy-preserving transformation. We demonstrate the performance of the proposed approach in several tasks, including image synthesis, voice cloning, and fetal ECG extraction.
BibTeX
@inproceedings{shaham2022discovery,
  author = {Uri Shaham and Jonathan Svirsky and Ori Katz and Ronen Talmon},
  title = {{Discovery of Single Independent Latent Variable}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=ktEomLTjIF},
}
Figure