A Causal DAG Prior for Synthetic Time-Series Classification Datasets

Franco Martino O'Rourke, Ana Trisovic, Dimitris Bertsimas

TL;DR

Researchers have developed a novel synthetic data generator for time-series classification (TSC) based on causal Directed Acyclic Graphs (DAGs). By fine-tuning a transformer-based model (TabPFN) on these "causally-aware" synthetic datasets, they achieved significant performance gains on real-world benchmarks, proving that structured causal priors are a powerful way to bake inductive biases into time-series foundation models.

What Problem Does This Paper Address?

The current "status quo" for time-series foundation models is a two-stage process: first, pretrain a large encoder on unlabeled data, then attach and train a specific classifier head for a new task. This is clunky because the encoder doesn't "see" the labels during its first phase, and the two stages often optimize for different things.

An alternative is In-Context Learning (ICL), popularized by models like TabPFN for tabular data. These models are trained entirely on synthetic data and can classify new datasets in a single forward pass without further training. However, applying this to time series is hard because we lack a "prior"—a way to generate synthetic time-series datasets that include realistic labels and complex relationships (e.g., how a "soil type" attribute might affect a "humidity" time series, which in turn affects a "crop yield" label). Existing generators usually only produce single series, not complete, labeled datasets with cross-modal interactions.

Methods

The authors introduce a Causal DAG Prior. Instead of just generating random squiggly lines, they build a Structural Causal Model (SCM) represented as a DAG.

  1. Typed Nodes: The graph contains two types of nodes: tabular (single numbers) and series-valued (trajectories over time).
  2. Causal Mechanisms: Edges between nodes represent mathematical functions. Tabular-to-tabular edges use small neural networks; series-to-series edges use 1D convolutions (to capture temporal patterns); and series-to-tabular edges "flatten" the series to influence a scalar outcome.
  3. Root Data: "Root" series are generated using Gaussian Processes with random kernels (inspired by KernelSynth), while tabular roots are drawn from standard distributions.
  4. The Probe: To test if this prior actually helps, they took TabPFN v2.5 (a state-of-the-art tabular ICL model) and made minimal "surgical" edits to its input/output layers so it could handle time-series shapes without losing temporal order. They then fine-tuned it on their new causal generator.

Datasets

The model was evaluated on 75 datasets from the well-known UCR/UEA archives.

  • Selection Criteria: Because the underlying TabPFN architecture has limits, they used datasets with 10 or fewer classes ($K \le 10$) and a total feature count (channels $\times$ timesteps) of 500 or less.
  • Comparison: They compared their model against the standard TabPFN and a "tabular-only" version of their generator (an ablation) to see if the time-series-specific causal structures were actually doing the heavy lifting.

Key Insights and Ideas

  • The Prior is the Inductive Bias: In Prior-fitted Networks, the model's "intelligence" comes directly from the diversity and structure of the synthetic data it sees during training. By using a DAG, the authors are essentially teaching the model to look for "cause-and-effect" patterns across different variables and time steps.
  • Cross-Modality Matters: Real-world data isn't just time series; it's often a mix of static facts (like a patient's age) and dynamic data (like their heart rate). This generator is one of the first to natively model how these two worlds interact to produce a classification label.
  • Recurrence-Free Design: Instead of using recurrent neural networks (which can be unstable during training), the generator uses an acyclic graph to inject temporal structure. This makes the data generation process clean, fast, and highly scalable.

Key Results

The results were statistically decisive. The model fine-tuned on the full causal DAG prior (Configuration C) outperformed all others:

  • Significant Gains: It beat the standard TabPFN and the tabular-only ablation with a Wilcoxon signed-rank $p$-value of $3.0 \times 10^{-8}$ on ROC-AUC.
  • Ablation Proof: The "tabular-only" version of the generator actually performed worse than the base model in some cases. This confirms that the specific "series-aware" mechanisms (like the 1D convolutions and GP kernels) are what provide the useful learning signal.
  • Efficiency: Generating 100 synthetic datasets takes only about 28 seconds on a single CPU, making it a very practical tool for training large-scale models.

Limitations and Future Work

  • Scale Constraints: The current evaluation is limited to "small" time-series problems (up to 500 total points) due to the TabPFN backbone. Future work would involve scaling this to much longer sequences.
  • Backbone Agnostic: This paper focused on the generator, not the model architecture. The authors suggest that pretraining a model from scratch on this prior (rather than just fine-tuning) would likely yield even stronger results.
  • Multimodal Potential: The authors point out that this "typed node" approach could be extended to images (spatial nodes) or video (spatio-temporal nodes), potentially creating a unified prior for multimodal foundation models.

Summary updated

BibTeX
@inproceedings{orourke2026causal,
  author = {Franco Martino O'Rourke and Ana Trisovic and Dimitris Bertsimas},
  title = {{A Causal DAG Prior for Synthetic Time-Series Classification Datasets}},
  booktitle = {FMSD @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=A1Al2YF74W},
}
Figure