RL环境解析:AI代理如何学习真实工作
RL Environments Explained: How AI Agents Learn Real-World Work | Brendan Foody, Mercor
Um, Record, I think you guys grew from a 1 to a 2 billion dollar revenue run rate in the last 4 months or so. Um, so this company's off to the races and I think you were just so front and center to how companies are thinking about uh post training their own models, uh building their own intelligence. So, thank you for joining us for this conversation. Um, format-wise what we're going to do is we've 15 minutes or so of content from Brendan.
嗯,Record,我认为你们在过去4个月左右的时间里,收入运行率从10亿美元增长到了20亿美元。所以,这家公司正在飞速发展,而且我认为你们正好处于企业思考如何对自有模型进行后训练、构建自身智能的核心位置。因此,感谢你们参加这次对话。在形式方面,我们将有大约15分钟的时间来听取Brendan的内容。
He's going to talk about uh RL environments in particular, which I think is a, you know, new frontier topic. It'll be fun to fun to explore. And then we're going to leave 15 minutes or so at the end for Q&A again. So, uh please keep please keep questions back pocket. I will turn it over to you, Brendan.
他将特别讨论强化学习环境,我认为这是一个新前沿话题。探索起来会很有趣。然后我们会在最后留出大约15分钟进行问答。所以,请把问题记在心里。Brendan,我把时间交给你。
Sweet. So, I'll be talking about RL environments. Starting out, I figured it's helpful to give a little bit of the background on the history of the data market and how that history ties into Record's origin story. Where things really started in 2020 in the era of crowdsourcing data for behavior cloning. So, this was mainly supervised fine-tuning data, inputs and outputs, and RLHF data where you would have a annotator select from a couple of model responses which they preferred.
好的。我将讨论强化学习环境。首先,我认为有必要简要介绍一下数据市场的发展历史,以及这段历史如何与Record的起源故事相关联。事情真正始于2020年,当时是众包数据用于行为克隆的时代。这主要是监督微调数据、输入和输出,以及RLHF数据,即标注者从几个模型响应中选择他们更喜欢的那个。
And we were able to make all this progress in fine-tuning GPT-3, making progress towards ChatGPT and GPT-4 in the crowdsourcing era of agentic data. But, what we saw changing in the market, especially as we uh headed into 2024, was this giant transition away from the low-skilled crowdsourcing era of behavior cloning data and moving towards the agentic era of data. Of how do we find the highest-skilled experts in the world that can work collaboratively in teams to build frontier evals and RL environments for the next generation of models models.
我们能够在众包代理数据时代取得这些进展,微调GPT-3,向ChatGPT和GPT-4迈进。但是,我们看到的市场变化,尤其是进入2024年之后,是从低技能众包行为克隆数据时代向代理数据时代的巨大转变。我们如何找到世界上技能最高的专家,他们能够团队协作,为下一代模型构建前沿评估和强化学习环境。
All the software engineers, lawyers, doctors, bankers, et cetera that could measure the frontier of intelligence and help to use that to improve model capabilities. And so, Mercor grew up with our first big project being deep research. I guess the first prominent RL agent scaling up dramatically with all of the frontier labs to become the primary agentic data vendor to all of the leading labs and also all of the leading application layer companies ranging from Harvey, Cera, Cognition to Ramp.
所有软件工程师、律师、医生、银行家等,他们能够衡量智能的前沿,并帮助利用这一点来提高模型能力。因此,Mercor随着我们的第一个大项目“深度研究”而成长起来。我猜这是第一个突出的强化学习智能体,与所有前沿实验室一起大规模扩展,成为所有领先实验室以及所有领先应用层公司(从Harvey、Cera、Cognition到Ramp)的主要代理数据供应商。
And what's been really exciting over the last 12 months especially is how RLVR within the agentic data paradigm has evolved to also include RL environments with these rich apps and worlds that teach agents how to use all of the tools on our laptops that we use every day. So, I'll be talking about that and of course how this technology that started in the frontier labs is now getting disseminated to the application layer and all of the products that all of you are building as you work on your company.
在过去12个月里,尤其令人兴奋的是,在智能体数据范式中的RLVR已经发展到包含RL环境,这些环境带有丰富的应用程序和世界,教会智能体如何使用我们每天在笔记本电脑上使用的所有工具。所以,我将讨论这一点,当然还有这项起源于前沿实验室的技术如何现在传播到应用层,以及你们在公司工作时构建的所有产品。
So, high level on what an RL environment is is that it includes three parts. The first part is the worlds. So, this includes all of the messages, slides, docs, sheets, etc. that correspond to everything you would have in a real project or company that you're working on. The second part is the apps which is high fidelity clones of popular applications, Salesforce, ServiceNow, Microsoft 365, etc. that agents can interact with via MCP, CLI, or Kua.
所以,从高层次来看,RL环境包含三个部分。第一部分是世界。这包括所有消息、幻灯片、文档、表格等,对应于你在真实项目或公司中可能拥有的一切。第二部分是应用程序,即流行应用的高保真克隆,如Salesforce、ServiceNow、Microsoft 365等,智能体可以通过MCP、CLI或Kua与之交互。
And then the third part is the tasks where we have prompts and verifiers. Verifiers could be rubrics or unit tests that can be used either for eval or training. And the barrier for frontier labs to automate everything that you can do on your laptop using Claude is how do they cover the full distribution of all of the worlds, all of the apps, and all of the tasks in the economy. And so, there's been this enormous scale out in order to do that.
第三部分是任务,其中有提示和验证器。验证器可以是评分标准或单元测试,可用于评估或训练。前沿实验室要自动化你在笔记本电脑上使用Claude能做的所有事情,其障碍在于如何覆盖经济中所有世界、所有应用程序和所有任务的完整分布。因此,为了实现这一目标,进行了大规模扩展。
Um, where humans have been really central to how we build these environments, obviously with models in the loop meaningfully. And so I put a graph here of the amount of expert hours that um, of throughput in from our talent network over the last 24 months. Um, and it's a a pretty crazy trajectory with respect to um, 2.5 million hours um, in Q2 alone with growth sort of accelerating on the amount of expert time uh, used to build out all of these environments.
嗯,人类在构建这些环境中确实发挥了核心作用,显然模型也深度参与其中。所以我在这里放了一张图表,显示了过去24个月中我们人才网络的专业小时数吞吐量。嗯,这是一个相当惊人的轨迹,仅第二季度就有250万小时,用于构建所有这些环境的专家时间增长速度在加快。
The reason being of course as I mentioned we need to scale out the environment distribution across every category in the economy. Many of you might know GDP val where there's 205 domains in the Bureau of Labor Statistics across all the different jobs, but then you have to think through how do we have all of the apps corresponding to all of those jobs, all the different scenarios, all the tasks. Is this enormous build out.
原因当然如我所说,我们需要在经济中的每个类别中扩展环境分布。许多人可能知道GDP val,在劳工统计局中有205个领域,涵盖所有不同的工作,但你还必须考虑如何拥有与所有这些工作、所有不同场景、所有任务相对应的所有应用程序。这是一项巨大的建设。
Only humans can measure the frontier in most domains, not every domain. There are rare exceptions like math where you have a really clean simulation environment and so uh, the model's able to learn from whether it got the right answer, but in most domains like building a slide deck uh, the model has an incredibly hard time identifying reliably where it made its own mistake. It's as if you would be asking a human to grade their own homework.
只有人类才能在大多数领域衡量前沿,但不是所有领域。也有少数例外,比如数学,那里有非常干净的模拟环境,所以模型能够从它是否得到正确答案中学习,但在大多数领域,比如制作幻灯片,模型很难可靠地识别自己犯错的地方。这就像要求人类给自己的作业打分一样。
And so that's why it's really valuable to have a human create a rubric similar to how a professor would create a rubric to grade an essay or a TA would grade that slide deck. Similar to the way that a lot of us learn it's in large part from the feedback we got from those around us rather than uh, purely plugging things into a calculator or clean simulation. Um, and then building these verifiers is hard cuz anytime you're building the slide deck you need to understand the full problem space of what are the 10 different slide decks that, you know, could be a good path to go down?
因此,让人类创建评分标准非常有价值,就像教授创建评分标准来给论文评分,或者助教给幻灯片评分一样。类似于我们很多人学习的方式,很大程度上来自周围人的反馈,而不是纯粹地输入计算器或进行干净的模拟。嗯,然后构建这些验证器很难,因为每当你在制作幻灯片时,你需要理解完整的问题空间,比如你知道的,可能有10种不同的幻灯片是好的路径?
What are the dozens of mistakes you could possibly make? And how do you build a comprehensive verifier that captures this full solution area of what's possible? And so, what I'll walk through is a sample RL environment. Excuse me, to also break this down for all of you. Um and part of the reason that this is so cool, which I'll get to in a moment, is that we developed a lot of this technology in collaboration with the labs.
你可能犯的错误有几十种?以及如何构建一个全面的验证器来捕获这个完整的可能解决方案区域?所以,我将介绍一个示例强化学习环境。请原谅,为了给大家分解这一点。嗯,这之所以如此酷的部分原因,我稍后会讲到,是我们与实验室合作开发了很多这项技术。
These are, of course, ones that we have open-sourced and published to the world, but now that's all starting to get disseminated to the application layer companies that are building and owning their own intelligence. As they realize that the three core pillars of their AI strategy are their compute, their algorithms or researchers, and the data sets they build. And data's often the most differentiating factor. And so, this is one that we published, um as a legal environment, where we have lawyers from top law firms like Latham and Watkins write out a scenario of a real project that they worked on in their big law job.
这些当然是我们已经开源并发布给世界的,但现在这些开始传播到构建和拥有自己智能的应用层公司。当他们意识到他们AI战略的三个核心支柱是他们的计算、他们的算法或研究人员,以及他们构建的数据集。而数据往往是最具差异化的因素。所以,这是我们发布的一个,嗯,作为一个法律环境,我们有来自顶级律师事务所(如瑞生律师事务所)的律师写出他们在大型律师事务所工作中处理的一个真实项目的场景。
And then they create a full outline for a data room that corresponds to all of the different uh messages, emails, files, size of files. I cut off the full data room cuz it's it's very extensive. Um and of course, there's a lot of model in the loop with how they effectively populate this. Similar to how a software engineer now should not be coding by hand entirely themselves, they should probably be orchestrating agents in how to do this very productively.
然后他们为数据室创建了一个完整的提纲,对应所有不同的消息、电子邮件、文件、文件大小。我截断了完整的数据室,因为它非常庞大。当然,在如何有效填充数据室方面,有很多人在循环中。类似于软件工程师现在不应该完全手工编写代码,他们可能应该编排代理来高效地完成这项工作。
Um and then we render that data room into the apps, the clones of Google Workspace you can see in this scenario, and have prompts uh to roll out model trajectories against this. And so, in this one, it's evaluating the maximum total liability for Star Tanker uh Tankers International Limited compared to Cooper Jefferies Energy Corporation under the Oil and Petroleum Act, uh considering all of the context uh from this real scenario in the data room.
然后我们将数据室渲染到应用程序中,即你在这个场景中看到的Google Workspace的克隆,并提示针对此数据室推出模型轨迹。因此,在这个案例中,它评估的是Star Tanker Tankers International Limited相对于Cooper Jefferies Energy Corporation在《石油和石油法案》下的最大总责任,考虑了数据室中这个真实场景的所有背景。
And then as I mentioned, similar to how a professor would create a rubric to grade an essay, they have these key rubric criteria that correspond to what are the characteristics of a of a accurate model response. And making sure that these rubric criteria avoid reward hacking and effectively align with the uh when you roll out 100 trajectories, making sure all of those scores are accurate is incredibly technica
然后正如我提到的,类似于教授创建评分标准来给论文打分,他们有这些关键的评分标准,对应于准确模型响应的特征。并确保这些评分标准避免奖励黑客,并有效对齐,当你推出100条轨迹时,确保所有这些分数准确是极其技术性的。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力