← All transcripts

Our Smaller Model Beat Opus on Finance Tasks - Alexander Shevchenko, Ramp Transcript, AI Summary & Key Points

AI Engineer · 7 days ago · Science & Technology · 14:15 · EN

Watch on YouTube

AI Summary

Ramp built an applied research function (Ramp Labs) inside an application-layer company rather than waiting for frontier models to improve. LLM use cases at Ramp grew 123% over the last year while top features get cheaper on a unit-economics basis as new frontier models arrive. Three research projects are in production: a post-trained Qwen 3.5 35B financial question-answering model built with Prime Intellect that beat Opus 4.6 on exact task accuracy at Haiku-level latency as the worker under a frontier orchestrator; KV cache 'cartridges' that compress up to 20-30x more context offline so agents like month-end-close assistants start with all ledger and aging-report context pre-built; and a swarm of 10,000 parallel agents that pen-tested all of Ramp, finding seven high-severity vulnerabilities that were all patched, including a Lua script injection deliverable by email that no single component exposed. Open-weight models up to five times cheaper than frontier reasoning run in swarms with nearly the same detection rate. Ramp Labs research feeds two products: token spend management, which semantically analyzes LLM usage across API keys, users and accounting categories, and Ramp Router, which improves agent latency and token cost with routing strategies like Nvidia Switchyard and smart flex offloading. The Ramp Labs blog also covers Portal, a technique for transferring post-training learnings across models like Qwen versions and families.

Key Points

  • LLM use cases at Ramp grew 123% over the last year, while top features grow in token spend but get cheaper on a unit-economic basis as frontier models become cheaper, faster and better
  • Building agents in 2023 meant strict guardrails, no backtracking or thinking tokens, prompt sensitivity to synonyms and minimized context; by 2026 models handle MCPs and broad context well, but Ramp Labs digs a layer down for better experiences
  • Project 1, Ramp Sheets specialist model — a Qwen 3.5 35B model post-trained with Prime Intellect beat Opus 4.6 on exact task accuracy for financial question answering while serving at Haiku-level latency, with a frontier model kept as orchestrator
  • Project 2, KV cache cartridges — compress up to 20-30x more context into the KV cache offline; a month-end-close cartridge is built overnight before the first of the month so the agent opens with full ledger, aging-report and document context; lower-lift post-training with more generalizable self-play
  • Project 3, agentic swarms — 10,000 parallel agents pen-tested all of Ramp using the Ramp Inspect cloud agent, with LLM deduplication and adversarial reproduction of tickets; seven high-severity vulnerabilities were found and all patched, including a Lua script injection sent via email that required patching together understanding of multiple components end-to-end
  • Open-weight models up to five times cheaper than frontier reasoning run in swarms with a detection rate far better than five times lower, so spending more on cheap tokens gets almost the same detection rate
  • A recurring pattern across projects: save time (latency) and save money (token cost), matching Ramp's slogan of saving customers time and money
  • Token spend management product connects to API keys and shows LLM usage by API key, user, accounting category, potential tax credits, and a semantically analyzed taxonomy of usage

AI in practice

Used for

Agents

  • Ramp Sheets — Spreadsheet agent that builds DCFs and models financial scenarios from dropped-in spreadsheets. 2 held 03:17
  • Ramp Inspect — Cloud agent providing infrastructure and plumbing for the 10,000-agent pen-testing swarm. 2 held 08:13

Business ideas

Instead of serving every request with an expensive, slow frontier model, train a smaller open-weight model on the specific question-answering subtask (e.g. retrieving and reasoning over dropped-in spreadsheets) and hand off work from a frontier orchestrator to it. Ramp Labs post-trained a 35B Qwen model that beat the frontier model's exact task accuracy while serving at Haiku-level latency.

For
Finance and accounting teams using agentic spreadsheet/analysis products, or any vertical product where a narrow, high-frequency reasoning subtask dominates latency and cost.
Solves
Frontier models are slow and expensive on thinking tokens; much of an agent's time is spent on a subtask (understanding spreadsheets, answering domain questions) that a smaller specialist model can do as well or better, at far lower latency and cost.
  • Ramp Sheets: Ramp's spreadsheet agent, launched November before frontier labs shipped their own spreadsheet agents, whose backend gained the post-trained specialist model

For tasks whose context is predictable ahead of time (like month-end close, where the ledger, aging report and documents are known), compress the context 20 to 30 times into a KV cache cartridge offline and serve it to the agent so it starts work already knowing everything, with no agentic retrieval.

For
Finance professionals with recurring, scheduled workflows — month-end close on the first of the month — and similar cyclical processes in other domains.
Solves
Even with good models, an agent wastes time agentic-retrieving and building an understanding of documents it will certainly need. Pre-building that context overnight removes the retrieval phase entirely.
  • Month-end close at Ramp: cartridge built overnight on the last day of the month so the agent reconciles books on the first with all context pre-loaded

Use LLMs to automatically create DataDog monitors across product services, then as alerts come in, have LLMs improve the monitors automatically without a person in the loop, producing robust and resilient monitoring that gets better with each incident.

For
Engineering teams whose monitoring is hand-maintained and stale.
Solves
Monitors written by people don't improve; LLM-generated and self-improving monitors adapt from real alerts without human effort.
    🔒  Build steps and tools for 4 ideas. Unlock

    Tools & resources

    3 items

    DNo. 4855
    AIAINotes.us Tool

    Datadog

    datadoghq.com

    Datadog is a cloud monitoring and observability platform for collecting and analyzing metrics, traces, logs, and related data across infrastructure, applications, networks, containers, databases, and cloud environments. It provides infrastructure monitoring, application performance monitoring, log management, dashboards, alerting, incident management, security monitoring, synthetic monitoring, and user-experience monitoring. The platform is used to identify broken or correlated systems and investigate operational issues, although the video notes that observability alone does not necessarily establish root cause. Datadog also offers AI features, including investigation, remediation, agent observability, and an MCP server.

    Mentioned in
    15 videos
    Kind
    Other
    PNo. 7250
    AIAINotes.us AI product

    Prime Intellect

    primeintellect.ai

    Prime Intellect is an AI infrastructure platform for training, deploying, evaluating, and improving custom models. Its integrated stack combines managed compute, hosted reinforcement-learning training through the open-source Prime-RL trainer, hosted evaluations and trace observability, microVM sandboxes with Docker and reinforcement-learning support, and model inference through OpenAI-compatible APIs. Teams can build training environments with the Verifiers and Environment Hub, use community environments, deploy custom models, and iterate from production traces into scored environments and subsequent training runs. The platform also provides on-demand GPUs or dedicated clusters with SLURM and Kubernetes orchestration, InfiniBand networking, self-healing infrastructure, monitoring, and support.

    Mentioned in
    2 videos
    Kind
    AI
    RNo. 7419
    AIAINotes.us Tool

    Ramp

    ramp.com

    Ramp is a spend-management and corporate-finance platform combining corporate cards, global spend controls, travel, expenses, accounts payable, accounting automation, and banking. Its platform automates finance workflows through card and permission provisioning, receipt and expense processing, approval and policy handling, and integrations with other business systems. Ramp also develops AI features and products, including Ramp Sheets, Ramp Router, Stack, and policy agents, which apply language models and agents to finance tasks such as financial question answering, token-spend management, and month-end close.

    Mentioned in
    3 videos
    Kind
    Other

    Links mentioned

    🔒 Full analysis locked

    Unlock more videos and the full analysis

    A credit unlocks one video's full analysis for good — the build steps, the tools and how each was used, the methods behind every use case. Pro opens the whole library instead, and raises how many videos you can analyse a day.

    Unlock full analysis — free

    Transcript

    Searchable transcript of Our Smaller Model Beat Opus on Finance Tasks - Alexander Shevchenko, Ramp — AI Engineer (14:15). Search for a phrase, then click its timestamp to jump straight to that moment in the video.

    Captions sourced from the original video on YouTube, published by AI Engineer. The video, its captions and all related intellectual property remain the property of their respective owners; AINotes claims no ownership. Provided for research, accessibility and search — see the Transcript Notice and Copyright Policy.

    00:12 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. 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. Uh to and to to caveat my presentation on Ramp Labs, Ramp is an extremely bitter lesson filled company.

    00:42 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.

    01:03 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. 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? Um and to answer that, I would like to draw draw a parallel to 2023.

    01:35 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. 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

    02:09 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. 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.

    02:39 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.

    03:00 It's just it requires a bit more effort now. 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.

    03:33 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. 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.

    03:56 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. 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

    04:33 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. 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,

    05:04 would then be handed off to the this much faster model that would do uh financial question-answering for that planning agent. 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.

    05:36 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. 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

    06:15 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.

    06:42 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. 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.

    07:10 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. 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.

    07:41 So even if it does ship as an API, we can just hit the ground running on day one knowing how to use them. 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.

    08:12 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. 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.

    08:35 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. Interestingly, one of the um vulnerabilities that we describe in that article is a Lua script injection that you could send over via email.

    08:59 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. And the other nice thing with this is that this is all running automa- 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.

    09:30 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.

    09:51 And because you're set- setting it up as a swarm, the detection rate is not five times lower. So you can kind of spend more on these cheaper tokens and have almost as good of a detection rate. 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.

    10:23 That's actually Ramp's uh slogan, uh saving our customers time and money. 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. 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.

    10:45 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.

    11:18 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.

    11:47 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. 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.

    12:22 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. 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.

    12:47 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. 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

    13:19 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.

    13:45 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. 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. >> [applause]