Small Models, Big Results: Training a Finance Agent for Under $500 — Charles Dickens, Snorkel AI
Read the Portuguese translation →
Author: AI Engineer · Watch on YouTube
Video authored by the channel shown, not by IANIA; all rights belong to the creator. Transcript and summary generated automatically; the original-language content is preserved.
Original language: English
Original video: Small Models, Big Results: Training a Finance Agent for Under $500 — Charles Dickens, Snorkel AI · Channel: AI Engineer · 16:44 · Watch on YouTube
Topics: AI agents, Enterprise AI applications, AI evaluation and benchmarks, Data, databases and embeddings, AI models
Summary
Section titled “Summary”Charles Dickens describes how Snorkel AI and UC Berkeley’s Sky Computing Lab trained a 4-billion-parameter Qwen model to outperform its 235-billion-parameter variant on financial question-answering tasks. The team built expert-validated FinQA data from SEC 10-K reports, with checks by programs, independent agents, and human reviewers. Using GRPO reinforcement learning and a binary correctness reward, they more than doubled the base model’s accuracy for under $500, and its tool-use discipline also transferred to multi-table tasks and a general tool-calling benchmark. The results support the idea that high-quality, task-specific data and reliable tool use can matter more than model scale for specialized enterprise agents.
Key points
Section titled “Key points”- The project was a collaboration between Snorkel AI and UC Berkeley’s Sky Computing Lab, with code, data, and training scripts released openly.
- FinQA data was generated from tables extracted from SEC 10-K reports, using a financial question taxonomy and expert validation.
- The verification pipeline combined programmatic consistency checks, independent-agent reviews, and manual expert review.
- The dataset was split by company to prevent overlap between training, validation, and held-out benchmark sets.
- Observed model failure modes included schema hallucination, context flooding from broad queries, and poor recovery after errors.
- The team trained a Qwen 3 4B model with GRPO in an agent environment that used tools to query financial tables.
- Training cost under $500, including compute and judge API costs, and the trained 4B model outperformed the 235B variant on the held-out set.
- Tool-use discipline transferred to multi-table questions without explicit training on those examples, and specialization did not reduce general tool-calling performance.
- A simple binary reward performed better than more elaborate reward rubrics; the ablation results suggested tool-use reliability was the main bottleneck.
- The speaker identifies environment complexity, autonomy horizon, and output complexity as important axes for evaluating agents.
Chapters
Section titled “Chapters”| Start | Chapter | Summary |
|---|---|---|
| 00:01 | A smaller model beats its larger variant | Dickens introduces the result and argues that specialization, reliability, and high-quality data can outweigh raw model scale in enterprise AI. |
| 03:17 | Building the FinQA benchmark | He explains the financial use case, how questions were generated from 10-K report tables, and how the data was verified and split. |
| 07:11 | Failure modes and reinforcement-learning setup | The talk covers common tool-use failures and the RLLM training environment, including GRPO, binary rewards, and the sub-$500 training cost. |
| 10:23 | Results and generalization | The 4B model outperforms the 235B model on the held-out financial benchmark, transfers to multi-table tasks, and retains general tool-calling ability. |
| 12:29 | Ablations and lessons for enterprise agents | Ablations show that simpler training data and binary rewards work best, while the speaker outlines evaluation priorities and open-benchmark opportunities. |
Quotes
Section titled “Quotes”how we got a 4 billion parameter model to outsmart its 235 billion parameter variant. — 00:01
reliability and specialization uh can actually outweigh raw parameter scale. — 00:34
this all was a cost under $500 to get the results that we saw. — 09:49
A single binary reward signal, um, was what got us the most lift on this data. — 13:32
Concepts and entities
Section titled “Concepts and entities”Charles Dickens, Snorkel AI, UC Berkeley Sky Computing Lab, FinQA, Qwen3 4B, Qwen 3 30B, RLLM, GRPO, BFCL, GPT-5 nano
Full transcript (original language)
Section titled “Full transcript (original language)”00:01 [music] >> Everyone, thanks for joining. I’m Charles and I’m a research scientist at Snorkel AI. And today I’m going to be talking about how we got a 4 billion parameter model to outsmart its 235 billion parameter variant. And this is a specific result in a simulated financial environment,
00:34 but I think there are general takeaways that I want to make sure taken home. And the first is for enterprise AI workloads, reliability and specialization uh can actually outweigh raw parameter scale. And this is possible with high-quality data that actually represents the domain and task distribution that you’re targeting. And uh this can result in smaller models that can achieve parity with frontier models at just a fraction of the cost. So,
01:06 before I get to it, I’m going to take this opportunity to introduce ourselves a little bit. This is our team. We’re a frontier AI data lab and our team, we have founders from labs at University of Washington, Wisconsin, Stanford, and an internal team of really talented FTEs, researchers, and we’re in a fortunate position to play in, by that I mean build and deploy data sets and environments uh for frontier AI. And that’s at the intersection of academia and industry research, but also grounded in enterprise deployments.
01:39 Um and this is all to say that we have a team that’s built to focus on building the best data possible to define in advanced AI. And the way we do this is threefold. First is open research and benchmarks, so we’re constantly contributing to open-source benchmarking, and the project I’ll be talking about today actually falls under this pillar. Um but I also want to acknowledge frontier live data and environments, as well as enterprise uh deployments are the things we work
02:11 on. And under open research and benchmarks, we support research through grants, and I’ll talk about opportunities here at the end of this talk, so um get ready for that. And then co-authoring with academic uh or industry partners um and leading independent research and publishing open artifacts. So, what I’m talking about today is uh a partnership with UC Berkeley Sky Computing Lab, and we built, like I said, a 4 billion parameter Qwen model
02:43 to outperform its 235 billion model variant on financial tasks. We saw the 4 billion parameter model, spoiler alert, uh achieve almost a 60% pass at one, while the 235 billion model uh achieved 51%. So, exciting results, and this is all uh in collaboration with I got to give credit where credit’s due, Manon Rupta, Shujian Tang from the Sky Computing Lab, as well as Bhavishya and Chris Glaze and myself uh from Snorkel. And you can find all the assets, the uh training scripts, synthetic data
03:17 uh on our GitHub, so check those out, and this is all open-source and available to you. So, I’ll cover today what uh we see financial institutions need um from AI, and this is from our enterprise deployments uh learnings, as well as the FinQA open-source benchmark. And this is expert-validated financial question-answering data that we trained our uh and evaluated our model on. And finally, uh the training process for the RLLM FinQA 4B model.
03:49 So, let’s get started. This is uh the one and only slide with the Charles Dickens reference, I promise, but this is a tale of two models, I’d say. First, the large generalist versus small specialist. And the point is here, when financial institutions ask us how well does the model or the agent reason, what they typically mean is can it operate in my stack of complex schemas, legacy APIs, and tech debt? And can we trust it in realistic uh and long workflows without compounding errors? And can we reliably audit the agent? That’s important in
04:21 financial and legal domains, for example. Which brings us to the question is uh how can we evaluate and improve agents to make them reliable in these uh real-world environments? So, um the reflex may be to scale. We’ve all seen scaling law results, uh but today I’m going to argue that specialized workflows don’t actually need generalists. We don’t need polymaths. You know, you wouldn’t call Terence Tao for a tax audit, um if you’re lucky enough to have him in your contacts. You’d call the specialist that
04:52 knows the forms, the tools, and the rules. So, that’s why we built FinQA. This is expert-validated financial question-answering data. And I’ll walk through the multi-stage pipeline of how we built this benchmark and training data. So, first is schema and data extraction. This is coming from 10-K reports. Uh these are annual reports required by the SEC for all public companies, and they’re used uh by analysts for identifying risks and informing investment decisions. Uh we pull these from the Edgar system
05:26 and use the Qwen 3 30 billion model to produce tables, SQL tables, approximately 6,900 of those. And we use each table to generate a single question-answer pair. And this is uh produced along with the question taxonomy that was developed with financial experts that work with these documents. And these are used as context uh for the model to generate a question-answer pair along with metadata that we’ll see uh what that’s used for later. And finally, the third step is
06:00 verification. And this is a three-layer verification process. First is programmatic consistency checks. That’s where we use um the metadata, uh which includes lineage and table names and columns to make sure we’re not hallucinating those. The second is automated reviews from independent agents. And finally, expert manual review. So, humans actually going through these and making sure the questions and answers are realistic and verified. And the outcome is Snorkel’s FinQA data. And this is our first pass at this.
06:35 Uh realistic queries requiring planning, tool use, uh tool calling, and reasoning. And um answers are single, verifiable, final answers. And from this, um we get from the uh original set of roughly 7,000 tables, 4,000 in train, 500 in val, and 290 in the held-out benchmark. And the data is split so that no company in the benchmark overlaps um in any split. And on this data, we
07:11 identified um even with frontier models, uh reoccurring discipline gaps, uh failure modes. And the first is schema hallucination. So, a model will actually assume that tables exist, column names exist, and um this can be an artifact of pre-training data, something it’s seen um in its past. The next is context flooding. So, actually flooding its own context um with poorly playing queries. For example, just calling select star, um and this could overwhelm its context
07:43 limits if successful. And finally, poor recovery um from errors. So, when 3235 would actually repeat the same failed strategy um instead of considering the error messages and adapting. And these failure modes are not actually just seen in the financial environment that I’m talking about today, but also what we saw in insurance underwriting. And this is a work that I’m calling out that was presented at the CAIS conference um
08:13 few weeks ago. So, now I’ll get into actually training the R LLM FinQA 4 billion model. Uh for this we used the R LLM uh framework and this was developed by the R Sky Computing Lab collaborators. And if you haven’t used this yet, um this is a really user-friendly tool and a few core features um I want to call out is it really works with any agent framework, requires near zero code changes just using uh a decorator
08:45 pattern, CLI first workflow, battle-tested results. So, um we’ve seen R LLM actually improve not just on this finance um case study, but also in math reasoning for example. Um multiple RL algorithms are built in, GRPO, reinforce RL, OOO for example, and you can customize those and then supports multiple uh training backends. All right, now for our training environment, um this is the uh training
09:16 environment we used for our model. The agent runs in a react loop and has access to tools uh to interact with the tables we generated. The environment includes the roughly 7,000 tables we created and finally reward is binary correctness uh determined by a language model as judge. In this case, GPT 5 nano using reference-based evaluation. Training details are listed here. This is uh I guess would be interesting to folks. We have the Qwen 3 4 billion model is
09:49 our base model, GRPO and binary reward uh for optimization and the RL and framework. Um we ran roughly 1,000 concurrent environments to generate trajectories and this all was a cost under $500 to get the results that we saw. Um broken down between compute roughly 420 and $40 for a judge uh the judge API. And this was on eight H100s. The first result um
10:23 is the central question, can a 4 billion model uh armed with the specialized tools and training actually compete with its larger variant? And the answer is yes. So, what we saw was actually the base model’s accuracy um more than doubled and it outperforms its larger variant, the 235 parameter model. And this is uh despite being a fraction of the size. And we evaluate all models shown here um on the expert curated held out 290
10:54 samples. So, a natural concern is whether this actually transfers to harder problems. So, this is just single question answer pairs on a single table. Um and to investigate this, we uh looked at our FinQA reasoning data. So, this is a development on the FinQA um data I presented earlier. And the difference here is that now we’re having a dependencies on multiple tables, two to five tables, and requires sequential um
11:24 decision-making and planning. And we evaluated on this data set. You can see the breakdown um as well. We have roughly 1,000 in train, 120 in validation, 80 in benchmarks. And what we see is the tool use discipline actually generalized directly from training on the simple data. And no explicit training on multi-table examples was needed actually to see lift in this multi-table variant of the data set. And we’ll
11:57 investigate why with the ablation studies. But the next concern we had was whether this result would generalize to more general use cases. So for this we use the BFCL benchmark and this measures general tool calling capability. And overall accuracy was actually slightly improved and then um we had also minor gains on multi-turn and memory. So specialization didn’t actually erode the model’s broader tool
12:29 use competence when we did RL fine-tuning for this model. So to isolate what drove this performance, we ran ablation study on data mixtures, so different ways we can combine the training data we had. The first is just training on FinQA data and the second single and multi-table and finally a curriculum where we start with single and then move to multi. And surprisingly, just training on the simpler set resulted in the most lift. And this partially explains why the generalization result we saw
13:00 earlier. The bottleneck was never reasoning depth, it was just tool use, meaning the model where it was actually failing and improving the reliability of that. And once you master the fundamentals, it could compose those skills. Yeah, so oops, let me go back. The next natural question is whether more informative reward signals, Um, for example, rewarding intermediate steps, uh, table access, query completeness, things like that could
13:32 actually accelerate learning. Uh, so this is different from curriculum, for example. And the most sophisticated variant we came up with was, uh, a rubric. And this uses fine-grained scoring with, uh, multiple weighted components. And this is actually coming came up with with experts. Um, and despite this investment in reward engineering, we actually again saw, um, simpler was better. A single binary reward signal, um, was what got us the most lift on this data. Which led us to a blueprint, um, that we’ve been developing for enterprise
14:06 agents. Um, and generally, I’d say this study showed us that small models uh, can successfully be trained uh, with RL um, when you have quality data to uh, represent the target um, outcomes and tasks. And this can result in better deployment economics uh, for specialized tasks and domains. And um, we’ve seen this and repeated this result in other areas including health care, law, and insurance, um, which I pointed to earlier. So, check that out. Um, and
14:40 our point of view as far as building um, axes for evaluating agents is this is environment complexity is um, one of the most important axes. How complex, how realistic and dynamic are the environments uh, the agents operating in. The next is autonomy horizon. Um, are agents being tested and evaluated at the lengths and the horizon lengths in the way people actually want to use agents? Um, are they making safe and good decisions by themselves? And can they actually
15:10 improve um, their judgment as a co-pilot over time? And finally, output complexity. We want to capture the wide range of outputs in our day-to-day work. Um, and I would say that this is currently under explored. New benchmarks are coming up in this direction, but uh still I see a big primary focus on um text artifacts and creating more rigorous evaluations and these settings is a big opportunity.
15:42 Progress is being made here. So, on that note, um I’m going to advertise our open benchmarks grants, which funded this project. And this is a multi-million dollar commitment to producing open benchmarks like this. We’ve had a lot of success agent, last exam, judgment bench, um others are coming out and this is um really accelerating our ability to measure the frontier and shape the frontier.
16:14 So, to apply uh check out our website. Um you’ll go through a submission selection review process, develop, and then finally publication, launch, um and promotion. And I also want to call out that we’re hiring in professional research, um you name it, engineers, and um yeah, check that out. You can check out our website and finally, thank
16:44 you so much for attending. Um you can use this QR code to see the blog as well as pointers to all the artifacts that released on GitHub, Hugging Face. Yeah, thank you all.