读见

Ramp 的小模型如何在财务任务上超过 Opus:专用模型、缓存与万级智能体

原题Our Smaller Model Beat Opus on Finance Tasks - Alexander Shevchenko, Ramp

约 10 分钟原文英文已翻译

视频由 YouTube 提供

推荐理由Ramp 通过财务专用模型、任务路由与缓存管理成本,展示小模型在明确业务任务中的取舍,帮助应用团队从模型排名转向端到端任务表现。

看前速览

4 个要点

Ramp Labs 用专用模型、预计算上下文和万级智能体集群,改善财务工作流,而非只等待前沿模型升级。

  1. 在前沿编排层下使用专用模型

    更快的财务问答模型负责窄任务,前沿模型继续承担规划。

  2. 为可预测的财务任务提前准备上下文

    Cartridges 为月结等周期性工作预计算知识,以后台准备降低交互时的检索负担。

  3. 用对抗复现收敛并行发现

    集群产出问题后还要去重和复现,不能把每条报告直接认定为真实漏洞。

  4. 研究同时改善延迟和单位成本

    廉价模型、路由和支出分类把应用研究连接到客户可感知的节省。

完整摘要

Alexander Shevchenko 解释 Ramp 为什么持续投入应用研究。Ramp Sheets 在前沿规划模型下引入财务问答专用模型;团队与 Prime Intellect 对 Qwen 3.5 的 350 亿参数模型做后训练,自述在特定任务上超过 Opus 4.6,并获得更低延迟。KV 缓存 cartridges 则尝试提前准备月结所需上下文,把多出 20 至 30 倍的上下文压入缓存。另一次实验用 1 万个并行智能体排查系统,合并报告并对抗复现,最终修补 7 个高严重性漏洞。分享还把研究连接到模型路由、token 支出分类及学习迁移;这些性能和安全结果均为团队自述。

章节

文字稿

查看原文

简要描述Brief Description

我们的较小模型在金融任务上击败了 Opus——Ramp 的 Alexander ShevchenkoOur Smaller Model Beat Opus on Finance Tasks - Alexander Shevchenko, Ramp

目录Table of Contents

  • 简介
    Intro
  • 一家吸取惨痛教训的公司
    A bitter-lesson company
  • 为什么不直接等着?
    Why not just wait?
  • 2023 年与 2026 年构建智能体的对比
    Building agents in 2023 vs 2026
  • 项目 1:Ramp Sheets 专用模型
    Project 1: A specialist model for Ramp Sheets
  • 以 Haiku 的速度超越 Opus
    Beating Opus at Haiku speed
  • 项目 2:KV 缓存卡匣
    Project 2: KV cache cartridges
  • 项目 3:10,000 个智能体对 Ramp 进行渗透测试
    Project 3: 10,000 agents pen-testing Ramp
  • 群体中的低成本开放权重模型
    Cheaper open-weight models in swarms
  • 节省时间和金钱
    Saving time and money
  • Token 支出管理与 Ramp Router
    Token spend management and Ramp Router
  • 更多 Ramp Labs 博客内容
    More from the Ramp Labs blog

简介Intro

大家好,我是来自 Ramp 的 Alex。嗯,我今天要讲的是:在等待前沿不断推进的同时,追求能力提升。先简单介绍一下我自己。Hey everyone, I'm Alex from Ramp. Um I'll be speaking about chasing capabilities while waiting for the frontier to advance. So, quick uh intro about myself.

我大约三年前加入 Ramp,呃,当时在更广泛的应用 AI 团队工作,负责多个不同的产品场景和产品,将大语言模型和机器学习应用其中,让优秀的产品变得更好。I joined Ramp around 3 years ago uh on the broader applied AI team working on a bunch of different surfaces and products applying LLMs and ML to make a great product even better.

一家饱尝惨痛教训的公司A bitter-lesson company

呃,先给我关于 Ramp Labs 的演讲加个限定条件:Ramp 是一家深受“苦涩教训”影响的公司。过去一年,使用 LLM 的用例数量增长了 123%。与此同时,我们许多核心功能的 token 消耗也在增加,但从单位经济效益来看,它们实际上变得更便宜了,因为如今前沿模型不断推出,而且这些模型更便宜、更快,也更出色。Uh to and to to caveat my presentation on Ramp Labs, Ramp is an extremely bitter lesson filled company. Over the last year, the number of use cases that use LLMs has increased 123%. While at the same time, a lot of our top features are growing in token spend, but on a unit economic basis, they're actually becoming cheaper because there are frontier models that are being released uh all the time now, and these models are cheaper, faster, uh and better.

因此,我们能够以低得多的成本提供同样的准确度。因此,这确实是一个非常惨痛的教训,呃,一种模式。And so, we're able to provide the same level of accuracy at a much lower cost. And so, this is a really bitter lesson filled uh pattern.

为什么不干脆等一等?Why not just wait?

所以,考虑到这一切,我有时会被问到一个问题:为什么不干脆等一等?为什么要在 Ramp 这样一家应用层公司内部设立应用研究职能?对吧?And so, given all this, a question that I sometimes get, why not just wait? Why have an applied research function inside of a company like Ramp, an app application layer company, right?

2023 年与 2026 年的智能体构建Building agents in 2023 vs 2026

嗯,为了回答这个问题,我想拿 2023 年来做个类比。早在 2023 年,你可以使用类似 GPT-4 这样的模型,而创建一个智能体需要做大量工作。嗯,你必须设置非常非常严格的防护措施。Um and to answer that, I would like to draw draw a parallel to 2023. Back in 2023, uh you had access to kind of like GPT-4, and creating an agent was a lot of work. Um you would have to create very, very strict guardrails.

模型不允许回溯,也没有思考 token。因此,一旦方向错了,它就会一味地往前冲,意识不到自己犯了错误。Models weren't allowed to backtrack. They didn't have thinking tokens. And so, if it went in the wrong direction, it would just kind of charge ahead and not realize that it made mistakes.

你不得不在所有提示词上费尽心思,甚至到了这种程度:嗯,有些同义词都可能改变智能体的行为,因为它们没有经过恰当的强化学习训练,无法泛化到用户意图。你必须尽可能缩小并限定上下文,因为给智能体太多上下文只会让它困惑。即便在那时候,我们也决定:好吧,我们得把这些东西发布出去。You had to sweat over all of the prompts where to the point where um s- some synonyms could change the behavior of of your agent because the they weren't RL'd properly on generalizing to the user's intent. You had to reduce and scope down the context as much as possible because giving too much context to the agent would just confuse it. And even back then, we decided, well, we need to ship these things.

我们不能等 GPT-4.5 或 GPT-5 发布后再行动。我们现在就需要为金融专业人士提供服务。尽管这并非易事,我们还是推出了 Ramp Tour Guide 等产品,以及许多其他智能体。We can't wait for GPT-4.5 or GPT-5 to come out. We need to serve our financial professionals now. And we shipped things like Ramp Tour Guide and many other agents even though it was not the easy thing to do.

如今到了2026年,构建智能体容易多了。模型已经变得强大得多,你基本上可以给它们提供 MCP 和几乎任何上下文的访问权限;面对一项任务,它们都能很好地理解自己需要做什么。不过,我仍然相信,我们可以再深入一层,为用户打造更好的体验。And fast forward now to 2026, building an agent is a lot easier. The models have gotten so much better that you can kind of give them MCPs and access to kind of any context and they do a very very good job of understanding what they need to do given a task. But, I still believe that we can dig a layer down and create even better experiences for our users.

只是现在需要多花点功夫。It's just it requires a bit more effort now.

项目 1:Ramp Sheets 专用模型Project 1: A specialist model for Ramp Sheets

那么,接下来介绍一下我们在 Ramp Labs 的部分工作,具体讲讲我们如何将研究成果应用到 Ramp 本身的三个案例。先从创建一个专用模型说起。去年 11 月,我们推出了 Ramp Sheets,这是最早一批表格智能体之一。So, to present this uh some of our work from Ramp Labs, three specific cases of how we've applied research into Ramp itself. Starting with creating a specialist model. So, in November of last year, we launched Ramp Sheets, which was one of the really early uh spreadsheet agents.

这发生在两家前沿实验室推出各自的电子表格代理版本之前。我们在十一月的发布非常成功,许多优秀公司的用户注册并开始使用它。我们意识到,这其实是一个用途非常广泛的电子表格处理代理。This was before the two frontier labs had launched their versions of spreadsheet agents and we had a very good launch in November. A bunch of users from great companies had signed up and started using it. And we realized that well, this is a very general purpose spreadsheet handling agent.

而且,人们在 Ramp 内部所做的许多工作,以及我们所有客户中的会计和财务专业人士所做的工作,大部分时间都在电子表格中完成。因此,我们可以把 Ramp Sheets 背后的电子表格工具框架和智能能力,拓展到 Ramp 内部的许多其他界面中。And a lot of the work that people do on Ramp both inside of the company, but also all of our customers accounting and finance professionals are spending most of their days inside of spreadsheets. So, we can kind of take the spread the harness and the brains behind Ramp Sheets and added into a bunch of other um surfaces within Ramp.

在构建这个功能的过程中,我们意识到,也许可以应用一些来自 Ramp Labs 的研究,让它变得更好。于是我们坐下来,开始研究模型在哪些方面表现不佳。当时用的是 Opus 4.6,摩擦最大的是:当你把大量电子表格导入 Ram Sheets,并让它构建 DCF 或模拟某种财务情景时,它一开始会花很多时间制定计划,然后研究它能访问的所有工作表,试图充分了解整体情况。And as we were building this out, we realized, well, we can probably apply some research uh from Ramp Labs to make this even better. And we sat down and we started looking, where do models fall short on this? And back then, this was like Opus 4.6 and the place that had the most friction was when you would drop in a lot of spreadsheets into Ram Sheets and you would ask it to build a DCF or or model some financial scenario, it would spend a lot of time creating a plan at first and then researching all of the sheets that it had access to to try to get a good understanding of and lay of the land.

而且 Opus 4.6 是个很棒的模型,但速度相当慢,思考 token 的成本也相当高。所以我们退后一步,决定训练一个检索模型,或者说某种金融问答模型:在仍然让这些前沿模型担任编排器的同时,把任务交给这个快得多的模型,由它为规划智能体进行金融问答。And Opus 4.6 is a great model, but it was like pretty slow and the thinking tokens are also pretty expensive. And so, we we took a step back and and decided to train a retrieval model or kind of like a financial question-answering model that would while still keeping these frontier models as orchestrators, would then be handed off to the this much faster model that would do uh financial question-answering for that planning agent.

以 Haiku 的速度击败 OpusBeating Opus at Haiku speed

于是,我们与 Prime Intellect 公司合作,对一个 Qwen 3.5 350 亿参数模型进行了后训练。实际上,在当时的前沿模型中,我们在这项特定任务上的准确率超过了 Opus 4.6,同时还能以很低的延迟提供服务。因此,我们得到的是一个速度快得多、但智能程度不相上下的模型,随后可以将它与非常智能的前沿编排器协同使用。这是一次非常成功的后训练实践,也是我们 Ramp Labs 项目中实际部署到生产环境的成果之一。And so, we partnered with the company Prime Intellect to uh post-train a Qwen 3.5 uh 35 billion um model and we actually got above Opus 4.6, which was the frontier back then uh exact task accuracy, while also being able to serve it at high cool uh level latencies. So, a much faster, but just as smart model that could then be used in uh in tandem with the really smart frontier orchestrator. Um and so, this was like a very successful um example of post-training that we had actually sent to prod as part of our Ramp Labs effort.

项目 2:KV 缓存卡匣Project 2: KV cache cartridges

呃,我们至今仍在探索的第二个重要方向,是 KV 缓存技巧。尤其是 cartridges,这是一类非常有意思的技术,能够将大量上下文压缩到 KV 缓存中,离线存储并提供给智能体使用,最多可容纳多出 20 到 30 倍的上下文。比如,拿 RAM sheets 的例子来说,呃,有很多任务是你知道迟早会发生的,对吧?比如月末结账:一个月结束后,在下个月的第一天,财务专业人士会去对账并结清账目。Uh the second uh big thing that we are actually exploring up to this day is uh KV cache tricks and particularly cartridges are really interesting um family of techniques where you're able to compress a lot of context up to 20 to 30 times more context into the KV cash offline and serve it for your agent. And so if you compare it to the RAM sheets example, for example, um uh there's a lot of tasks that you know are going to happen at some point, right? Like month-end close, a month finishes and on the first of the next month a financial professional will go and try to reconcile and close their books.

你大概知道总账、账龄报告,以及他们需要调取的文件。因此可以把这些作为上下文准备好,但智能体仍然需要自主检索,并建立起对这些内容全面、准确的认识。You know kind of the ledger, the aging report and the documents that they will need to be retrieving. And so you could prepare them as context, but the agent will still need to agentically retrieve and and create a good picture and understanding of them.

借助 cartridges,我们能够把所有这些工作压缩起来,并在财务专业人士每月 1 日开始工作前,连夜构建一个。等他们打开这个智能体时,它就确切知道自己需要做什么,因为所需的上下文都已经内置好了。Cartridges 在后训练阶段所需的工作量也低得多,因为它们进行自我博弈的方式更具通用性。With cartridges, we're able to compress all of that work and build one overnight before the the financial professional starts their work on the first of the month. And once they open up the the the agent, it knows exactly what it needs to do because it has all of the the context already uh built in. Cartridges are also a much lower lift in post training because the way that they do self-play is kind of a lot more generalizable.

这类事情需要注意的是,与后训练相比,实验室或许会在某个时候把它作为 API 的一部分推出,作为其探索持续学习的一环。即使他们真的把它做进 API,我们也会很乐意,因为我们正在公司内部积累大量这方面的隐性知识,也在摸索如何最好地应用这些技术。The caveat with stuff like this is that compared to post training, this is something that the labs might ship at some point is in their APIs and their foray into uh continuous learning. And even if they were to do it in the API, we would actually be happy because we are developing a lot of this tribal knowledge inside of the company um and just learning how best to apply these techniques.

所以即使它最终以 API 的形式推出,我们也能在第一天就立即上手,知道如何使用它们。So even if it does ship as an API, we can just hit the ground running on day one knowing how to use them.

项目 3:10,000 个智能体对 Ramp 进行渗透测试Project 3: 10,000 agents pen-testing Ramp

最后,第三个正在推向生产环境的应用研究案例,是我们在智能体式 MapReduce 和智能体集群方面的工作。具体来说,我们在 RAMP Labs 博客上发表了一篇文章,介绍我们如何使用 10,000 个并行智能体对整个 Ramp 进行渗透测试。在 Ramp,我们有一个名为 Ramp Inspect 的云端智能体,它能帮助搭建基础设施并处理相关的底层工作,让这样雄心勃勃的项目成为可能。And finally, the third example uh of applied research that we are sending to prod is our work on uh agentic map reduce and kind of agentic swarms. So more concretely, we published an article on the RAMP Labs uh blog on how we uh used 10,000 parallel agents to pen test all of Ramp. Um so at Ramp we have a uh cloud agent called Ramp Inspect, which helps out with setting up all of the infrastructure and plumbing for something as ambitious as this.

我们能够启动 10,000 个并行智能体,然后大致梳理这项工作,尝试找出漏洞;同时,还能通过智能体来减少它们创建的工单数量。我们用 LLM 对工单去重,再尝试用 LLM 以对抗方式复现这些漏洞,以确认它们确实存在且影响重大。最终,我们实际上发现了七个高危——高严重性漏洞,并且都已修复。And we were able to spin up 10,000 parallel agents and then kind of map this work out, try to find any vulnerabilities, and then also agentically reduce on the tickets that they would create. So deduplicate them with LLMs and then try to reproduce them adversarially with LLMs to try to make sure that the vulnerabilities are real and important. At the end of all of this, we have actually found seven high vulner- high severity vulnerabilities that we all patched.

有趣的是,我们在那篇文章中描述的漏洞之一,是一种可以通过电子邮件发送的 Lua 脚本注入漏洞。而这套技术栈中的任何单个组件本身都不算不安全。要弄清这个问题,某种集体协作必须把多个组件拼接起来,并端到端地理解这些组件。Interestingly, one of the um vulnerabilities that we describe in that article is a Lua script injection that you could send over via email. And no single component of that stack was unsafe. And the kind of swarm had to patch together multiple components and understanding of multiple components end-to-end in order to be able to figure this out.

另一个好处是,这一切都是自动运行的。你不需要占用任何人的时间,只要启动它就行;唯一的成本就是那些失败后被过滤掉的尝试所消耗的 token。And the other nice thing with this is that this is all running automatically. You don't need to spend anyone's time, it's just you start it and the only thing that uh failed failed passes that get filtered out is the cost of the tokens.

集群中的低成本开放权重模型Cheaper open-weight models in swarms

除了构建支持这些蜂群所需的所有基础设施之外,另一件有意思的事是,我们还在研究如何最好地将模型用于这些蜂群。我们发表的那篇文章中有个有趣的发现:实际上,你可以使用开放权重模型,其成本比前沿推理模型低多达五倍。而且,由于你是把它设——设置成一个蜂群,检测率并不会低五倍。The other thing that's interesting outside of just building out all of the infrastructure to support these swarms is that we do research into how to best use models as part of these swarms. One of the interesting insights from that same article that we published is that you can actually use open weight models that are up to five times cheaper compared to the frontier reasoning. And because you're set- setting it up as a swarm, the detection rate is not five times lower.

所以,你可以在这些更便宜的 token 上多花一些,检测率也几乎能达到同样的水平。So you can kind of spend more on these cheaper tokens and have almost as good of a detection rate.

节省时间和金钱Saving time and money

嗯,如果你把这些例子都看一遍,就会发现其中很多都有一个共同点:都在努力节省时间和金钱。也就是说,降低延迟(也就是节省时间),以及降低 token 成本(也就是节省金钱)。这其实就是 Ramp 的口号:为客户节省时间和金钱。Um if you follow through all of these examples, you kind of notice a pattern of a lot of them is attempts at saving on time and saving on money. So, reducing latency, which is time, and then reducing on token cost, which is money. That's actually Ramp's uh slogan, uh saving our customers time and money.

嗯,所以我想提一下 Ramp 实际提供的两款产品,它们都受到了 Ramp Labs 研究的影响。Um and so, I'd like to to point to two uh products that we actually offer from Ramp that have been um influenced by Ramp Labs' research.

Token 消耗管理与 Ramp RouterToken spend management and Ramp Router

第一个是令牌支出管理,它可以关联你的一系列 API 密钥,并让你清晰了解公司内部对 LLM 的使用情况。不仅能按 API 密钥或用户统计令牌支出,还能进一步深入分析会计类别,甚至通过分析支出,找出你可以申请的税收抵免。此外,它还会进行更深入的分析:我们会创建一套分类体系,从上下文和语义层面分析 LLM 的使用情况,让你真正了解 LLM 是如何被使用的,而不只是将使用情况归因于公司内部的某个团队或个人。The first one is token spend management that connects to a bunch of uh your API keys and is able to give you a really good picture of how LLMs are being used inside of your company. Not only token spend on an API key basis or a user basis, but digging deeper, accounting categories, um and even things like uh tax credits that you can get by uh analyzing the spend. It also goes deeper and we create a taxonomy that uh contextually analyzes and semantically analyzes the LLM usage, so you can actually understand how LLMs are being used outside of just attributing it to a team or a person inside of your company.

第二个是 Ramp Router,它也致力于降低智能体的延迟。我们与 Ramp Labs 合作开发了多种路由策略,比如 Nvidia Switchyard,以及智能灵活的任务卸载,以降低延迟和每个 token 的成本。And then the second one is Ramp Router, which also leans into improving your the latency of your agent, where we have a bunch of routing strategies that we work with Ramp Labs to develop, uh things like Nvidia Switchyard, things like smart flex offloading of work to both improve latency and um cost per tokens that you spend.

目前已经有很多不同的路由策略可供使用,之后还会推出更多。所以,如果你对这两款产品中的任何一款感兴趣,可以拍下这些网址,呃,或者扫描那里的二维码。稍等一下。And there's a bunch of different strategies already available for the the for routing, and even more coming out later. So, if you're interested in any of these two products, you can take a photo uh of the URLs or or scan the QR codes there. Give you a second.

太棒了。Awesome.

更多 Ramp Labs 博客文章More from the Ramp Labs blog

然后,我也想邀请你去看看我们的 Ramp Labs 博客,我们在上面发布了许多非常有趣的文章,而我没能在这次演讲中介绍它们。其中尤其有一篇很有意思的文章叫 Portal,讲的是我们如何找到一种方法,把一个模型的后训练成果迁移到另一个模型上。比如,你可以在一个模型上进行 LoRA 后训练,就像我刚才介绍的 Qwen 3.5,然后再将其迁移到更新版本的 Qwen 上,甚至迁移到不同的模型系列之间。And then I I'd also invite you to check out our Ramp Labs uh blog, where we publish um a bunch of really interesting articles that I haven't had the chance to cover as part of this presentation. Um notably one of the really interesting ones is portal where we figured out a way of uh transferring learnings from one post train to another. So, you could do something like a Laura uh post train on one model, so like the Quen 3.5 that I was describing, but then transfer it to newer versions of Quen or even across different families.

所以,你是先用这个潜在表示进行后训练,然后就可以把它投射到不同的模型上,这样就能分摊后训练的成本。还有更多关于智能体 MapReduce 的博客文章,不仅包括我们做过的渗透测试内容,也包括分析 LLM 的使用情况并创建分类体系之类的内容;这些工作已经应用到了 token spend 产品中。So, you're post training with this latent that then can be projected onto different uh models and that really amortizes the cost that you have to spend on post training. Uh more blog posts on agentic map produce, so not only the pen testing stuff that we did, but also things like um analyzing and creating taxonomies of LLM usage, which is stuff that has gone into the token spend product.

嗯,比如自我改进式监控:我们使用大语言模型,在许多产品服务中通过 Datadog 自动创建监控项;随着数据不断传入,这些监控项也会自动改进,无需人员介入,基本上是为了打造极其稳健、可靠的软件。嗯,最后是语义标注。这是一次有趣的尝试:基于大量用户会话生成一张智能体式地图,我们可以在其中添加注释并创建开放式分类体系。也就是说,我们事先并不知道大语言模型使用情况会形成哪些群组,而是试图创建一种分类体系,之后再将其与公司内部的支出对应起来。Um things like self-improving monitoring where we use uh LLMs to automatically um create monitors with DataDog on a lot of our product services and then as the words come in, improve those monitors automatically without a person in in the loop to try to basically create super super robust and resilient software. Um and finally semantic tagging, which is this interesting uh foray into creating this um agentic map produce over a bunch of user sessions where we can annotate and create taxonomies that are open-ended. So, not knowing um ahead of time which what are the clusters of LLM usage and trying to create a taxonomy that can then be reconciled against the spend inside of the companies.

所以,如果你对这类研究感兴趣,可以访问 x.com/ramplabs,了解我们的更多研究成果。So, if uh if you're interested in this uh type of research, x.com/ramplabs where you can uh go and and check out more of our research.

另外,这是我的 Twitter,如果你还有其他问题,或者想聊聊应用研究中的某个用例,都可以联系我。就这些,谢谢。And uh there's my Twitter if you have any other questions or uh want to talk about some use case as part of your applied research. And that's it. Thank you.

值得记下

  1. 我们不能等到 GPT-4.5 或 GPT-5 发布。
  2. 即使这些能力最终以 API 形式提供,我们也能在第一天就上手,因为已经知道如何使用。
  3. 整个过程结束时,我们发现并修补了 7 个高严重性漏洞。

← 回到本期 · 第 8 条