Layer-Centric Factors of Variation Disentanglement for Task- and Model-Agnostic Generalization

Hee-Jun Jung, Jongmin Park, Minwoo Kang, Hoyong Kim, Kangil KimICML 2026

The Challenge of Disentanglement

In the quest for AI that generalizes like humans, disentanglement is a holy grail. The goal is to learn representations where individual dimensions correspond to independent physical factors—for example, one neuron tracks "object rotation" while another tracks "lighting."

Traditionally, researchers have tried to achieve this by applying heavy mathematical constraints (like those in $\beta$-VAEs) at the network's narrowest point: the latent bottleneck. However, this "latent-vector-centric" approach has a major flaw. It often fails to improve performance on actual downstream tasks because a network’s final predictions are mediated by messy, entangled features in its intermediate layers. Fixing only the bottleneck isn't enough; we need a structural way to keep features separated as they flow through the entire model.

The Solution: Orthogonal Subspaces Projection (OSP)

To address this, the authors propose the Orthogonal Subspaces Projection (OSP) layer. Instead of relying solely on a loss function to penalize entanglement, they build separation directly into the architecture.

  • Orthogonal Subspaces: The OSP layer projects input features into $K$ mutually orthogonal subspaces. This mirrors the assumption that real-world factors are independent. By making the subspaces orthogonal, the model prevents information from one factor (like "color") from interfering with another (like "shape").
  • Efficient Parameterization: Optimizing orthogonal matrices is notoriously expensive ($O(m^3)$ complexity). To make this practical, the authors use a Cayley transform to learn a small rotation matrix that is applied across blocks. This allows the layer to be learnable and highly efficient, adding less than 0.2% to the total parameter count.
  • Plug-and-Play Integration: The OSP layer is designed to be a drop-in replacement for standard linear or convolutional layers. It can be seamlessly integrated into ResNets, Vision Transformers (ViT), or BERT without changing the core architecture.

Key Insights: Why OSP Works

  • Architecture > Objectives: The core insight of this paper is that structural inductive biases (how the network is built) are often more effective for generalization than objective-driven biases (how the network is penalized). By forcing orthogonality at the layer level, disentanglement becomes a fundamental property of the feature extraction process.
  • Cleaning up the "Messy Middle": Grad-CAM visualizations show that OSP-equipped models focus much more accurately on semantically relevant objects (like a cow in a field) while ignoring spurious background noise. Layer-wise disentanglement actively helps the model "filter" its internal representations.
  • Parameter-Efficient Adaptation: OSP proves to be a powerful tool for fine-tuning. By freezing a pre-trained backbone and only training the OSP layers, the model can outperform full fine-tuning on ImageNet while updating 25x fewer parameters.

Empirical Triumphs Across Domains

The researchers put OSP through a gauntlet of diverse benchmarks, proving its versatility as a task- and model-agnostic module:

  • Computer Vision: On ImageNet, adding OSP to a ViT-Base model boosted top-1 accuracy from 78.22% to 80.33%. In object detection and segmentation, OSP-YOLOv8 consistently outperformed baselines across all metrics (mAP, Precision, Recall), showing a distinct ability to distinguish between similar classes in cluttered scenes.
  • Natural Language Processing: OSP-BERT showed improved scores across nearly all GLUE tasks. It saw a particularly significant jump in accuracy on the Recognizing Textual Entailment (RTE) dataset.
  • Out-of-Distribution (OOD) Robustness: On DomainBed (which tests how models handle style shifts), OSP-ResNet18 provided much more stable performance across different domains compared to the vanilla version, proving it learns robust features rather than just overfitting to the training distribution.

Limitations and Future Work

While OSP is far more efficient than "full" orthogonal optimization, it still introduces a slight computational overhead. For example, training throughput drops slightly compared to vanilla backbones (e.g., 2.36 vs 1.69 batches/s for ResNet50).

Additionally, performance is somewhat sensitive to the choice of subspace dimension ($d$) and the number of subspaces ($K$). While the authors provide moderate defaults that work well out-of-the-box, finding the optimal configuration for a brand-new task might require hyperparameter tuning. Future work could involve automating the selection of these parameters or scaling OSP to massive Generative AI models.

Summary updated

BibTeX
@inproceedings{jung2026layer,
  author = {Hee-Jun Jung and Jongmin Park and Minwoo Kang and Hoyong Kim and Kangil Kim},
  title = {{Layer-Centric Factors of Variation Disentanglement for Task- and Model-Agnostic Generalization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=QE9b2nOWi2},
}
Figure