Abstract
Temporal Causal-based Simulation (TCS) is a novel framework designed to generate realistic synthetic time-series data that preserves underlying causal relationships. By integrating automated causal discovery, flexible functional modeling, and a "min-max" optimization strategy, TCS overcomes the limitations of traditional synthetic data generators which often rely on overly simplistic assumptions such as linearity and Gaussian noise. Experimental results across diverse real-world and semi-synthetic datasets—including electricity transformer data, financial portfolios, and brain activity models—demonstrate that TCS produces data that is significantly more representative of complex systems. This framework provides a robust "causal sandbox" for evaluating discovery algorithms against ground truth that mirrors real-world complexity.
Introduction
The evaluation of Causal Discovery (CD) algorithms—essential for identifying directional relationships in data—is fundamentally limited by the lack of ground truth in real-world time-series. In domains like climate science or financial markets, the underlying causal mechanisms are rarely known with certainty. Consequently, the field relies heavily on synthetic data. However, standard synthetic generators often produce "toy" models with linear relationships and random structures that fail to capture the non-linear, time-lagged complexities required for training modern foundation models. TCS addresses this gap by "re-simulating" real datasets to extract and replicate their inherent causal structures, moving beyond simple summary graphs to detailed time-lagged representations.
The TCS Framework
The TCS pipeline operates in three distinct phases to reconstruct the data-generating process of a source dataset:
- Causal Discovery: The system first estimates the lagged causal structure. For instance, it identifies if variable $X$ at time $t-2$ causes variable $Y$ at time $t$. This phase utilizes established methods such as PCMCI, DYNOTEARS, or transformer-based models like CausalPretraining.
- Functional Dependency Approximation: Once the "parents" of a variable are identified, TCS fits a forecasting model to learn the specific functional form of the influence. Options range from Random Forests and 1D-Convolutional Networks to large-scale foundation models like TimesFM.
- Noise Distribution Estimation: The framework calculates residuals (the "noise") and models their distribution. This can involve simple parametric fits or complex Normalizing Flows (e.g., Neural Spline Flows) to capture non-Gaussian characteristics.
Min-Max Optimization
Inspired by the adversarial training of GANs and the automated selection of AutoML, TCS employs a "min-max" strategy to select the optimal simulator configuration. It performs a grid search over various combinations of the three phases. The performance of each configuration is evaluated using an optimized Classifier 2-Sample Test (C2ST). The objective is to find a simulator that minimizes the ability of a "maximized" (highly tuned) discriminator to distinguish between real and synthetic data.
Evaluation and Insights
The authors evaluated TCS on a diverse array of datasets, including real-world electricity (ETTh1), weather (WTH), and air quality data, as well as semi-synthetic financial and fMRI models. A key insight from this evaluation is that standard metrics like Maximum Mean Discrepancy (MMD) can be highly misleading.
The study highlights two critical components for realistic generation:
- Optimized Discriminators are Key: As shown in the t-SNE analysis, data distributions may appear visually overlapping, yet a well-tuned Support Vector Classifier (SVC) or LSTM can achieve high AUC scores in distinguishing them. By using AutoML to tune these discriminators, TCS sets a much higher bar for "realistic" generation than previous methods.
- The Sparsity Necessity: Without a specific "sparsity penalty," causal discovery often defaults to overly dense graphs with excessive edges. TCS introduces a permutation-based test to ensure the discovered graph is as simple as possible without losing predictive power, preserving the "causal essence" of the source data.
Results and Conclusion
In head-to-head comparisons with state-of-the-art methods like CausalTime, TCS-generated data was consistently harder for optimized discriminators to identify. Furthermore, when synthetic data from TCS was used to train other CD algorithms, the resulting graphs closely matched those derived from the original real data, confirming the framework's efficacy.
While TCS currently assumes causal sufficiency and stationarity, it represents a significant step forward in providing high-fidelity synthetic data. The public availability of the TCS code invites the community to expand this "causal sandbox," facilitating the development of more robust and reliable time-series foundation models.
Summary updated