TL;DR
RECODE-H is a new benchmark designed to evaluate how well Large Language Models (LLMs) develop complex scientific research code through iterative, multi-turn human feedback. Unlike previous "one-shot" benchmarks, RECODE-H mirrors real-world workflows, revealing that while feedback dramatically boosts performance, the primary bottleneck for AI agents isn't syntax—it's deeply understanding the scientific "intent" behind a research paper.
The Challenge of Scientific Code Generation
While LLMs have become surprisingly adept at writing boilerplate code or solving LeetCode-style puzzles, generating executable code for a scientific research paper is a different beast. Research code is often underspecified; papers describe methods through high-level narratives and complex mathematical formulas, leaving the "nitty-gritty" implementation details implicit.
Existing benchmarks (like HumanEval or BigCodeBench) typically evaluate models in a non-interactive, "one-shot" setting. However, no researcher writes perfect code on the first try. Real-world development is a conversation: you write a draft, it fails a test, you get feedback, and you refine. The authors argue that we lack a rigorous way to measure how well LLM agents can participate in this iterative refinement process within the context of high-level scientific research.
Methods: The RECODE Framework
The authors introduce three core components to tackle this evaluation gap:
- RECODE-H Benchmark: A collection of 102 tasks curated from top-tier AI research papers (CVPR, ICML, NeurIPS, ICLR) published between 2023 and 2025. Each task requires implementing a specific module, class, or function that corresponds to a methodological description in a paper.
- A Five-Level Feedback Hierarchy: To systematically test "receptivity," the benchmark provides feedback at increasing levels of granularity:
- Level 0: Simple "execution failed" notification.
- Level 1: High-level error description.
- Level 2: Diagnostic insight (why the error occurred).
- Level 3: Natural language instructions on how to fix the logic.
- Level 4: The exact ground-truth code snippet (the upper bound).
- ReCodeAgent: A feedback-driven agent framework based on the ReAct (Observation, Reflection, Planning, Action) loop. It manages a limited memory buffer to keep the context window manageable while incorporating iterative feedback from a simulated "researcher."
Datasets and Evaluation
The primary dataset spans diverse domains including Machine Learning, NLP, Computer Vision, Graph Learning, and Time-Series modeling. Each of the 102 tasks includes the original paper text (LaTeX), structured instructions, unit tests with a strict 80% code coverage requirement, and canonical implementations. Evaluation relies on metrics like Recall@n (tasks solved within $n$ turns), Mean Reciprocal Rank (MRR), and code similarity metrics like CodeBLEU.
Key Insights
- The "Semantic Gap" is the Real Boss: Error analysis shows that models rarely fail due to bad syntax. Instead, they fail because they misunderstand the paper's instructions or lack domain-specific context. Scaling up models helps with syntax, but "semantic fidelity"—truly grasping the math—remains the frontier.
- Non-linear Gains: The biggest performance boost often comes from moving from Level 0 to Level 1. Just knowing what went wrong (even vaguely) is often enough for a strong model to self-correct.
- Feedback Receptivity is a Distinct Skill: Not all models are equally "coachable." Larger models show a strong ability to adapt to richer feedback, whereas others tend to plateau early, struggling to incorporate complex instructions into subsequent turns.
- Adoption is Mandatory: Almost every successfully corrected error occurred only after the model explicitly adopted the provided feedback. Models that "ignored" the researcher's hints almost never stumbled upon the right answer by accident.
Key Results
Interaction provides a massive uplift in performance. For instance, GPT-5’s recall jumped from 29.4% (no feedback) to 71.6% with Level 4 feedback. DeepSeek-V3.1 saw a similar surge from 10.8% to 70.6%.
Richer feedback doesn't just increase the success rate; it accelerates convergence. Stronger models solved tasks in significantly fewer turns when provided with Level 3 or 4 guidance.
Interestingly, a small-scale study with real human feedback showed that humans are often "noisier" and less prescriptive than the simulated LLM-expert. Models performed better with the structured, "perfect" feedback from the simulator, suggesting that LLM agents still need very clear, high-quality guidance to succeed.
Limitations and Future Work
While the benchmark uses a simulated researcher for scalability and reproducibility, real human feedback is often ambiguous or incomplete. Future versions may need to model this "human noise." Furthermore, the benchmark currently focuses on repository-level functions and classes. It does not yet evaluate the ability to architect an entire research repository from scratch or handle the "ideation" phase of research. The authors suggest expanding RECODE-H to include multi-agent collaboration and integrating it into broader "AI Scientist" workflows.
Summary updated