Predicting Causal Effects from Natural Language Queries using Structured Representations

Giuliano Martinelli, Piriyakorn Piriyatamwong, Abelardo Carlos Martinez Lorenzo, Jasmin Baier, Riccardo Orlando +5 more
5/28/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Randomized controlled trials are a cornerstone of medicine and the social sciences as they enable reliable estimates of causal effects. However, they are costly and time-consuming to conduct, motivating interest in predicting causal effects from existing experimental evidence.

Show full abstract

Recent advances in large language models (LLMs) have demonstrated strong performance on knowledge-intensive tasks, raising the question of whether these models can be used for forecasting causal effect sizes. To investigate this, we introduce Query2Effect, a new large-scale benchmark consisting of more than 72,000 natural language questions aligned with experiment descriptions, created to simulate realistic information-seeking scenarios by varying query specificity along dimensions of implicitness, abstraction, and ambiguity. We then propose a two-step framework that first generates a synthetic structured representation of a query before predicting effect size using a supervised encoder model. Experiments show that finetuning plays a crucial role in improving prediction performance, with absolute error reducing by -27% up to -71% compared to prompted out-of-the-box LLMs, and that our two-step framework is beneficial for out-of-domain generalization, highlighting the benefits of separating semantic interpretation from numerical effect estimation.

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{martinelli2026predicting,
  title  = {Predicting Causal Effects from Natural Language Queries using Structured Representations},
  author = {Giuliano Martinelli and Piriyakorn Piriyatamwong and Abelardo Carlos Martinez Lorenzo and Jasmin Baier and Riccardo Orlando and Satvik Garg and Sharif Kazemi and Linxi Wang and Arianna Legovini and Samuel Fraiberger},
  year   = {2026},
  eprint = {2605.29631},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.29631v1}
}

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.29631.svg)](https://codeofpaper.com/paper/2605.29631)

Discussion