ResearchCodeBench: Benchmarking LLMs on Implementing Novel Machine Learning Research Code

Tianyu Hua (Computer Science Department, Stanford University) · Harper Hua (Stanford University) · Violet Xiang (Stanford University) · Benjamin Klieger (Stanford University) · Sang Truong (Stanford University) · Weixin Liang (OpenAI / Stanford) · Fan-Yun Sun (Stanford University) · Nick Haber (Stanford University)
code generationcontaminationempirical findingserror patternsexecutable codeinnovationml contributionsopen-source modelsperformance comparisonpretrainingproprietary modelsresearchcodebench

Large language models (LLMs) have shown promise in transforming machine learning research, yet their capability to faithfully implement genuinely novel ideas from recent research papers—ideas unseen during pretraining—remains unclear. We introduce ResearchCodeBench, a benchmark that evaluates LLMs’ ability to translate cutting-edge ML contributions from top 2024-2025 research papers into executable code. We assessed 30+ proprietary and open-source LLMs, finding that even the best models correctly implement less than 40% of the code. We present empirical findings on performance comparison, contamination, and error patterns. By providing a rigorous evaluation platform, ResearchCodeBench enables continuous understanding and advancement of LLM-driven innovation in research code generation.