Paper2Frame: Framework-Conditioned Paper-to-Code Generation with Coding Agents
Abstract
LLM agents can turn the algorithm from a research paper into working code. Existing paper-to-code systems generate a separate standalone repository for each algorithm, while researchers collect and run algorithms inside a shared framework for consistent evaluation and maintenance. Implementing a paper inside such a framework requires reusing the base components that the framework shares across algorithms and placing each algorithm-specific behavior at the extension point where it belongs, without changing the core code of the framework. We propose Paper2Frame, which implements an algorithm on top of a framework by determining where each element of the algorithm belongs before writing code, using a map of extension points and reusable components that it builds from the framework source. To evaluate such implementations, we propose FrameJudge, which writes grading criteria from the paper and the framework separately and grades run success, algorithm accuracy, and framework faithfulness as three separate measures. We implement and evaluate 12 papers on three frameworks in federated learning (FL), whose algorithms have a complex structure that spans clients, a server, and communication rounds. Using three models, 94--100% of Paper2Frame implementations run successfully, with algorithm scores of 0.92--0.99 and framework scores of 0.83--0.89. We compare the implementations of Paper2Frame with the official code of seven papers under the same setting, and they reach a final accuracy within 3.1% of the reference code, which indicates that Paper2Frame implements the algorithms of the papers accurately.
Create a lesson
Metadata
- Categories
- cs.AI, cs.SE
- Comments
- 28 pages
Related papers
ReproBoundary: How Reliably Can Coding Agents Reproduce AI Research Papers?
Shared title terminologycs.AISuping Sun, Yelin Chen, Fanjin Zhang et al.
Agent Memory Scaling Laws for Verified Trainium Kernel Generation
Shared title terminologycs.AISimran Kaur, Evan Becker, Benjamin Bowman et al.
Predict the Product, Not the Observation: Product-Level World Models for Coding Agents
Shared title terminologycs.AIQingyao Li, Xinyi Dai, Di Yin et al.
MARPA: A Multi-Agent Large Language Model Framework Grounding Personalised Physical Activity Recommendations in Temporal Wearable Data
Shared title terminologycs.AIXiaotong Yu, Joshua Y. Kim, HaeJin Lee et al.
AgenticRei:A Holistic Security Framework for Agentic AI Systems
Shared title terminologycs.AIShara Bhuiyan, Dhruv Padam Kumar, Lalana Kagal et al.
From Solving Ability to Solvability: A Two-Stage Verifiable Reward-based Policy Optimization Framework for Math Word Problem Generation
Shared title terminologycs.AIZhuoxuan Jiang, Jing Chen, Tianyang Zhang et al.