https://github.com/ayan-cs/caufr-ts
Implementation of the paper "CauFR-TS: Causal Time Series Identifiability via Factorized Representations." [Accepted with Minor Revisions at TMLR]
https://github.com/ayan-cs/caufr-ts
causal-discovery causal-inference causal-reasoning granger-causality granger-causality-analysis independent-component-analysis time-series-analysis time-series-forecasting
Last synced: about 2 months ago
JSON representation
Implementation of the paper "CauFR-TS: Causal Time Series Identifiability via Factorized Representations." [Accepted with Minor Revisions at TMLR]
- Host: GitHub
- URL: https://github.com/ayan-cs/caufr-ts
- Owner: ayan-cs
- License: mit
- Created: 2026-02-02T18:26:11.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-05-10T06:10:45.000Z (about 2 months ago)
- Last Synced: 2026-05-10T08:18:36.054Z (about 2 months ago)
- Topics: causal-discovery, causal-inference, causal-reasoning, granger-causality, granger-causality-analysis, independent-component-analysis, time-series-analysis, time-series-forecasting
- Language: Jupyter Notebook
- Homepage: https://openreview.net/forum?id=Al4OnLoQsp
- Size: 21.4 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CauFR-TS
Causal Time Series Identifiability via Factorized Representations
Accepted & Published at TMLR
## π₯Έ Overview
**CauFR-TS** is a neural framework for causal discovery in multivariate time series that explicitly enforces mechanism modularity at the representation level.
Unlike existing neural Granger causality methods that rely on shared latent encoders, CauFR-TS employs **dimension-wise factorized encoders**, preventing latent information leakage across variables. This design restores the conditional independence assumptions required for Granger causality and leads to **structurally identifiable causal graphs**.
In addition, CauFR-TS introduces a **data-driven, parameter-free adaptive thresholding** strategy based on Gaussian Mixture Models to robustly separate causal signals from noise.
---
## π€ Key Contributions
- **Factorized Encoder Architecture**
Each time series variable is encoded independently, eliminating latent confounding caused by shared representations.
- **Group-Sparse Decoder for Granger Causality**
Cross-variable dependencies are mediated exclusively through structured latent aggregation using group lasso regularization.
- **Adaptive, Data-Driven Thresholding**
A Gaussian Mixture Model is fit to decoder weight norms to automatically distinguish causal interactions from noise, avoiding heuristic cutoffs.
- **Strong Empirical Performance**
Consistent improvements over state-of-the-art baselines on synthetic chaotic systems and in silico biological benchmarks.
---
## π§ Methodology
CauFR-TS models the conditional distribution $p(x_t|x_{1:t-1})$ using a factorized variational architecture:
**1.** Each variable is processed by an independent Transformer-based encoder.
**2.** Latent variables are reparameterized and concatenated into a structured latent vector.
**3.** Multi-head decoders predict future values using group-sparse weights.
**4.** Causal adjacency is recovered via adaptive probabilistic thresholding on decoder weights.
This architecture ensures that all inter-variable information flow is explicitly mediated by the learned causal matrix.
---
## π΅βπ« Results & Visualizations
* π **Training Dynamics:**
- Evolution of group-lasso weights
- Separation of causal vs non-causal mechanisms
- Convergence of adaptive thresholds
* π **Causal Graph Recovery:**
- (Left) Ground-truth causal adjacency matrix
- (Middle) Estimated raw causal matrix obtained from the learned group-lasso decoder weights prior to thresholding
- (Right) The final binary causal graph after applying the proposed adaptive thresholding procedure
---
## π€ Execution
```
git clone git@github.com:ayan-cs/CauFR-TS.git
cd CauFR-TS
```
Make necessary changes based on your dataset. For a quick run on HΒ΄enon maps,
```
python train.py
```
---
## π£οΈ Contact
π§ Email: p23iot002@iitj.ac.in
π§ Email: ghoshayanabha@gmail.com
π Google Scholar
π LinkedIn