Our Smaller Model Beat Opus on Finance Tasks - Alexander Shevchenko, Ramp
AI Engineer · 14 min · 107 sentences · from YouTube's caption track
Each timecode opens YouTube at the start of that sentence. Line anchors (#s42) are the cue ids in the WebVTT, and every line carries its start and end seconds. All transcripts has every talk, and the whole corpus as one file.
- 00:12Hey everyone, I'm Alex from Ramp.
- 00:15Um I'll be speaking about chasing capabilities while waiting for the frontier to advance.
- 00:20So, quick uh intro about myself.
- 00:22I 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.
- 00:35Uh to and to to caveat my presentation on Ramp Labs, Ramp is an extremely bitter lesson filled company.
- 00:43Over the last year, the number of use cases that use LLMs has increased 123%.
- 00:48While 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
- 01:00uh all the time now, and these models are cheaper, faster, uh and better.
- 01:05And so, we're able to provide the same level of accuracy at a much lower cost.
- 01:11And so, this is a really bitter lesson filled uh pattern.
- 01:15And so, given all this, a question that I sometimes get, why not just wait?
- 01:22Why have an applied research function inside of a company like Ramp, an app application layer company, right?
- 01:29Um and to answer that, I would like to draw draw a parallel to 2023.
- 01:35Back in 2023, uh you had access to kind of like GPT-4, and creating an agent was a lot of work.
- 01:42Um you would have to create very, very strict guardrails.
- 01:47Models weren't allowed to backtrack.
- 01:49They didn't have thinking tokens.
- 01:50And so, if it went in the wrong direction, it would just kind of charge ahead and not realize that it made mistakes.
- 01:57You 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:09generalizing to the user's intent.
- 02:12You had to reduce and scope down the context as much as possible because giving too much context to the agent would just confuse it.
- 02:20And even back then, we decided, well, we need to ship these things.
- 02:25We can't wait for GPT-4.5 or GPT-5 to come out.
- 02:29We need to serve our financial professionals now.
- 02:32And we shipped things like Ramp Tour Guide and many other agents even though it was not the easy thing to do.
- 02:39And fast forward now to 2026, building an agent is a lot easier.
- 02:43The 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.
- 02:54But, I still believe that we can dig a layer down and create even better experiences for our users.
- 03:02It's just it requires a bit more effort now.
- 03:06So, to present this uh some of our work from Ramp Labs, three specific cases of how we've applied research into Ramp itself.
- 03:16Starting with creating a specialist model.
- 03:20So, in November of last year, we launched Ramp Sheets, which was one of the really early uh spreadsheet agents.
- 03:28This was before the two frontier labs had launched their versions of spreadsheet agents and we had a very good launch in November.
- 03:35A bunch of users from great companies had signed up and started using it.
- 03:39And we realized that well, this is a very general purpose spreadsheet handling agent.
- 03:46And 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:57So, 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.
- 04:08And as we were building this out, we realized, well, we can probably apply some research uh from Ramp Labs to make this even better.
- 04:18And we sat down and we started looking, where do models fall short on this?
- 04:22And 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,
- 04:37it 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.
- 04:47And Opus 4.6 is a great model, but it was like pretty slow and the thinking tokens are also pretty expensive.
- 04:54And 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
- 05:05as orchestrators, would then be handed off to the this much faster model that would do uh financial question-answering for that planning agent.
- 05:16And 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
- 05:30uh exact task accuracy, while also being able to serve it at high cool uh level latencies.
- 05:37So, a much faster, but just as smart model that could then be used in uh in tandem with the really smart frontier orchestrator.
- 05:48Um 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.
- 05:57Uh 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
- 06:12you'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.
- 06:21And 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?
- 06:30Like 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.
- 06:39You know kind of the ledger, the aging report and the documents that they will need to be retrieving.
- 06:44And 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.
- 06:53With 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.
- 07:03And 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:12Cartridges are also a much lower lift in post training because the way that they do self-play is kind of a lot more generalizable.
- 07:20The 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
- 07:29uh continuous learning.
- 07:31And 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
- 07:39um and just learning how best to apply these techniques.
- 07:42So even if it does ship as an API, we can just hit the ground running on day one knowing how to use them.
- 07:50And 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.
- 08:02So 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:12Um 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.
- 08:23And 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:36So 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.
- 08:46At the end of all of this, we have actually found seven high vulner- high severity vulnerabilities that we all patched.
- 08:52Interestingly, one of the um vulnerabilities that we describe in that article is a Lua script injection that you could send over via email.
- 09:01And no single component of that stack was unsafe.
- 09:05And 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.
- 09:15And the other nice thing with this is that this is all running automa- automatically.
- 09:19You 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:30The 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.
- 09:41One 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:52And because you're set- setting it up as a swarm, the detection rate is not five times lower.
- 09:58So you can kind of spend more on these cheaper tokens and have almost as good of a detection rate.
- 10:07Um 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.
- 10:19So, reducing latency, which is time, and then reducing on token cost, which is money.
- 10:23That's actually Ramp's uh slogan, uh saving our customers time and money.
- 10:28Um 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.
- 10:36The 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:47Not 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
- 11:01uh analyzing the spend.
- 11:03It 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:18And 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,
- 11:29uh things like Nvidia Switchyard, things like smart flex offloading of work to both improve latency and um cost per tokens that you spend.
- 11:40And there's a bunch of different strategies already available for the the for routing, and even more coming out later.
- 11:47So, 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.
- 11:54Give you a second.
- 12:02Awesome.
- 12:03And 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.
- 12:15Um 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:24So, 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
- 12:34or even across different families.
- 12:37So, 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:47Uh 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.
- 13:00Um 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
- 13:14without a person in in the loop to try to basically create super super robust and resilient software.
- 13:21Um 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
- 13:32that are open-ended.
- 13:34So, 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:46So, 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.
- 13:56And 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.
- 14:06And that's it.
- 14:07Thank you.
- 14:09[applause]