AI Engineer

Small Models, Big Results: Training a Finance Agent for Under $500 — Charles Dickens, Snorkel AI

1904 summary words 8 min summary Watch video

Start with the signal

8 min read

Summary

At-a-Glance

  • Verdict: Watch fully
  • Core thesis: A 4B Qwen model fine-tuned with RL on rigorously validated finance tool-use data surpassed its 235B counterpart on FinQA, showing that specialized data, environment design, and tool discipline can matter more than parameter scale for enterprise agents.
  • Why it matters: The talk provides a concrete, low-cost recipe for training specialized agents—under $500 on eight H100s—and identifies operational failure modes that are directly relevant to reliable agent deployment.
  • Best use: Use it as a design reference for building a domain-specific agent benchmark, RL environment, reward loop, and evaluation plan rather than as evidence that small models universally beat frontier models.

Executive Summary

Charles Dickens of Snorkel AI presents an open-source finance-agent experiment in collaboration with UC Berkeley's Sky Computing Lab. The central result is that a 4B-parameter Qwen model, RL-trained for financial table question answering and tool use, achieved nearly 60% pass@run on a held-out FinQA benchmark, versus 51% for the 235B Qwen variant. The speaker's argument is not that scale is irrelevant, but that enterprise tasks often reward specialization, reliability, and operational discipline more than broad general knowledge.

The training corpus was built from public-company SEC 10-K reports: approximately 6,900 extracted SQL tables were used to generate financial questions under an expert-developed taxonomy. Examples passed programmatic lineage/schema checks, independent-agent review, and expert manual review. The held-out benchmark used non-overlapping companies across train, validation, and test sets, attempting to prevent company-level memorization.

The training environment used a ReAct-style agent with table-interaction tools, GRPO optimization, and a binary final-answer reward judged by GPT-4 nano against references. Roughly 1,000 concurrent environments generated trajectories. Reported costs were approximately $420 in compute plus $40 in judge API costs, on eight H100s. The model's base accuracy more than doubled after training.

The more useful lesson is diagnostic: the model's core weaknesses were schema hallucination, context-flooding queries such as SELECT *, and repeated failed strategies after receiving errors. Ablations suggested that training on simpler single-table tasks outperformed training on mixed or progressively harder multi-table data, while a simple binary reward outperformed an expert-designed multi-component rubric. Snorkel interprets this as evidence that the bottleneck was tool-use discipline, not reasoning depth; once fundamentals improved, gains transferred to multi-table reasoning without explicit multi-table training and did not degrade broader tool-calling performance on BFCL.

Key Takeaways

  • Claim: A small specialized model can outperform a much larger generalist model on a narrowly defined enterprise workflow. | Evidence: The RL-trained 4B Qwen FinQA model achieved almost 60% pass@run on 290 expert-curated held-out finance samples, compared with 51% for the 235B Qwen variant. | Implication: For constrained agent workflows, Ken should test whether a small model trained against the actual tools, schemas, and error conditions can replace expensive general-purpose inference before assuming a frontier model is required. | Caveat: This result is specific to a simulated financial table-tool environment and a 290-sample held-out benchmark; it does not establish that 4B models outperform frontier models on open-ended finance work or production systems generally.
  • Claim: The decisive capability gap was reliable tool use rather than deeper financial reasoning. | Evidence: Snorkel observed recurring failures even in frontier models: inventing tables or column names, flooding context through poorly scoped queries such as SELECT *, and retrying the same failed strategy instead of adapting to error messages. | Implication: Agent evaluations should separately instrument schema grounding, query planning, context budget management, error recovery, and retry behavior rather than treating end-task accuracy as a pure measure of reasoning.
  • Claim: High-quality task-distributed data is the foundation of specialization, not merely a fine-tuning input. | Evidence: FinQA began with roughly 6,900 SQL tables extracted from SEC EDGAR 10-K reports, generated one question-answer pair per table using an expert-developed taxonomy, and applied three verification layers: programmatic schema/lineage consistency checks, independent-agent review, and expert manual review. | Implication: For any agent domain, the benchmark and training environment should be assembled around authentic tool schemas and realistic failure conditions, with checks that prevent synthetic data from normalizing hallucinated entities or impossible workflows. | Caveat: The extracted tables and generated questions depend partly on model-generated artifacts, including use of Qwen 32B for table production, so validation quality is central to trusting the benchmark.
  • Claim: A relatively inexpensive RL loop can materially improve a small agent when the environment provides verifiable outcomes. | Evidence: The team used a 4B Qwen base model, GRPO, a ReAct agent loop, binary correctness reward, approximately 1,000 concurrent environments, and reported total training cost below $500: roughly $420 compute and $40 for GPT-4 nano judging on eight H100s. | Implication: The economic comparison should focus on total lifecycle cost: spend more upfront on a trustworthy simulator and evaluation set if it enables much cheaper, faster, and more controllable model training and serving. | Caveat: The reported figure is an experiment-specific training cost and excludes likely costs of environment construction, data extraction, expert taxonomy development, manual review, engineering, and production validation.
  • Claim: Simpler training tasks and simpler rewards outperformed more elaborate curricula and reward engineering in this setting. | Evidence: In data-mixture ablations, training only on simpler single-table FinQA data produced more lift than mixed single/multi-table training or a single-to-multi-table curriculum. A binary final-answer reward also beat an expert-developed weighted rubric covering intermediate elements such as table access and query completeness. | Implication: Start agent RL with the smallest environment and reward that accurately capture the desired terminal outcome; add process rewards, complex curricula, or multi-step traces only after ablations show a specific deficiency they solve. | Caveat: This does not prove binary rewards or single-step curricula are generally superior; the finding may reflect that the underlying task was already objectively verifiable and that tool-use basics were the limiting capability.
  • Claim: Tool-use discipline transferred from simple tasks to harder multi-table tasks without explicit multi-table training and did not appear to harm broad tool calling. | Evidence: On a separate FinQA reasoning set requiring sequential decisions across two to five tables, the model showed lift despite no explicit multi-table training. On BFCL, a general tool-calling benchmark, overall accuracy slightly improved, with minor gains in multi-turn and memory categories. | Implication: Ken can train atomic agent skills—schema inspection, constrained retrieval, query execution, and error correction—then test compositional transfer before investing in expensive end-to-end traces for every complex workflow. | Caveat: The transfer evidence is based on related table-tool tasks and BFCL scores rather than broad production workloads with changing APIs, permissions, ambiguous user intent, or adversarial data.
  • Claim: Enterprise-agent benchmarking should measure the actual operating environment, autonomy horizon, and output complexity—not only text answers. | Evidence: Dickens proposes three evaluation axes: environment complexity and dynamism; autonomy horizon and whether agents make safe decisions over realistic workflow lengths; and output complexity beyond text artifacts. | Implication: A useful internal benchmark should include real integration constraints, multi-step recovery behavior, and the structured outputs or actions the agent must produce, with auditability built into the evaluation design.

Detailed Brief

FinQA benchmark and environment design

  • Claims: The benchmark is structured around single, verifiable final answers rather than subjective financial analysis.; The train, validation, and benchmark splits are separated by company, not simply by individual question, to reduce direct company-document overlap.; The speaker positions realistic schemas, legacy APIs, and long workflow behavior as the practical meaning of enterprise reasoning.
  • Evidence: The reported FinQA split contains approximately 4,000 training examples, 500 validation examples, and 290 held-out benchmark examples.; The subsequent multi-table reasoning set contains roughly 1,000 training examples, 120 validation examples, and 80 benchmark examples, with tasks requiring access to two to five tables.; The agent operates in a ReAct loop against the generated tables, and final correctness is reference-judged by GPT-4 nano.
  • Caveats: The finance setting is intentionally bounded: table access and final answers are easier to verify than many real financial workflows involving document interpretation, policy exceptions, external systems, or approval requirements.; Language-model judging can introduce error even with reference-based evaluation; the transcript does not provide judge-human agreement rates.
  • Implications: The strongest reusable asset is not the trained 4B checkpoint alone but the combined package of task distribution, tools, verifiable environment, held-out split, and error signals.; For production use, extend this type of benchmark with authorization boundaries, stale-data behavior, abstention, escalation, and audit-log requirements.

What the result does and does not support

  • Claims: The talk advocates specialization for known, repeatable enterprise workflows rather than replacing general-purpose models everywhere.; Snorkel states it has observed related patterns in healthcare, law, and insurance, but the presentation's detailed evidence is finance-specific.
  • Evidence: The speaker uses the analogy that a tax audit calls for a specialist who knows the forms, tools, and rules, not a universal polymath.; The 4B-versus-235B comparison is evaluated within the FinQA environment rather than across general knowledge, writing, coding, or unconstrained financial analysis.
  • Caveats: No baselines are provided for prompting, retrieval-only methods, supervised fine-tuning, tool constraints, or alternative model families, so the incremental value attributable specifically to GRPO versus environment/data design is not fully isolated.
  • Implications: Treat the reported performance as a case for disciplined empirical model routing: retain frontier models for broad ambiguity and use specialized small models where the state space, tools, and outputs can be controlled.

Notable Concepts & Terms

  • FinQA: Snorkel's expert-validated financial question-answering dataset and held-out benchmark built around SEC 10-K-derived tables and financial tool use.
  • RLLM: A UC Berkeley Sky Computing Lab framework used to apply reinforcement learning to agents with near-zero code changes through a decorator-oriented workflow.
  • GRPO: The RL optimization method used for the 4B model's training in this experiment.
  • ReAct loop: The agent execution pattern in which the model iterates through reasoning and tool actions against the table environment.
  • Pass@run: The reported end-to-end success measure under which the specialized 4B model scored nearly 60% on the held-out benchmark.
  • Schema hallucination: A high-impact agent failure mode in which the model assumes nonexistent tables or columns, often due to prior expectations rather than inspection of the live schema.
  • Context flooding: Self-inflicted context overload caused by poorly planned tool calls, exemplified by broad SELECT * queries.
  • BFCL: A general tool-calling benchmark used here to check whether finance-specific RL tuning reduced broader tool-use ability.

Operator Notes / Why Ken Should Care

  • Build a small held-out evaluation set for one high-value agent workflow with non-overlapping entities or accounts across training and test data; log schema hallucinations, oversized retrievals, and failed-retry loops as explicit error classes.
  • Run a controlled comparison among a frontier generalist, a small prompted model, and a small domain-tuned model on the same tool environment; measure task success, latency, token/tool cost, recovery rate, and auditability.
  • Begin RL/environment work with binary outcome validation where possible; do not invest in process rubrics or complex curricula until ablation results demonstrate that terminal rewards are insufficient.
  • Separate the quoted sub-$500 training run from the full program budget: account for expert review, synthetic-data validation, environment maintenance, evaluator calibration, and ongoing regression testing.
  • Obtain and inspect the released GitHub/Hugging Face artifacts before adopting the approach, especially the split logic, judge implementation, failure analyses, and reproducibility details.

Source/Metadata

  • Title: Small Models, Big Results: Training a Finance Agent for Under $500 — Charles Dickens, Snorkel AI
  • Transcript words: 2353
  • Duration seconds: 1035
  • Timestamp note: No timestamps or chapters were present in the provided transcript.
Full transcript 2297 words · 10 min read
0:00

Everyone, thanks for joining. I'm Charles and I'm a research scientist at Snorkel AI.

0:12

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 are taken home. And the first is for enterprise AI workloads, reliability and specialization 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 this can result in smaller models that can achieve parity with Frontier models at just a fraction of the cost.

0:49

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 has founders from labs at University of Washington, Wisconsin, Stanford, and an internal team of really talented FTEs and researchers. And we're in a fortunate position to play, and by that I mean build and deploy data sets and environments for Frontier AI. And that's at the intersection of academia and industry research, but also grounded in enterprise deployments. And this is all to say that we have a team that's built to focus on building the best data possible to define and advance AI.

1:31

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. But I also want to acknowledge Frontier Lab data and environments as well as enterprise 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 get ready for that. And then co-authoring with academic or industry partners and leading independent research and publishing open artifacts.

2:20

So what I'm talking about today is a partnership with UC Berkeley Sky Computing Lab. And we built, as I said, a 4 billion parameter QLWEN model to outperform its 235 billion model variant on financial tasks. We saw the 4 billion parameter model, spoiler alert, achieve almost a 60% pass at run while the 235 billion model achieved 51%. So exciting results. And this is all in collaboration with, I've got to give credit to, Manan Rugta and Xu Jun Tan from the Sky Computing Lab, as well as Bavishia and Chris Glaze and myself from Snorkel. And you can find all the assets, the training scripts, synthetic data on our GitHub. So check those out.

3:11

And this is all open source and available to you. So I'll cover today what we see financial institutions need from AI. And this is from our enterprise deployments learnings, as well as the FinQA open source benchmark. And this is expert validated financial question answering data that we trained and evaluated our model on. And finally, the training process for the RLLM FinQA 4B model. So let's get started. This is 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.

3:55

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 and long workflows without compounding errors? And can we reliably audit the agent? That's important in financial and legal domains, for example. Which brings us to the question, how can we evaluate and improve agents to make them reliable in these real world environments? So the reflex may be to scale. We've all seen scaling law results.

4:34

But today I'm going to argue that specialized workflows don't actually need generalists. We don't need polymaths. You wouldn't call Terence Tao for a tax audit if you're lucky enough to have them in your contacts. 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 10K reports. These are annual reports required by the SEC for all public companies.

5:10

And they're used by analysts for identifying risks and informing investment decisions. We pulled these from the EDGAR system and used the Qwen 32 billion model to produce tables, SQL tables, approximately 6,900 of those. And we used each table to generate a single question-answer pair. And this is produced along with the question taxonomy that was developed with financial experts that work with these documents. And these are used as context for the model to generate a question-and-answer pair along with metadata. That will see what that's used for later. And finally, the third step is verification. And this is a three-layer verification process.

5:59

The first is programmatic consistency checks. That's where we use the metadata, 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.

6:29

Realistic queries requiring planning, tool use, tool calling, and reasoning. And answers are single, verifiable, final answers. And from this, we get from the 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 in any split. And on this data, we identified, even with Frontier models, reoccurring discipline gaps and failure modes. And the first is schema hallucination. So a model will actually assume that tables exist, column names exist, and this can be an artifact of pre-training data, something that it's seen in its past.

7:19

The next is context flooding, so actually flooding its own context with poorly planned queries. For example, just calling select star, and this could overwhelm its context limits if it's successful. And finally, poor recovery from errors. So Qwen 235 would actually repeat the same failed strategy 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 work that I'm calling out that was presented at the CAIS conference a few weeks ago. So now I'll get into actually training the RLLM FinQA 4 billion model.

8:05

For this we used the RLLM framework, and this was developed by our Sky Computing Lab collaborators. And if you haven't used this yet, this is a really user-friendly tool, and a few core features I want to call out is it really works with any agent framework, requires near-zero code changes just using a decorator pattern. CLI first workflow and battle-tested results. So we've seen RLLM actually improve not just on this finance case study, but also in math reasoning, for example. Multiple RL algorithms are built in. GRPO, reinforce RL, OO, for example. And you can customize those and then supports multiple training backends. All right. Now for our training environment.

9:10

This is the training environment we use for our model. The agent runs in a ReAct loop and has access to tools to interact with the tables we generated. The environment includes the roughly 7,000 tables we created. And finally, reward is binary correctness determined by a language model as judge, in this case, GPT-4 nano using reference-based evaluation. Training details are listed here. This is what would be interesting to folks. We have the Qwen 4 billion model as our base model. GRPO and binary reward for optimization. And the RLLM framework, we ran roughly 1,000 concurrent environments to generate trajectories.

9:50

And this all was a cost under $500 to get the results that we saw. Broken down between compute, roughly $420 and $40 for a judge, the judge API. And this was on eight H100s. The first result is the central question. Can a 4 billion model, armed with the specialized tools and training, actually compete with its larger variant? And the answer is yes. So what we saw was the base model's accuracy more than doubled. And it outperforms its larger variant, the 235 billion parameter model. And this is despite being a fraction of the size. And we evaluate all models shown here on the expert curated, held out, 290 samples. And this is the first one that we saw in the world.

10:47

So a natural concern is whether this actually transfers to harder problems. So this is just single question-answer pairs on a single table. And to investigate this, we looked at our FinQA reasoning data. So this is a development on the FinQA data I presented earlier. And the difference here is that now we're having dependencies on multiple tables, 2 to 5 tables, and requires sequential decision-making and planning. And we evaluated on this data set. You can see the breakdown 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.

11:31

And no explicit training on multi-table examples was needed to see lift in this multi-table variant of the data set. And we'll investigate why with ablation studies. But the next concern we had was whether this result would generalize to more general use cases. So for this, we used the BFCL benchmark. And this measures general tool calling capability. And overall accuracy was actually slightly improved. And then we had also minor gains on multi-turn and memory. 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 mixture.

12:24

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

So the next natural question is whether more informative reward signals, for example, rewarding intermediate steps, table access, query completeness, things like that, could actually accelerate learning. So this is different from curriculum, for example.

13:17

And the most sophisticated variant we came up with was a rubric. And this uses fine-grained scoring with multiple weighted components. And this actually came up with experts. And despite this investment in reward engineering, we actually, again, saw simpler was better. A single binary reward signal was what got us the most lift on this data. Which led us to a blueprint that we've been developing for enterprise agents. And generally, I'd say this study showed us that small models can successfully be trained with RL when you have quality data to represent the target outcomes and tasks. And this can result in better deployment economics for specialized tasks and domains.

14:07

And we've seen this and repeated this result in other areas, including healthcare, law, and insurance, which I pointed to earlier. So check that out. And our point of view as far as building axes for evaluating agents is this. Environment complexity is one of the most important axes. How complex, how realistic, and dynamic are the environments the agents operating in? And the next is autonomy horizon. Are agents being tested and evaluated at the lengths, the horizon lengths, and the way people actually want to use agents? Are they making safe and good decisions by themselves? And can they actually improve their judgment as a co-pilot over time?

14:59

And finally, output complexity. We want to capture the wide range of outputs in our day-to-day work. And I would say that this is currently underexplored. New benchmarks are coming up in this direction, but still I see a big primary focus on text artifacts. And creating more rigorous evaluations in these settings is a big opportunity. And progress is being made here. So on that note, 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. We've had a lot of success. Agent, last exam, judgment bench, others are coming out.

15:52

And this is really accelerating our ability to measure the frontier and shape the frontier. So to apply, check out our website. You'll go through a submission, selection review process, develop, and then finally publication, launch, and promotion. And I also want to call out that we're hiring in professional research, you name it, engineers. And check that out. You can check out our website. And finally, thank you so much for attending. You can use this QR code to see the blog as well as pointers to all the artifacts that released on GitHub and HuggingFace. Thank you all. And finally, thank you so much for attending.

16:47

You can use this QR code to see the blog as well as pointers to all the artifacts that released on GitHub, HuggingFace. Yeah. Thank you all. Thank you. Thank you.

Reading tools

Type to find a passage

Appearance
Ask this transcript

Add a note