Causality by Abstraction: Symbolic Rule Learning in Multivariate Timeseries with Large Language Models
Authors:
- Preetom BiswasPBPreetom Biswas
- Giulia PedrielliGPGiulia Pedrielli
- K. Selçuk CandanKCK. Selçuk Candan
Preprint
Abstract
Inferring causal relations in timeseries data with delayed effects is a fundamental challenge, especially when the underlying system exhibits complex dynamics that cannot be captured by simple functional mappings. Traditional approaches often fail to produce generalized and interpretable explanations, as multiple distinct input trajectories may yield nearly indistinguishable outputs. In this work, we present ruleXplain, a framework that leverages Large Language Models (LLMs) to extract formal explanations for input-output relations in simulation-driven dynamical systems. Our method introduces a constrained symbolic rule language with temporal operators and delay semantics, enabling LLMs to generate verifiable causal rules through structured prompting. ruleXplain relies on the availability of a principled model (e.g., a simulator) that maps multivariate input time series to output time series. Within ruleXplain, the simulator is used to generate diverse counterfactual input trajectories that yield similar target output, serving as candidate explanations. Such counterfactual inputs are clustered and provided as context to the LLM, which is tasked with the generation of symbolic rules encoding the joint temporal trends responsible for the patterns observable in the output times series. A closed-loop refinement process ensures rule consistency and semantic validity. We validate the framework using the PySIRTEM epidemic simulator, mapping testing rate inputs to daily infection counts; and the EnergyPlus building energy simulator, observing temperature and solar irradiance inputs to electricity needs. For validation, we perform three classes of experiments: (1) the efficacy of the ruleset through input reconstruction; (2) ablation studies evaluating the causal encoding of the ruleset; and (3) generalization tests of the extracted rules across unseen output trends with varying phase dynamics.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- PYSIRTEM: An Efficient Modular Simulation Platform for the Analysis of Pandemic Scenarios2025
- Time-Series Large Language Models: A Systematic Review of State-of-the-ArtIEEE Access, 2025
- Spatial-Temporal Large Language Model for Traffic Prediction2024
- From News to Forecast: Integrating Event Analysis in LLM-Based Time Series Forecasting with Reflection2024
- SIRTEM: Spatially Informed Rapid Testing for Epidemic Modeling and Response to COVID-19ACM Transactions on Spatial Algorithms and Systems, 2022
- Optuna2019
- Short-term load forecasting using a long short-term memory network2017
- Investigating Causal Relations by Econometric Models and Cross-spectral MethodsEconometrica, 1969