Multifactor Sequential Disentanglement via Structured Koopman Autoencoders

Nimrod Berman, Ilan Naiman, Omri Azencot

Introduction

In representation learning, "disentanglement" is the holy grail: we want a model to learn a latent space where individual dimensions correspond to specific, interpretable physical properties (e.g., one variable controls "lighting," another "object shape").

For sequential data like video or audio, most existing models only perform two-factor disentanglement: they separate the data into "static" (time-invariant, like a person's identity) and "dynamic" (time-varying, like their facial expression). However, real-world data has many more layers. A video of a sprite character, for instance, has multiple static factors (hair color, skin color, outfit) and dynamic factors (walking, slashing).

The challenge is achieving this multifactor disentanglement without labels (unsupervised). Previous attempts often required "cheating" with some level of supervision or struggled to isolate more than two components cleanly. Researchers have now developed a fully unsupervised deep learning model that can "untangle" complex sequential data into multiple distinct factors. By leveraging Koopman theory to linearize latent dynamics, the model uses a novel spectral loss to separate static and dynamic features more effectively than previous state-of-the-art methods while using significantly fewer parameters.

The Structured Koopman Autoencoder

The core idea relies on Koopman Theory, which suggests that even complex, non-linear systems can be represented as linear systems if projected into a high-enough dimensional space.

Structured Koopman Autoencoder Architecture
  1. Koopman Autoencoder (KAE): The model encodes a sequence into a latent space where the transition from one frame to the next is handled by a simple linear matrix, the Koopman operator ($C$).
  2. The Spectral "Aha!" Moment: The researchers realized that the eigenvectors of this matrix $C$ are the keys to disentanglement. If an eigenvector has an eigenvalue of exactly 1, the information it represents never changes over time (it is static). If the eigenvalue is different from 1, it represents dynamic information.
  3. Novel Spectral Loss ($\mathcal{L}_{eig}$): To force this separation, they designed a loss function that pushes a specific number of eigenvalues toward 1 (the static subspace) and keeps the rest within a small "$\epsilon$-ball" (the dynamic subspace).
  4. Factorial Swapping: Because the factors are isolated in specific eigenvectors, the model can perform "surgical" swaps—taking the hair color from Character A and the skin tone from Character B while keeping Character A's original motion.

Key Insights and Results

By assuming the latent dynamics must be linear, the model gains access to the tools of linear algebra, which are much easier to manipulate for disentanglement than the "black box" of standard neural networks. Furthermore, unlike many modern foundation models, this approach is remarkably lean. It achieves state-of-the-art results with only 2 million parameters, compared to competing models that use up to 121 million.

The model was evaluated on three diverse benchmarks: Sprites (animated characters), MUG (facial expressions), and TIMIT (audio speaker verification).

  • Superior Disentanglement: On the Sprites dataset, the model achieved 100% accuracy in preserving static features during swaps, outperforming unsupervised baselines like MoCoGAN (92.89%) and DSVAE (90.73%).
  • Multifactor Control: The authors demonstrated "Factorial Swaps," where they could incrementally change a character's hair, then skin, then clothes, showing that these factors were truly separated, not just lumped into a single "identity" block.
Factorial Swapping on Sprites Dataset
  • Competitive with Supervised Models: Even though it is fully unsupervised, the model performed competitively with (and sometimes better than) weakly-supervised models that have access to extra labels during training.
  • Audio Identity: On the TIMIT dataset, the model successfully separated speaker identity from speech content, achieving a low Equal Error Rate (EER) of 4.46% for static features.

Limitations and Future Work

While the model separates the factors into different eigenvectors, it doesn't automatically know the semantic meaning of each (e.g., that "Eigenvector #5 is hair color"). Currently, a human has to inspect the results or a pre-trained classifier is used to map the discovered factors to human-understandable labels. Additionally, the user must specify the number of static factors ($k_s$) beforehand; if this doesn't match the true underlying physics of the data, disentanglement might suffer.

Future directions include integrating this Koopman approach with Variational Autoencoders (VAEs) to handle uncertainty better and exploring more complex "measure-preserving" dynamics that don't fit neatly into the current $\epsilon$-ball loss.

Summary updated

BibTeX
@inproceedings{berman2023multifactor,
  author = {Nimrod Berman and Ilan Naiman and Omri Azencot},
  title = {{Multifactor Sequential Disentanglement via Structured Koopman Autoencoders}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=6fuPIe9tbnC},
}
Figure