In the world of time-series forecasting, "nonstationarity"—the tendency for data distributions to shift over time—is usually a significant challenge. If a model is trained to predict a pendulum’s swing on Earth and then moved to Mars, the change in gravity typically degrades performance. However, the framework LiLY (Learning Latent causal dYnamics) flips this problem on its head. Instead of struggling with distribution shifts, LiLY utilizes them as a source of information to uncover the hidden (latent) causal variables governing a system.
Abstract
Identifying latent causal structures from high-dimensional time-series data is a fundamental challenge in machine learning. We present LiLY, a principled framework that recovers hidden causal variables and their relationships even under environmental changes. By modularizing distribution shifts into fixed dynamics, changing relations, and observation noise, LiLY achieves state-of-the-art identifiability. Our approach demonstrates the ability to adapt to novel environments with minimal samples by treating distribution shifts as "soft interventions."
The Challenge of Latent Causal Identification
Most machine learning models assume that the underlying "rules" of a system remain constant. In reality, time-series data often experiences shifts: physical constants might change (e.g., gravity), sensors may degrade (increasing noise), or causal influences may fluctuate.
Existing methods like Nonlinear Independent Component Analysis (ICA) often assume hidden sources are independent. However, real-world variables are almost always causally related over time. Identifying these structures from raw pixels is difficult because many representations can fit the same data. LiLY addresses this "identifiability" problem, providing mathematical proof that it recovers the true latent variables rather than just a convenient approximation.
Methodology: The LiLY Framework
LiLY employs a modular generative model that partitions the latent space into three distinct blocks:
- Fixed Dynamics ($z^{fix}$): Components where causal rules are constant across environments.
- Changing Dynamics ($z^{chg}$): Components where causal influences vary between segments.
- Observation Changes ($z^{obs}$): Global changes in how the system is viewed, such as image noise.
The implementation uses an extended Sequential Variational Auto-Encoder (VAE). Key technical innovations include Inverse Transition Functions, which map latent states back to independent noise terms, and Change Factors ($\theta$), which are low-dimensional embeddings representing specific environments. The core theory posits that if the "score" of transitions varies sufficiently across environments, the true latent variables can be recovered up to simple permutations or scaling.
Experimental Evaluation
The researchers evaluated LiLY on both synthetic and high-dimensional video data:
- Synthetic Time-Series: Datasets featuring heterogeneous noise and changing causal strengths. LiLY achieved a Mean Correlation Coefficient (MCC) of ~0.95-0.99, significantly outperforming baselines like LEAP (~0.72) and Beta-VAE (~0.35).
- Modified Cartpole Video: A simulated physics environment where a cart balances a pole. Segments varied in gravity, mass, and image noise. LiLY successfully identified latent variables for "position" and "pole angle" directly from raw pixels, whereas methods like LEAP struggled to account for changes in underlying physics.
Key Insights
- Shifts as Soft Interventions: Natural distribution shifts provide the necessary "shake-up" to distinguish between different causal explanations, acting similarly to manual interventions.
- Modular Adaptation: By separating constant and changing elements, LiLY can adapt to a brand-new environment (e.g., a specific gravity value never seen before) using as few as 16 samples.
- Temporal Advantage: Leveraging the history of how states depend on the past provides a massive advantage over standard ICA methods that treat time steps independently.
Limitations and Future Work
LiLY currently assumes that a cause at time $t$ takes at least one time step to affect its result at $t+1$. In systems with high-speed interactions, effects might appear instantaneous. Incorporating instantaneous dependencies and handling extremely lossy data where the mixing function is not invertible are key directions for future research.
Summary updated