NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Language Models as Causal Effect Generators

Lucius E.j. Bynum, Kyunghyun Cho

TL;DR

This paper introduces Sequence-Driven Structural Causal Models (SD-SCMs), a framework that uses language models (LMs) to generate data with controllable causal structures. This enables the creation of novel benchmarks for causal inference, particularly for individual treatment effect estimation, and offers a new way to audit LMs for undesirable causal effects.

What Problem Does This Paper Address?

Reasoning about cause and effect is fundamental, but counterfactual scenarios (what would have happened) are inherently unobservable and must be simulated. Traditional methods for simulating causal data often require manually specifying complex functional relationships between variables. This is time-consuming and can be a bottleneck for creating realistic benchmarks, especially for evaluating methods that estimate individual treatment effects (ITEs). Furthermore, understanding the causal reasoning capabilities of large language models (LMs) themselves is an open challenge.

Methods

The core contribution is the Sequence-Driven Structural Causal Model (SD-SCM) framework. It combines:

  • User-defined Directed Acyclic Graphs (DAGs): These specify the causal relationships between variables.
  • Language Model (LM) defined mechanisms: Instead of manually defining equations, the LM's learned correlations and knowledge are used to generate the conditional distributions of variables.
  • Sequence-based variables: Variables are represented as natural language sequences (e.g., "The weather outside is sunny").
  • Domain-restricted sampling and parent-only concatenation: These are techniques used to sample data from the LM according to the specified DAG and variable structure.

This framework allows for the generation of observational, interventional, and counterfactual data by leveraging the LM's ability to generate text that implicitly encodes causal relationships.

Datasets

The paper introduces a new benchmark for causal effect estimation using SD-SCMs. They create a breast cancer dataset with 14 variables, generating 1,000 datasets of size 1,000 each, using variations of a specific DAG. This benchmark is designed to challenge existing causal inference methods, particularly when hidden confounders are present. The code and datasets are made publicly available.

Key Insights and Ideas

  • LMs as implicit causal engines: LMs, trained on vast amounts of text, have learned complex correlations that can be leveraged to define causal mechanisms without explicit programming.
  • Bridging the gap between LMs and causal inference: SD-SCMs provide a principled way to connect the generative capabilities of LMs with the formalisms of causal inference.
  • Challenging ITE estimation: The generated data reveals that even state-of-the-art methods struggle with individual treatment effect estimation, especially when key confounders are unobserved.
  • Auditing LMs for causal reasoning: The framework can be used to probe LMs for their understanding of causal relationships and to identify potential biases or misinformation encoded within them.

Key Results

  • Causal methods outperform non-causal ones: When evaluating treatment effect estimation on their generated benchmark, causal inference methods significantly outperformed non-causal baselines.
  • Hidden confounders are a major challenge: Performance of all tested estimation methods degraded substantially when key variables (U) were hidden, highlighting the difficulty of causal inference in realistic settings.
  • ITE estimation is particularly hard: Methods struggled to provide stable and informative interval estimates for individual treatment effects, often being either overconfident or vacuous.
  • LM choice matters: Different LMs (GPT-2 vs. Llama-3-8b) encoded different causal effects, demonstrating the variability in LM knowledge and the potential for auditing. For example, they found disagreements on the causal effect of PD-L1 expression on therapy choice.

Limitations and Future Work

  • Manual phrasing effort: Creating the sample spaces for variables currently requires manual effort to generate diverse phrasings, which could be automated.
  • LM's inherent knowledge: The generated causal structure is dependent on what the LM has already learned. Future work could involve training LMs to induce relationships based on input causal structures.
  • Benchmarking more complex causal structures: The current benchmark focuses on a sequential DAG. Exploring more complex structures (e.g., instrumental variables) is a promising direction.
  • Causal discovery: Using SD-SCMs to test causal discovery algorithms is a key area for future research.
  • Integrating causal reasoning into LM training: Developing models that can learn causal reasoning directly from sequential data is another important avenue.

Summary updated

BibTeX
@inproceedings{bynum2025language,
  author = {Lucius E.J. Bynum and Kyunghyun Cho},
  title = {{Language Models as Causal Effect Generators}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure