Abstract
Identifying hidden causal variables and their governing transitions in time-series data is a fundamental challenge in representation learning. Real-world data often exhibits nonstationarity, where transition rules change over time without explicit labels. We introduce CtrlNS (Causal Temporal Representation Learning with Nonstationary Sparse Transition), a framework that utilizes mechanism sparsity to simultaneously recover latent factors and the timing of distribution shifts. Our theoretical analysis proves identifiability under weakly diverse transitions, and empirical results on synthetic and video datasets demonstrate significant improvements over existing baselines.
Introduction
In complex systems like climate modeling or video understanding, observed sequences are generated by latent causal variables. Causal Temporal Representation Learning (Ctrl) aims to identify these variables and their transition dynamics. However, nonstationarity—where the underlying rules change—poses a significant hurdle, typically requiring prior knowledge of shift timings or strict Markovian assumptions. CtrlNS addresses this "chicken and egg" problem: learning hidden variables without knowing the rules, while the rules themselves are changing at unknown intervals.
Methodology
CtrlNS is built on the intuition that the simplest explanation for changing dynamics is often the correct one. The framework is implemented as a Variational Autoencoder (VAE) with several key components:
- Transition Clustering: A set of $U$ transition networks is maintained, with a Gumbel-Softmax gating mechanism assigning each time step to a specific regime.
- Mechanism Sparsity: The model is penalized via $L_2$ regularization for transition complexity. Theory suggests that the global minimum of this complexity is reached only when domain shifts are correctly identified.
- VAE Integration: An encoder maps observations to latents, a Prior Network models causal transitions within the identified regime, and a decoder ensures invertibility.
Key Insights: The Sparsity Lever and Training Dynamics
The core innovation is using sparsity to discover activity boundaries. Fitting a single complex rule to multiple activities is less "sparse" than fitting multiple simple rules, allowing the model to naturally segment domains.
As shown in Figure 3, the training process follows a distinct three-phase progression:
- Phase 1: Initial confusion where neither domains nor latents are clear.
- Phase 2: The model begins to correctly identify domain shifts ($u_t$ accuracy rises).
- Phase 3: Once timing is established, the model identifies latent variables ($z_t$ MCC) with high precision.
Experimental Results
The model was evaluated on synthetic datasets (8-D latents, 5 regimes) and real-world video datasets (Hollywood Extended and CrossTask).
As detailed in Figure 4, CtrlNS achieved a Mean Correlation Coefficient (MCC) of 96.74 on synthetic data, nearly matching the ground-truth upper bound of 96.93. It also identified hidden regimes with 98.21% accuracy. On the Hollywood Extended dataset, CtrlNS improved the Mean-over-Frames (MoF) score to 52.9, outperforming the state-of-the-art ATBA baseline (47.7).
Conclusion
CtrlNS demonstrates that causal modeling and sparsity constraints can effectively handle nonstationary time-series data without domain labels. While computationally intensive for high-dimensional spaces and sensitive to initialization, it provides a robust theoretical and empirical foundation for unsupervised causal discovery in dynamic environments. Future work will focus on improving computational efficiency and handling cases with highly similar transition functions.
Summary updated