[Paper Review] A Causal Framework to Quantify the Robustness of Mathematical Reasoning with Language Models
This paper proposes a causal inference framework to quantify the robustness of language models in mathematical reasoning by isolating the effects of input factors—such as numerical operands, operators, and textual surface forms—via do-interventions and causal mediation analysis. The key finding is that GPT-3 Davinci (175B) models show a dramatic improvement in both robustness and sensitivity compared to other GPT variants, suggesting a qualitative leap in reasoning fidelity.
We have recently witnessed a number of impressive results on hard mathematical reasoning problems with language models. At the same time, the robustness of these models has also been called into question; recent works have shown that models can rely on shallow patterns in the problem description when generating a solution. Building on the idea of behavioral testing, we propose a novel framework, which pins down the causal effect of various factors in the input, e.g., the surface form of the problem text, the operands, and math operators on the output solution. By grounding the behavioral analysis in a causal graph describing an intuitive reasoning process, we study the behavior of language models in terms of robustness and sensitivity to direct interventions in the input space. We apply our framework on a test bed of math word problems. Our analysis shows that robustness does not appear to continuously improve as a function of size, but the GPT-3 Davinci models (175B) achieve a dramatic improvement in both robustness and sensitivity compared to all other GPT variants.
Motivation & Objective
- To address the lack of a principled, comprehensive framework for evaluating the robustness of language models in mathematical reasoning tasks.
- To investigate whether large language models learn genuine mathematical reasoning or rely on superficial patterns in problem formulations.
- To disentangle the causal influence of input factors—such as numerical operands, operations, and textual framing—on model predictions.
- To provide a formalized, behaviorally grounded method for testing model robustness using causal inference in math word problems.
- To evaluate the impact of model size and instruction tuning on robustness and sensitivity in mathematical reasoning.
Proposed method
- The authors construct a causal graph modeling human-like reasoning, with nodes representing input factors (operands N, operations O, textual surface form S, ground-truth result G) and model prediction R.
- They apply do-interventions to manipulate specific input factors (e.g., changing N1, N2) while keeping the ground-truth result G fixed, enabling estimation of direct causal effects on predictions.
- Causal mediation analysis is used to decompose the total effect of input factors into direct and indirect pathways, isolating spurious correlations from genuine reasoning.
- The framework is applied across 13 GPT models, including instruction-tuned and non-instruction-tuned variants, to measure robustness and sensitivity across model sizes.
- The approach uses probabilistic prediction distributions P(R) to quantify changes in model behavior under controlled interventions.
- The method is validated on a benchmark of math word problems, with interventions designed to preserve semantic meaning while altering specific input components.
Experimental results
Research questions
- RQ1To what extent do language models rely on surface-level patterns in math word problems rather than true arithmetic reasoning?
- RQ2How do different input factors—such as numerical operands, operators, and textual framing—causally influence model predictions?
- RQ3Does model size or instruction tuning lead to a continuous improvement in robustness, or is there a qualitative threshold effect?
- RQ4How do the causal mechanisms of model predictions differ from those of human reasoning, as captured by the ground-truth result G?
- RQ5Can causal inference techniques be systematically applied to quantify and benchmark the behavioral robustness of LLMs in mathematical reasoning?
Key findings
- The GPT-3 Davinci (175B) model exhibits a dramatic improvement in both robustness and sensitivity compared to all other GPT variants, indicating a qualitative leap in reasoning fidelity.
- Among non-instruction-tuned models, larger size correlates with increased sensitivity to changes in the ground-truth result, but not necessarily with improved robustness.
- Instruction-tuned GPT-3 models show significantly enhanced robustness and sensitivity, suggesting that fine-tuning on instruction data improves causal reasoning behavior.
- Robustness in instruction-tuned models decreases as problem complexity increases, indicating a trade-off between generalization and complexity handling.
- The LLaMA family models show that instruction tuning (e.g., Stanford Alpaca) increases robustness but does not significantly improve overall performance, suggesting diminishing returns in this setting.
- The framework successfully identifies spurious correlations (e.g., between surface form S and prediction R), revealing that models can be misled by textual framing independent of numerical content.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.