mlsanityData to 24 Nov 2026

Inference after coding agents

arXiv 2611.23174 ↗Submitted 17 Nov 2026Announced 18 Nov 2026stat.ME cs.AI econ.EMcited by 0

On the map: LLM agents and tool use → Web, search, and research agents also fits: General LLM agent frameworks and benchmarks

Abstract (arXiv)

Empirical research is changing rapidly as AI coding agents are becoming increasingly proficient in every step of it, from writing code to manipulating data. We argue that while the potential of coding agents for science is vast, their use in hypothesis testing poses a substantial threat to classical inference, as these agents enable a supercharged form of selective inference. In particular, we argue that coding agents carrying out empirical research introduce a new type of post-selection inference that combines human-like, open-ended search over an implicit space of estimators with programmatic replayability of both the selection and the estimation process. Indeed, we find that on simulated data with zero effects, four frontier agents report significant p-values between 54% and 98% of the time when asked to produce a compelling finding. We propose a simple procedure for detecting and correcting these distortions. After an agent has completed its analysis, we reset and replay it on subsamples of the data to estimate the agent's relative probability of selecting that analysis when it looks statistically favorable. For agents with stable selection behavior, the resulting corrected test is asymptotically valid and consistent conditional on selection. Importantly, the correction is learned from the black-box agent's actual choices rather than a model of how it searches, so it remains valid even as AI technology continues to evolve rapidly. In simulations, the correction robustly lowers the high false rejection rates to near the nominal 5%. We illustrate the method on applications from two published papers.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 12 of its 85 references that are in the map. Submitted 17 Nov 2026, announced 18 Nov 2026.

Builds on

12 of 85 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Automated Hypothesis Validation with Agentic Sequential Falsifications14 Feb

Other references · 11

  1. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 363
  2. 2014Optimal Inference After Model Selectioncited by 77
  3. 2025Probably Approximately Correct Labelscited by 12
  4. 2026The Agentic Garden of Forking Pathscited by 8
  5. 2026FUSE: Ensembling Verifiers with Zero Labeled Datacited by 5
  6. 2026Inference conditional on selection: a reviewcited by 4
  7. 2024Selective inference is easier with p-valuescited by 3
  8. 2026Nonstandard Errors in AI Agentscited by 3
  9. 2022Black-box Selective Inference via Bootstrappingcited by 2
  10. 2019Inference after black box selectioncited by 1
  11. 2025Flexible Selective Inference with Flow-based Transport Mapscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AI Coding Agents Can Reproduce Social Science Findings
  2. 2026From Experiments to Decisions: Reusing Evidence in Autonomous Coding Research
  3. 2025From Reproduction to Replication: Evaluating Research Agents with Progressive Code Masking
  4. 2026A case study of evaluating AI agents on a neuroscience data-to-discovery pipeline
  5. 2026AI Coding Agents in Social Science: Methodologically Diverse, Empirically Consistent, Interpretively Vulnerable
  6. 2026InferenceEvolve: Towards Automated Causal Effect Estimators through Self-Evolving AI
  7. 2026Identical Runs, Different Results: Benchmarking AI Coding Agents on Open-Weight Models
  8. 2026The Greatness of Science Cannot Be Planned: Agentic Auto-Research is Fuzz Testing