NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Informative Invariant Representations via Hierarchical Latent Decomposition

Hyungkwon Lee, Hyewon Ryu, Jong-Seok LeeNeurIPS 2026

TL;DR

When training machine learning models to handle unfamiliar environments, forcing them to ignore environment-specific quirks often backfires—they end up throwing out vital, task-relevant information along with the noise. This paper introduces BLENDER, an architecture that preserves information through input reconstruction while using a clever hierarchical design to cleanly separate universal truths from local context. By giving the universal pathway "first dibs" on information and letting the context pathway mop up the leftovers, BLENDER generalizes much better when deployed in the wild.

What Problem Does This Paper Address?

Imagine training a wildlife classifier on camera-trap photos from lush rainforests and snowy tundras, then deploying it in a scorching desert it has never seen. This is the classic challenge of domain generalization: learning from multiple source domains so a model can perform well on an entirely unseen target domain.

The standard playbook here is invariant feature learning—forcing the model to extract features that look the same across all training environments (e.g., focusing on the shape of an animal rather than the snowy background). The catch? Invariance alone is a blunt instrument. Models often achieve invariance simply by discarding huge chunks of the input, inadvertently throwing the baby out with the bathwater by deleting subtle details actually needed for accurate predictions.

To prevent this information loss, some prior methods require the model to reconstruct the original image using two parallel encoders: one for domain-invariant features (the animal) and one for domain-specific features (the weather/background). However, parallel encoders lack structural discipline. Because they operate side-by-side without talking to each other, nothing stops both encoders from memorizing the entire input, leading to massive redundancy and tangled representations. Furthermore, there has been very little theoretical clarity on when reconstruction actually helps a model survive an unseen domain shift.

Methods

To bring order to the latent space, the authors propose BLENDER (Bifurcated Latent ENcoder for Domain Embedding and Reconstruction), pairing a novel hierarchical architecture with theoretical backing.

Figure 1: Overall architecture of BLENDER.

Instead of running two encoders in parallel, BLENDER uses a conditional, asymmetrical hierarchy inspired by the chain rule of mutual information:

  • Hierarchical Encoding: Input features flow through stacked blocks in two pathways. The invariant pathway ($z_{\text{inv}}$) updates completely on its own, shielded from domain-specific noise. Meanwhile, the specific pathway ($z_{\text{spec}}$) is conditioned on the invariant pathway at every step. Essentially, $z_{\text{spec}}$ is tasked with capturing only the residual information that $z_{\text{inv}}$ couldn't explain.
  • Stop-Gradient Shielding: Crucially, the link from the invariant branch to the specific branch includes a stop-gradient operator. This acts as a one-way mirror: the specific branch can see what the invariant branch is doing, but gradients from the specific branch cannot flow backward to corrupt the invariant features.
  • Training Objectives: BLENDER combines four pieces:
  • A task predictor that only sees $z_{\text{inv}}$, forcing predictive signals into the invariant space.
  • A $\beta$-VAE reconstruction loss where a decoder stitches $z_{\text{inv}}$ and $z_{\text{spec}}$ back together to recreate the input, ensuring no information is lost.
  • KL regularization pulling $z_{\text{inv}}$ toward a universal prior and $z_{\text{spec}}$ toward a domain-conditioned prior.
  • HSIC regularization—using the Hilbert-Schmidt Independence Criterion (a kernel-based measure of statistical dependence)—to explicitly penalize any lingering correlation between $z_{\text{inv}}$ and the domain label, as well as between $z_{\text{inv}}$ and $z_{\text{spec}}$.

Datasets

The authors evaluate BLENDER using the standard DomainBed leave-one-domain-out protocol (training on all domains except one, and testing on the held-out domain). No new benchmarks are introduced; instead, they test across five established natural-image benchmarks of varying difficulty: VLCS, PACS, OfficeHome, Terra Incognita, and the massive, notoriously tough DomainNet. For visual, qualitative inspections of the latent space, they also use RotatedMNIST (handwritten digits rotated at various angles to simulate clean domain shifts).

Key Insights and Ideas

  • Architecture dictates information allocation: Regularization losses alone struggle to untangle parallel encoders. By structurally conditioning $z_{\text{spec}}$ on $z_{\text{inv}}$ (with a stop-gradient), you create an ordered dependency where $z_{\text{inv}}$ naturally claims the core task semantics, leaving $z_{\text{spec}}$ to capture complementary style/domain variations.
  • Theoretical guarantees for unseen reconstruction: The authors derive a mathematical upper bound on target-domain reconstruction risk (Theorem 4.1). Even though you never see the target domain during training, the bound proves that minimizing source reconstruction error while minimizing domain leakage (via HSIC) directly tightens the generalization gap on unseen domains.
  • Clean, interpretable disentanglement: Looking inside the model on RotatedMNIST reveals a remarkably tidy division of labor.
Figure 2: Latent space visualization of BLENDER on RotatedMNIST for the target domain 75◦. The original feature space, invariant latent space, and specific latent space are projected to two dimensions using t-SNE. The top row is colored by domain labels and the bottom row is colored by class labels.

As shown above, $z_{\text{inv}}$ forms tight clusters by digit identity while completely mixing rotation angles, whereas $z_{\text{spec}}$ organizes smoothly by rotation angle while ignoring what digit it is. When reconstructing from individual latents (below), $z_{\text{inv}}$ draws an upright, canonical version of the digit, and $z_{\text{spec}}$ supplies the geometric rotation—unlike parallel-encoder baselines like DIVA, where digit shapes and rotations bleed messily across variables.

Figure 3: Reconstruction comparison between BLENDER (hierarchical encoder) and DIVA (par- allel encoder) on RotatedMNIST. For each rotation angle (rows), the original input x and the full reconstruction ˆx are displayed. To analyze the semantic contribution of each latent component, reconstructions from individual latent variables are also shown. BLENDER uses zinv and zspec, whereas DIVA uses zy, zx, and zd. In each case, non-selected latent variables are set to zero vectors.

Key Results

  • State-of-the-Art Generalization: Across the five standard DomainBed benchmarks, BLENDER achieves the highest overall average accuracy at 66.8%, beating strong baselines like CORAL (64.6%), SagNet (64.2%), and standard ERM (63.3%).
  • Shining Under Heavy Shifts: Its advantage is clearest on the hardest benchmarks: it hits 47.5% on DomainNet (up from ERM's 40.9% and DIRT's 45.6%), 71.6% on OfficeHome, and 49.8% on Terra Incognita, while also securing top worst-domain accuracies on OfficeHome (55.1%) and Terra Incognita (41.5%).
  • Every Piece Matters: Ablation studies confirm that swapping the hierarchical encoder back to a parallel encoder drops average accuracy from 66.8% down to 65.9%. Removing the reconstruction loss (66.5%), HSIC penalty (66.7%), or stop-gradient operator (66.5%) similarly degrades performance, validating the unified design.

Limitations and Future Work

While the paper does not include a dedicated limitations section, an inherent constraint emerges directly from its theoretical analysis (Theorem 4.1). Two components of the target generalization bound—the Invariant Latent Gap and Input-Space Mismatch—depend on cross-domain variation and how well the training domains cover the space of possibilities. As the authors note, these terms reflect limited source coverage and cannot be directly evaluated or minimized without access to target domain data. Promising directions for future work are not explicitly discussed in the main text.

Summary updated

BibTeX
@inproceedings{lee2026learning,
  author = {Hyungkwon Lee and Hyewon Ryu and Jong-Seok Lee},
  title = {{Learning Informative Invariant Representations via Hierarchical Latent Decomposition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3TNn1rmVN1},
}
Figure