TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Paper2Code: Automating Code Generation from Scientific Papers

133 点作者 Jerry227 天前

7 条评论

somethingsome27 天前
I like the idea of having automatic code creation from papers, but I’m scared of it.<p>Suppose you get a paper, you automatically implement the code, and then modify it a bit with a novel idea, and publish your paper. Then somebody else does that with your paper, and does the same.. at some point, we will have a huge quantity of vibe coded code on github, and two similar papers will have very different underlying implementations, so hard to reason about and hard to change.<p>From a learning perspective, you try to understand the code, and it&#x27;s all spaghetti, and you loose more time understanding the code than it would take to just reimplement it. You also learn a lot by not only reading the paper but reading the authors code where most of the small details reside.<p>And I&#x27;m not even talking about the reliability of the code, test to know that it&#x27;s the correct implementation. Authors try to make papers as close as possible to the implementation but sometimes subtle steps are removed, sometimes from inadvertance, sometimes because the number of pages is lionmited.<p>A paper and an implementation are not one-to-one mappings
评论 #43799790 未加载
评论 #43801768 未加载
评论 #43801693 未加载
colkassad27 天前
It would be neat to run their pdf through their implementation[1] and compare results.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;going-doer&#x2F;Paper2Code">https:&#x2F;&#x2F;github.com&#x2F;going-doer&#x2F;Paper2Code</a>
评论 #43801410 未加载
评论 #43798706 未加载
评论 #43800933 未加载
wzdd26 天前
I did this recently with a forward-mode AD paper, by just pasting the PDF into Claude. Like everyone, I&#x27;ve had mixed results with Claude coding, so I wouldn&#x27;t bet my life on the output, but Claude was able to produce something for Pytorch that worked first go, had appropriate performance characteristics, and it was able to convincingly explain the connection between parts of the generated code and the paper. I was impressed.
ks204826 天前
So who has a code2paper model that we can hook up in a loop?
brundolf26 天前
Not what OP is about, but idea I just had:<p>We should have the technology now to hand-write pseudocode on a piece of paper (or whiteboard or chalkboard), and have it translated and executed. Maybe you even hook up a projector, and project the output back onto the board
sitkack27 天前
I have had good results doing bidirectional programming in Tex &lt;=&gt; Python.
评论 #43801445 未加载
bjourne27 天前
It relies on OpenAI&#x27;s o3-mini model which (I think) you have to pay for.