Mask2Cause: Temporal Causal Discovery Beyond Causality in Mean

Omar Muhammad, Pasupuleti Dhruv Shivkant, Deepak N. Subramani
5/8/2026
cs.LGcs.AI
transformer-attention

No confident code implementation found for this paper.

Abstract

One approach to discovering causal relationships in multivariate time series is to ask whether a variable's history improves prediction of another variable. When this improvement is measured solely by reductions in optimal squared error, the criterion misses relationships that affect the target's conditional variance without changing its conditional mean.

Show full abstract

We propose Mask2Cause, an end-to-end Transformer framework for causal discovery through conditional mean and variance prediction. Each variable's history is embedded as a separate token, and a single learnable adjacency matrix, shared across layers and attention heads, controls information exchange between tokens. Gaussian negative log-likelihood and a sparsity penalty on this matrix jointly train the forecasting model and graph. Our population analysis connects the optimal log-loss reduction to causally conditioned directed information, providing an information-theoretic motivation for the training objective. We introduce Mixed Physics, a benchmark with separately controlled mean and variance dependencies, to evaluate recovery of mean-only and variance-only edges. In its pure-variance setting, Mask2Cause achieves 1.000 off-diagonal AUROC, compared with 0.521 for a corresponding squared-error model. Experiments on linear, chaotic, biological, and real-data-derived benchmarks demonstrate competitive graph recovery, while the inferred graphs support downstream tasks such as causal pruning for efficient forecasting and root-cause localization.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{muhammad2026maskcause,
  title  = {Mask2Cause: Temporal Causal Discovery Beyond Causality in Mean},
  author = {Omar Muhammad and Pasupuleti Dhruv Shivkant and Deepak N. Subramani},
  year   = {2026},
  eprint = {2605.07280},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.07280v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.07280.svg)](https://codeofpaper.com/paper/2605.07280)

Discussion