Why I wrote this为什么写这篇
The trigger was a post on Twitter that billed itself as the most complete guide to doing research with AI. Its flowchart and tool list ran from literature search to paper generation and made the problem look solved. It was plainly generated by handing a few articles to an AI. Anyone who has run a full set of deep learning experiments with AI knows that the hardest and messiest parts of research had been drawn over with boxes and arrows. The real path forks and turns back. This post collects the mistakes I made and what I learned from them.
起因是 Twitter 上一篇自称「全网最完整 AI 科研终极指南」的帖子。它的流程图和工具列表从文献检索一直排到论文生成,看完会觉得 AI 做科研已经解决了。看得出作者是把几篇文章交给 AI 自动生成了这篇帖子。真正用 AI 跑过整套深度学习实验的人知道,科研里最难、最乱的部分在那张图里被方框和箭头略过了:实际的路有分叉,也会折回。我把自己踩过的坑和攒下的经验写在这里。
I am a CS PhD student at a top-10 school. I have published at CVPR, ICCV, ICML and NeurIPS and have reviewed for most of the major venues, so I can judge whether what an AI produces meets a basic research standard.
我在 CS 排名前十的学校读博,在 CVPR、ICCV、ICML、NeurIPS 发过论文,给主流会议基本都审过稿,能判断 AI 产出的东西有没有基本的科研质量。
My main models are Claude Opus 4.6, GPT-5.4 xHigh and Gemini 3.1 Pro. I advise against using weaker models for any kind of research exploration; it wastes your time. I subscribe to Claude Max 20x, two ChatGPT Pro plans, five ChatGPT Plus plans, a Gemini Ultra family plan and Super Grok. I use up nearly all of my Claude quota each month, most of it on research. I list these to show that I built this workflow from scratch, revised it many times and actually ran it end to end.
我的主力模型是 Claude Opus 4.6、GPT-5.4 xHigh 和 Gemini 3.1 Pro。我不建议用能力弱的模型做任何科研探索,那是浪费时间。订阅有 Claude Max 20x、两个 ChatGPT Pro、五个 ChatGPT Plus、Gemini Ultra 家庭组和 Super Grok;Claude 的额度每月基本用完,一大半用在科研上。列这些是想说明,这套工作流是我从零搭起、反复修改并实际跑通的。
I cloned and compared Paper2Code[1], Sakana AI's The AI Scientist[2], Oh My Research, the Hermes research skill and every other automated research framework I could find. My conclusion is that these general-purpose libraries do almost nothing to help you publish valuable work. AI is useful for research; off-the-shelf agent systems are not. The workflow has to be built for your own field and direction. Without the ability to debug the system and control its context, a ready-made agent will not produce good research, and low-quality output revised a dozen times is no better than low-quality output generated in one pass.
Paper2Code[1]、Sakana AI 的 The AI Scientist[2]、Oh My Research、Hermes research skill,以及能找到的其他自动化科研框架,我基本都 clone 下来比较过。结论是,这些通用库对真正发出一篇有价值的工作几乎没有帮助。我不是说 AI 做科研没用,而是说开箱即用的 agent 系统没用:工作流要按自己的领域和方向定制。没有调试系统、控制上下文的能力,靠现成的 agent 产不出高质量的科研;迭代过十几次的低质量产出,和模型一次生成的低质量产出没有区别。
Research skills built around models reviewing each other, multi-model voting or looping over a paper for many rounds sound sophisticated, but in my view most of them answer needs nobody actually has. Two hours with Claude gets you three versions of your own, which is faster than cloning someone else's skill.
「AI 互相 review」「多模型投票」「多轮循环改论文」这类科研 skill 听起来高级,在我看来大多是凭空想出来的伪需求。自己交给 Claude 两个小时就能迭代出三版,比 clone 别人的 skill 高效。
This is not a guide either. Everything here applies to deep learning research only, and it is my own experience, lessons included.
这篇也不是指南。所有经验只针对深度学习的科研工作流,是我个人使用中的经验和教训。
Context上下文
While iterating on this system, one idea became steadily clearer to me, and I put it as "Context Is All You Need". A polluted context makes a model's ability collapse. When an AI keeps failing to fix a bug, it may well be capable of fixing it; its context has been led astray. Every design choice, every mistake and every final decision below serves one purpose: keeping each session's context under control.
迭代这套系统的过程中,有一条认识越来越清楚,我把它叫作 Context Is All You Need:被污染的上下文会让模型能力崩溃式下降。AI 一直修不好一个 bug,不一定是它没有这个能力,而可能是它的上下文已经被带偏了。后面的设计、踩过的坑和最终选的方案,都在做同一件事:管住每个 session 的上下文。
What counts as research什么算 AI 做科研
Many AI research tutorials online teach you to make an AI produce something that looks like a paper. The pipeline runs, a well-typeset PDF comes out, and a few agents review each other. That is not research.
网上很多 AI 科研教程,教的是让 AI 生成一篇看起来像论文的东西:流程跑通,输出排版精美的 PDF,再让几个 agent 互相评审一番。那不是科研。
In my view, AI taking part in research has to hold one line: no fabrication of any kind, anywhere in the process. Every conclusion has a clear source. The proposed idea and the implemented method correspond one to one. Every experimental result comes directly from training real code, and anyone who follows the method as the paper describes it can reproduce the code and get the same results.
我认为 AI 参与科研至少要守住一条底线:整个过程没有任何形式的造假。每个结论有明确出处;提出的 idea 和最终实现的方法一一对应;每个实验结果都是真实代码训练出来的,任何人按论文里的方法描述都能复现代码、跑出一致的结果。
Without that, what AI produces is academic junk, and junk that looks more polished and does more harm to the literature. The purpose of the workflow below is not to make the AI write prettier papers. It is to make sure the idea has been tested, the experiments were actually run and the paper can be reproduced.
做不到这些,AI 产出的就是学术垃圾,而且外表更精致、污染性更强。后面整个工作流的目的从来不是让 AI 写得更好看,而是确保 idea 经过验证、实验确实跑过、论文能够复现。
This is much harder than most people think, and I think it is worth doing because it points to a longer-term picture. GPU capacity in the future would be split three ways: some to train stronger foundation models, some for everyday inference, and some handed to each specific field, where AI explores the frontier of that field and pushes it forward. The picture only holds if the research AI produces is real. If the results cannot be trusted, the whole path is closed from the start.
这件事比多数人想的难,但我认为值得做,因为它指向一个更远的设想:将来的显卡资源分成三份,一份训练更强的基础模型,一份用于日常推理,还有一份交给各个具体领域,让 AI 去探索这个领域的最高水平,推动学科前进。这个设想成立的前提是 AI 做出的科研是真实的;结果的真实性保证不了,这条路从根上就走不通。
The workflow流程
A deep learning paper goes from nothing to submission roughly through literature review, choosing a baseline, reproducing the baseline, proposing an idea, implementing it, running experiments, analysing the results and writing the paper. This post stops before implementation.
一篇深度学习论文从零到投稿,大致经过文献调研、确定 baseline、复现 baseline、提出 idea、实现 idea、跑实验、分析结果、写论文。这篇写到实现 idea 之前。
The path is not a straight line. The steps from proposing an idea to analysing results form a loop: when an implemented idea does not work, you go back and think again; when the results look promising but the method has problems, you go back and change it. A paper often goes around this loop several times before it is final. The idea itself matters less than it seems. What is valuable is the exploration around it and the analysis of what comes out. An idea that gives a good result straight away is not the best research, and that idea is not really yours; the results you reach through exploration are. This view comes from Saining Xie.
这个流程不是一条直线。从提出 idea 到分析结果是一个循环:idea 实现了发现不 work,回去重想;结果有苗头但方法有问题,回去重改。一篇论文定稿前,这个循环往往要转好几轮。idea 本身也没那么重要,有价值的是围绕它做的探索和对结果的分析。一个 idea 直接拿到好结果并不是最好的科研,这个 idea 也不属于你;经过探索拿到的结果才属于你。这段看法来自谢赛宁(Saining Xie)。
I have several models work together throughout. Claude, GPT and Gemini each have clear strengths, and letting them review each other's work is a form of ensembling, which improves results in almost any setting at little cost. These models were trained separately, on different data and in different ways, so their knowledge coverage, ways of reasoning and tendencies to hallucinate all differ. Using each where it is strong and having them cross-review matters throughout the workflow. How exactly the models call and talk to each other is outside the scope of this post.
全程我让多个模型协作。Claude、GPT、Gemini 各有明显长处,让它们交叉评审相当于一种 ensemble,而 ensemble 几乎在任何场景下都能稳定提升效果。这几家模型是用不同的数据、不同的方式分别训出来的,知识覆盖、思考方式和幻觉倾向都不一样;用好各自的长处、让它们交叉评审,在整个工作流里很重要。模型之间具体怎么调用、怎么交互,这篇不展开。
Each stage runs in its own session, so context does not leak from one stage into the next.
每个阶段在一个独立的 session 里做,上下文不在阶段之间渗透。
The table lists, for the steps this post covers, who does the work, what it does and what is in its context.
下表按本篇写到的几步,列出谁来做、做什么、上下文里有什么。
| Step步骤 | Who谁来做 | What it does做什么 | In its context上下文里有什么 |
|---|---|---|---|
| Literature review文献调研 | Claude dispatches; a scout agent on Gemini CLI searchesClaude 分派,scout agent(Gemini CLI)搜索 | Claude turns the request into a structured description; Gemini splits it into searches from several angles, focusing on work accepted at top venues and released with codeClaude 把需求转成结构化的描述;Gemini 拆成多角度的搜索,重点关注中了顶会、附带开源代码的工作 | The papers' LaTeX or Markdown source, only the abstract and introduction论文的 LaTeX 或 Markdown 源文件,只读摘要和 introduction |
| Reproducing the baseline复现 baseline | A sub-agent or exec, not the main threadsub-agent 或 exec,不在主线程 | Sets up the environment, downloads the data and runs the baseline配环境、下载数据集、跑 baseline | Install errors and download logs stay here; the main thread only collects results安装报错和下载日志留在这里,主线程只收结果 |
| Proposing ideas提出 idea | GeminiGemini | Produces about 10 ideas in one run, each with a short description一次生成大约 10 个 idea,每个带一段简要描述 | Only the literature review and the baseline information只有文献调研的结果和 baseline 信息 |
| Reviewing ideas评审 idea | CodexCodex | Reviews each idea on novelty, feasibility, fit with the baseline, implementation complexity and expected improvement; gives go, revise or kill逐个评审 novelty、技术可行性、和 baseline 的兼容性、实现复杂度、预期提升,给出 go、revise 或 kill | Only the baseline paper being followed and the description of the current idea只有要 follow 的 baseline 论文和当前这一个 idea 的描述 |
| Final call最终决定 | ClaudeClaude | Takes the top-ranked idea; on revise, decides whether to adopt the suggested changes接手排名最高的 idea;判定为 revise 时决定是否采纳修改建议 | The selected idea and Codex's comments选出的 idea 和 Codex 的意见 |
| Checking the chosen idea复查选定的 idea | GeminiGemini | Runs one more targeted literature review: has anyone done this, is there room to refine it针对这个 idea 再做一次文献调研:有没有人做过、还有没有打磨的空间 | The chosen idea选定的这个 idea |
Literature review文献调研
Given the right tools, an agent does literature review better than a person. It can hold far more in its context window and reads far faster, so it covers many more papers in a short time than you would going through them one by one. The question is how to make it find the papers that are actually relevant.
接上合适的工具以后,文献调研这件事 agent 一定比人强:它的上下文窗口装得下的知识和阅读速度都远超人,短时间内能扫过大量论文,覆盖面远超自己一篇篇翻。问题在于怎么让它搜到真正相关的东西。
I first tried two routes. The first was to connect every MCP I could, arXiv, Hugging Face and web search, on the theory that more sources would mean wider coverage. In practice it rarely found anything valuable, and the related papers I found myself were better. The second was to connect Zotero, so that the agent would search the papers I had already read first. In hindsight this was a mistake. The papers I have read are too few to serve as a source of ideas, and there is no reason they should carry more weight: what the search should find is decided by the research question, not by my reading history.
我先试了两条路。第一条是把能接的 MCP 都接上,arXiv、Hugging Face、Web Search,想着信息源越多覆盖越广;实际很难搜到有价值的文章,我自己找到的相关论文都比它找的好。第二条是接 Zotero,让 agent 优先从我读过的论文里找。回头看这条路不该走:读过的论文数量就那么多,撑不起 idea 的来源;它们也没有理由拿更高的权重,该搜到什么应由研究问题决定,而不由阅读历史决定。
I then handed literature review to a separate scout agent built on Gemini CLI, because Gemini's search is the strongest of all current models. You do not have to break the request into keywords yourself. When Claude dispatches the task, it turns the request into a structured description for Gemini, and Gemini splits that into searches from several angles; I saw this in their thinking traces as they interacted. I added one constraint to the search: focus on work accepted at top venues and released with code. Later, whether reviewing ideas or choosing a baseline, the venue and the availability of code are both factors worth weighing.
后来我把文献调研单独交给一个 scout agent,底层用 Gemini CLI,因为 Gemini 的搜索能力是目前所有模型里最强的。交付搜索任务时不用自己拆关键词:Claude 分派任务时会把需求转成结构化的描述交给 Gemini,Gemini 再把结构化的需求拆成多角度的搜索,这是我在它们交互时从 thinking 过程里看到的。我还在搜索流程里加了一条约束:重点关注中了顶会、附带开源代码的工作。后面不管是评审 idea 还是选 baseline,论文的会议级别和有没有代码都值得作为调整判断的因素。
How a paper enters the model's context also matters. Give Claude or GPT a PDF and often it will not read it from start to finish. It skims to answer your question and goes back to reread only when a follow-up question shows it cannot answer. A paper easily runs to thirty or forty pages, and putting all of it into the context wastes tokens and dilutes what matters. The more irrelevant content there is in the context, the more the model's attention is spread out.
搜到的论文怎么进入模型的上下文也有讲究。不管 Claude 还是 GPT,丢进去一篇 PDF,很多时候它不会真的从头读到尾,而是略读后回答问题,等你追问、它发现答不上来时才回去重读。一篇论文动辄三四十页,全塞进上下文既浪费 token,又稀释真正重要的信息:上下文里无关内容越多,模型注意力越分散。
So when I can get the LaTeX source or Markdown, I give the model the source directly and skip the PDF. Most arXiv papers come with their source. Markdown can be read on demand: the abstract when you need the abstract, the method chapter when you need the method, without loading the whole paper at once. During literature review the abstract and introduction are enough. At that point you are only judging whether a paper is related to your direction, and the experimental details can wait.
所以能拿到 LaTeX 源文件或 Markdown 时,我直接喂原文,不走 PDF。arXiv 上大部分论文都能拿到源文件。Markdown 的好处是可以按需读:要摘要就喂摘要,要方法就喂方法那一章,不用一次把整篇论文塞进去。调研阶段只读摘要和 introduction 就够了,这时只是判断论文和自己的方向有没有关系,还不用看实验细节。
Many people think literature review does not matter and that the AI can just come up with ideas on its own. I think this is the biggest misconception of all. Literature review builds the model a context at the level of a domain expert. Ideas from an expert context deep in one direction and ideas from a general context that knows a little of everything differ enormously in quality. If the literature review turns up a pile of unrelated papers, ideas built on them sound convincing but fall apart under scrutiny.
很多人觉得文献调研不重要,让 AI 自己想 idea 就好。我认为这恰恰是最大的误区。文献调研是在给模型构建一个领域专家水平的上下文。深耕某个方向的专家上下文,和什么都知道一点、什么都不精的通用上下文,想出的 idea 质量差距很大。调研阶段搜到的是一堆不相关的论文,基于它们想出的 idea 看起来合理,却经不起推敲。
Choosing and reproducing a baseline确定并复现 baseline
Paper2Code tried generating code straight from a paper with no baseline, and the results were poor. That matches how research actually works: very little of it starts by writing an entirely new codebase, and most of it builds on some baseline. So before discussing ideas, settle the setting and the baseline.
Paper2Code 试过在没有 baseline 的情况下直接从论文生成代码,效果很不理想。这也符合科研的实际:极少有工作从零写一套全新的代码,绝大部分是基于某个 baseline 展开的。所以讨论 idea 之前,先定好要做的 setting 和 baseline。
Reproducing the baseline is the most underestimated step in the whole workflow. Its purpose is not just to check someone else's paper. It gives every later experiment a reliable anchor: whether your idea actually helps can only be seen clearly within the same framework.
复现 baseline 是整个工作流里最容易被低估的一步。复现不只是为了验证别人的论文,它为后续所有实验建立一个可靠的锚点:idea 到底有没有提升,要放在同一个框架下才看得清。
I assumed that with open-source code, reproduction would not be too hard. In practice the success rate is low, and even when it succeeds, it often does not succeed in the way you intended.
我原以为有开源代码,复现不会太难。实际做下来成功率并不高,很多时候即使成功,也不是按你期望的方式成功。
Things go wrong in many ways. pip fails halfway through an install; a process hangs and the main thread waits forever without polling. Claude has a maddening habit of calling sleep around bash and other tools, so an error that takes seconds to fix eats half an hour. A dataset download can fail in its first second from a network hiccup, and the model, unaware, carries on as if all is well. I have several servers with the common datasets already downloaded and their paths written in a document. I listed that document in the index in CLAUDE.md and required it to be read before downloading any dataset or setting up any environment. The AI still does not read it on its own and downloads everything from scratch every time.
出错的方式很多:pip 装到一半报错,进程卡死,主线程不轮询、一直等待。Claude 还有一个很耽误事的习惯,调用 bash 等工具时总要调 sleep,几秒钟就能解决的错误要耗掉半小时。数据集下载也一样,第一秒就可能因为网络波动挂掉,模型却不知道,继续当一切正常。我有好几台服务器,常用数据集早就下好了,路径写在文档里;我把这份文档放进了 CLAUDE.md 的索引,要求下载数据集或配环境之前必须先读,可 AI 不会主动去读,每次都从零开始重新下载。
I then added monitoring: report progress at every step, raise an alarm the moment anything stalls, and verify a fingerprint after each download to confirm the version. Even so, with servers in China, proxies and unstable networks, not a single run has yet been fully reliable. It keeps quietly calling sleep behind your back, then apologizes when you ask why it did not follow the instructions.
后来我加了监控:每一步实时反馈进度,卡住立刻报警,下完做指纹校验确认版本正确。即使这样,在国内服务器、代理和网络不稳定的条件下,到现在也没有一次做到完全稳健。它会不声不响地继续 sleep,等你问它为什么没照指令做的时候再道歉。
Two more points are easy to miss. First, do not run reproduction in the main thread. Doing so floods the context with install errors and download logs, which hurts the quality of the conversation afterwards, and it leaves you waiting in the foreground, turning work that could run in parallel into a serial block. Hand it to a sub-agent or to exec, and let the main thread only collect results.
还有两点容易被忽略。第一,复现这类任务不要在主线程里跑。在主线程跑会把安装报错、下载日志全部灌进上下文,拖累后续对话的质量;你也会被卡在前台干等,本可以并行处理的事变成串行阻塞。交给 sub-agent 或者 exec 去做,主线程只负责收结果。
Second, run everything on a remote server inside tmux, never over a bare SSH session. One dropped SSH connection kills the process, and all the waiting before it is wasted.
第二,在远程服务器上跑任何东西都用 tmux,不要裸 SSH。SSH 断一次连接,整个进程就没了,之前的等待全部白费。
The most practical conclusion I have reached: the steadiest and least painful approach is still to set up the environment and download the data yourself, or to keep a human in the loop and watch the agent do it correctly, and then open a new session and hand the model the clean paths. This avoids endless context pollution and hidden sinks of time.
我最后得出的最现实的结论是:最稳、最省心的做法,还是自己先把环境搭好、数据下好,或者 human in the loop 地看着它正确做完,再开一个新的 session,把干净的路径直接交给模型。这样能避开反复的上下文污染,也不会在看不见的地方耗掉大量时间。
Proposing an idea提出 idea
With a baseline in place and enough literature gathered, the next step is to propose an idea.
有了 baseline 和足够的文献积累,下一步是提出 idea。
At first I simply asked Claude to come up with ideas from the literature review. Claude is not smart enough to propose ideas with real novelty. On top of that, a single model doing the searching, the thinking and the judging ends up with a context full of literature notes, paper abstracts and its own rejected ideas. The further it goes, the more its ideas drift, and it unconsciously steers back toward its earlier lines of thought and cannot break out. During implementation, the mixed-up ideas also lead to all kinds of hallucinations.
我最早直接让 Claude 基于调研结果想 idea。以 Claude 的智力,很难提出有 novelty 的 idea。而且它一个模型既搜又想又评,上下文里混着调研笔记、论文摘要和它自己之前被否掉的想法,越到后面想出来的东西越偏离问题,还会不自觉地往之前的思路上靠,跳不出去。实现过程中,几个 idea 混在一起还会引出各种幻觉。
So I switched to having Gemini do the divergent thinking. My clear impression from using these models is that Claude is the least intelligent of the three, while Gemini, though it hallucinates heavily, often proposes ideas so unexpected that they surprise me, and its search ability and breadth of knowledge are probably greater than the other two. Gemini's context holds only the literature review and the baseline information. It does not know what was discussed before or which ideas were rejected, so it starts from a clean slate. One run produces about 10 ideas, each with a short description.
后来改成让 Gemini 来发散。用下来比较明显的感受是,Claude 是三家里智力最低的;Gemini 虽然幻觉严重,但常能提出出乎我意料的 idea,它的搜索能力和知识量也应该大于另外两家,所以我让它广泛地提 idea。Gemini 拿到的上下文只有文献调研的结果和 baseline 信息,不知道之前有过什么讨论、哪些想法被否过,所以能从一个干净的起点去想。一次生成大约 10 个 idea,每个带一段简要描述。
Once the 10 ideas are out, Codex reviews each of them independently. Review calls for strict judgment, and with a fixed context Codex's judgment is fairly trustworthy. The key is context isolation. Each idea is evaluated on its own: Codex's context holds only the baseline paper being followed and the description of the current idea. It cannot see the other 9 ideas or the discussion that went on while Gemini generated them. This at least keeps the review fair, with no preference formed from seeing other ideas.
10 个 idea 出来以后,交给 Codex 逐个独立评审。评审需要的是严格的判断,在上下文确定的情况下,Codex 给出的判断比较让人放心。关键在于上下文隔离:每个 idea 单独评估,Codex 的上下文里只有要 follow 的那篇 baseline 论文和当前这一个 idea 的描述,看不到另外 9 个 idea,也看不到 Gemini 生成时的讨论过程。这样至少能保证评审公平,不会因为看到别的 idea 而产生偏好。
The review covers five dimensions: whether the novelty is enough, whether it is technically feasible, how well it fits the baseline, whether the implementation complexity is manageable, and how much improvement to expect. Each review produces an idea card with a score for every dimension, Codex's reasoning and a verdict: go, revise or kill. The ideas are then ranked and the top one is selected.
评审的维度有五个:novelty 够不够,技术上是否可行,和 baseline 的兼容性怎么样,实现复杂度是否可控,预期能带来多大提升。每个 idea 评审完生成一张 idea card,包含各维度的评分和 Codex 的判断理由,并给出明确的判定:go、revise 或 kill。最后按排名选出得分最高的。
The selected idea then goes to Claude for the final call. As the main architect, Claude does not simply take it and move on; it goes back over Codex's comments. If the verdict is revise, Claude decides whether to adopt the suggested changes and brings the idea into shape before going further.
选出来以后,交给 Claude 做最终决定。Claude 作为主 architect,不是选了就走,还要回头看 Codex 的意见;如果 Codex 给的是 revise,Claude 要判断是否采纳修改建议,把 idea 调整到位再继续推进。
Once the idea is settled, Gemini runs one more targeted literature review on it, looking for existing work in that direction and for room to refine it. Only an idea that passes this round moves on to implementation.
确定以后,再交给 Gemini 针对这个 idea 做一次文献调研,专门查这个方向上有没有人做过、还有没有打磨的空间。通过这一轮的 idea 才正式进入实现。
I tried many strategies for this stage, including having Gemini review and having Claude and Codex review each other, and in the end I dropped every scheme in which models review each other. Put two models to review each other and they can always tell you how else it could be improved or from which other angle it could be optimized. The process never ends. One role has to make the final decision. Under this process, the idea that comes out is the one all three models agree fits best given the current context.
这个环节我试过很多策略,包括让 Gemini 评审、让 Claude 和 Codex 互相评审,最后放弃了所有互相评审的方案。只要让两个模型互相评审,它们永远能告诉你还能怎么改进、还可以从哪个角度优化,这个过程没有终点。一定要有一个角色做最终决定。按这个流程选出来的 idea,是三个模型都认可、在当前上下文里综合条件更合适的那个。
Research contractResearch contract
Before implementation starts, there is one more thing to do: write a research contract. Before any code is written, set down every expectation: what the hypothesis is, what result counts as success, what result counts as failure, and what each ablation is expected to show. Failure signals are written separately; they are not just the negation of success.
真正进入实现之前,还有一件必须做的事:写 research contract。在动手写任何代码之前,先把所有预期写清楚:hypothesis 是什么,什么结果算成功,什么结果算失败,每个 ablation 预期会看到什么。失败信号要单独写,不是「没达到成功」的反面。
The reason for being this strict is that if you do not fix these before the experiment, the model will rationalize the results for you afterwards. If the numbers fall a little short, it will tell you that "although the main metric missed the target, from another angle the result reveals some interesting phenomena". Looking at the results first and building a story afterwards is the thing to avoid most in research.
之所以这么严格,是因为实验之前不把这些定下来,模型一定会在结果出来以后帮你合理化。跑出来的数差了一点,它会告诉你「虽然主指标没达标,但从另一个角度看,这个结果其实揭示了一些有趣的现象」。做科研最忌讳的就是先看到结果,再围绕结果编解释。
Once written, the contract is the one yardstick for every role that follows. The code is written strictly against its hyperparameters, metrics and data splits, and any deviation cannot be decided alone; it has to come back as a question. Results are judged by reading the contract first and then checking each signal in turn, met or not met. When writing the paper, every claim must map back to a signal in the contract and the experimental data behind it.
contract 写好以后,后面所有角色都以它为唯一的尺子。写代码的要严格对照其中的超参、metric 和数据 split 来实现,有偏差不能自己决定,必须回来问。评审结果时先读 contract 再看结果,逐条判定每个信号达标还是没达标。写论文时,每一条 claim 都必须能对应回 contract 里的某个信号和相应的实验数据。
And once the experiments begin, the contract cannot be changed. If a correction is truly needed, produce a v2 that states what changed and why. Adjusting the success signals afterwards to fit the results is not allowed.
contract 一旦写好,实验开始以后就不能改。确实需要修正,就产出一个 v2,写清楚改了什么、为什么改。不允许事后调整 success signal 去配合结果。
Implementing the idea, running experiments, analysing results and writing the paper are not covered in this post.
实现 idea、跑实验、分析结果和写论文这几步,这篇没有写到。
References参考文献
- Minju Seo, Jinheon Baek, Seongyun Lee, and Sung Ju Hwang. Paper2Code: Automating Code Generation from Scientific Papers in Machine Learning. ICLR, 2026. arXiv:2504.17192
- Chris Lu, Cong Lu, Robert Tjarko Lange, Jakob Foerster, Jeff Clune, and David Ha. The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery. arXiv preprint, 2024. arXiv:2408.06292