Are LLMs Capable of Data-based Statistical and Causal Reasoning? Benchmarking Advanced Quantitative Reasoning with Data

Xiao Liu, Zirui Wu, Xueqing Wu, Pan Lu, Kai-Wei Chang, Yansong Feng

Introduction

While Large Language Models (LLMs) have demonstrated proficiency in text summarization and basic code generation, their ability to function as autonomous data scientists remains an open question. Real-world scientific inquiry necessitates advanced quantitative reasoning: the capacity to process raw data files (e.g., CSVs) to perform statistical inference or causal analysis. Existing benchmarks often focus on arithmetic or word problems, failing to capture the complexity of interacting with messy, real-world datasets. This paper introduces QRDATA, a new benchmark designed to quantify the "application gap" between theoretical knowledge and practical data analysis.

Overview of Statistical and Causal Reasoning tasks in the QRDATA benchmark.

Methodology and Datasets

The researchers evaluated several state-of-the-art LLMs, including GPT-4, Gemini-Pro, and Llama-2, using four distinct reasoning modes: Chain-of-Thought (CoT), Program-of-Thoughts (PoT), ReAct (an agentic iterative approach), and Code Interpreter Assistants (utilizing sandboxed execution environments).

The study utilizes two primary datasets:

  • QRDATA: The core benchmark consisting of 411 questions and 195 data sheets sourced from academic and professional materials. It covers Statistical Reasoning (probability, distributions, hypothesis testing) and Causal Reasoning (causal discovery and effect estimation).
  • QRTEXT: A control set of 290 questions where data is described in text rather than provided as a file, used to isolate failures in data handling from failures in mathematical logic.

Key Insights: The "Application Gap"

A primary finding of the study is the significant "Application Gap": models perform substantially better on QRTEXT than on QRDATA. This suggests that while LLMs possess theoretical "book smarts," they struggle with the "street smarts" required to parse, identify, and manipulate raw data columns correctly.

Furthermore, Causal Reasoning remains a major hurdle. All tested models struggled more with causal questions than statistical ones. Interestingly, experiments showed that models sometimes performed better on causal questions when they did not have access to the raw data, as the presence of data often led them to be "distracted" by correlations that were irrelevant to the underlying causal logic.

Performance Analysis

GPT-4 currently leads the field, achieving a peak accuracy of 57.9% on QRDATA when equipped with a code interpreter. However, this remains well below the human benchmark of 76% (established by graduate students), leaving an 18-point gap.

Performance of various LLMs across different prompting strategies and reasoning domains.

Open-source models, such as Llama-2-chat, struggled significantly, often failing to break the 25% accuracy threshold (near random guessing for multiple-choice). Error analysis revealed that 34% of GPT-4’s failures were specifically due to "Data Analysis" errors—misinterpreting data structures or failing to retrieve the correct variables for calculation.

Conclusion

The QRDATA benchmark highlights that bridging the gap between theoretical knowledge and practical data application is the next frontier for LLMs. While agentic approaches like ReAct and Code Interpreters show promise by allowing models to iterate on code, significant specialized training is required to move LLMs from simple "text-out" generators to reliable "insight-out" data analysis assistants.

Summary updated

BibTeX
@inproceedings{liu2024are,
  author = {Xiao Liu and Zirui Wu and Xueqing Wu and Pan Lu and Kai-Wei Chang and Yansong Feng},
  title = {{Are LLMs Capable of Data-based Statistical and Causal Reasoning? Benchmarking Advanced Quantitative Reasoning with Data}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.548},
}
Figure