← All transcripts

Small Models, Big Results: Training a Finance Agent for Under $500 — Charles Dickens, Snorkel AI Transcript, AI Summary & Key Points

AI Engineer · 5 days ago · Science & Technology · 17:16 · EN

Watch on YouTube

AI Summary

A 4 billion parameter Qwen3 model, RL-trained for under $500, beats its 235 billion parameter variant on financial question answering: about 60% pass@1 versus 51%. Snorkel AI partnered with UC Berkeley's Sky Computing Lab to build FinQA, an expert-validated QA dataset built from SEC 10-K filings (roughly 7,000 SQL tables pulled from EDGAR, generated with the Qwen3 30B model, split into 4,000 train / 500 val / 290 held-out benchmark). Frontier models showed recurring failure modes — hallucinated table schemas, context flooding from queries like SELECT *, and repeating failed strategies instead of adapting to error messages. Training used the open-source rLLM framework with GRPO, a binary correctness reward judged by GPT 5 nano against references, ~1,000 concurrent environments, and eight H100s ($420 compute + $40 judge API). Tool-use discipline learned on single-table data transferred to harder multi-table questions without explicit multi-table training, and general tool calling (BFCL benchmark) slightly improved. Ablations showed simpler training data and a single binary reward beat curriculum mixes and expert-designed rubric rewards — the bottleneck was tool-use discipline, not reasoning depth. Snorkel frames this as a blueprint for enterprise agents: specialization plus high-quality domain data can reach frontier-level reliability at a fraction of the cost, with results repeated in health care, law, and insurance.

Key Points

  • Specialization can beat scale: for enterprise AI workloads, reliability and specialization outweigh raw parameter count when training data matches the target domain and task distribution.
  • FinQA was built from SEC 10-K filings pulled from EDGAR: the Qwen3 30B model produced ~6,900 SQL tables, one question-answer pair per table, with a question taxonomy developed with financial experts.
  • Three layers of verification: programmatic consistency checks using metadata (lineage, table and column names), automated reviews from independent agents, and expert manual review.
  • Data split: 4,000 train, 500 validation, 290 held-out benchmark samples, with no company overlapping across splits.
  • Frontier-model failure modes: schema hallucination (assuming tables/columns exist), context flooding (e.g., SELECT * queries overwhelming context limits), and poor recovery — repeating failed strategies instead of adapting to error messages. The same gaps appeared in insurance underwriting work presented at a CAIS conference.
  • Training setup: Qwen3 4B base model, GRPO with binary correctness reward (GPT 5 nano as judge, reference-based), rLLM framework, ~1,000 concurrent environments, eight H100s.
  • Cost came in under $500: roughly $420 compute and $40 for the judge API.
  • Result: the 4B model's accuracy more than doubled from its base and it scored about 60% pass@1 versus 51% for the 235B variant, evaluated on the 290 expert-curated held-out samples.

AI in practice

Used for

Agents

  • rLLM-FinQA-4B — Answer expert-validated financial questions over SQL tables built from 10-K filings. 2 held 09:16

Tools & resources

3 items

RNo. 5510
AIAINotes.us AI product

rLLM

Open source · rllm-org/rllm

rLLM is an open-source framework from UC Berkeley's Sky Computing Lab for training language agents with reinforcement learning. It connects agent code to evaluation and training through a decorator-based Python API or CLI workflow: agents run in sandboxes, the model gateway captures token IDs and log probabilities, traces are organized into episodes and trajectories, evaluators compute rewards, and a training backend updates the model. It supports existing or custom agent harnesses, Docker, Daytona, Modal, and local sandboxes, with training backends including verl, tinker, and Fireworks, and methods including GRPO, REINFORCE, RLOO, supervised fine-tuning, and on-policy distillation. The project also provides integrated benchmarks and requires Python 3.11 or later.

Mentioned in
1 video
Kind
AI
SNo. 5516
AIAINotes.us Tool

SEC EDGAR

sec.gov

SEC EDGAR is an electronic source of company filings, including 10-K annual reports. Tables extracted from these filings were used to build the FinQA financial question-answering dataset.

Mentioned in
2 videos
Kind
Other
SNo. 5519
AIAINotes.us AI product

Snorkel AI

snorkel.ai

Snorkel AI is an AI data-development company that builds specialized training datasets, benchmarks, and evaluation environments for frontier models and agents, particularly in high-stakes and specialized domains. Its work addresses distributional gaps, benchmark blind spots, and tasks where correctness is difficult to define. The company also publishes research and operates Open Benchmarks Grants; the video specifically describes its collaboration with UC Berkeley on FinQA, an expert-validated financial question-answering dataset built from SEC 10-K filings.

Mentioned in
1 video
Kind
AI

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 Small Models, Big Results: Training a Finance Agent for Under $500 — Charles Dickens, Snorkel AI — AI Engineer (17:16). 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: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, but I think there are general takeaways that I want to make sure taken home.

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

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

01:28 And that's at the intersection of academia and industry research, but also grounded in enterprise deployments. 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.

02:01 Um but I also want to acknowledge frontier live data and environments, as well as enterprise uh deployments are the things we work 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.

02:33 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 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

03:07 Bhavishya and Chris Glaze and myself uh from Snorkel. And you can find all the assets, the uh training scripts, synthetic data 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.

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

04:00 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 financial and legal domains, for example.

04:24 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.

04:50 You'd call the specialist that 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.

05:24 Uh we pull these from the Edgar system 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.

05:58 And finally, the third step is 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.

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

06:59 And the data is split so that no company in the benchmark overlaps um in any split. And on this data, we 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.

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

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

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

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

09:23 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 our base model, GRPO and binary reward uh for optimization and the RL and framework.

09:58 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 is the central question, can a 4 billion model uh armed with the specialized tools and training actually compete with its larger variant?

10:32 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 samples. So, a natural concern is whether this actually transfers to harder problems.

11:01 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 decision-making and planning.

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

11:54 And we'll 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.

12:23 So specialization didn't actually erode the model's broader tool 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.

12:49 And surprisingly, just training on the simpler set resulted in the most lift. And this partially explains why the generalization result we saw 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.

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

13:40 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 agents.

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

14:35 So, check that out. Um, and 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?

15:06 Um, are they making safe and good decisions by themselves? And can they actually 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 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.