arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.20115cs.SEcs.AI
收藏

AutoP2C:一种基于LLM的智能体框架,用于从学术论文的多模态内容生成代码仓库

AutoP2C: An LLM-Based Agent Framework for Code Repository Generation from Multimodal Content in Academic Papers

University of Science and Technology of China(中国科学技术大学);Johns Hopkins University(约翰霍普金斯大学)

Zijie Lin, Yiqing Shen, Qilin Cai, He Sun, Jinrui Zhou, Mingjun Xiao

AI总结:

本文提出AutoP2C,一种基于LLM的多智能体框架,用于将学术论文的多模态内容自动转化为可执行代码仓库,在八篇论文基准上全部成功,优于OpenAI-o1和DeepSeek-R1。

摘要:

机器学习(ML)研究通过包含丰富多模态内容(包括文本、图表和表格结果)的学术论文进行传播。然而,将这些多模态元素转化为可执行代码仍然是一个具有挑战性且耗时的过程,需要大量的ML专业知识。我们引入了“论文到代码”(P2C)这一新任务,该任务将科学出版物的多模态内容转化为完全可执行的代码仓库,这超越了现有的仅将文本描述转换为孤立代码片段的代码生成框架。为了自动化P2C过程,我们提出了AutoP2C,一个基于大型语言模型的多智能体框架,该框架处理研究论文中的文本和视觉内容以生成完整的代码仓库。具体来说,AutoP2C包含四个阶段:(1)从既有代码库中提取仓库蓝图,(2)多模态内容解析,整合来自文本、方程和图表的信息,(3)分层任务分解以进行结构化代码生成,以及(4)基于迭代反馈的调试以确保功能和性能。在包含八篇研究论文的基准测试上的评估证明了AutoP2C的有效性,它能够成功为所有八篇论文生成可执行代码仓库,而OpenAI-o1或DeepSeek-R1只能为一篇论文生成可运行代码。代码可在https://github.com/shoushouyu/Automated-Paper-to-Code获取。

英文摘要:

Machine Learning (ML) research is spread through academic papers featuring rich multimodal content, including text, diagrams, and tabular results. However, translating these multimodal elements into executable code remains a challenging and time-consuming process that requires substantial ML expertise. We introduce ``Paper-to-Code'' (P2C), a novel task that transforms the multimodal content of scientific publications into fully executable code repositories, which extends beyond the existing formulation of code generation that merely converts textual descriptions into isolated code snippets. To automate the P2C process, we propose AutoP2C, a multi-agent framework based on large language models that processes both textual and visual content from research papers to generate complete code repositories. Specifically, AutoP2C contains four stages: (1) repository blueprint extraction from established codebases, (2) multimodal content parsing that integrates information from text, equations, and figures, (3) hierarchical task decomposition for structured code generation, and (4) iterative feedback-driven debugging to ensure functionality and performance. Evaluation on a benchmark of eight research papers demonstrates the effectiveness of AutoP2C, which can successfully generate executable code repositories for all eight papers, while OpenAI-o1 or DeepSeek-R1 can only produce runnable code for one paper. The code is available at https://github.com/shoushouyu/Automated-Paper-to-Code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑