Causal Temporal Representation Learning with Nonstationary Sparse Transition

Xiangchen Song, Zijian Li, Guangyi Chen, Yujia Zheng, Yewen Fan, Xinshuai Dong, Kun Zhang

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.

Figure 3: Visualization of the three-phase training process showing the progression from domain identification to latent variable recovery.

As shown in Figure 3, the training process follows a distinct three-phase progression:

  1. Phase 1: Initial confusion where neither domains nor latents are clear.
  2. Phase 2: The model begins to correctly identify domain shifts ($u_t$ accuracy rises).
  3. 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).

Figure 4: Comparison of CtrlNS against baselines on synthetic data, highlighting its near-optimal performance in both latent recovery (MCC) and domain identification (Acc).

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

BibTeX
@inproceedings{song2024causal,
  author = {Xiangchen Song and Zijian Li and Guangyi Chen and Yujia Zheng and Yewen Fan and Xinshuai Dong and Kun Zhang},
  title = {{Causal Temporal Representation Learning with Nonstationary Sparse Transition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=J709rtAUD1},
}
Figure