AIFeed

Paper2Frame: Framework-Conditioned Paper-to-Code Generation with Coding Agents

Summary

arXiv:2612.04688v1 Announce Type: new 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,…

Original text(via arXiv cs.AI)

Computer Science > Artificial Intelligence

Title: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.
Comments:28 pages
Subjects:Artificial Intelligence (cs.AI) ; Software Engineering (cs.SE)
Cite as:arXiv:2612.04688 [cs.AI]
(or arXiv:2612.04688v1 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2612.04688 arXiv-issued DOI via DataCite (pending registration)

Submission history

Access Paper:

  • HTML (experimental)

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by arXiv cs.AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗