Zero Labs
Industry News / AI

How Small Can You Go? Testing DeepSeek-R1’s RL Technique on Tiny Financial Models

Source · Towards AI By Omspatel

From the publisher’s feed, collected in the ZeroLabs newsroom.

I trained 1.5B, 3B, and 7B models to answer questions about earnings reports using GRPO, the same reinforcement learning behind DeepSeek-R1. Here’s where it works and where it breaks.The Question Nobody AskedEvery paper about GRPO for financial reasoning uses 7B+ parameter models trained on A100 clusters. Fin-R1 used 7B. Fin-o1 used 8B and 14B. DianJin-R1 used 7B and 32B.But what if you don’t have a datacenter? What if you need to run this on a laptop? What if you’re deploying at the edge? How small can the model be and still benefit from GRPO?The SetupThe task: Answer numerical questions about S&P 500 earnings reports. Questions like: “What was the year-over-year change in revenue from 2018 to 2019?” The model reads a financial table, finds the right numbers, and computes the answer.The dataset: FinQA: 6,624 question answer pairs from real SEC filings. Every answer is a number that can be verified.The technique: GRPO (Group Relative Policy Optimization) with verifiable rewards. For each question, the model generates 4 answers. A Python function checks each one, right number = +1, wrong = 0. Answers above the group average get reinforced. This is exactly how DeepSeek trained R1.The models: Three scales of Qwen2.5-Instruct — 1.5B, 3B, and 7B parameters. Same pipeline, same data, same reward function. The only variable is model size.The hardware: Google Colab Pro with an A100 (80GB) for training, and my HP Omen laptop with an RTX 4060 (8GB) for development and the Streamlit demo.The PipelineEach model goes through the same two stages:Stage 1: SFT (Supervised Fine-Tuning): Show the model correct answers with chain-of-thought reasoning. Uses QLoRA to train only ~1% of parameters. This teaches the model to read tables and produce reasoning traces.Stage 2: GRPO (Reinforcement Learning): Sample 4 answers per question, reward the correct ones, suppress the wrong ones. The model discovers through trial-and-error which reasoning strategies lead to correct numbers.The reward function is 40 lines of Python:def reward_function(model_output, ground_truth): reward = 0.0 final = extract_final_answer(model_output) if check_answer(final, ground_truth): # ±1% tolerance reward += 1.0 if has_think_tags(model_output): # showed reasoning reward += 0.2 return rewardNo neural network. No human preferences. Just “did you get the right number?”The Results(I’ll update this table when 3B and 7B training completes.)What Happened at 1.5BGRPO failed. Not dramatically, it didn’t crash or diverge. It just didn’t help. The GRPO model (6.7%) was actually slightly worse than the SFT model (7.0%).Three things went wrong:1. Reward sparsity. With SFT accuracy at only 7%, the model almost never produced a correct answer during GRPO sampling. Mean reward was 0.06 meaning only 6% of generated completions were correct. With G=4 (4 completions per question), most groups had zero correct answers. Zero correct answers → zero gradient signal → no learning.2. No emergent reasoning. The model never learned to use tags. The think rate was 0%. The +0.2 reasoning bonus wasn't enough incentive when the base accuracy was so low. DeepSeek-R1's "aha moment", where the model spontaneously discovers that reasoning helps, never happened at 1.5B.3. The GRPO training curves were flat. The reward bounced noisily between 0.01 and 0.14 over 500 steps. No upward trend. The model was essentially guessing randomly throughout training.At 1.5B the model couldn’t get the tags which led to Reward sparsity and No emergent ReasoningExecution Accuracy % on 1.5BWhy This MattersThis is actually a useful finding. It tells us:There’s a minimum viable scale for GRPO. Below that scale, the model doesn’t have enough capacity to produce correct answers during RL sampling, so the reward signal is too sparse to learn from.SFT warmup isn’t sufficient if SFT accuracy is too low. DeepSeek called this the “cold start” problem. Their solution was training on a massive 671B model where even a weak start still produces some correct answers. At 1.5B, SFT produces so few correct answers that GRPO has nothing to build on.The aha moment requires a minimum capacity. Step-by-step reasoning is cognitively expensive for a model. A 1.5B model may not have enough parameters to simultaneously a.) read financial tables, b.) plan multi-step computations, and c.) format the answer correctly.What’s Next: 3B and 7BThe critical question is where the threshold is. I’m currently training 3B and 7B models with the same pipeline. The predictions:3B: If SFT accuracy reaches 15–20%, GRPO should have enough signal to work. At least 1 out of 4 sampled completions would be correct, giving the model something to learn from. Think tags might start appearing.7B: Should work. This is the scale Fin-R1 used. If it doesn’t work with my pipeline, something else is wrong.The most interesting result would be 3B showing a positive Δ — that would mean GRPO works at half the parameter count of existing published work.The Interactive DemoI built a Streamlit app where you can:Switch between all three model scales (1.5B / 3B / 7B)Switch between all three checkpoints (Zero-Shot / SFT / GRPO)Upload any financial PDF: it auto-detects the currency (supports 25+ currencies including USD, RM, EUR, INR, etc.)See the model’s reasoning when it produces tracesCompare results across scales in a side-by-side table and chartThe comparison table at the bottom directly answers the research question: look at the GRPO − SFT column. The scale where Δ turns positive is the minimum viable scale.The Bigger PictureGRPO is being applied everywhere right now — math, code, search, planning. But nobody’s asking the floor question: what’s the smallest model that benefits?For financial reasoning, the answer appears to be somewhere between 1.5B and 7B. The exact threshold matters for:On-device deployment — can a phone or laptop run a financial reasoning model?Cost optimization — a 3B model costs ~5x less per inference than a 7B modelEdge computing — financial terminals, trading floors, places where cloud latency mattersDeveloping markets — not everyone has A100sThe answer to “how small can you go?” isn’t just academic. It determines who gets access to this technology.Try It YourselfThe entire project is open source:GitHub: github.com/OmSPatel20/FinReasonTrain all three scales on Google Colab with a single command per scale:python src/run_scale.py 1.5Bpython src/run_scale.py 3Bpython src/run_scale.py 7BTotal training time: ~18 hours on a Colab Pro A100.Resources and ReferencesProject:GitHub: https://github.com/OmSPatel20/FinReasonDataset:FinQA Dataset: https://huggingface.co/datasets/wandb/finqa-data-processedFinQA Paper: https://arxiv.org/abs/2109.00122GRPO & DeepSeek:DeepSeek-R1 Paper: https://arxiv.org/abs/2501.12948DeepSeekMath (GRPO origin): https://arxiv.org/abs/2402.03300GRPO Deep Dive by Cameron Wolfe: https://cameronrwolfe.substack.com/p/grpoState of RL for LLM Reasoning by Sebastian Raschka: https://magazine.sebastianraschka.com/p/the-state-of-llm-reasoning-model-trainingCompeting Work:Fin-R1 (7B, GRPO for finance): https://arxiv.org/abs/2503.16252Fin-o1 (8B/14B, GRPO vs PPO vs DPO): https://arxiv.org/abs/2502.08127DianJin-R1 (dual reward GRPO): https://arxiv.org/abs/2504.15716Key Libraries:TRL (GRPO implementation): https://github.com/huggingface/trlPEFT (QLoRA): https://github.com/huggingface/peftQwen2.5 Models: https://huggingface.co/QwenFoundational Papers:QLoRA: https://arxiv.org/abs/2305.14314Chain-of-Thought Prompting: https://arxiv.org/abs/2201.11903TAT-QA Benchmark: https://arxiv.org/abs/2105.07624Om Sanjaykumar Patel, MS student in AI Systems at the University of Florida. This project was developed for EGN 6217 (Applied Deep Learning). I previously worked on SAR satellite imagery pipelines at ISRO and as a Financial Analyst at Aditya Birla Sun Life AMC.Tags: #MachineLearning #ReinforcementLearning #NLP #Finance #DeepSeek #GRPO #SmallLanguageModels #FinTech #ScalingLawsHow Small Can You Go? Testing DeepSeek-R1’s RL Technique on Tiny Financial Models was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.