Fisher-R1: Training LLM Agents for Reliable Hypothesis Testing
Jiacheng Miao, Jin Mu, Guanhua Chen, James Zou
NeurIPS 2026
TL;DR. We release P-Bench, an expert-audited benchmark of 425 open-ended hypothesis-testing tasks, and train Fisher-R1, an open-weight 7B/14B LLM agent that do hypothesis testing more reliably than GPT-5.4 and DeepSeek-V4-Pro.
Abstract. Reliable hypothesis testing is the foundation of many empirical scientific claims. Large language model (LLM) agents are increasingly used to automate this process, as they can inspect datasets, generate code, and produce analyses end-to-end. However, we show that they frequently make subtle inferential errors that lead to incorrect conclusions despite correctly executed analyses. Existing benchmarks fail to capture this failure mode, as they rarely assess whether a reported p-value is statistically valid given the assumptions underlying the data. We address this gap by building P-Bench, a benchmark comprising 425 open-ended, realistic hypothesis-testing tasks spanning economics, biology, and medicine. Each task requires an agent to select a statistical method, compute a p-value, and draw a conclusion given only a scientific hypothesis and a dataset. We further introduce Fisher-R1, an open-weight LLM agent trained for rigorous hypothesis testing using synthetic tasks and reinforcement learning. On P-Bench, Fisher-R1-14B substantially improves over its backbone and outperforms strong proprietary and open-source baselines, including GPT-5.4 and DeepSeek-V4-Pro, achieving a 21% average relative improvement in single-trial success over DeepSeek-V4-Pro, with gains up to 26% on the most challenging tasks. Our results demonstrate that current LLM agents lack reliable statistical reasoning for hypothesis testing and that reinforcement learning on tasks with verified statistical reward substantially improves reliability. Code is available at https://github.com/jmu27/FisherR1.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (oral) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (oral)
Read decision
Meta-review
This works explores how LLM agents face inference errors in scientific rsearch analysis methods for hypothesis testing and proposed Fisher-R1, where P-Bench datasets (ststitsical hypothesis tasks, a total of 425 real world scientific tast) are used to train a Fisher-R1 vias supervised finetuning. They follow with DAPO reinforcement learning with a reward evaluating p-value accuracy and correctness of conclusions.
Strength
- Treats error in hypothersis testing as primary bottlnecj for LLM as scientific agents
- The P-Bench three-stage pipline ensures every answer key is grounded in logged reference execuation
- The P-Bench is well designed
- The Fischer-R1 model is well constructed
- Well written and technical sound
Weakness
- The approach will be problematic if the sample size increases
- The embedding similarity approach will not prove differences in statistical distribution
- Issue with algorithm design
- The training data is synthetic
- Potential bias in simulation template (generated by LLMs and checked by the Authors)
- Discuss or mention how the Fisher-R1 model could be extended to Bayesian analysis
Read meta-review
Meta-review
This works explores how LLM agents face inference errors in scientific rsearch analysis methods for hypothesis testing and proposed Fisher-R1, where P-Bench datasets (ststitsical hypothesis tasks, a total of 425 real world scientific tast) are used to train a Fisher-R1 vias supervised finetuning. They follow with DAPO reinforcement learning with a reward evaluating p-value accuracy and correctness of conclusions.
Strength
- Treats error in hypothersis testing as primary bottlnecj for LLM as scientific agents
- The P-Bench three-stage pipline ensures every answer key is grounded in logged reference execuation
- The P-Bench is well designed
- The Fischer-R1 model is well constructed
- Well written and technical sound
Weakness
- The approach will be problematic if the sample size increases
- The embedding similarity approach will not prove differences in statistical distribution
- Issue with algorithm design
- The training data is synthetic
- Potential bias in simulation template (generated by LLMs and checked by the Authors)
- Discuss or mention how the Fisher-R1 model could be extended to Bayesian analysis
1 comment
- Rating
- 5/6
- Confidence
- 5/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors tackle an increasingly important issue in scientific research: the use of LLMs in automating hypothesis testing. The authors introduce a new benchmark task, P-bench, that contains 425 open-ended hypothesis testing problems. This benchmark goes beyond existing benchmarks by explicitly assessing for the validity behind an LLM's conclusions following a statistical test and p-value. The problems spanned multiple domains including biology, economics, and medicine. The authors also introduce a model fine-tuned for hypothesis testing, Fisher-R1. Their results demonstrated that this fine-tuned model outperforms other models on the P-bench.
Strengths and weaknesses
Strengths: The authors make a very perceptive observation regarding the state of LLM capabilities and limitations of current benchmarks. The P-bench is very well designed and representative of real-world problems that LLMs have been used for. The Fisher-R1 model is thoughtfully constructed. Overall, this paper has many strengths and is technically sound.
Weaknesses: Currently, all these are assuming alpha = 0.05. Sometimes, a small p-value may just indicate a study being under-powered. Additionally, it may be worth mentioning how LLMs would reason through adjusting for multiple-comparisons (e.g., choosing appropriate adjustment method, adjusting across which comparisons, etc.). In the same vein, different fields have different thresholds for alpha. How would an agent reason through choice of threshold? The authors noted these issues in the Discussion.
Secondly, scientific hypotheses are not always tested through frequentist, inferential methods (i.e., p-value computation and evaluation). It may be worth mentioning, even briefly, in the discussion how the Fisher-R1 model may be extended to Bayesian analyses (assessing Bayes Factor in lieu of p-value).
Overall, great paper. It's clear that it yields strong preliminary work. Discussion on other techniques for scientific inference would further strengthen the paper.
Questions
-
How would you extend Fisher-R1 to consider other methods of hypothesis testing that are not based on frequentist p-values? For example, Bayesian analyses.
-
The choice of alpha is arbitrary. A human agent will choose a threshold based on their risk tolerance. How would a model like Fisher-R1 pick a threshold?
-
How would Fisher-R1 interpret a significant p-value but a small effect size? In a lot of clinical research, a small p-value is not meaningful without evidence of strong clinical significance (large effect size).
Limitations
Mostly. Several limitations to discuss are noted above (Bayesian methods, arbitrary choice of alpha, consideration of effect size).
Formatting concerns
No formatting concerns
2 comments
Rebuttal
We thank the Reviewer for the constructive comments and respond to each point below.
W1: Multiple-comparison reasoning
We added 30 benchmark tasks specifically designed to evaluate multiple-testing scenarios. A response is correct only if it identifies the appropriate hypothesis family, applies a valid procedure, and produces the correct adjusted decision for every hypothesis. Across three runs, Fisher-R1 achieves 83.3% accuracy, compared with 61.1% for its backbone, despite receiving no direct training on multiple-testing tasks. We will add this analysis and explicitly discuss multiple-comparison reasoning as an important extension of P-Bench.
W2 & Q1: Extension to Bayesian inference
Fisher-R1 can be extended by replacing the p-value target with an inference-specific, verifiable outcome. For Bayesian analyses, each training task would specify a likelihood and prior, and the agent would compute the Bayes factor. The RL reward would assess both log-Bayes-factor accuracy and consistency between the computed and the reported direction of evidence. As a preliminary evaluation, we have added a 30-task benchmark spanning six conjugate model families. Despite receiving no Bayesian-specific training, Fisher-R1-14B produces a valid numerical on 91.1% of tasks, compared with 68.9% for its Qwen2.5-Coder-14B backbone. Among the 24 tasks with an unambiguous evidence direction, Fisher-R1 correctly determines whether the evidence favors or in 56.9% of cases, versus 40.3% for the backbone. These results indicate partial zero-shot generalization beyond -value-based inference, while the modest absolute accuracy highlights the need for Bayesian-specific SFT and RL.
W1 & Q2: Choice of significance threshold
We clarify that Fisher-R1 is not intended to infer a universally correct significance threshold from the observed data. The choice of threshold reflects the researcher’s tolerance for risk, including the relative costs of false-positive and false-negative conclusions, as well as relevant disciplinary or regulatory conventions. In open-ended settings, the model should therefore elicit this information from the user. If no threshold is provided, it should clearly state any conventional value it assumes and report a sensitivity analysis across plausible thresholds rather than silently defaulting to 0.05.
Once the threshold has been prespecified, the model’s role is to apply it consistently. In our paired evaluation at thresholds of 0.1, 0.01, and 0.001, Fisher-R1’s final decision was consistent with its reported p-value and the requested threshold in 84.8% of outputs, compared with 61.5% for its backbone model. Our results therefore evaluate threshold-conditioned inference while treating the threshold itself as a transparent, researcher-specified decision parameter.
We additionally evaluated Fisher-R1 on 30 P-Bench tasks in which neither the user nor system prompt specified a significance threshold. In 22 cases (73.3%), Fisher-R1 explicitly adopted the conventional threshold of 0.05. In six cases (20.0%), it reached a threshold-robust conclusion because the p-value fell well above or below multiple conventional cutoffs. In the remaining two cases (6.7%), the threshold was left unspecified. These results further illustrate that, without explicit prompting, Fisher-R1 generally applies a conventional significance threshold (alpha = 0.05).
W1&Q3:Effect size and practical significance
We agree that statistical significance is not equivalent to clinical significance. A small -value provides evidence against the null hypothesis but does not indicate whether the effect size is clinically meaningful. Fisher-R1 should therefore report and interpret effect estimates and confidence intervals separately from -values. Although our current prompt requests these quantities, the P-Bench reward does not explicitly evaluate their clinical interpretation. We will clarify this limitation and identify effect-size interpretation as an important direction for extending the benchmark and reward function.
To assess this capability, we introduced 30-task benchmarks spanning six analysis families and five combinations of statistical and clinical significance (large effect size). Fisher-R1-14B outperforms its Qwen2.5-Coder-14B backbone in determining whether the confidence interval lies above, below, or overlaps a prespecified effect size (63.3% vs. 53.3%). These results show that Fisher-R1’s gains extend beyond -value reasoning to effect-size interpretation.
Follow-up on our response
Dear Reviewer,
Thank you again for your careful review and valuable feedback. We wanted to kindly follow up and ask whether our response has adequately addressed your main concerns. We would be glad to answer any additional questions or provide further clarification if needed.
Thank you again for your time and consideration.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces P-Bench benchmark comprising 425 real-world hypothesis-testing tasks. The authors also train Fisher-R1 open-weight LLM agent using synthetic executable tasks and RL with outcome-grounded rewards. The model outperforms several baselines, particularly on harder tasks requiring careful assumption checking.
Strengths and weaknesses
The paper identifies an interesting failure mode overlooked by existing benchmarks: LLM agents can generate executable, syntactically correct code while making subtle inferential errors that lead to invalid statistical conclusions.
The P-Bench three-stage pipeline (reproduce, filter, package) ensures every answer key is grounded in logged reference execution rather than transcribed from paper text. Expert auditing across sources also adds credibility.
However, the training data remains synthetic (simulated) whereas P-Bench is real-world. Synthetic data may have different noise structure, correlation patterns, and edge cases than published real data. The authors do not directly measure performance drop due to this domain shift.
Additionally, the simulation templates were drafted by an LLM and checked by authors. This introduces potential bias if the methods chosen reflect the model's training rather than statistical best practice. For instance, are there cases where a rank-based test is preferable but the LLM-drafted template defaults to a parametric approach? Plz share more details about how authors selected these, perhaps in the appendix?
The paper shows that Fisher-R1 achieves higher Strict scores than competitors but does not deeply analyze why the model fails on remaining tasks. A breakdown of errors would clarify where improvements are most needed. Do failures cluster on specific method families (e.g., Cox regression, IV estimation) or data characteristics (high missingness, outliers, clusters)? The paper also lacks error analysis for the backbone models to understand what SFT + RL overcomes.
The SFT trajectories are generated by Claude-Sonnet-4.6, and trajectories are filtered to keep only those matching the ground-truth decision with p-values within one order of magnitude. This filtering (83.5% retention!) raises questions: (i) What causes ~17% rejection? Are these cases where Claude recognizes ambiguity or error, or genuine mistakes? (ii) Does filtering toward the ground-truth decision bias the model toward the reference method, reducing its ability to recognize when alternative methods are defensible? (iii) How does teacher quality affect final performance? Would using a different model (such as GPT-5.4) as the teacher may lead to different results?
The paper compares against general-purpose coding models and a single data-analysis baseline (DataMind). There is no comparison with domain-specific statistical reasoning systems.
Questions
Can you provide a detailed breakdown of Fisher-R1's failure modes on P-Bench? Specifically:
- What fraction of failures are due to incorrect method selection vs. incorrect p-value computation vs. incorrect conclusion (given the reported p-value)?
- Are there method families where performance is significantly lower?
- How do failures correlate with data characteristics? For instance, small n, high missingness, extreme outliers, heavy clustering?
Limitations
In the discussion section, please clarify that Fisher-R1 is intended as a component of a larger scientific workflow, not a replacement for statistical review. Acknowledge and quantify the potential mismatch between synthetic training data and real-world published data. Discuss whether the model might overfit to simulation distributions or underfit to edge cases common in real data.
Final justification
I think the authors did a good job in rebuttal. I will keep my rating.
Formatting concerns
Line 796 in Appendix C.4 references "Table ??" (hyperref issue); should be Table C.4 or similar?
2 comments
Rebuttal
We thank the Reviewer for the thoughtful feedback. We have addressed each point below.
W1: Synthetic-to-real domain shift
Synthetic-to-real transfer is precisely the central contribution of our work. Fisher-R1 is trained exclusively on simulated, execution-verifiable tasks, yet substantially outperforms its backbone on real-world P-Bench analyses. This result directly demonstrates that capabilities learned from synthetic data transfer effectively to real scientific tasks. To further characterize performance across domains, we additionally evaluate Fisher-R1 on 88 held-out synthetic tasks, providing a controlled measure of its in-domain generalization.
| Model | Domain | Raw@1 | Raw@3 | Strict@1 | Strict@3 |
|---|---|---|---|---|---|
| Fisher-R1-7B | Synthetic | 87.9 | 98.9 | 78.4 | 90.9 |
| P-Bench (All) | 74.7 | 89.2 | 47.4 | 58.8 | |
| Drop | -13.2 | -9.7 | -31.0 | -32.1 | |
| Fisher-R1-14B | Synthetic | 95.8 | 100.0 | 86.7 | 93.2 |
| P-Bench (All) | 76.1 | 87.3 | 47.9 | 60.0 | |
| Drop | -19.8 | -12.7 | -38.8 | -33.2 |
The difference in Strict accuracy across the two benchmarks should not be interpreted as a direct measure of domain shift, because they differ substantially in task difficulty, method composition, and evaluation requirements. The relevant finding, and a central contribution of our work, is that training exclusively on synthetic, execution-verifiable tasks yields substantial improvements on real-world P-Bench tasks. The 88 held-out synthetic tasks characterize in-domain generalization rather than estimate a causal synthetic-to-real gap. A causal estimate would require matched synthetic and real task distributions, which are currently unavailable. We will clarify this distinction in the revised manuscript.
W2: Selection and validation of simulation templates
The statistical-method taxonomy was specified before the LLM was prompted to draft any templates. The 27 methods were selected to represent standard parametric, rank-based, causal, hierarchical, categorical, and survival procedures used across the target scientific domains. For each template, Claude was given a prespecified method and asked to generate a parameterized R implementation; it did not decide whether a parametric or rank-based procedure was appropriate. The authors subsequently verified the alignment among the scientific question, target estimand, null hypothesis, data-generating process (DGP), assumptions, canonical R implementation, and answer-key extraction.
Each clean template uses a DGP designed to support its prespecified estimand and method. For example, the Welch t-test template generates continuous Gaussian outcomes with potentially unequal variances, the paired t-test template generates approximately normal paired differences, and the OLS template uses a linear conditional-mean DGP. Rank-based procedures are represented by separate templates: Mann–Whitney tasks generate skewed two-group outcomes, Wilcoxon signed-rank tasks generate symmetric, heavy-tailed paired differences, and the corpus also includes Spearman correlation and Kruskal–Wallis tasks. Additional method-selection tasks introduce outliers, heavy tails, or nonlinear monotonic relationships that make naive parametric analyses inappropriate. Thus, the LLM does not default to a parametric procedure when constructing a task designed to require rank-based inference.
We will expand the appendix with a template-level table documenting the estimand and null hypothesis, DGP and assumptions, canonical implementation, alternatives considered, and author validation. We will also report Monte Carlo assessments of null calibration and sensitivity comparisons between related parametric and rank-based procedures, while explicitly distinguishing their respective estimands.
W3 & Q1: Detailed failure modes
We conducted a trace-level analysis of one fixed rollout on all 425 P-Bench tasks for Qwen2.5-Coder-7B and Fisher-R1-7B. Fisher-R1 achieves 212/425 Strict successes (49.9%), compared with 124/425 (29.2%) for the backbone, correcting 118 backbone failures while regressing on 30 successes. The largest improvement is operational: max-turn exhaustion, invalid answers, and unrecovered execution errors decrease from 185/425 (43.5%) to 36/425 (8.5%). Narrow method-selection errors also decrease from 50 to 29, although operational failures can prevent downstream statistical errors from being observed.
Among Fisher-R1’s 213 Strict non-successes, 78 (36.6%) involve model or design specification, including 29 incorrect method choices (13.6%); 65 (30.5%) involve perturbation or data-quality handling; 19 (8.9%) use an incorrect estimand or contrast; 13 (6.1%) compute the target quantity but report a different result; and 36 (16.9%) are operational failures. Only 2 cases produce a conclusion inconsistent with the reported p-value, and we find no standalone numerical p-value errors after holding the sample, estimand, model, weights, and variance estimator fixed. Thus, the main remaining challenge is identifying, specifying, and faithfully reporting an appropriate statistical analysis.
Performance varies across method families. Fisher-R1 improves substantially on Spearman correlation (7/55 to 42/55), log-rank tests (18/35 to 30/35), and Cox regression (5/20 to 12/20), but remains weak on IV/2SLS (6/24), and mixed-effects models (0/7), primarily because of incorrect model specifications.
Failure rates vary across data characteristics. Accuracy improves from 33.8% to 57.2% on clean tasks but only from 12.1% to 23.1% on perturbed tasks. Fisher-R1 remains unreliable under injected outliers, clustering, weighting, heavy tails, and substantial missingness; its accuracy declines from 69.1% with no missing cells to 10.5% when more than 20% of cells are missing. We do not observe a small-sample penalty, but only 13 tasks have n < 100.
W4:SFT trajectory filtering and teacher dependence
Among trajectories rejected by the stated QC criteria, 17.8% have a mismatched reject/fail-to-reject decision, 3.0% lack a parseable decision, 38.8% disagree with the reference on significance at (alpha=0.05), and 40.3% agree on significance but report a p-value differing by more than one order of magnitude. Thus, only a small fraction reflects an explicit inability to conclude; most provide a determinate analysis but disagree with the reference numerically.
The filter is method-agnostic: it does not require Claude to reproduce the reference method, implementation, or exact numerical result. We allow the reported -value to differ from the reference by up to one order of magnitude. This deliberately broad tolerance is intended to retain defensible alternative methods that target the same estimand and reach the same substantive conclusion. Because the data-generating process, target variable, and estimand are specified in advance for these synthetic tasks, the reference result serves as a numerical consistency check for the intended estimand rather than as a requirement to use a unique statistical method. Determining a principled threshold that distinguishes acceptable methodological variation from wrong methods remains an open question. We will clarify that the one-order-of-magnitude threshold is a pragmatic QC choice and acknowledge this limitation in the revised manuscript.
To examine teacher dependence, we repeated the same SFT procedure using GPT-5.4 generated trajectories. In one evaluation run, the resulting 7B model achieves Raw/Strict pass@1 of 58.6%/29.6% on P-Easy and 29.7%/10.8% on P-Hard. Compared with the Claude-teacher SFT results in Table 2, GPT-5.4 improves P-Easy Raw accuracy but does not improve Strict accuracy and performs worse on P-Hard, providing no consistent improvement from changing the teacher model.
W5, Domain-specific baselines
We added two domain-specific baselines using the same Qwen2.5-Coder-7B backbone: StatQA-FT, which reproduces the statistics-specialized LoRA recipe [1], and DARE-based retrieval, which supplements each task with the top three function-level documents retrieved from RPKB [2]. StatQA-FT achieves Strict pass@1/pass@3 of 38.6%/51.2% on P-Easy and 21.2%/31.5% on P-Hard. DARE achieves 32.3%/51.2% and 18.5%/32.4%, respectively, compared with 65.7%/74.9% and 30.6%/44.1% for Fisher-R1. These results suggest that method-applicability training and function-level retrieval alone are insufficient for end-to-end statistical analysis, which additionally requires selecting the estimand and procedure, checking assumptions, executing the analysis, and reporting the correct result.
Limitation
We will revise the Discussion to clarify that Fisher-R1 is intended to support a broader scientific workflow, not replace expert statistical review. We also acknowledge the shift between synthetic training data and real-world published data. This suggests that the model may overfit common simulation patterns and underperform on real-world edge cases. We therefore emphasize expert validation, evaluation on representative published datasets, and, where ethically and legally appropriate, the release of deidentified data and analysis materials in machine-readable formats suitable for model training and evaluation.
Paper Formatting Concerns: It should be Appendix C.4. We will correct it. Thanks for spotting it.
[1] Are Large Language Models Good Statisticians?” Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track
[2] DARE: Aligning LLM Agents with the R Statistical Ecosystem via Distribution-Aware Retrieval.” arXiv:2603.04743
Follow-up on our response
Dear Reviewer,
Thank you again for your thoughtful and constructive review. We would greatly appreciate it if you could let us know whether our response has addressed your main concerns. If any questions or concerns remain, we would be happy to provide further clarification or additional details.
Thank you for your time.
- Rating
- 2/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- use_inspired
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposed Fisher-R1 to show that LLM agents often make inference errors due to incorrect statistical method choices. The authors propose P-Bench (an open-ended hypothesis-testing benchmark comprising 425 real-world scientific tasks) and train Fisher-R1 via supervised fine-tuning, followed by optimization via DAPO reinforcement learning, with the reward simultaneously evaluating both p-value accuracy and the correctness of conclusions. The results show that Fisher-R1-14B significantly outperforms baselines such as GPT-5.4 and DeepSeek-V4-Pro on P-Bench, demonstrating that reinforcement learning (RL) with verifiable statistical rewards can effectively improve the reliability of statistical reasoning by LLM agents.
Strengths and weaknesses
-
Research motivation problem: this paper treats errors in hypothesis testing as the primary bottleneck for LLMs as scientific agents, yet provides almost no empirical evidence showing that errors in statistical inference are more prominent than other failure modes. For example: In what percentage of tasks did GPT-5 choose the wrong statistical test?
-
The entire paper is based on the premise that “only correct p-values can produce correct and reliable hypothesis tests”; this assumption becomes problematic when sample sizes exceed tens of thousands, causing statistical p-values to fail, or when dealing with unstructured medical or imaging data.
-
Although text embedding similarity analysis shows that the gap between the synthetic data generator and the true data distribution is lower in terms of “eval-to-train” similarity, this only proves that “prompts do not overlap”; it does not prove differences in statistical distribution.
-
I question whether the authors’ use of reinforcement learning is necessary, particularly since they should explain why instruction tuning did not work and why retrieval did not work.
-
Serious issues with the algorithm design: The authors’ data was self-simulated, and they used only p-value significance as a reward; furthermore, p-values from different statistical tests should not be directly compared.
Questions
I would like to know if the z-space reward compares p-values generated from different statistical tests using a unified normal-score transformation. Since p-values from different hypothesis tests may correspond to fundamentally different statistical models and assumptions, what is the theoretical justification for directly comparing them in z-space?
Limitations
First, P-Bench currently evaluates only single hypothesis-testing tasks and cannot reflect the complete workflows common in real scientific research, such as multiple testing, model comparison, and multiple-comparison correction. This may overestimate the reliability of LLM agents in actual research settings. Second, our outcome-oriented reward function relies primarily on the proximity of p-values in z-space. Although this provides a verifiable training signal, it lacks direct supervision over the soundness of method selection and the checking of statistical assumptions, potentially leading the model to produce p-values close to the target without developing rigorous statistical inference.
Formatting concerns
No
5 comments
Rebuttal
We appreciate the Reviewer’s detailed feedback and address each concern in turn below.
W1: Research motivation
We would like to clarify that our claim is not that hypothesis testing errors are the most prevalent failure mode, but that they are widespread in science and insufficiently captured by existing benchmarks. Our contributions are to introduce a benchmark that measures this capability, systematically characterize models’ inferential failures, and develop a scalable training recipe that substantially improves performance. This gap was also independently recognized by Reviewers aoB7 and EePM, who noted that existing benchmarks can overlook subtle inferential errors in otherwise executable code. We will revise the manuscript to articulate this motivation more precisely.
W2: Large sample size and unstructured data
We respectfully argue that a large sample size does not make p-values invalid. Under the null hypothesis and the assumptions of a correctly specified test, a valid p-value satisfies Pr(p ≤ α | H0) ≤ α for any significance level α, irrespective of sample size. Papers contain more than a million sample sizes and still use p-values as their statistical evidence [1]. Its validity therefore depends on selecting appropriate tests, precisely the type of statistical reasoning targeted in our work. We agree that large-sample results require careful interpretation, because they can make small effects statistically significant. We will clarify this distinction.
We further evaluate whether Fisher-R1’s statistical reasoning generalizes to sample sizes not represented in its training data. The maximum sample size for our training data is 4,800. P-Bench includes 49 tasks with at least 10,000 observations, including 10 with at least 50,000. On this subset, Fisher-R1-14B achieves 84.4% raw pass@1, compared with 72.8% for its backbone. We further introduce a 50-task benchmark spanning 10 diverse statistical designs and sample sizes from 10,000 to 100,000. On this benchmark, Fisher-R1 achieves 84.0% raw pass@1, versus 66.7% for its backbone. Because Fisher-R1has no large-sample problems during training, this shows that its statistical reasoning generalizes from smaller-sample to large-sample tasks.
Our current scope is structured statistical analysis rather than representation learning from raw medical images or other unstructured data. Applying Fisher-R1 to such settings would require an upstream procedure that converts the raw data into well-defined variables or endpoints, and we now state this limitation explicitly.
W3: Distribution gap between synthetic training data and the P-Bench
We have added analysis to show that the statistical distribution between training and eval data differs.
| Dataset characteristic | Synthetic training | P-Bench |
|---|---|---|
| Sample size (n), median | 480 | 902 |
| Number of variables (p), median | 4 | 9 |
| Datasets with any missing values | 2.1% | 49.2% |
| Absolute skewness, median | 0.130 | 1.351 |
| Absolute excess kurtosis, median | 0.304 | 2.760 |
| Maximum robust-outlier fraction, median | 0.0% | 3.18% |
| Datasets containing robust outliers | 25.1% | 73.7% |
| Categorical imbalance, median | 0.002 | 0.253 |
P-Bench datasets are larger and exhibit more missingness, skewness, heavy tails, outliers, and categorical imbalance. As a robustness check, a regularized domain classifier trained only on these meta-features achieves an AUROC of 0.987, confirming that the synthetic training and real evaluation datasets are readily distinguishable based on their intrinsic statistical characteristics.
W4: Why reinforcement learning
The controlled ablation in Table 2 shows that SFT (instruction tuning) alone fails to perform well. On P-Easy and P-Hard, strict pass@1 is 36.3%/13.2% for the backbone, 30.2%/14.3% for SFT-only, 44.4%/25.2% for RL-only, and 65.7%/30.6% for SFT+RL. Thus, RL provides the improvement beyond SFT, while the SFT warm start yields the best overall performance. We also added a paired failure analysis over 425 P-Bench tasks: operational failures—including max-turn exhaustion, invalid outputs, and unrecovered execution errors—drop from 61.9% with SFT-only to 8.5% with SFT+RL, with max-turn failures decreasing from 42.1% to 4.2%. These results show that instruction tuning alone is insufficient for reliable long-horizon execution, whereas verifiable RL improves workflow completion.
We further added a retrieval-augmented benchmark using DARE [2] with the same Qwen2.5-Coder-7B backbone, supplementing each task with the top three function-level documents retrieved from RPKB. Strict pass@1 was 32.3%/18.5% and pass@3 was 51.2%/32.4% on P-Easy/P-Hard. This shows that retrieval had little effect on P-Easy and only modestly improved P-Hard compared with the backbone.
W5 & Q1: Algorithm design
We respectfully argue that our algorithm is well-designed. We addressed those three points in order:
(1) Training on simulated data. As discussed in the manuscript, real datasets paired with unambiguous, execution-verifiable statistical answers are scarce. Simulation enables us to generate diverse statistical designs with controlled ground truth at scale. We show that training on simulated problems substantially improves hypothesis-testing performance on real-world scientific tasks. Although reliance on simulated data would be a concern if both training and evaluation were limited to simulation, our model is evaluated exclusively on real scientific hypothesis-testing tasks.
(2) Reward design. We clarify that our reward is not based only on p-value significance. Instead, it primarily measures continuous proximity between the reported and reference p-values in z-space (weight 0.9).
(3) Comparing p-values across tests. A p-value is defined relative to a specified null hypothesis, test statistic, and sampling distribution. Under the null hypothesis, any valid p-value satisfies P(p ≤ α | H₀) ≤ α and is exactly uniform for continuous, exactly calibrated tests. This shared type-I-error calibration allows p-values from different valid procedures to be evaluated against the same significance threshold. Our reward is therefore a tolerant scoring heuristic, not a claim of theoretical equivalence between tests. When an alternative procedure tests the same scientific null and is valid under the relevant data-generating assumptions, we assess its proximity to the reference result on a prespecified transformed p-value scale instead of requiring exact numerical agreement. We use z-space because it preserves the ordering of p-values and their significance thresholds while avoiding the severe compression of extremely small p-values near zero. This provides partial credit for modest differences arising from defensible alternative implementations, while assigning less credit to larger discrepancies that may indicate differences in the tested hypothesis, assumptions, sidedness, or calibration. As Reviewer aoB7 noted, the “ability to recognize when alternative methods are defensible” is precisely the property our training algorithm is intended to encourage.
To test whether explicit supervision of method selection provides additional benefits, we introduced a method-aware reward: , where indicates whether an acceptable method is used. This variant underperforms the original outcome-oriented reward: on P-Easy, Raw/Strict pass@1 decreases from 87.0%/65.7% to 86.7%/62.2%, while on P-Hard it decreases from 63.4%/30.6% to 58.1%/27.0%. These results suggest that coarse method-level supervision does not provide a more effective training signal, potentially because multiple procedures may be valid for the same inferential task.
Limitation
To evaluate generalization beyond single-hypothesis testing, we added a 30-task benchmark for multiple testing. A task is counted as correct only when the model applies a valid procedure to the appropriate hypothesis family and produces the correct adjusted decision for every hypothesis. Under this strict end-to-end criterion, Fisher-R1 completes 83.3% of tasks, compared with 61.1% for its backbone, despite receiving no direct training on multiple-testing problems. These results demonstrate generalization to multiple-testing and multiple-comparison workflows.
As discussed in W5, explicitly rewarding method correctness reduces overall performance, indicating that simply adding this reward is ineffective and may introduce conflicting learning signals. We further manually audited all 212 Strict-correct Fisher-R1 trajectories from a fixed rollout and found only seven cases (3.3%) in which a near-reference p-value was obtained using an incorrect method or target coefficient. Together with the improvement in Strict accuracy from 24.7% to 46.1%, this suggests that the gains primarily reflect improved end-to-end statistical reasoning rather than p-value approximation alone.
[1] Yengo et al. A Saturated Map of Common Genetic Variants Associated with Human Height. Nature 610, 704–712 (2022).
[2] DARE: Aligning LLM Agents with the R Statistical Ecosystem via Distribution-Aware Retrieval.” arXiv:2603.04743
Follow-up on our response
Dear Reviewer,
Thank you again for your thoughtful review. We would greatly appreciate it if you could let us know whether our response has addressed your main concerns. We would also be happy to provide any further clarification or answer additional questions.
Thank you for your time.
Response to the authors' rebuttal
Thank you for the detailed rebuttal. However, I still believe the paper has two fundamental methodological issues. However, this paper still suffers from serious statistical issues that raise concerns about the validity and reliability of its findings.
-
The assumption of a single "correct" statistical method is not valid. The benchmark assumes a single canonical reference analysis with a unique p-value and answer key. In practice, however, many hypothesis-testing problems admit multiple statistically valid approaches. For example: Kendall's tau (nonparametric), permutation tests (nonparametric), or bootstrap-based inference (nonparametric). Each of these approaches can be statistically justified depending on the assumptions, robustness considerations, and inferential objectives. If the benchmark accepts only one canonical method (e.g., Spearman), other equally valid analyses may be incorrectly treated as errors. Consequently, the benchmark appears to evaluate agreement with a predefined reference analysis rather than genuine statistical reasoning.
-
Using p-value similarity as the primary reward is inherently unstable. The proposed reward is dominated by p-value closeness, yet p-values are highly sensitive to sample size, outliers, preprocessing, and other analytical choices. Different statistically valid methods may legitimately produce different p-values while supporting the same scientific conclusion. Consequently, the reward may encourage reproducing the reference implementation instead of learning robust statistical reasoning across multiple valid inferential approaches.
Overall, although I appreciate the authors' thoughtful response, the rebuttal does not sufficiently address my primary concerns. Therefore, I will maintain my original score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewers and the Area Chair for their valuable feedback. We are encouraged that the reviewers found that (i) the paper identifies an important and overlooked failure mode of LLM scientific agents (R-aoB7, R-EePM), (ii) P-Bench is well designed and representative of real scientific problems (R-EePM), with logged executions and expert auditing that strengthen its credibility (R-aoB7), (iii) Fisher-R1 is thoughtfully constructed and outperforms multiple baselines (R-kQ3Z, R-aoB7, R-EePM), and (iv) the paper is technically sound and clearly written (R-aoB7, R-EePM).
We have added new experiments and clarifications and revised the paper accordingly.
A summary of our major changes is provided below.
We evaluated Fisher-R1 on a new benchmark with sample sizes from 10,000 to 100,000, demonstrating generalization to larger samples. We also clarified that sample size alone does not invalidate a correctly calibrated p-value, although negligible effects may become statistically significant.
We supplemented the embedding analysis with direct comparisons of statistical characteristics. A classifier based on these characteristics distinguishes the synthetic and real datasets with an AUROC of 0.987.
We clarified the design and rationale of the z-space reward, added SFT/RL and method-aware reward ablations, and audited all 212 Strict-correct trajectories, finding that only seven (3.3%) involved an incorrect method or target coefficient.
We clarified that this is a central contribution of our work: because real scientific datasets paired with unambiguous, execution-verifiable answers are scarce, large-scale synthetic training provides a scalable alternative and substantially improves performance on real-world scientific tasks. We also quantified the remaining gap between synthetic and real-world performance.
We clarified that the 27 methods were specified before LLM-assisted template generation and added template-level documentation and calibration analyses.
We added the evaluation of Fisher-R1 on Bayesian inference, demonstrating its generalization. We also explained how Fisher-R1 could be extended using verifiable rewards for log-Bayes-factor accuracy and evidence-direction consistency.
Detailed responses and results are provided in the rebuttal for each reviewer.