读见

SWE-bench 是怎么做出来的?斯坦福 CS329Z 客座讲座

原题How SWE-bench Was Built | Stanford CS329Z Guest Lecture with Carlos Jimenez, Alex Wettig & John Yang

约 56 分钟原文英文已翻译

视频由 YouTube 提供

看前速览

3 个要点

SWE-bench 的三位参与者回顾如何把真实的 GitHub Issue 和 PR 做成评测,并谈到模型、智能体框架与数据变化后,评测该怎么跟上。

  1. Issue 提供问题,PR 提供可验证的修复

    GitHub 的公开数据提供了真实问题和工程师提交的修复。团队仍需恢复旧环境、解析测试、处理历史依赖,并检查模型是否只是记住答案。

  2. 先用基线找信号,再改进智能体框架

    约 2% 的通过率说明模型已经能做对少量任务。提供正确文件后成绩提升,之后团队用 SWE-agent 建立了更强的智能体基线,再探索训练数据。

  3. 搭评测可以自动化,验证指标仍需外部证据

    嘉宾区分了工程执行和评测目标的选择,建议检查单条轨迹,保留人类判断,并验证指标与实际输出质量是否吻合。

完整摘要

John Yang、Carlos Jimenez 和 Alex Wettig 从早期长上下文实验讲起,复盘如何配对 Issue 和 PR、恢复旧依赖,并用测试区分问题修复和回归。早期模型只有约 2% 的通过率,提供正确文件后成绩上升,说明任务很难却有改进空间。三人还聊到仓库选取、Conda 与 Slurm 带来的困难、从真实 PR 提取验证,以及发布后的维护工作。问答重点讨论了怎么用智能体构建评测,又如何借助人提供的信号检验指标,以及更开放、更具交互性的评测该怎么做。

章节

文字稿

查看原文

简要描述Brief Description

在斯坦福 CS329Z 的一次课程中,John Yang、Carlos Jimenez 和 Alex Wettig 回顾了 SWE-bench 的诞生。他们讨论了早期的长上下文模型、基于 GitHub 构建的评测、环境配置、采用情况,以及如今他们会如何验证难度更高或更主观的 AI 任务。In a Stanford CS329Z session, John Yang, Carlos Jimenez, and Alex Wettig revisit the making of SWE-bench. They discuss early long-context models, GitHub-derived evaluations, environment setup, adoption, and how they would verify harder or more subjective AI tasks today.

目录Table of Contents

  • 简介和课程形式
    Introduction and session format
  • 嘉宾介绍:Carlos Jimenez、Alex Wettig
    Guest introductions: Carlos Jimenez, Alex Wettig
  • 2023 年的编程与长上下文评估
    Coding and long-context evaluation in 2023
  • 为什么要使用 GitHub Issues 和 Pull Requests
    Why GitHub issues and pull requests
  • 记忆化方面的担忧与 2% 基线
    Memorization concerns and the 2% baseline
  • 手动构建 SWE-bench 环境
    Building SWE-bench environments by hand
  • 从真实拉取请求中获取来源验证
    Sourcing verification from real pull requests
  • SWE-bench 发布后的采用情况
    How SWE-bench was adopted after release
  • 从基准测试到智能体框架:SWE-agent
    From benchmark to harness: SWE-agent
  • 研究习惯与协作
    Research habits and collaboration
  • 接下来值得测量什么
    What is worth measuring next
  • 观众问答:使用编程智能体构建评估方案
    Audience Q&A: Building evals with coding agents
  • 观众问答:验证评估指标
    Audience Q&A: Validating evaluation metrics
  • 观众问答:2026 年亟待研究的开放问题
    Audience Q&A: Open research questions for 2026

简介和课程形式Introduction and session format

John Yang:大家好!很高兴欢迎大家回来,继续参加另一堂 CS 329 课程。今天大概有 80 分钟,所以前 60 分钟左右,我们会请 Carlos 和 Alex 来做一场客座讲座,也可以说是炉边谈话。他们很快就会做自我介绍。我觉得这堂课会非常有趣,我真的很期待。大家将深入了解 SWE-bench 的发展历程,以及团队是如何打造出这个基准测试,并让它成为如今大家所熟知的编程智能体评测的标杆。你们已经听过 Terminal-Bench 团队的分享了。他们从这两位的工作中汲取了大量灵感。所以今天我们请来的可都是元老级人物。John Yang: Hi everybody. Yeah, it's very happy to welcome you back to another CS 329 lecture. Today we have about like 80 minutes, so I'm going to spend like the first 60 minutes we're going to have a guest lecture or fireside chat from Carlos and Alex who will introduce themselves very soon. And I think this is going to be a really fun lecture. I'm really excited. You guys are going to get like a very deep peak into sort of the history of SWE-bench and sort of how what it took for the team to put together benchmark that really just kind of defined coding agent evaluations as you know them today. So you heard from the Terminal-Bench team. The Terminal-Bench team drew copious amounts of inspiration from the work that these guys did. So we really do have like the OGs in the house today.

所以我特别期待。接下来会留出15到20分钟,进行自由提问。很期待听听大家有什么问题想问这两位优秀的嘉宾,之后我们就顺着大家的问题继续聊。非常感谢大家今天到场。我知道今天在下雨,所以很高兴大家还是决定来参加。好,那我们就不多说了。我准备了一份简单的讲稿,我们会按着流程进行。首先,请这两位嘉宾先做一下自我介绍。So I'm very excited. But yeah, and then I'll open it up to 15 to 20 minutes of just open questions. So you know very excited to hear what you guys have to ask these two great folks and yeah, we'll just take it from there. Thank you so much for coming. I know it's raining today, so I'm very happy you guys all decided to join. All right. So without further ado, I have a bit of a script. We're going to go through it and first and foremost I'll just let these two wonderful folks introduce themselves.

嘉宾介绍:卡洛斯·希门尼斯、亚历克斯·韦蒂格Guest introductions: Carlos Jimenez, Alex Wettig

John Yang:好,那我们就从 Carlos 开始吧。好。John Yang: So yeah, let's start with Carlos. Yeah.

Carlos Jimenez:是的,当然,谢谢你邀请我们,John。我叫 Carlos Jimenez。我在普林斯顿读了博士,也在那里和 John、还有 Alex 一起做了 SWE-bench。现在算起来,我大概是一年多前刚完成博士学业。不过,我想我读博期间大部分时间都在做评测,现在基本上还是在做这个。所以……Carlos Jimenez: yeah, so thanks for having us of course John. So my name is Carlos Jimenez. I did my PhD at Princeton where I also we worked on SWE-bench together with John and Alex here. I guess kind of finishing up a little over a year ago now. But yeah, I've been working on evaluations for most of my PhD I think and I still basically do that now. So

Alex Wettig:太棒了。是的,我是 Alex。我也曾是普林斯顿大学的博士生,和这两位很棒的伙伴一起做了 SWE-bench,之后又做了 SWE-agent。我博士期间的主要研究方向更偏训练,比如预训练和长上下文训练。我最初也是因此参与到 SWE-bench 项目中的。博士毕业后,我在 Cursor 工作了一年。现在我在 Anthropic 从事预训练工作。Alex Wettig: Cool. Yeah, I'm I'm Alex. I also was a PhD student at Princeton. Worked with these two great folks on SWE-bench, and then afterwards SWE-agent. My sort of main focus of the PhD was more on like the training side. I did a lot of work on like pre-training and long context training. And that was also kind of how I initially got involved with SWE-bench. And then after the PhD, I spent a year at Cursor. And now I work at on pre-training at Anthropic.

2023 年的编程与长上下文评测Coding and long-context evaluation in 2023

John Yang:不错,谢谢大家。是的,我想先稍微交代一下背景。正如 Alex 和 Carlos 提到的,你们当时都是普林斯顿大学的博士生。我很好奇,回到 2023 年 5 月、6 月,也就是你们聚到一起、我们开始做 SWE-bench 之前,那时的情况是什么样的?具体来说,人们是如何看待评测、代码、长上下文,以及你们提到的这些方方面面的?John Yang: Cool. Thanks, guys. Yeah. So I guess just to set the scene a little bit for context, like Alex and Carlos were as they mentioned, both PhD students at Princeton. Yeah, I'm curious like going back to kind of like May, June 2023 before, you know, you guys came together and we started working on SWE-bench. Like yeah, what was the scene like then, you know, in terms of qualifying sort of how people were thinking about evaluations, about code, about long context, kind of everything you guys mentioned.

Alex Wettig:是的,是的,我想提一件事。我记得大概是2023年6月吧,春夏之交、夏天那会儿,出了好几个上下文长度长得多的模型。当时,10万个 token 算是比较长的上下文了,而你也开始尝试突破这个长度。我想,我们最初做的工作,应该是和 SWE-agent 有关——不对,是和 SWE-bench 有关。我记得那些基线测试用的是 32,000 token 的 GPT-4 模型;如果我没记错的话,那在当时算是长上下文了。还有一些人们用来评估这些长上下文模型的评测集。比如,大家可能还记得“大海捞针”(needle in the haystack),这类评测就是其中一个例子。Alex Wettig: Yeah. Yeah, I'll I'll mention something. So back in I think it was June I guess like summer spring summer 2023 several models had come out that were like much longer context. Back in the time, 100,000 tokens was like relatively long context and you were kind of starting to push a bit beyond that. I think even like the work that we did initially I think was on like with SWE-agent or no, with SWE-bench. I think those baselines were with like the 32,000 token GPT-4 model which was like that was a long context at the time if I'm remembering correctly. And there were a handful of Evals that people were using that were evaluating these long context models on. So if people remember like needle in the haystack, those types of you know, that was like one example.

当然还有其他例子,但我记得那时候,大多数长上下文示例,或者说长上下文评测,都有点像玩具示例,或者说比较刻意。我记得自己想了很多,长上下文模型能做些什么。我觉得,当时这一点确实不太明确,因为我们此前从未真正见过这种形式的语言模型。我想,在约翰和我开始开发 SWE-bench 之前,我们已经有了一个大致的想法:思考长上下文能带来哪些能力,比如把大型文件或完整的代码库放进模型的上下文中,看看模型能不能处理。没错,我想这在一定程度上就是后来开展这项工作的前因。There are other of course, but back then I think most of the long context examples were or the long context evaluations were a little bit toy or contrived. And I remember thinking a lot about what you could do with a long context model. And I think that was really that was a little bit unclear with language models at the time because we just we had never really had that format before. And I think yeah before John and I started working on SWE-bench this kind of general idea of kind of thinking about what capabilities long context would enable such as you know putting large files or full code bases into the context of the model and seeing whether models could do that. And yeah and that was a like a little bit of the pretext I think for like kind of leading up to that.

就编码而言,众所周知,少样本代码补全或代码纠错评测这类任务,比如 HumanEval,显然非常有名。还有其他类型的编码竞赛,也许是代码风格问题之类的,这些在专门评估语言模型编码能力方面曾代表着当时的最先进水平。In terms of coding definitely the kind of you know few-shot code completion or like code correction evals like HumanEval was obviously very famous. And other types of these kinds of coding competition you know maybe like code style problems that was like the state of the art in terms of evaluating language models for coding specifically.

讨论嘉宾:人们之前其实并没有真正考虑过智能体。所以很多工作基本上就是一个单步流程:输入 token,然后让模型生成,再配上某种评估函数。Panelist: And people hadn't really thought of agents. So like a lot of like a lot of work was just sort of like a single step of tokens in and then like you generate you let the model generate and then like you have some kind of evaluation function.

为什么要使用 GitHub issues 和 pull requestsWhy GitHub issues and pull requests

John Yang:嗯,有道理。所以我想,顺着这个话题自然就会想到:是什么让 GitHub issues 成了处理许多这类既有问题的合适场景?我记得你们俩之前都在这个领域做过一些探索。现在大家探索的东西可不少,比如 Terminal-Bench,或者后来出现的各种不同类型的编程问题。但你们接触到 GitHub issues、PR 及其生态系统时,是什么让你们觉得这是值得着手去做的方向?John Yang: Yeah, makes sense. So I guess like maybe a natural segue is then like what made GitHub issues kind of like the right setting to address kind of a lot of these prior issues. You know I think you guys had both done some exploration in this space. Like there's plenty of things that people have now explored oh Terminal-Bench or whenever you know a lot of these kind of different kinds of coding problems have emerged but you know when you came upon GitHub issues and PRs and that ecosystem like what made it feel like the right thing to act upon?

Carlos Jimenez:是的,是的。所以,回顾以往的评估,我觉得尤其是当你从网上抓取数据时——这一直是常见做法。当然,这在开源模型中现在也依然很流行。对于任何评估数据集,你都需要问题,还需要这些问题对应的标签,对吧?这就是整理训练数据、评估数据以及任何类型数据的一般结构。我觉得在那之前,还没有人真正把这两样东西结合起来。从某种意义上说,我认为 SWE-bench 的出现是不可避免的,对吧?GitHub 上的问题和标签配对,自然以 issue 和 pull request 配对的形式存在;这就像是一个开放的数据源,网上有大量信息丰富的数据。Carlos Jimenez: Yeah. Yeah. So, with any evaluation historically, I think that especially if you're kind of grabbing, you know, from the internet for data, which is that was the norm. It's still, you know, like popular in open source models of course, too. And for any evaluation data set, you need problems and you need like you know, labels for that problem, right? And that's like the general structure of finding you know, for training data, for evaluation data, for any type of data that you have. And I think until that point, nobody had really just put those two things together. I think that in some respect, I think that SWE-bench would have been inevitable, right? Like the source of problem and label pairs that naturally are structured in issue pull request pairs in GitHub was just like an open an open source of like very high information rich data that was on the internet.

我觉得,真正意识到这一点其实只需要稍微想一想:你可以把这种数据结构用于其他任何机器学习问题。它比人们之前做过的事情更有野心;之前那些工作,说到底更像是 LeetCode 风格的问题。但随着模型越来越好,这种通过 issue 和 pull request 形成的问答对,其天然结构就摆在那里,你懂我的意思吧?And I think it really just kind of took a little bit of thought to realize that you could use this for like any other machine learning problem that, you know, this kind of structure of data. It was more ambitious than like previously things that people had done, which were again more like these LeetCode-style of problems. But as models were getting better, this natural structure of like question answer pairs through issue pull request was just out there in the open, you know what I mean?

John Yang:明白,是的。接着问一下,Alex,你当时有没有对这类数据有什么顾虑?我是说,现在已经有不少研究指出了 SWE-bench 之类的问题,但在当时,有没有哪些事情特别让你觉得:这似乎是个很有希望、值得尝试的数据集,不过我们也需要留意这些方面?或者说,当时还有哪些值得关注的开放问题?John Yang: Makes sense, yeah. And then Alex, to follow up, like did you potentially have any like concerns about this kind of data? You know, like I mean, now plenty of works have maybe sort of like pointed out issues with SWE-bench or whatever, but do you feel like there were kind of things that maybe stood out at the time of like, yeah, this feels like a pretty promising data set to try to act on, but like here are the things that we want to watch out for or what were the meaningful open questions?

记忆化问题与 2% 基准值Memorization concerns and the 2% baseline

Alex Wettig:我记得那个时刻,当时 Carlos 和 John 终于收集齐了所有这些数据。这是一个非常庞大的流水线。过了很长时间,所有的问题才终于被收集起来;而且你还得存储所有这些代码仓库,我们当时算是在使用学术界的基础设施。所以,直到我们终于把各类任务整理成形,把问题准备好,再把问题交给模型之后,我们其实都不太清楚模型在这些任务上的表现会有多好。我们当时有点……你知道,也许有些人会觉得结果可能是 0%,因为这些问题在我们看来非常难。但我们非常担心的是,模型在训练期间可能已经见过这类问题;毕竟这些数据都发布在互联网上,而且很多是历史数据,所以模型可能只是在复述完美答案。Alex Wettig: it's I remember the moment when like the two like Carlos and John had finally collected all this data. It was a very large pipeline. It took a long time until you know all the issues were actually grabbed and like you had to store all these repositories and we were kind of working with like academic infra. So it really like once we finally had the task types kind of together in a shape where like we had the problems and when then we gave the problems to the model and like we really had no good sense of how good the models would be on this. It was kind of and you know some people maybe we would have expected like 0% because it seemed very hot to us, but the thing we were very worried about is that you know models would have just seen these types of problems during training and because it was data that was out on the internet, it was a lot of historical data and then they could just regurgitate perfect solutions.

基本上,你知道,这完全没有经过任何推理,就是零样本地生成了某种完美的真实标准差异。结果嘛,事实证明并非如此。模型在这方面其实表现得相当差。我想,你知道,关于记忆的问题已经被多次指出了。我觉得这很有意思。到了现在,我觉得,如果你把它当作一个有用的基准,并且希望在模型开发过程中不断提升表现,那你可能会谨慎一些,不要用这类确切的数据来训练。不过,显然,对于任何公开的基准,都有可能通过在其上训练,在技术上达到 100%,或者取得一个足够高、看起来还算可信的分数。Basically this was you know without any reasoning just zero shot produced the perfect kind of ground truth sort of diff. And well sort of it turns out that didn't happen. Models were actually really sort of poor at this. I think you know the memorization concerns have been flagged many times. I think it's very interesting. I think by this point I think it's like if you sort of treat it internally as a benchmark that you think is useful and you want to actually climb with your model development, you would probably like be careful not to train on this exact sort of data, but it's obviously possible with any kind of benchmark that is public that like you can you know get technically 100% on it or like a high enough number that like seems believable by just training on it.

我觉得有件挺有意思的事:要拿到这些数据,只是多费了一点基础设施方面的工夫,而且这也和 GitHub API 的设计方式有关,因为你必须先获取所有 issue,再获取所有 PR;只有拿到这两套完整的数据,才能把哪些 issue 和哪些 pull request 相关联起来。 我有时会想,如果 GitHub 的数据结构更简单一些,比如提供一个非常简单的 API,直接告诉你“这个 issue 链接到这个 pull request”,那么模型就会用这些数据进行预训练,而且会把这些内容彻底记住。不过,我觉得从实际情况来看,这并没有发生。模型在这方面表现很差,后来它们的进步方式也不只是照搬解决方案,我会这么说。I think one thing that I think is interesting is that like to get the data it just took like a little bit of extra kind of infra pain and the way that like the GitHub API was set up because you had to get all the issues and then you had to get all the PRs and only if you had these two kind of complete sets could you do some kind of linking on sort of which issues were related to which pull requests. And I sometimes think if like GitHub had structured the data in like an easier way like if it had been like a very simple API for like okay here the issue links to this pull request like the models would have pre-trained on this and it would have been like completely memorized. But yeah I think empirically that didn't really happen. Models were very bad at this and then they also got better in different ways than just regurgitating the solutions I would say.

John Yang:有道理。是啊。不,这真的很棒。我想继续说下去,也顺便交代一下背景:我觉得现在这个班上的每个人都已经很熟悉 SWE-bench 了,虽然学生们可能对此有点不耐烦,但我们很感激。不过,正如 Carlos 提到的,SWE-bench 确实催生了一大批以 SWE 为前缀的相关工作,影响力显而易见。我觉得 Carlos 和 Alex 很早就谈到了后来逐渐显现的许多问题,比如:对齐方面会遇到什么问题?这就是 SWE-bench Verified 推出的原因。更难的任务呢?于是就有了 SWE-bench Pro。能不能以不同的方式操纵 GitHub?我觉得这也是我们三个人一直在思考的一个大问题。John Yang: Makes sense. Yeah. No yeah this is great. I guess just to kind of like carry along so like everybody in this class was like quite familiar with SWE-bench now I think maybe to the annoyance of the students but we appreciate it. But yeah just to kind of transition and set the context a little bit like as Carlos was mentioning like certainly SWE-bench was one work that led to a whole explosion of these prefixed with Swe kind of works and so the impact is there and I think the things that Carlos and Alex have talked about very early on they foresaw kind of a lot of the things that kind of panned out of like okay what about the issues with kind of alignment and that's where SWE-bench Verified got introduced. What about harder tasks? That's where SWE-bench Pro got introduced. Can you potentially manipulate GitHub in different ways and I think this was like a big question the three of us were asking ourselves.

SWE-bench 在某些方面算是从 GitHub 上构建数据集最直接的方式之一。不过,后续也有很多出色的工作。稍微转换一下话题,我觉得学生们对这个任务的设定已经相当熟悉了。但正如 Carlos 和 Alex 提到的,我们刚推出它时,模型的表现还没那么好。所以从某种意义上说,在这门课上,我们一直在讨论该构建什么样的基准测试,以及它们应该具备哪些特质。当时表现最好的模型得分是 1.96%,对吧?这有没有让你们感到害怕?你们有没有想过,天哪,如果只有 2%,那模型到底要怎么才能逐步提升?你们还有 MMLU 这样的基准测试,任务要简单得多,但得分也只有 40% 到 50%。那么,是什么让你们有信心呢?我想 SWE-bench 出来之后,我们都同意要继续推进这件事,对吧?也就是说,我们觉得这个基准测试并没有那么难,也没那么吓人。SWE-bench was kind of like the most straightforward in some ways to sort of like compose data on GitHub. But there's a lot of excellent follow-up. So to transition a little bit I think students are quite familiar with the task formulation but at the time when we launched it as both Carlos and Alex mentioned the models were not that good. So in some sense in this class we've kind of talked about the merits behind what kinds of benchmarks to build and sort of the qualities that you want. The best model was 1.96% in terms of performance, right? Did that scare you guys in any way? Did you feel like, oh man, like you know, if it's only 2% like how the heck is a model going to hill climb this? You had like MMLU, which is like a way simpler task and even then it was like 40 50% like I guess what kind of gave you the confidence because we all kind of agreed right after SWE-bench that we're going to keep pushing this that like this wasn't too hard or too scary of a benchmark to do.

你知道吗?You know?

Carlos Jimenez:是的。我记得我们刚拿到最初结果的时候,基本上就是 2% 这个数字,可能是在一部分初始数据上测出来的。那真的让人很兴奋,因为我觉得,在基准测试上拿到 2%,比拿到 0% 要令人兴奋得多。因为如果你拿到 0%,那你就知道,从经验上看,你很可能是有个 bug,或者还得花更多工夫弄清楚到底是怎么回事。但我也觉得,这意味着那里确实存在某种结构,可以让模型去把握。我觉得如今要找到一种难度极高的任务,让模型在其中只是勉强够得着爬梯子、进行某种爬山式优化的起点,这其实挺难的。不过,至少在我看来,这种问题的表述方式非常自然,数据也会现成地摆在那里;尤其是终端和其他相对确定性的交互环境,所以这件事总该能以某种方式奏效。Carlos Jimenez: Yeah. I remember when we first got like the initial results, which was basically the 2% number, maybe on like a subset of the of the initial data. And that was really exciting because I think getting 2% on a benchmark is much more exciting than getting 0% because if you get 0% then you know, just empirically you probably have like a bug or you have to do more work to like figure out what's going on. But also I think it means that there's kind of something some structure there for models to like grasp on to. I think it's really it's pretty hard these days to get something to get benchmarks that are so difficult where models are just kind of barely on the rung ladder for kind of you know, hill climbing or something. But it was I at least my impression was that it was such a natural like formulation like problem formulation and the data was going to be out there and like especially with terminals and other kind of responsive environments that are relatively deterministic that this was going to like work somehow.

而且我觉得我当时就很……我觉得我们很早就非常确信,像编码智能体这样的东西会成为模型能够掌握的一项真正能力。对。And I think I had like very I think we had very high confidence like early on that like something like coding agents was going to was going to kind of be a real capability that models could grasp on to. Yeah.

Alex Wettig:如果还要补充一点,那就是,如果你读这篇论文,务必要认真读。我觉得,基准测试是通过论文产生影响力的最有效方式之一,但要写出一篇能有力论证某个基准测试确实很好的论文并不容易;这篇论文得像一个由八部分组成的成果,不能让人觉得你只是随手拼凑了一些数据。这一点很难传达。我觉得对我们有帮助的一点,具体来说,也是评审在 SWE-bench 评审中提到的,是我们做了许多额外分析,把问题拆解开来;有时我们只向模型提供恰好正确的文件,也就是那些我们根据 gold patch 确认对得出答案至关重要的文件。Alex Wettig: If I would add anything that's like if you if you read the paper, try very hard. It's I think, you know, benchmarks are some of like the most impactful ways to have impact via like a paper, but it's hard to like sort of write a paper like an eight-piece artifact that like makes a compelling case that this is a good benchmark and you just didn't just, you know, you just threw some kind of data together or like it's hard to communicate that. And so I think what helped us as well to specifically what reviewers commented on in the in the SWE-bench reviews. I don't know if they're public by the way, but we had all these extra analyses where we broke down the problem and we sometimes provided the model with exactly the right files only, kind of the ground truth files where we knew from like the gold patch that those files were important for the answer.

这提高了解题率,也进一步表明这确实是一项非常有挑战性的任务;但如果把它简化一下,模型就更有可能完成。SWE-Llama 也是如此。我们在这个项目中训练它,让它学习 SWE-bench 问题的分布。我们也发现,在这种提供正确文件的“预言机”设定下,它的表现确实大幅提升,甚至超过了一些 API 模型。And that lifted the solve rate which then gives extra signal that like this is a very challenging task, but if you do simplify it, models are more likely to do it. And similarly with SWE-Llama, which is what we trained as part of the project to sort of train on the distribution of SWE-bench problems, we also saw that like in this kind of like oracle setting of providing the right files, it actually gave a big lift and we were able to beat some of the API models.

手动构建 SWE-bench 环境Building SWE-bench environments by hand

John Yang:是啊,是啊,当然。说得通。这些都很棒。谢谢各位。那我想稍微深入聊聊。大家大概都了解这项任务,也知道相关数据。我觉得今天是个特别有意思的机会,我很想听听你们聊聊具体是怎么执行的,对吧?先交代一下背景,我想这门课的同学现在正在做作业二,你们正在构建自己的基准任务和评估。所以,你们愿不愿意回顾一下当时的情况?我想先简单介绍一下背景:我们当时在普林斯顿工作。准确地说,我们那年夏天在普林斯顿工作。如果你们想补充一些背景的话,当时普林斯顿正在施工,所以白天到处都是钻孔声和各种噪音。John Yang: Yeah. Yeah, for sure. Makes sense. These are great. Thanks, guys. So I guess just to dive into it a little bit, we kind of people know the task, people know the numbers. I think today's like a really fun opportunity where I'd love to hear from you guys about just kind of like the execution, right? So for context, I think folks in this class are working on homework two right now and you guys are building your own benchmark tasks and your evaluations. And so yeah, do you guys want to kind of recount like sort of like I guess just to kind of set the slide like we were working in Princeton. Actually, we were working in Princeton over the summer and if you guys want to provide extra context, Princeton was like under construction at this time. So there was just plenty of like drilling and loud noises happening during the day.

不过你知道,我们三个人组成的团队非常有趣。于是我们就坐在这里。Carlos、Alex 和我都各自想过这个想法的不同版本。所以左边这张截图来自 Carlos 的 Notion 文档,他很慷慨地分享了这份文档。里面有一个非常早期的 SWE-bench 概念,时间早得很,甚至比很多人开始思考这些事情还要早。后来,在和 Carlos、Alex 聊过并得到一些启发之后,我当时就在 GitHub 上找了找,然后把这个 scikit-learn issue 发给了他们俩,说我觉得它和你们想找的东西挺契合的。不过,我想这就是引出这个问题的背景。后来我们组建了团队之类的,第一天——这张图有点难看清——我们有一块白板,我们三个人就一起看着,把所有东西都写了下来。But you know, the three of us, it was a very fun team. And so we kind of sat here. And Carlos and I and Alex, we had all kind of like thought about different versions of this idea. So this screenshot on the left is from Carlos's notion doc which he's kind enough to share that had sort of this very early concept of SWE-bench in there like very far back even before you know like a lot of people had thought about these things. And at some point like after talking with Carlos and Alex and getting some inspiration like you know I was like looking on GitHub and I kind of sent the two of them like I think this scikit-learn issue kind of matches sort of what you're looking about. But I guess like the lead into this question and then you know we kind of set up the group and everything and on day one this is a little bit hard to read but there was like a whiteboard and like the three of us we kind of looked and we kind of wrote everything down.

我先稍微铺垫一下这个问题。说实话,这个想法本身只花了一天左右就形成了。我觉得我们很快,或者说也许花的时间稍微长一点,就大致知道任务应该如何设计了。不过,你们能不能再分享一些见解?后来我们确实花了三到四个月才把这个东西做出来。那段过程是怎样的?有什么困难?哪些事情很重要?有什么事情花的时间比你们预想的更长?诸如此类。对,对。So sort of to set up the question the that the idea actually just took a day to be honest. Like I think like you know very quickly or maybe a little more than that we kind of knew what the task formulation should look like. But can you guys provide some more insight into you know and eventually it did take us like three to four months to put out this thing like yeah what did that journey look like? What was difficult about it? What was like important? What took more time than you thought it you know it would you know anything along those lines? Yeah. Yeah.

Carlos Jimenez:我觉得,SWE-bench 真正进展很快的一点是,我和 John 可能对这件事的大致形态都有一些很宏大的设想。我记得我开始和 John 聊这件事时,在一次讨论中,我确实觉得,话题一旦开始推进,哪怕只聊了几分钟,整个框架就已经非常清晰了。大概 15 分钟左右吧,至少对我来说,这件事会是什么样子已经很清楚了,我也觉得这会是一条非常有前景的路。这是因为数据本身的结构。你有大量的问题,甚至还有时间戳和各种带日期的信息,以及通过 pull request 提交的、基本上由专家驱动的人类输入和解决方案。从广义上说,在机器学习领域,这类数据可以说是训练数据的重要典型来源;当然,在我们的案例中,它也适用于评估。我觉得,这种非常自然的结构从一开始就很清晰。Carlos Jimenez: So what was really fast I think about SWE-bench was I think like John and I had maybe very you know big notions of this something along the shape. And I remember we I started talking with John and in one discussion and I do think once the once the ball got rolling after just even a few minutes of talking I think within maybe 15 minutes or something the whole structure was very clear. At least to me it was very clear to me that this was going to like that this was like a very promising route. And that's because of the structure of the data. You have like a huge trough of problems even like with you know timestamps and all of this dated information with basically like expert driven human you know human input solutions through the pull requests. And that is in machine learning in a broad sense that's kind of canonical in terms of like valuable sources for training data or for you know for evaluations of course in our case but and I think that yeah that very natural structure I think was very clear from the beginning.

约翰和我刚开始聊这件事的时候,我觉得大概 15 分钟之内吧,事情会怎么发展就已经很清楚了。然后我们很快就开始动手了。其实回想那段时间,我觉得约翰没我那么担心,但我特别担心别人抢先做出来,因为我觉得这个想法非常明确。我想我们马上就坐下来开始干活,收集数据,搭建那种可以将模型输出与人工标签进行比较的环境。必要的工作基本上就是构建这些环境。嗯,我也不知道。And John and I when we when we first like when we first started to talk about it I think within yeah within 15 minutes it was very clear what was going to happen. And then we kind of quickly got to work. I actually think the whole period in time I think I think I feel like John was a little bit less worried than I was but I was so worried about getting like getting scooped because I thought the idea was very clear. And I think yeah immediately we kind of just sat down and started doing the work to collect the to like build the environments where you can compare model outputs with human labels. And that was kind of the necessary like labor to do was essentially in this environment construction. Yeah I don't know.

Alex Wettig:我想,嗯,最难的部分……我觉得,其实约翰,你应该算是这方面贡献最大的人,主要是搭建环境、安装东西。比如,有段时间我们考虑过很多候选项,NumPy 就是其中之一。Alex Wettig: I guess the yeah the hardest I think the I think actually John you were like the biggest sort of contributor there of just setting up the environments installing like for example there were like lots of candidates at some point we considered NumPy.

小组成员:NumPy。Panelist: NumPy.

嘉宾:使用 Transformers,Hugging Face Transformers。Panelist: do Transformers Hugging Face Transformers.

Alex Wettig:Hugging Face Transformers。所以,仓库集合在某种程度上是经过人工挑选的。NumPy 有非常复杂的 C 语言依赖,而且一些历史依赖现在甚至已经不太受支持了。John 一直在翻阅各种日志,试着安装基本上是三年前的 NumPy 版本。然后你知道,有时候它能成功;某些流水线能够处理较新的问题,但对旧的 PR 就不太行了,甚至还要解析各种测试框架。你知道,我觉得有很多非常好的代码……Alex Wettig: Hugging Face Transformers. So like the set of repositories was a little bit kind of hand-picked. And NumPy has very complicated C dependencies and some of the historical dependencies are also not even super well supported anymore. And John was like digging through all these logs of trying to install basically three year old NumPy versions. And then you know, sometimes it will work, some pipeline would work for like more recent issues, but not really for old PRs and even like parsing the various testing frameworks like you know, I think there was a lot of very good code

小组成员:就是这么写的。而且你会遇到各种边缘情况。我觉得 SWE-bench 的核心理念看起来真的很简单。我记得 Carlos 第一次向我介绍它时,我就觉得,这真是太棒了。但你会遇到各种边缘情况,比如说,如果我们有“由失败变为通过”和“由通过变为通过”这样的概念,那要是某些测试无法定义,因为环境出了问题,或者某个依赖项没有定义而导致报错,该怎么办?如果有未定义的依赖项,却要让测试通过,该怎么处理?我觉得,讨论清楚这些边缘情况确实花了一些时间。现在嘛,因为我们有了非常强大的编码智能体来完成很多这类工作,事情就容易多了。Panelist: that was written. And you encounter all these edge cases. I think that like the main idea of SWE-bench seems really simple. I remember when Carlos first pitched it to me, I was like this is this is great. But there are all these edge cases that you encounter where like what happens if you know, we have this notion of like fail to pass and pass to pass. What if like certain tests are undefined because they just like there's some environment issue and they error because like some dependency is defined. Like how if you have like undefined dependency to pass, like how do you deal with that? And I think talking through some of these edge cases took some time. I think now it's you know, because we have really strong coding agents doing a lot of this work becomes a lot easier.

Alex Wettig:还有,也许你们可以稍微聊聊 SWE-smith。你们这门课……你们已经学过 SWE-smith 了吗?Alex Wettig: And like maybe you should talk a little bit about SWE-smith. Has the class like have you guys gone through SWE-smith yet?

John Yang:在数据部分。对,对,他们……John Yang: in the data section. Yeah, yeah, they're

Alex Wettig:你知道,SWE-smith 在很大程度上受到 SWE-bench 任务格式的启发。SWE-bench 像 John 的项目一样,采用了一种自动安装的设置方式:把智能体放进环境中,然后由模型或智能体来完成设置依赖项、解析测试等流程。不过当时我们还没有这样的条件,所以基本上只能手动完成。Alex Wettig: So you know, SWE-smith is very inspired by the task format of SWE-bench, which like John has this like automatic install kind of setup where he takes the agent and puts it into the environment and then the process of setting up the dependencies and parsing the tests and so on is just done by like a model, an agent. And but that wasn't available to us at the time. So we had to do that by hand, basically.

John Yang:是的。我想是的,谢谢 Carlos 和 Alex。我想强调一下大家刚才提到的这些精彩观点。我们经常会进行这种白板讨论,把各种复杂的图表都画出来。我觉得归根结底,就像 Alex 说的,你们确实有编程智能体,应该好好利用它们。但没有什么比亲自动手实践更重要。Carlos 有句常说的话,我们会用它来互相鼓励:遇到这些非常困难的时刻,就要在泥泞中跋涉。所以,当你们在构建任务时——你们知道,这个行业在很多方面都非常有吸引力,而且至少目前看来,它会继续存在——别害怕亲自动手实践。John Yang: Yeah. I think yeah, thanks Carlos and Alex. I think just to kind of show folks here to kind of nail down the great points that Carlos and Alex brought up. We'd often do these kind of like whiteboard sessions where we just drawing out all these crazy diagrams. I think the point at the end of the day is like Alex said, you do have coding agents. You should use them. But nothing beats just like getting your hands dirty. There's like a saying that Carlos had that we'd kind of like inspire each other. We'd say like trudge through mud when it came to these like very difficult moments. So when you guys are building tasks and like you know, this is like a very compelling industry in many ways and like at least for now, it looks like it's here to stay. Like don't be afraid to get your hands dirty.

有些事情别害怕手动处理。我觉得吧,当你能弄清楚第一个任务是什么样的时候——不像当时的我们,现在你可以用编码智能体来真正实现一切自动化。不过,是啊,我们三个人有很多个深夜,就那么盯着这些看起来很简单的东西发愣。Don't be afraid to go manual on things. I think like yeah, when you are able to figure out what that first task looks like, unlike us at the time, you now have coding agents at your disposal to really automate everything. But yeah, I just there were like plenty of late nights the three of us did where we were just kind of staring at these like simple things.

嘉宾:环境方面还有很多长尾问题,PR 中也可能出现各种情况;如果不查看数据,你可能就无法发现这些问题。Panelist: There are also so many like long tail issues with environments and like things that can happen in the issue in the PR that you might not discover if you don't look at the data.

嘉宾:说实话,我们当时也……你知道,我们赶着在紧迫的期限内把这篇论文发表出来。我们确实做了一些质量保证,但 SWE-bench Verified 显然帮了我们很大的忙。Panelist: You know, to be fair, we also you know, we were on a tight deadline to get this paper out. We like did some quality assurance, but like SWE-bench Verified obviously helped us a great deal.

John Yang:是啊,当然。嗯,好,太棒了。所以我想,咱们就随便聊聊、梳理一下吧。就像 Alex 提到的,我们快要完成这篇论文时,你们可能都见过那个精美漂亮的图表版本。我想这应该是 Alex 或 Carlos 画的草图。这就是它变成现在这样之前的样子。你知道,我觉得花时间和心思把它整理出来,这件事本身就挺神奇的。John Yang: Yeah, for sure. Yeah, okay, awesome. So I guess like and then just to kind of hash it out like for fun, like as Alex mentioned when we got close to the paper, you guys have probably all seen like the nice beautiful version of the diagram. I think this is Alex or Carlos who like sketched this out. So this is what it looked like before it became this. And so you know, there's something I think quite magical about just sort of taking the time and the attention to put together.

小组嘉宾:这个数字可能对应好几天左右的……Panelist: this figure for probably like multiple days of like

John Yang:是啊,是啊。我想我们可以调出来看看。有个 Figma 文件,我们的顾问 Karthik 在里面给了我们一些反馈。你知道,我们当时有这么一张图,后来迭代了大概 15 次,结果看起来几乎还是一样,但其实并不一样。所以,没错。很好。那我们接着聊下一个问题,学生们一直在这里探索。比如上节课,我们聊了验证。John Yang: Yeah. Yeah. There's like a I think we can pull up. There's like a Figma where we got critique from Karthik, our advisor, and of like, you know, we had this diagram and then like 15 iterations later, it kind of looked pretty much the same, but it wasn't the same. And so, yeah, exactly. Yeah, great. So, to kind of move on to the next question, students have been kind of here exploring. Like last lecture, we talked about verification.

基于真实拉取请求的来源验证Sourcing verification from real pull requests

你知道,对于这类任务,也许可以把它看作由三个部分构成的模型。首先是问题描述。我们之前也谈了很多关于关注环境的事情。我们的做法和后来的一些工作不太一样,比如 Terminal-Bench 是手动编写验证方式、亲自撰写内容,而我们选择从真实世界中征集验证,对吧?我们基本上是从 PR 里挑选出来的。你们能不能聊聊,为什么会做出这样的选择?我是说,我们并不是在……你知道,我们其实是在逆潮流而行。很多早期的评测可能都是手工编写内容的,但这里面确实有个选择:到底是选哪一种。你们会怎么结合这项任务和这个环境来考虑?又会如何思考验证这件事?You know, like given this sort of task, you can maybe think about it as this model of three components. You have the problem statement. You know, we talked plenty of things about paying attention to the environment. In our case, kind of unlike the works that came after, like Terminal-Bench where they hand wrote the verification, hand authored things, we chose to solicit verification from the wild, right? Like we kind of picked it out from the PRs. Can you guys just maybe talk about sort of why that was the decision? I mean, like it wasn't like, you know, we were bucking the we were kind of bucking the trend here. Like a lot of prior evaluations maybe hand authored their things, but there's this kind of choice to choose between the two. How do you kind of like think about given this task, given this environment, like how do you even like think about verification?

两者都以这里的经历为基础,不过也许还可以谈谈这种情况随着时间推移发生了怎样的变化。Both grounded in the experiences here, but maybe how that's changed over time.

嘉宾:我在想。MMLU,我觉得和 SWE-bench 类似,都是从网上收集而来,并经过一些人工质量审核。我觉得这很大程度上取决于你在评估中想要衡量什么。SWE-bench 有一点特别棒:它包含的问题分布是我们不可能自己手工编写出来的。我们大概在 Python、一些机器学习问题、训练模型以及分布式训练之类的方面有不少专业知识,但我们对 Matplotlib 的后端之类的东西一无所知。而且它很有代表性,虽然最初是针对 Python 的,但后来要用 SWE-bench multilingual 扩展它也相当容易。Panelist: I'm trying to think. So, MMLU, I think was similar to SWE-bench and that it's like it was sort of collected from the web with some human quality assurance. I think if you have it very much kind of depends what you're trying to target in your evaluation. I think one thing that was really great about SWE-bench is that it was like a distribution of problems that we could not have hand authored ourselves. Like we probably have like a good amount of expertise in Python and some machine learning problems and training models and, you know, distributed training or something, but we don't know anything about like the back end of Matplotlib or something. And the fact that it's quite representative, although it was Python to begin with, like it was quite easy to then extend that with SWE-bench multilingual.

而且它的问题集非常具有代表性,汇集了很多很多——你知道,成千上万名程序员的专业知识,我认为这是一个很大的优势。不过,当然,如果你看看 Terminal-Bench 4,它专注于科学领域,贡献者的标准就非常高,而且参与者来自不同的背景,拥有各异的专业知识。他们基本上能够把这些内容精心整理出来;又因为他们认识撰写这些内容的人,所以在标注标准上还能要求得更高。毕竟,我们不可能联系所有开源贡献者,逐一问他们:“你们怎么看这些不同的解决方案?”等等。所以这其中存在一种取舍,但我认为现在大家对 AI 评测的关注,比当时多得多。and the fact that it's like a very representative set of problems and draws from like the expertise of many, many, like you know, thousands of programmers, I think is a big strength. But then of course, if you look at Terminal-Bench four, which just has a focus on science, like the kind of contributor standards are incredibly high and people come in from like a set of different backgrounds and expertise and they manage to basically curate that and then like can sort of because they know the people who are writing this, they can have even higher sort of annotation standards because you know, we could have never reached out to the open source contributors and asked them all of them like, hey, how do you think about these different solutions and so on. So there's a tradeoff there, but I think there is a lot more attention now focused on AI evaluation than there was back then.

从某种意义上说,你知道,John 展示了这样一幅 SWE 爆发式增长的图景。自从 SWE-bench 出现以来,软件工程领域涌现了大量活动和付费标注工作。从某种意义上说,我们并没有打造出完美的基准测试,但我们确实在某种程度上推动了一个庞大进程的启动。And in some sense, you know, like John showed this sort of swee explosion picture. Like a whole lot of like activity and paid annotation and so has happened in software engineering since SWE-bench. So in some sense, like we didn't build the perfect benchmark, but we were able to kind of kick off like a huge process.

John Yang:当然。对。对,这也要感谢 Rishi,他制作了这张图,展示了 SWE-bench Marathon 的作者;它是其中一个数据点。不过,真的很棒。接下来我们从执行过程本身聊起吧。你知道,我们现在已经看到了不少有趣的图。我们最后大概是这样做的:哦,这个我们先跳过。不过,我想再强调一下我最喜欢的一个 bug:我和 Carlos、Alex 一起遇到了这个问题。当时我们用 Conda 创建环境,所以一开始实际上并没有使用 Docker。我们遇到了一大堆失败,后来发现原因是:用 Conda 创建环境时,如果环境名称超过大约 128 个字符,就会开始出现各种随机且不确定的问题。John Yang: For sure. Yeah. Yeah, this thanks to Rishi as well who kind of created this image of who authored SWE-bench Marathon, which is one of the data points in there. But yeah, this is great. So kind of to move on from sort of the execution itself, which you know, there's plenty of now fun images that we've seen. You know, we ended up kind of like doing the Oh, this is we'll we'll we'll skip over this, but like just to kind of hammer home, one of my favorite bugs that I we kind of did with Carlos and Alex was running to this issue where we were creating the environments with Conda, so we weren't actually using Docker earlier on. We're running into a bunch of failures and it turns out the reason was that with conda, if you created environments that were longer than like 128 characters in name, it would just start giving you these random non-deterministic issues.

所以,差不多该为我们这段炉边谈话收尾了。遇到环境配置这类麻烦时,别因此打退堂鼓。这种情况很常见,对吧?甚至可以说,这说明你走在正确的路上:你正在做一些有意思又有挑战的事情,深入其中也很值得。总之,这算是个挺有趣的例子——我们克服那个问题时,确实有那么一刻,突然有了“顿悟”的感觉。So the point is like you know as we kind of conclude this segment of our fireside chat, when you run into like environment wrangling, don't let that put you off. That's like a very natural thing that would happen, right? Like if anything it's indicative that you're on the right path. Like you are doing something that's interesting and tricky and it's good to get into the weeds of it. But yeah this is kind of like a fun instance where there was like a bit of a Eureka moment when we overcame that, you know.

嘉宾:甚至,回到前一张幻灯片。Panelist: Even go going back one slide

嘉宾:稍微谈谈约翰提到的在泥泞中艰难前行这件事。我想这大概是约翰的电脑,我们当时正试着一次修复八个环境。你就得把所有这些都处理一遍,我们确实做了很多工作,你知道的。尤其是约翰,最后那段时间更是如此,不过,呃……Panelist: to kind of go over what John mentioned of trudging through mud. This is probably John's computer, I think, where we're we're trying to like fix eight environments at once. And you just have to go through all like we did a lot of work, you know. John especially in the end there, but uh

小组成员:不过,确实是大家共同努力的成果,没错。所以……Panelist: But yeah it was a great group effort, yeah. So

小组成员:我们也试着在类似 Slurm 集群的环境中完成所有操作,但该集群不支持。Panelist: We also tried to do it all on like a Slurm cluster, which did not have support.

小组成员:所以我们遇到了很多问题,不得不费力处理各种非 root 权限之类的事情,你知道吧。嗯。Panelist: So a lot of we had to fight through a lot of like non-root permissions, stuff like this, you know. Yeah.

Carlos Jimenez:你觉得原版 SWE-bench 是不是太大了,John?Carlos Jimenez: What do you think like do you think the original SWE-bench was too big, John?

小组成员:一开始想做 10,000 道题。Panelist: wanted to do 10,000 questions initially.

嘉宾:我当时挺赞同这个想法的,但我觉得我们第一次跑完基准测试后,我们三个人都觉得,问题倒不在耗时,我想只是它的价格——而如今大家在评估上花的钱远远超过这个数,而且我们当时已经花钱跑过一次了。Panelist: I was pretty on board with that, but I think after we ran the benchmark for the first time, I think the three of us were like it wasn't so much the time, I think it was just the price of it, which is like totally dwarfed by what people spend on evaluations now, and we had already spent money to run it.

SWE-bench 发布后是如何被采用的How SWE-bench was adopted after release

呃uh

嘉宾:其中很大一部分已经大幅下降。Panelist: of it has gone down a lot.

John Yang:这也是真的。这也是真的。是啊,是啊,太棒了。好,我觉得 SWE-bench 显然是那种取得了突破性成功的项目之一,对吧?它最终不只是篇 ICLR 论文,而是人人都在采用的东西。说到这儿,回顾一下这个过程:6 月,Carlos、Alex 和我聚到一起,想出了这个点子,然后开始着手做。Carlos 在 9 月发了一条推文,发布了它。但在接下来的头几个月里,实际上没人真正用过它。所以,你们能不能跟我说说这段过渡期里发生了什么?也就是 2023 年 9 月到 10 月期间的情况。后来,当然,促使 SWE-bench 被广泛使用的那次重要发布,是 Cognition 的人们在 2024 年 3 月发布 Devin 的时候。John Yang: That's also true. That's also true. Yeah. Yeah, that's great. Okay, so kind of you know I think SWE-bench like clearly is one of those works that achieved escape velocity, right? Like it wasn't it wasn't just an I clear paper at the end of the day. This was something that like everybody had adopted. And so kind of transitioning from you know in June Carlos, Alex, and I come together and we come up with the idea. We're working on it. Carlos had released it with a tweet in September. But then nobody had actually really used it for the first couple months. And so like can you guys kind of like walk me through that transitory period of like what was happening between like September, October of 2023? And then certainly like the big you know release that led to SWE-bench being used a lot was by the Cognition folks when they released Devin in March in 2024.

不过我们当时肯定还在继续做一些事情。所以我有点好奇,你能不能带我们梳理一下那段时间发生了什么?另外,除了 Devin 的发布之外,你知道,是什么让这个项目产生了那么大的影响力,甚至超出了一篇普通学术论文通常能达到的影响范围?嗯,对。but we certainly were still working on things. So I guess like curious if you could walk us through kind of what was happening during that period of time and also just kind of with respect to like you know beyond sort of the Devin release like what allowed this project to kind of have the level of impact it had that sort of does exceed sort of a normal academic paper. You know yeah.

Carlos Jimenez:是的。我觉得,SWE-bench 发布后不久,至少从某些方面来说,并没有立刻引起同等程度的关注,这可能也在意料之中。我想,这在一定程度上也与我们的背景有关,而且在 SWE-bench 之前,我们并没有围绕这个具体方向做大量工作。不过另一方面,我确实认为大家很快就领会了这个想法。比如,Cognition 的那些人——至少在我和他们交流时——听起来像是看过这篇论文,也马上意识到,哦,原来可以做出某种由 AI 驱动的编程产品或服务,而且这样的产品或服务会很有价值。我觉得我们也得出了同样的结论,只不过我们是从学术界一个截然不同的角度出发的。Carlos Jimenez: Yeah. So immediately after the release of SWE-bench I think in some respects you know there wasn't like immediate kind of the same level of attention which is possibly expected. I think also a little bit from you know from our profile and that we hadn't done like a ton of work like preceding SWE-bench on exactly this. But in some I in other ways I do think that people picked up on the idea right away. Like for instance the cognition you know folks I do think when I was at least in my conversation with them kind of sound it sounded like they did they saw the paper and it also clicked for them that oh this is you know you can do some kind of AI driven coding product or like service that would be that would be valuable. And I think we I think we also thought the same thing coming from a very different perspective in the academic kind of world.

我想当时还有其他几个人也马上开始着手做这件事了。我确实觉得这个想法相当……有点像是不可避免的。就是说,无论如何它都会发生。我也觉得,恰好真正让它起飞的因素并非偶然,而是考虑到……大致来说,我想,事后看来很明显,语言模型喜欢可验证的问题;你知道,如果有可验证的问题和大量数据来源,就可以用这些来训练,或者说,你知道,可以在这类事情上改进模型。我不觉得……当然,事后看这一点会更容易,但我想当时……and I think a handful of other people started working on it right away as well. I do think that the idea was quite, was like somewhat inevitable. Like, it would have happened one way or another. I also think that it happened to be very that what really made it kind of lift off was not coincidental, but just given the amount of like kind of given the general I guess in hindsight it's obvious that language models like verifiable problems that you know if you have verifiable problems and like large sources of data then you can kind of train on this or you can like you know improve your models on that sort of thing. And I don't think that is it's in hindsight of course it's easier to see that, but at the time I think that

讨论嘉宾:我们之前在开车过来的路上聊过,那时候还没有 RLVR。Panelist: We talked earlier in the in the drive over and there was no RLVR at the time.

小组成员:回想起来这也有点奇怪,不过我觉得大多数人确实只是做了些监督微调之类的事情。Panelist: Which was also kind of weird to think back on, but people mostly I think did just kind of SFT things.

John Yang:在类似 rollout、GRPO 这些东西出现之前。是啊,是啊,不,这很好。然后我想,Devin 发布之后,大家的兴趣确实大了很多。你们能不能聊聊,如何推动大家采用它,或者培育那个逐渐兴起的社区?正如你提到的,Carlos,社区的一个源头来自学术界,但业界也跟进了。我们还创建了一个排行榜。我的意思是,当我创建了任务,也证明了它有用之后,究竟要做些什么才能推动它发展?你们能不能也谈谈这一点?John Yang: Before the advent of kind of like you know rollouts and GRPO and stuff like that. Yeah. Yeah, no that's great. And then like you know like I guess after Devin launched certainly there was like a lot more interest. Can you guys talk about sort of how to facilitate that adoption or that community that kind of started to emerge? Certainly like you mentioned Carlos like one stem of it was from the academic side of things, but industry had picked up along it. We had started a leaderboard. Like yeah, when it comes to sort of like okay I've created the task, I've proved that it's useful, but what is it actually take to foster that? Can you guys kind of comment on that as well?

Carlos Jimenez:我的意思是,我觉得 SWE-bench 之后,社区参与度很高。对我来说,SWE-bench 在我读博期间的职业生涯中很特别,因为它需要大量社区投入——也就是项目发布后大家做的那些工作。我觉得至少在 SWE-bench Verified 发布后的整整一年里,我们都花了很多时间做开源维护,比如维护排行榜、修复 bug、维护运行框架,以及其他各种工作。 我们还和 Killian 等人一起做了一些工作,让运行智能体模式变得更容易。当时其实并没有……说实话,我现在也不太确定如今大家在开源项目里是怎么运行智能体循环的。但在当时,对这方面的支持确实少得多。比如 John,我想 John 之前和 InterCode 一起做过一些相关工作,但基本上,把语言模型的输出直接传进终端,并让这个循环运转起来,需要做很多工作。这些都是我们自己做的,至少在 InterCode 之前,这还不是常见做法。后来我们也在 SWE-agent 里对这个流程做了很多改进。 所以,是的,我想我们做了很多社区支持工作,让大家更容易上手。说到底,可能就是把它做成一个好产品,让大家用起来体验不错。良好的用户体验和市场推广也很有帮助。嗯,Fear 是我们很棒的推广者,我觉得他做了很多……Carlos Jimenez: I mean I think a lot of community engagement I think post SWE-bench SWE-bench was special in my in my like career as a as a PhD student in that it required an enormous amount of community like labor like that you do afterwards I think for like a solid year at least after SWE-bench Verified like we were spending a lot of time doing open source maintenance and like you know maintaining leaderboards fixing bugs maintaining a harness and all of this other work we also did like with Killian and others we did this work around kind of making it easier to run the agentic setting so back then there weren't kind of I'm actually not I guess now I'm not I'm not totally sure on how people run like the agentic loop in the open source now so to speak but at the time there was definitely much less support for that like you know like John and I guess John had like done some of the work with InterCode before but essentially kind of piping language model outputs directly into a terminal and having this loop work was a lot of work that we you know we did on our own and that wasn't really a thing before InterCode at least and then like you know we refined that process a lot in SWE-agent as well and so yeah I mean I suppose a lot of a lot of a lot of community support and making it easy for people to run making it actually like I guess making like a good you know if you think about it as like a product making a good product that people kind of are happy to you have a good experience using so like good user experience marketing also helps you know well Fear was a great marketer for us I think he had a lot of uh

小组成员:你知道,Twitter 上有很多人参与,不管是好是坏。对,没错。是啊。Panelist: Plenty of Twitter participation you know for better for worse yeah that's right yeah

嘉宾:我想,是的,你们后来确实投入了海量工作,让它变得易于运行,并把所有东西都转换成了 Docker 这类更具可移植性的标准。你们还和行业内各方合作,让它能够运行起来。我觉得人们常有一种很棒的本能:完成一件事后,就立刻转向下一件事。但我认为,你们后来投入的这些工作在这里确实得到了回报。而且,你知道,我们也一直在跟进这件事。所以在某种意义上,SWE-agent 就是 SWE-bench 的一个基线;你可以把那篇论文看作是 SWE-bench 的补充。我觉得,我们在这方面也没有操之过急,没有一下子走得太远,这一点很重要。我们本来也可以沿着为 SWE-bench 训练的方向走得很远,尽可能快地在它上面刷高成绩;但我们先做出了智能体基线,后来发现它非常有意思。再后来,大概两年后,我们才做了 SWE-smith,它更侧重于训练集。Panelist: I guess yeah you really put in like an enormous amount of work afterwards to make it easy to run and like convert everything into standards like Docker that were much more portable. Working with like people from across the industry like make it runnable. And I think there's like this great instinct to like finish a thing and then like immediately jump to the next thing, but I think putting in the work afterwards like really paid off here. And also, you know, we like kept following up on it. So SWE-agent in some way is just like a baseline for SWE-bench that it's like you can kind of read the paper as like a like an addendum to SWE-bench. And I think the fact that we have also kind of took things slowly there and didn't jump too far ahead. Like we could have also gone really far in the direction of like kind of training for SWE-bench and trying to like climb on it as fast as possible, but we kind of first got like the agentic baseline which ended up being really interested and then interesting and then only like I guess two years later maybe we did SWE-smith which was more focused on the training set.

从基准测试到智能体运行框架:SWE-agentFrom benchmark to harness: SWE-agent

John Yang:是的,我们差不多是把所有组件一个一个地做出来了。对。不,完全正确。所以我想,这正好是个很好的引入。你知道,这门课我们现在讲到一半,正在讨论评估和数据;但在前半部分,我们谈了很多智能体设计,比如从同样参与了这篇论文的 Shin Yu 所提出的 ReAct 范式,到记忆、多智能体等等。这些东西显然比两三年前更切合当下。我想,进一步聚焦在这一点上:没错,为什么在 SWE-bench 之后,SWE-agent 会是一个合适的后续项目?从某种意义上说,这其中还隐含着一个更高层次的问题:当你构建一项新的评估时,它可能会如何转化为对 harness 的改进?或者说,一项更难的任务,如何推动我们改进这样一个系统——也就是围绕语言模型构建的系统,或者说,这个系统需要如何演进?John Yang: Yeah, we kind of had all the components sort of one by one. Yeah. No, that's exactly right. So I guess that's actually a great segue. You know, half of this class, we're kind of in the half where we're kind of talking about evaluations and data right now, but in the first half of this class, we talked a lot about agent design, you know, going from like Shin Yu who's also on this paper and kind of the ReAct paradigm to memory and to multi-agent and things that have certainly are more relevant today than they were two, three years ago. I guess like fundamentally dialing in on that point a bit more. Yeah, what why was SWE-agent sort of the right project to do after SWE-bench? And in some sense in sort of a higher order question baked in there is like when you kind of build out a new evaluation, how does that potentially translate to like improvements in the harness or how does sort of a more difficult task like improve sort of, hey, this is like a system around the language model or like how that system needs to evolve.

嘉宾:这其实是个很不错的流程,对吧?先构建基准测试,再为这个基准测试打造一个更好的基线,比如一个更灵活的测试框架,然后才专注于真正针对这个基准测试训练模型。是吧?Panelist: It's actually a really nice sequence, right? First making the benchmark, then making a better baseline for that benchmark, like a more flexible harness, and then only then focusing on like actually training your for that benchmark, yeah.

John Yang:我想澄清一下,这个问题大概是:构建基准之后,它如何帮助我们打造更好的智能体系统?比如说,让你的测试框架和评估方式共同演进,这到底意味着什么?你懂我的意思吧?John Yang: To clarify, the question is like after you build a benchmark, how does that benchmark potentially inform a better agentic system? Like what does it mean to sort of like co-evolve your harness with the evaluation or something like that, you know?

小组成员:是的,我想知道未来这方面还会有多大变化。我们最初为 SWE-bench 做基线测试时,采用的有点像 RAG 基线。我们没有……我们专注于直接利用模型的原始智能来解决问题,并没有额外加入诸如查找文件,以及进行大量其他工具调用之类的任务,比如后来在 harness 中实现的这种 REPL 风格设计。我认为这显然是第一步:先测试语言模型能否利用其最主要的优势,也就是智能,来解决问题。后来出现的所有这些东西也是如此;就连 SWE-agent,我们也得做很多工作——SWE-agent 是一个相当复杂的 harness。Panelist: Yeah, I think I wonder how much this will change more in the future. So when we did when we initially did the initial baselines for SWE-bench were kind of like a RAG baseline. So we didn't we focused on just kind of getting raw intelligence from the model to like solve a problem without necessarily kind of putting on the added problems of like finding the files and doing a lot of other you know, tool calling agent like, you know, this kind of repl style design that eventually happened with the harness. And I think it's like obviously a first step in order to kind of just you know, test whether a problem whether like, you know, you can use a language model's main affordance, which is its intelligence, in order to solve a problem. And all of the stuff that came later we even like with SWE-agent, we had to do a lot of a lot like SWE-agent is a pretty heavy harness.

我们不得不做很多工作,才能让模型在终端环境中表现得比较好。因此,我们设计了大量提示词,也设置了各种各样的防护措施。比如,如果模型试图执行非法命令,我们就会注入一些额外的提示词之类的东西,让它去做别的事情。We had to do a lot of work to make the model behave nicely with the terminal environment. And so we had all of this prompting. We had all of these types of you know like safeguards. Like if a model tried to do an illegal command, we would like you know inject some extra prompting or whatever to like make it you know do different things.

小组成员:它们也算是某种聊天模型。所以你得像和聊天模型对话那样,跟它们聊上一会儿。Panelist: They were also kind of chat models. So like you had to kind of talk to them a little bit like chat models.

嘉宾:是的,是的,我的意思是,我们基本上得想办法让一个原本经过训练、用于和人类聊天的模型,转而通过命令行与计算机交互。所以现在的模型最终也越来越多地接受了这类任务的训练。我们还发现,正因如此,随着时间推移,harness(运行框架)可以变得轻量得多。我想,如果你现在在考虑一些更难的新问题,在某种程度上,我觉得你可能确实需要稍微引导一下模型,帮助它解决这类问题;你只要搭建一个 harness,激发模型特定方面的能力,也就是它的原始智能,从而获得一些信号,看看它能不能帮你解决这些问题。然后,最终如果模型足够聪明,能够自己摸索出环境,很多时候你会发现,几乎不需要 harness,往往反而是最好的做法。Panelist: Yeah. Yeah, I mean we were trying to essentially we had to kind of coerce a model that was trained to chat with humans to talk with a computer via the command line. And so now they eventually models kind of trained more to do that type of thing. And we also see that the harness could become much lighter weight over time because of that. And so like I guess if you're thinking now about new harder problems, to some degree I think you do maybe need to hand hold the model a little bit on solving problems where you just build a harness to elicit particular you know like the raw intelligence from the model in order to like get some signal on whether it's going to help you solve those problems. And then eventually if the model is smart enough to figure out the environment for itself, often times you know no like minimal harness is frequently the best the best kind of thing.

随着时间推移,模型越来越强,我们也看到测试框架变得越来越轻量。And we've seen that over time as models got better and better, you know the harness became increasingly lightweight.

John Yang:是的,当然。哦,没错。看到你们在构建系统之类的东西时,这种来回迭代挺有意思的;说到底,这确实是一项有意义的工作。但同样有意思的是,看看哪些部分最终会被模型吸收,对吧?我记得我们刚才在看这些执行轨迹时,发现了一些特别好笑的防护措施:比如,如果模型对某个东西执行了 RM-R,严格来说你不必给它任何输出。输出是空的,对吧?因为 RM-R 是静默失败。然后你会看到模型说:“嗯,我显然没能成功删除它,因为没有成功消息表明这些文件已经消失了。让我再执行一次 RM-R。”所以我觉得这类事情虽然简单,但有些东西一直保留了下来。比如我们开发文件编辑器和文件查看器时,还有像 Killion 后来开发了 mini-SWE-agent,而你们现在也在积极使用它。John Yang: Yeah, definitely. Oh yeah, it's kind of interesting to see this back and forth of like as you guys are building out systems and stuff that like it is it's a meaningful effort at the end of the day. But it's also interesting to see like which parts end up getting swallowed by the models, right? Like I remember like we were just looking through these trajectories and there were these like very funny guardrails where like if a model had RMed something and technically you don't have to give it any output. The output is empty, right? Because RM-R is quiet failure. And you would see the model go, hmm, I clearly haven't removed this successfully because there's no success message indicating the files receipt it like is disappeared. Let me do RM-R again. And so I think like it's simple stuff like this, but then some of the things that have persisted is like when we built like file editor, a file viewer and you know, you have things like Killion ended up developing mini-SWE-agent in which you guys are actively using.

所以那就全都变成 Bash 了。但如果你看看 Codex、Claude Code,或者这些编码代理框架,就会发现里面有一些定制工具。所以我觉得,正如 Carlos 和 Alex 所说,随着工具不断演进,哪些部分最终会通过某种数据干预被模型吸收,成为模型能力,哪些部分会保留下来,这真的没有标准答案,对吧?这其实是一个持续演进的过程。对。and so that just goes all bash. But if you look at Codex or a Claude code or any of these coding agent harnesses, you can see that there's like custom tools in there. And so I think like to Carlos and Alex's point, this evolution of like tools, which parts end up being swallowed into the model as model capabilities via kind of data interventions, which parts are here to stay. There's really no right answer, right? It's sort of like a constant evolution. Yeah.

嘉宾:换位思考,站在模型的角度看事情也挺奇怪的。模型每次开始时都像是在开启新一集,问题会突然冒出来,需要它去解决。它见过数百万种环境,而我觉得,我们在处理问题时往往会默认很多背景信息,模型却未必总能掌握。所以,看看模型在评测中的表现很有帮助:留意它是否总是花很多次工具调用,沿着某条错误的思路钻进死胡同——从模型的角度看,这种情况或许还挺能理解的。Panelist: It's also weird to put yourself in like the sort of footsteps of a model that starts out like a new episode like out of nowhere there's like a problem that it has to solve and it can you know, it has seen like millions of environments and the kind of I think we often have like a lot of assumed context when we tackle problems that models may not always have. So that's why it is good to look at what the model is doing in the evals, see if it always spends many tool calls going down some like wrong rabbit hole that maybe is quite understandable from the perspective of the model.

研究习惯与协作Research habits and collaboration

John Yang:非常棒。非常棒。是啊,现在嘛,这大概就是 SWE-bench 的故事以及其中的技术细节,而且 Carlos 和 Alex 都是非常出色的研究人员。我觉得,如果你去旧金山的圈子里问问,就会发现他们俩都特别厉害,做出了非常了不起的成果。说到这里,我想多问问你们的研究习惯之类的。这项工作最终成了一个大型团队项目。当然,你们在这里也各自独立完成任务;但如果你们将来想加入一家前沿实验室,或者自己创业,我觉得团队是一个非常重要的概念。John Yang: Very cool. Very cool. Yeah. And then now yeah, so that's kind of like you know, the story of SWE-bench and the technicalities and like both Carlos and Alex are excellent researchers. I think if you go into sort of the SF atmosphere and ask like these guys are both incredibly have done really incredible work. So I guess to that end, I want to ask you guys more about just kind of like research habits and sort of like, you know, this ended up being a big team effort. Certainly folks here you guys are working on tasks individually, but you know, if you want to like join a frontier lab or start your own thing one day, I think like team is a very important concept.

我的意思是,你们肯定听过很多关于团队合作非常重要的说法。不过,结合我们的经历——包括 SWE-bench 方面的经历,以及你们从那时起积累的大量经验——你们觉得哪些研究习惯很重要?怎样才能建立良好的合作关系?你们可以结合基准测试、研究工作,或者更宏观的层面来谈,想从哪个角度讨论都可以。So I mean there's like certainly plenty of answers you've heard about how like teamwork is super important, but kind of grounded in our experiences both like with SWE-bench and also just, you know, generally speaking now that you guys have had so much accumulative experience since then, yeah, what do you feel like is important sort of like research habits and then also just sort of having good collaborations, and you can ground it sort of within benchmarks, within research, within sort of the grand scheme of things, whatever level you want to discuss it at.

嘉宾:是的。我稍微沿着 John 提到的那个思路说一下:你知道,要努力工作、投入大量精力,做好各种琐碎细节,才能让环境正常运行、让评测正常进行,或者让模型按你的要求完成任务。我确实觉得,一种很常见的情况是,尤其是那些可能在训练模型的人,会把数据或评测视为理所当然。你应该花时间一步步检查模型具体看到了什么,然后就会发现,哦,你知道,它缺少某个依赖项之类的东西,所以根本没法解决问题。机器学习通常是行得通的;只要你有数据,而且结构合乎逻辑、合理,就应该能奏效。Panelist: Yeah. I was going a little bit on the theme of John, that John's talked about in terms of you know, working hard and putting a lot of effort and kind of doing the nitty gritty to get environments to work or to get evals to work or to get models to do what you want them to. I do think that like a very common thing that happens, especially with people that are trying to maybe train models, is that they take the data for granted or they take the eval for granted and you should like spend time stepping through exactly what the model sees and then you're going to realize like, oh, you know, it's missing a dependency or something and then it just can't solve the problem. Machine learning very frequently works and if you have the data and like if the if the structure is kind of logical and reasonable, it should work.

就像,你可以稍微摆弄一下这些东西。Like you should like you can you just have to kind of, you know, fiddle with things a little bit.

嘉宾:对,要尽可能全面。Panelist: Yeah, be thorough with it.

约翰·杨:这是个好建议。别把评测当成理所当然的事。我想说,我觉得 SWE-bench 有件事特别有意思:如果你把 Carlos 最初的笔记翻出来看,他一开始谈论、思考 SWE-bench 时,某种程度上是从长上下文模型的角度出发的;那在当时算是个挺热门的方向。我记得那是模型的上下文长度第一次从 1K token 增长到 16K token,有些甚至达到了 100K。我觉得开源模型当时大概也发展到了 16K 左右。John Yang: That's good advice. Do not take the eval for granted. I would say I think, one thing that I find really like fun about SWE-bench is that like it Carlos's original notes, if you bring them back up, he kind of first started talking thinking about SWE-bench from the perspective of long context models, which I kind of been like a bit of a trendy thing back then. It was the first time that I think models went from like 1K tokens to like 16K tokens and some of them even went to 100K. I think the open source ones were like getting to like 16K or something.

嘉宾:是的,我觉得 Claude 2 应该是第一个 100K 模型,算是有点……Panelist: Yeah, I think Claude 2 I think was the first 100K model that was like a little bit

发言人:不过我觉得这是个很棒的问题:超长上下文模型能让哪些事情变得可行?我认为,很多非常有趣、新颖的研究都是从这类非常开放的问题开始的。有时候,这些问题会把你带到截然不同的方向。我觉得现在人们完全不会把 SWE-bench 看作长上下文评测,但有时候,这类问题确实会带你去很有意思的地方。Panelist: And but I think it's it's kind of a great question like what becomes feasible with super long context models and I think a lot of like really interesting and novel research starts with like yeah these kind of like very open-ended questions and then like sometimes they lead you to very different I don't think people think of SWE-bench now as like a long context eval at all, but sometimes they lead you to very interesting places.

接下来值得测量什么What is worth measuring next

John Yang:是啊,很好。我想,很多事情都发生了变化。我很好奇你们怎么看接下来值得衡量什么。SWE-bench 现在无疑已经成了一个基准测试,经过验证的版本和多语言版本也都相当饱和了。我觉得多模态方面也快要饱和了。要展开这个话题,我想大家都听说过 Terminal-Bench 团队的观点。我觉得难度无疑是一个值得探索的方向。思考难度究竟意味着什么也很有意思,不过这确实是个比较开放的问题。你们觉得,自 SWE-bench 以来,哪些方面值得衡量?又有哪些方面今后仍值得衡量?有没有什么我们还没在衡量、但你们觉得值得关注的东西?John Yang: Yeah, great. And then I guess like plenty of things have changed. Curious what your guys' takes are on like what's worth measuring next, you know? So SWE-bench is a benchmark certainly at this point with the verified and multilingual. They've been pretty saturated. I think multimodal is on its way to being saturated. I think like I guess to set things up we've all heard from the Terminal-Bench folks. I think like difficulty is certainly one axis to pursue. It's also very interesting to think about sort of what difficulty means, but yeah it's a bit of a open-ended question. What do you think has been worth measuring since SWE-bench and what do you think continues to be worth measuring? What's maybe something we're not measuring that you know could be interesting to look at?

这是个比较大的问题。所以我先稍微说一点,也许能给大家一些时间思考。对,你们知道,我们之前也聊过,对吧?你们听 Terminal-Bench 团队的人介绍过。我们逐渐不再局限于订阅 GitHub 代码库、问题和 PR 了。背后的想法大概是:终端里其实可以做很多不同类型的事情。所以,正如 Alex 谈到 Terminal-Bench 科学之类的内容时所说,我们可以借助人类的专业知识;而终端恰好是执行很多种任务的绝佳环境,比如操作 AWS,或者完全通过代码来做某种生物学实验。后来人们又把这个思路拓展了。我们还聊过 Tau bench,对吧?It's kind of a bigger question. So I'll start a little bit maybe to kind of give you guys time to think. Yeah so like you know we've kind of talked about it, right? You guys heard from the Terminal-Bench folks. We kind of moved away from subscribing to just GitHub code bases and issues and PRs and like, you know, the idea behind that was that wow, you can actually do a lot of different kinds of things in the terminal. And so like sort of leaning on human expertise as Alex talked about with like Terminal-Bench science and stuff like that, you can sort of the terminal happens to be a really good environment for a lot of kinds of tasks like manipulating AWS or like doing some sort of biology experiment purely in code or you know, like with and then people kind of extended this. We talked about like Tau bench, right?

以及让用户参与其中之类的。所以我觉得,到目前为止,这种转变似乎是:终端环境保持不变,而验证方式、你要求模型完成的任务(也就是问题陈述),以及你提供给它的资源,都随着时间发生了变化。这是我们应该继续沿用的一种范式吗?也许这确实是一种很强的范式,我们应该继续这么做。不过,除此之外还有没有其他做法?And incorporating users in the loop and stuff like that. So I think like the transition so far has seemed to be like the terminal environment stays. The verification, what you ask the model to do as the problem statement, the assets you give to it have seemed to shift over time. Is this a paradigm that we should continue with? Like maybe that's a pretty strong paradigm and we should keep doing that. But yeah, is there or are there other things as well?

嘉宾:我想你知道,我刚才说过,提出好问题是件好事。我觉得这是个非常有力量的问题,而且我想,想出一个好的答案也会很有意义。所以我不认为我们能给出特别出色的答案。不过我想说,有一项我很喜欢的评测,带点异想天开的意味,就是让 Claude 玩《宝可梦》。我觉得那特别有趣,也让人联想到模型截然不同的能力。它更多是在探索一个全新的环境,以一种很不一样的方式与某种数字世界互动,而不是面对代码库和终端。你知道,也许还有一些有趣的评测类型,比如这些截然不同的环境——基本上就是终端之外的东西。Panelist: I think you know, I just said it's like you know, it's good to ask good questions. I think this is one of these questions that is like a very powerful question and I think you know, like coming up with a good answer to this I think will be very powerful. So I don't think we're going to offer particularly great answers. But I would say like one eval I really liked that was a little bit whimsical was when Claude played Pokémon. I think that was very fun and it like alluded to like very different abilities of models. So it was much more about like exploring like exploring a brand new environment and like very different way of like interacting with some kind of digital world than like code base and a terminal is. And you know, possibly there are like interesting types of kinds of evals, but like these very different kind of environments like basically what is sort of outside of the terminal.

我觉得另一个不同的观点是,你知道,在一些可验证的任务上,模型一直在变得更好。但它们似乎并不总能让我们满意;而且,在人类互动中那些更微妙的方面,进步似乎要不稳定得多。是啊,我觉得还没有人真正成功地为这些方面设计出很好的评估,也许在这里构建评估意味着要采用不同的形式,而不只是提出问题、验证答案之类的。也许值得想想这一点。I think a different point is that you know models keep getting better on some of these verifiable tasks. They don't quite seem to sort of always satisfy us or like progress seems a lot more unsteady in some of the more sort of subtle aspects of human interaction and yeah, I don't think anyone has quite managed to build great evals for that and maybe sort of what it means to build an eval there is also like will take a different form than just like problem you know answer verify or something and might be good to think about that.

小组成员:是的,我也认同其中很多观点。我觉得,关键是想办法从过去不那么明确的事物中获取信号。比如说,很久以前,人们会从互联网上的非结构化数据中获取机器学习数据。我觉得,SWE-bench 真正充分利用了互联网上原本完全非结构化的数据,然后投入人力把它整理得更有条理一些;或者说,这些数据最初就已经有一定结构,但我们投入人力,让它变得可行,从而真正能够从人类专业知识中获取信号。这里的人类专业知识指的就是拉取请求。也就是说,人类通过提交拉取请求来投入劳动,本质上是把自己的专业知识编码进数据中。接下来,你得搭建环境,实质上还得运行模型生成的代码,或者运行模型生成的差异,并将它们与这一人类信号进行比对。这就是监督信号的来源;在这个例子中,也就是评估信号的来源。Panelist: Yeah, I'd echo a lot of those things. I think I think I think finding ways to maybe gain signal from things that were not so clear cut before. So I think for instance, you know a very long time ago when you think about like the machine learning data that people would get from unstructured data on the internet. I think SWE-bench like really exploiting SWE-bench took fundamentally unstructured data on the internet and then like putting the labor in to structure it a little more or I guess it was initially structured, but we put the labor into like making it feasible to actually kind of get that signal from the human expertise. So human expertise being the pull requests. So humans are doing labor to like you know essentially encode their expertise in data via pull requests and you have to build the environment and you have to essentially run and like run the code that model or run the diffs that models are producing against this human signal and that's like where the source of supervision or are of in this case evaluation comes from.

我觉得,也许还有更多途径,可以在互联网上或通过其他方式找到某种人类信号。比如,可能得花些功夫,把一个问题和人类信号联系起来,再以某种方式将模型与人类信号进行比较。但我觉得,是的,也许外面还有其他东西,也具有类似的结构。And I think maybe there are more ways that we can kind of find human signal either out on the internet or maybe through some other means where like maybe you have to put some work in to like connect a problem with the human signal and like compare the model with the human signal somehow. But I feel like yeah there maybe there's there's something else out there that has some structure like this as well.

John Yang:是的,有道理,有道理。好,太感谢各位了。嗯,我想时间差不多了。太棒了。我已经把手头的问题都问完了。那我们先简单感谢一下 Carlos 和 Alex,然后我就向现场观众开放提问。John Yang: Yeah, makes sense, makes sense. Cool, thank you so much guys. Yeah, I think we're right at about time. So this is great. I've gone through the roster of questions that I have. So yeah, let's thank Carlos and Alex briefly before we open the and then I'll open up to the crowd now.

观众问答:如何使用编程智能体构建评测Audience Q&A: Building evals with coding agents

约翰·杨:John Yang:

卡洛斯·希门尼斯:Carlos Jimenez:

嘉宾:是啊,我觉得我觉得这有点合成的感觉。好吧,我想我还是把这件事分成两部分来说。如今的模型比过去强大得多。要是约翰和我当时有——或者说,要是过去我们有一个能力很强的编程智能体,创建环境就会容易得多。我们当时得投入很多人力……所以我会从几个不同的角度来看如何使用模型。最先想到的一种,就是工程实现的成本低了很多。你可以把一个问题想清楚,只要它在某种程度上是合理的、经过周密思考的,模型大概就能端到端地把它实现出来,不需要太多人工投入。这说的是实现层面,我觉得从某种意义上说,这可能仍然是你能做的最有力的事情。Panelist: Yeah, I think I think that's kind of synthetic. Well okay, I guess I'll I'll split this up into two things. There is models today are a lot more powerful than they were in the past. If John and I had like or you know if we had like a very capable coding agent in the past making environments would have been way easier. Like there was a lot of labor that we had to And so I kind of would think about there's a few different ways you can use a model. One of the ways that comes first to mind is just that engineering is a lot cheaper. Like you can you know think about a problem as long as it's kind of well you know well it's sound or kind of well thought out to some degree. Models can probably engineer that end to end without a lot of a lot of human input. And that's that's kind of the implementation side and I think that's still probably the most powerful thing that you can do in a way.

我认为,归根结底,获取人类的反馈——也就是来自真正高水平专家的人类信号——仍然算是黄金标准。我不认为模型……我的意思是,我也不太确定,但人类仍然是衡量万物的尺度。某种程度上说,人类就是衡量万物的标准。所以我认为,人类输入会继续保持相关性和重要性。 你也可以考虑合成数据,本质上就是从模型本身引出任务或解决方案。我认为这种方法也可行。你只需要留意,问题和解决方案——或者说问题及其验证流程——要以这样的方式生成:模型必须有效地解决问题,而且不能只依赖自身的知识来完成任务;它还必须有某种外部验证。I think that getting human at the end of the day like real high quality expert you know like human you know human signal is still kind of the gold the gold standard. And I don't think that models I mean I don't I don't know exactly but humans are still you know humans are kind of the measure of all things in a way. And so I think it's I think that human input will kind of continue to be relevant and important. You can also think about synthetic data and that's essentially kind of eliciting tasks or solutions from models themselves. And I think that can work as well. You just have to be mindful that the problems and solutions are or like the problem and verification process is generated in such a way that the model has to essentially solve problems effectively and can't really like you know you I and essentially can't rely on it its own knowledge to do things without like without some external verification.

John Yang:基本上,信号总得来自某个地方,我认为可以通过几种不同的方式获得。但我觉得,单纯模型对模型的东西通常比较弱。更重要的是,你必须投入大量计算、一些人工输入,或者在此基础上做些额外工作,才能从某种程度上由合成方式生成的评测中获取信号。John Yang: Basically signal has to come from somewhere and I think that can come via a few different methods. But I think like just kind of pure model to model stuff is usually weaker and more importantly, you have to have like major computation, some human input, or some additional work on top to make to like get signal from an eval that's synthetic in some way.

Alex Wettig:我想接下来想问的是,你们现在构建评测的工作流程是怎样的?先说明一下,Carlos 和 Alex 他们都算是业界研究人员,所以,你知道,如果你们……嗯。Alex Wettig: I guess the follow-up is like what is your workflow on constructing evaluations these days? I guess like to preface this, Carlos and Alex like they're all sort of in industry researchers, so you know, if you yeah.

嘉宾:我想,你知道,我觉得有一些比较宽泛、普遍的事情,大概是每个人都得摸索出自己的工作流程。很明显,你知道,如果我们今天才做出 SWE-bench,我们的编程模型水平大概还是一样的,但根本没人想到要做 SWE-bench。我觉得你们需要摸索的事情,以及我认为某种程度上每个人都应该建立自己的工作流程的事情,是那些真正重要的事,比如构建出色的界面,让你能够监督模型、弄清楚它们在做什么。比如说,你知道,我们拿到这些模型后,现在你可能会做的第一件事,不再是让 John 去 Scikit-learn 上翻看一堆单独的 PR,最后才找到一个在标准答案里包含测试、也就是修复了某个问题的 PR,而是直接问模型,对吧?Panelist: I you know, I would say like sort of some like broad general things is probably everyone has to figure out their own workflow. And it is clear that like you know, if we had done SWE-bench today, like we have the same sort of level of coding models, but nobody had thought of doing SWE-bench. Sort of I think the things you have to figure out and I think this will be to some extent like everyone should develop their own workflows. I think the things that really matter sort of like building great interfaces that allow you to sort of supervise the models and figuring out what they're doing. So imagine we like you know, get the models and the first thing you might do nowadays is instead of like John going on Scikit-learn and going through a bunch of individual PRs to eventually find one that has tests in the gold solution, like in the PR that fixed an issue that we you just ask a model, right?

比如说,哦,这个东西是不是存在于某个地方?这种问题可以非常开放。如果模型找到了什么,你显然可以去那里再确认一下,核实一下它是否符合实际情况。然后,一旦你开始构建环境、抓取数据,我觉得你可能会想要一些非常好用的仪表板,展示目前正在处理什么。如果你把智能体派到所有这些环境中,就得想办法让它们都能在同一个地方向你汇报,这样你就能一目了然地查看进展,也可以随时查看一些日志、做抽查;还可以考虑设置一个外层智能体,你可以向它提问,让它给你总结一下正在发生的事情。我觉得,基本上就是做一些关键的问答:既要做抽查,也要设想可能发生的各种情况,然后直接问模型,出现过哪些错误?各个智能体又是怎么修复这些错误的?Like, oh, does this exist somewhere? And like that can be like very open-ended and then like if the model finds something, you can obviously go there and double check that it's kind of, you know, check the ground truth. And then once you start constructing environments and scrape things, I think you probably want to have like very nice dashboards that like show you what is being worked on. And if you send agents into all of these environments, figure out a way in which all of these agents can like report back to you in like one place so you can see it very nicely and you can check in and actually see some logs, do some spot checks, and also then like maybe you know, have like an outer agent that you can query and give you some like summaries of what's happening. And I think kind of just doing sort of some critical Q&A, both doing spot checks but also just thinking of like sort of scenarios that could happen and like just asking the model, what are all the errors that have occurred and like how do we how did the individual agents kind of like fix those errors?

因为你们其实并不希望他们去尝试修复那些本来就不太好用的东西,因为那样可能会损害数据质量。对,重点应该是打造出色的界面,让你仍然能很好地了解正在发生什么,也能轻松查看单个数据点,还能方便地查询和汇总信息。主持人:好,我们现在来听听。主持人:John Yang:主持人:有意思。所以我想问的是,当然,有研究科学家在把这些东西整合起来,但说到设计任务时,还会有其他角色参与,比如 TPM 之类的。那么问题是,除了研究科学家这个角色之外,从角色和一般职责的角度来看,哪些方面有助于把整个任务整合起来?我这样概括准确吗?Because you don't really want them to sort of try and fix things that don't really work, that like where like it kind of compromises data quality. And yeah, kind of focusing you know, building great interfaces that allow you to kind of still have a good overview of what's happening, that make it easy to like actually go into individual data points. And then that also make it easy to kind of query and summarize things. Panelist: okay, we'll take a listen now. Panelist: John Yang: Panelist: Interesting. So I guess the question is that like certainly like you know, there are the research scientists that are putting things together, but like when it comes to this question of like putting together tasks and you have like other roles that are involved like a like a TPM or something like this. And the question is kind of like you know, beyond sort of the research scientist role like you know, what are both in terms of roles, but also just general responsibilities? Like, what is helpful to sort of like put together the whole task? Is that a right capture?

嘉宾:我想,对于你合作的那些 PM,或者类似职位的人来说,你觉得他们有哪些优秀的特质?Panelist: I guess like for the people for the PMs that you're working with or similar roles, like what are your think about some good traits

嘉宾:是的。这挺有意思的。是的,我不……我不知道你们是否和 TPM 合作,不过,我可以让你们……对,也许可以总体聊聊那些互补的角色。对。Panelist: Yeah. That's an interesting one. Yeah, I'm not I don't know if you guys work with TPMs, but yeah, I'll I'll let you maybe Yeah, maybe like roles in general that are set of complementary. Yeah.

小组成员:我觉得——你想先来吗?我会说,传统产品经理的角色,对吧,有点……嗯,涉及很多方面,但其中非常重要的一点其实是研究产品在真实环境中的表现,比如了解用户的使用体验,想想哪些统计指标比较好,如何捕捉用户旅程。也许还要采访用户。我认为,模型显然也是一种产品,而且会收到难以置信的大量反馈。所以要思考哪些反馈是可采取行动的,并在一定程度上为其中一些反馈指明方向。我认为,评估(Evals)是为模型开发指明方向的一种非常好的方式。Panelist: I think Do you want to go first, I would say I think the role of a traditional product manager, right, is kind of Well, there are many bits to it, but something that's very important is actually studying sort of how the product is doing in the wild, how like you know, users are experience like how the user experience is to kind of maybe think about what good statistics are How do you capture like the kind of user journey? Maybe do interviews with users and like I think a model is obviously a product as well, and it garners like an unbelievable amount of feedback. So thinking about like what feedback is actionable and sort of also kind of setting then the direction for like some of that feedback. I think Evals are like a very good form of like setting direction for like kind of model development.

你知道,SWE-bench 在很大程度上为行业内模型开发指明了方向。所以我觉得,与其一开始就把这座反馈的巨山提炼成几件最重要的事,不如先想想怎么做好这件事。我觉得这需要很多判断力,也需要谨慎。你得仔细研究各种场景,弄清楚到底发生了什么。然后,我觉得你可以把这些提炼成一些行动要点,比如说:好,这件事确实很重要,这是我们应该重点关注的。而其他一些事情可能只是噪声。但我觉得更好的做法是,试着把这些内容转化成某种可重复的评测,以此作为衡量进展的确定性指标。Like, you know, SWE-bench very much set like a direction for model development in the industry. So rather than I think first kind of distilling this like giant mountain of feedback down to kind of a few most important things. Like, I think that takes a lot of judgment. It, it takes some like, you know, it like you have to be careful as well. You have to really look into the scenarios to understand what is going on. And then, I think you can either distil this into some like action points of being like, okay, this is actually important. This is what we should focus on. And maybe these other things are just noise. But I think even better would be then like to kind of try and sort of take that and put it into some kind of like you know, like eval that is sort of repeatable and it's like a deterministic measure of progress.

这说得通吗?John Yang:嘉宾:是啊,我想,没错,我完全同意。我们有过一次具体的经历,你们可能还记得我们在讲座上提到过,当时我们在做 SWE-bench verified,这项工作主要是和 OpenAI 的人一起完成的,对吧?所以,你们确实需要像我们这样的研究人员,而我们当时属于准备团队。但我觉得他们做得特别出色的一点是,他们确实组织了人工标注工作,去寻找标注员、进行标注并制定评分标准。如今生成文本确实不算什么难事,但我觉得正如 Carlos 所说,关键在于信号,对吧?制定一套评分标准很容易。可这套标准真的是你认同的吗?它真的是你关心并希望落实到实际操作中的东西吗?Does that make sense? John Yang: Panelist: Yeah, I guess like yeah, I couldn't agree more. One experience that we had concretely as maybe you might recall from lectures when we were kind of doing SWE-bench verified and this was mostly with OpenAI folks, right? And so like you certainly like needed sort of the researchers like us and this was the preparedness team. But I think an excellent thing that they had done was that they actually orchestrated the human annotation effort to actually find labelers and annotate and develop the rubrics. And it's it's not like text is pretty cheap to generate these days, but I think going back to what Carlos said, it's about signal, right? So it's pretty easy to generate a rubric. Is this a rubric that you actually agree with? Is this sort of something that you actually care about operationalizing?

我觉得这很大程度上就是 Carlos 和 Alex 一直在暗示的那件事:第一,你需要人类信号;第二,我觉得就像 Alex 提到的,工程和文本变得更便宜给我们带来的好处是,你可以更多地扮演协调者的角色。但理想情况下,当你处于这种协调的位置时,你可以为自己创建非常简单的工作流,同时在需要时深入查看具体的数据点。所以我认为,SWE-bench Verified 不只是大家都会报告性能的那个 500 个样本的划分;从某种意义上说,你也可以把它看作一个对齐项目:我在乎这个测试吗?它和目标一致吗?I think it's very much sort of the thing that Carlos and Alex have been alluding to, which is like A, you need human signal and B, I think like Alex was talking about with like the benefit that we have with you know, engineering and text being cheaper is that you get to be more of an orchestrator. But then the you know, ideally when you are in that orchestrating position, you can kind of like you know, create very easy workflows for yourself, but then like zoom in on data points if you need to. And so I think SWE-bench Verified beyond it just being sort of the 500 split that everybody reports performance on, I think it's set like a it is kind of in some sense you could think of it as like an alignment project of like well, do I care about this test? Like is it aligned with it?

它测试的是我真正关心的东西吗?我觉得这些原则开始逐渐浮现出来了。比如说,你想到宪法式 AI 之类的东西,归根结底,这多少会让人联想到它。所以我想说,在这门课上,我们也谈到了安全、对齐和行为。很多时候,当你处理这些问题时,似乎存在某种非黑即白的客观真理;但很多时候,其中也掺杂着一些主观性和个人观点。关键在于,这里并不存在某个唯一的绝对真相。更重要的是,除了单纯能够训练一个模型之外,你该如何以一种有意义的方式思考这些问题?所以刚才说的那些内容都比较抽象,不过希望能有所帮助。我们先看这里,然后再回来。Is it testing what I actually care about? And I think these principles start to emerge where it's like yeah, when you think about constitutional AI or something like this, this is kind of sort of you know, reminiscent of that at the end of the day. So I would say like kind of you know, in this class we've talked also about like safety and alignment and behavior and like often times when you tackle those questions like there are some sort of like black and white objective truths, but like often times there's some subjectivity and opinion baked into there. And the point there is there's not sort of one ground truth. It's more sort of like okay, beyond just kind of being able to train a model, like how do you kind of think about these questions in like a meaningful way? So it's all that was kind of a very abstract form, but you know, hopefully that helps. Let’s go here and then come back.

观众问答:验证评估指标Audience Q&A: Validating evaluation metrics

观众:你们在进行评测时采用什么方法?当我们看到很多非确定性的评测——比如让 LLM 来替我们做评估——我们发现其中有很多偏见。你们提到过,接近黄金标准的做法始终是找到一个确定性的解决方案;而很多时候我们做不到这一点,我们看到中间会有一些层,但很多时候我们只能让 LLM 写一段文本或者写出一种结构。我想问的是,从探索的角度来看,你们会怎么把这些列写出来?比如说,以宝可梦游戏为例,这是一组定义我所处世界的指令;那么你们究竟会如何为它构建验证器?又如何让其中某些部分变得确定,或者变得更容易规划?Audience member: your guys' approach when you're doing evaluations and when we're seeing a lot of non-deterministic you know, Evals, when we have kind of LLMs doing the evaluation for us, we've seen that like there's a lot of bias that when you were mentioning the approaching the golden standard is always to get to a deterministic solution and like a lot of times when we don't have that we've seen you know, some layers in between, but a lot of times we're forcing to kind of like an LLM just write a text or write a structure. I guess kind of when you guys see an exploration sense of writing out the columns of like a Say you have a game example for Pokémon, this is this set of instructions of what defines the world that I'm in and kind of like how do you really build a validator for that? How do you get certain parts of it to be either deterministic or something that you want to really better plot?

John Yang:我明白了。所以它们有点像是在重复并综合这个问题。也就是说,你可以把所有任务组件组合起来,然后生成这些东西,比如《宝可梦》里有一个很大的世界之类的。不过,我想……哎呀,抱歉。你们是怎么确保、或者说确认,或者验证验证器、验证环境,从而判断你们正在做的事情是否有意义、是否有难度,也就是是否具备一个好任务所应有的那些理想属性的?我这样概括合理吗?好,对,我想把各种东西组合起来很容易。那你们怎么知道自己做出来的东西有意义,或者值得拿来训练,或者说最终值得投入精力去关注呢?对。John Yang: I see. So they kind of repeat and synthesize the question. It's like yes, you know, you can put together all of the task components and you can generate these things like with Pokémon you have like a big world or something like that. But like I guess oops, sorry about that. How do you kind of like make certain or be certain or kind of verify the verifier, verify the environment, kind of validate what you're doing is like meaningful, is difficult, like sort of the desirable properties of a good task? Is that a reasonable capture? Okay, yeah, I guess it's like putting things together is easy. How do you know what you have is like meaningful or you know, worth training on or caring about at the end of the day? Yeah.

Carlos Jimenez:是的,我觉得这是个很好的问题。答案是,这可能会非常难。归根结底,你只能让人们相信你向他们展示的这个指标是有意义的。我的意思是,在 SWE-bench Verified 变得更受欢迎之前,甚至在它刚开始受到关注时,你也可以看到,人们可能会用一些比较随意的方式解读分数。你知道,在 SWE-bench Verified 上拿到 90%,其含义是建立在 SWE-bench Verified 这个基准之上的;但我觉得,除非你非常熟悉它,否则这个分数对你来说其实没什么意义,顶多让你觉得它可能是好,也可能是坏。我不知道有谁会依据这类分数做决定。但在某个时候,你提出的某个指标可能会变得权威。Carlos Jimenez: Yeah, I think that's a good that's a great question. The answer is that it can be very hard. At the end of the day you have to just convince people that like the metric that you're presenting them is meaningful. I mean even but like before SWE-bench Verified became more popular, you could kind of look at even when SWE-bench Verified was starting to pick up steam, I think like people were interpreting scores in maybe arbitrary ways and you know, having 90% on SWE-bench Verified means it means something rooted in SWE-bench Verified, but I think outside of unless you're very familiar with that, it doesn't really mean anything to you and it maybe it's like good or bad. I don't know who's making decisions based on those types of scores. But at some point in time like a metric that you're you're proposing may you know, will become like authoritative.

我认为归根结底,最重要的是这个指标在某种程度上能与人类查看输出时的判断相关:他们是否认同它是一个有效的指标,对吧?比如说,如果你真的看很多自己的数据,看看正面结果、负面结果。你提到了确定性之类的。我觉得这可能是另一个问题,多少取决于具体情况。你也许可以尝试通过实证来降低这种影响。我的意思是,你完全可以设想构建多个环境、多个备选方案,然后通过实证测量哪一种的方差更低之类的。只要你从根本上认同这些输出,而且一般人也认同——比如说,如果你能让大家相信你的指标具有权威性——那我觉得他们就会认真对待它。And I think ultimately the most important thing is just that metric kind of correlates with when humans look at the outputs, do they agree that it's like a valid metric, right? Like if you like if you literally just look at a lot of your data, you look at you know, positive outcomes, negative outcomes. You mentioned determinism or something. I think that's like maybe another problem where it depends a little bit. You can maybe try to reduce that empirically. I mean, you can literally imagine constructing multiple you know, environments, multiple alternatives and like measuring empirically what's less you know, kind of lower variance or something. And as long as you agree with the outputs fundamentally and if people in general agree, like if you can convince people that your metric is authoritative, then I think you know, they'll they'll take it seriously.

不过,确实是这样。But yeah.

Alex Wettig:是的。我还想说,这也是另一个很好的观点,能说明我之前回答的那个问题:我们该如何与 LLM 配合,建立良好的工作流程,对吧?LLM 有一定的非确定性,正如 Carlos 也提到的,重要的是要知道信号来自哪里。它可能来自最后非常谨慎的人工验证,也可能来自只让 LLM 或智能体处理那些并非真正关键的部分任务,对吧?比如我刚才描述的这个仪表板,你也许是在尝试搭建环境,而这件事相对容易验证环境是否正常运行,也可以为此设计一些不错的检查。这样你就能对结果更有信心,然后也就能专注于真正的信号——对于 SWE-bench 来说,它最终仍可能来自人工测试。Alex Wettig: Yeah. I would also say it's like another good point why like on like my previous answer on like how do we what's a good workflow with LLMs, right? LLMs are kind of non-deterministic and like it is important to like know and Carlos said this as well. Like you have to know where the signal comes from and it might come from like very careful human validation at the end or like maybe it comes from like using LLM like using agents only for like part of the tasks that aren't really critical, right? Like so like this dashboard I described, maybe you're trying to set up the environments and that's a little bit kind of like it's it's quite easily verifiable whether the environment works and you can build some good checks for that. You can gain confidence in that and then you can focus the true signal for SWE-bench will then still come from like maybe the human tests.

或者说,是的,也许你可以在这之上做某种自动化的 SWE-bench Verified 质量保证。但关键是要知道信号来自哪里,并意识到噪声源有哪些。我觉得总体来说,你还得对自己在做什么有一个非常清晰的高层次认识,基本上不能只是凭感觉瞎搞。我觉得如果你只是和模型互动,心里想着“好,我们来设计一个评测任务吧”,然后最后弄出来的东西大概就没那么经过深思熟虑。所以我觉得,事先有个相当清晰的想法会有帮助。我还觉得,某种程度上,评测有点像考试,对吧?所以,想想什么样的考试适合人类——比如一门课的考试,或者什么样的作业练习比较好——我觉得也会有帮助,因为并没有什么客观的方法来判断一道考试题好不好,但你还是会有感觉,知道它好不好,也能看出糟糕的题目。or like yeah, maybe you can do some kind of automatic SWE-bench verified kind of quality assurance on top of that. But like kind of knowing what the signal comes from and being aware of your like sources of noise and I think just also generally just having a very clear high-level idea of what you're doing and basically not vibing it out. I think if you're kind of just sort of being interactive with the model and you're kind of like yeah, let's design an eval task here and then and then you know like whatever you ended up with was probably not that intentional. So having I think like a fairly good idea in advance helps. I also think in a way an eval is a little bit like an exam, right? So like thinking about what makes a good exam for humans, for like a class or like what makes a good homework exercise or something I think can also help because there's also like no like there's no like objective way of deciding what a good exam question is, but you still kind of see it and know it and you can still recognize bad questions.

观众问答:2026 年开放研究问题Audience Q&A: Open research questions for 2026

观众:我真的很受启发,尤其是你们这份 2023 年的规划文档。这里特别突出的问题是:超长上下文模型能让哪些事情变得可行?我喜欢你们强调的这个想法:关于未来那些开放式、尚未解决的问题,真的可以帮助我们……面临风险、解决问题,并想出一些……不是那种“是”的答案。我很好奇,对你们每个人来说,到了 2026 年,这个问题会变成什么样?现在有什么问题让你们夜不能寐?Audience member: I'm really inspired by your planning doc here from 2023 specifically the question that's highlighted here what becomes feasible with super long context models. I like how you highlighted this idea of like how open-ended unsolved questions about the future could really help be jeopardized and solve problems and come up with not like yes. I'm curious for each of you what is this version of that question in 2026 that is currently keeping you up at night?

John Yang:这个问题很棒。我给在线的朋友们重复一下。对,我觉得 Carlos 的这份规划文档在很多方面都很有前瞻性,像是在问:如果我们今天得把自己的想法记下来,你知道,那些笔记会是什么样?对,这是个有意思的问题。我先凭直觉说说,给其他几位一点时间。对,我觉得很多时候,人们现在可能会觉得,哦,编程这个问题已经解决了,感觉很多篇章都快要收尾了。我想我甚至会说,也许这其实是想象力和创造力的局限。虽然现在很多篇章看起来似乎都要合上了,因为那是我们熟悉的事物,但还有很多事情正在打开,而这正是你的问题所在。对我来说,我觉得可能会是高度个性化、定制化和量身打造之类的东西。John Yang: A cool question. I'll repeat it for the online people. Yeah, Carlos's planning doc here I think was like very forward-looking in a lot of ways like if we had to kind of like write down our notes today, you know what would those notes look like? Yeah, this is a interesting question. I'll kind of shoot from the hip to give these guys a little time. Yeah, I feel like in many ways maybe people think these days like oh coding is solved and it almost feels like books are closing. I think maybe I would almost argue it's like a limit in imagination and creativity. I think like even though a lot of books might seem closed right now, because that's what we're familiar with, a lot of things open, and that's very much your question. I For me, I think something along the lines of like high levels of like personalization or customization and tailoring.

我的意思是,人们已经在探索这个方向了。但我认为,实际上,我们三个人决定 SWE-smith 是值得投入的项目时,最重要的动机之一就是:你知道,当时——也就是两年前——这件事还不太明朗。我觉得今天可能仍有一些争议:到底是要一个模型统管一切,还是说,假设你是 SymPy 的维护者,你真正关心的只是把 SymPy 维护好。你需要打造一个什么都擅长的超大型模型吗?还是说,选一个较小的模型,然后针对 SymPy 对它进行大量微调?我们之前简短地提到过这一点。所以我认为,从实际操作层面来说,定制化不一定非得通过这种方式来实现。I mean, this is something people are already exploring. But I think they ground it like actually one of the key motivations when the three of us decided SWE-smith was the right thing to work on was like, well, you know, at the time, and this is like two years ago, it wasn't quite clear at the time, and I think maybe it's still a little up for debate today, but we weren't sure if it's like one model to rule them all or let's just say you're like a maintainer of SymPy, and you only really care about like maintaining SymPy very well. Do you need to kind of create like a really huge model that's good at everything or do you kind of take a smaller model and just kind of like fine-tune it heavily on SymPy? This is something we briefly alluded to. So I think operationally that doesn't have to be how you execute on customization.

比如说,个性化的未来未必是那些针对非常具体的私人数据集进行微调的小型定制模型。但我觉得这或许只是其中一种形式。我觉得你会看到如今很多公司都在涉足个人智能体,这有点令人害怕。我认为,围绕这些技术肯定会出现许多有意思的监管措施,希望它们能与技术共同发展,确保当我打开 Muse 或 Instinct,连接我的邮箱、银行账户、Etsy,还有你知道的各种东西时,我依然能掌控局面。我觉得,个性化这个问题通常可能与失去控制、失去自主权密切相关。所以我觉得,个性化如果能与赋能联系起来,会相当吸引我。Like the future of personalization is not necessarily small custom models that are like fine-tuned to very specific private data sets. But I think that's just potentially one flavor. I think like you see a lot of the companies kind of breaking into personal agents these days. It's a little bit scary. I think there's a lot of interesting regulations that hopefully co-evolve with like making sure that when I open up Muse or Instinct and I connect my email and my bank account and my Etsy and my, you know, everything that like, you know, things that I stay in the driver's wheel. I think this generally this question of personalization maybe goes hand in hand with like loss of control, loss of autonomy. So I think like personalization as it ties maybe into empowerment feels quite compelling to me.

不过我就说到这里,把接下来的内容交给他们。好。But I'll stop there and hand it over to these guys. Yeah.

嘉宾:是的。我是说,我觉得现在的模型能力很强。比如说,它们比过去强了太多。我也确实觉得,要想那些你知道它们做不到的问题,似乎挺难的。但模型做不到的事情有很多。我觉得,设计评测,或者想出你要评估的问题,可能有不同的思路。也许这个具体案例的特别之处在于,你会去想现在模型能做到什么。比如,模型现在能做什么?这自然又会带来什么?所以我也不确定。我觉得现在模型在使用计算机方面确实很擅长。我不知道我们有没有见过特别有说服力的相关评测。虽然有一些通用计算机使用方面的评测,但我不确定,而且我最近也没怎么跟进相关文献,所以如果确实有很好的例子,还请见谅。Panelist: Yeah. I mean, I think models are very capable now. Like we're miles ahead of how they were in the past. And I do think it can seem hard to think about problems that you know, they won't be able to do. But there are many things that models can't do. I think there's like different ways to approach how like how to come up with an eval or how to come up with the problems that you're trying to evaluate. And maybe what's special about this specific case is you kind of think about what is capable now. Like what can models do now and what might that naturally lead to? So I don't know. I think maybe like models are really good at computer use now. I don't know if we've seen really compelling kind of evals around that. Like there's evals around general computer use, but like I don't know if and I'm not keeping up with literature as much, so I apologize if there is like a clear example.

但也许我不知道。我觉得也许有些问题并不只是关于使用电脑,而是把电脑作为工具来做更进一步的事情,这里可能有点像个类比。嗯。But maybe I don't know. I feel like maybe there are problems like that are not just about using a computer, but that's instrumental to doing something beyond that might be kind of like an analogy here. Um

小组成员:这有点像,如果你现在能以还算不错的质量完成 SWE-bench 之类的任务,而且大概只需要一天,甚至两三天,再加上一点处理时间就能做得更好,那它可能就太简单了。或者说,我的意思是,这件事很快就会完成。所以也许值得想想,如果现在把模型的能力发挥到极致,几周内能做到什么。Panelist: It's like it's a little bit like if you can now do SWE-bench to like a reasonable degree of like quality and so on. And probably with like better quality in like a day, maybe two, three days with a little bit of like processing time, then it's it's probably too easy. Or like I mean it will be done very soon. So it's maybe good thinking about yeah, if you now use models to like the fullest extent what is possible in like in a few weeks.

小组成员:好的。然后我们再回答一个问题,我想今天就到这里。好。Panelist: Okay. And then we'll have one more question and I think we'll we'll finish up today. Yeah.

约翰·杨:John Yang:

嘉宾:嗯,当然。简要重复一下这个问题:我觉得,有些任务可能会变得更加开放、更加主观,或者更贴合特定群体或个人。相比于那种更具确定性的范式,你认为验证方式该如何演变,才能适应这种变化?这样问公平吗?嗯。Panelist: Yeah, sure. To briefly repeat the question like yeah, I think with some things, you know, as the tasks maybe get more open-ended or more subjective or sort of more tailored to specific populations or people, how do you think about verification evolving to fit for that compared to kind of like a more deterministic paradigm? Is that a fair question? Yeah.

小组成员:这是个非常好的问题。我不确定自己有什么特别的见解。我确实觉得,你刚才描述的那种理想评估场景,想象的是一个人反复与模型交互。从某种程度上说,如果你看看一些论文,比如 SWE-smith,以及其他一些试图改进 SWE-bench 的工作,就会发现,针对 SWE-bench 的开源训练方法基本上是这样的:告诉模型一种可能的解题方法,然后用这个过程进行训练。你也可以采用 GRPO 这类方法,也就是使用强化学习。总而言之,我想说的是,我认为你设想的评估方式,作为一种范式,要比 SWE-bench 这类基准所采用的方式雄心勃勃得多,对吧?因为它是交互式的,而且会跨越多个步骤。Panelist: It's a It's a great question. I don't know if I have any particular insight. I do think that when you kind of said that like in the kind of sort of like perfect evaluation scenario that you imagine, it's like a person like interacting with a model kind of again and again. And to some extent if you see in like the kind of papers the sort of something like SWE-smith and some of the other works that like is trying to sort of improve SWE-bench, it's it's very much like a kind of basically the kind of open source training approaches to SWE-bench are very much like you know, here is the way maybe you get to a solution and we train on this you can do these GRPO style approaches where yeah you use reinforcement learning and I mean to cut all of this short I would say it's be like I essentially think like you're basically imagining like an evaluation setting that is you know sort of as a paradigm like much more ambitious than like how something like SWE-bench works right because it's interactive it's over multiple steps.

所以我觉得,从这个意义上说,这真的、真的、真的很有趣,是的。So I think that's it's it's it's like very interesting in that sense yeah.

嘉宾:是的,我觉得你提出的这个具体框架里,包含了几种不同因素的交汇。比如,个性化——你知道,它或许与机器学习文献中的持续学习有关。还有主观性,我认为这是它自身的一类问题。我觉得这些都是很有意思的开放问题;你知道,在学术界的研究领域里,有很多人分别在研究这两类问题。而且我认为,仍然有很大的探索空间,可以发现新的能力,并设计真正针对这类问题的新评估。Panelist: Yeah I think there's a I think there's a few like different things that come together in the specific framing that you provided. So like there's personalization which you know maybe is something that's related like continual learning in machine learning literature. There's a subjective thing which I think is its own problem and I think that there's like a lot of problems that these are all like interesting open problems you know like there's a lot of people working on unlike in research in general in academia on like both of these types of things. And I don't and I think that there is not I mean I think there's still like a lot of like headroom to discover and to discover new capabilities to do new evals that are really targeting those types of things.

所以我想,也许就某个具体项目而言,同时专注于某项特定能力会有所帮助。不过,你知道,任何传到你手里的、结构良好并且编码了某种信号的数据,不管是什么类型,可能都是最便捷的处理对象。So I guess maybe in terms of in terms of like a particular project it might be helpful to like focus on a particular capability at the same time though well you know whatever type of whatever type of data like that comes to you that 's well structured and encodes you know some signal is probably like the most expedient thing to do so.

小组成员:是的。不过我想,你可以把像艾伦·马里诺这样的人看作是一个试验平台,用来探索你感兴趣的某些方面;但也许在其他方面有所欠缺。或许,嗯,值得想想这里理想的评估应该是什么样的。Panelist: Yeah. But I guess you can think of something like Alan Marino as a sort of test bed for like some of these aspects that you're curious about but then it's like maybe lacking in other aspects and maybe yeah maybe it's worth thinking about what like the ideal eval here would look like. Um

小组成员:好的,好吧。我想时间差不多了。非常感谢大家的参与。让我们再为 Carlos 和 Alex 鼓一次掌。Panelist: Okay. All right. I think we're at about time. Thank you all so much for joining. Let's give Carlos and Alex one more round of applause.