yash thapliyal
Research Note

Does RL Teach Ministral 3B to Call Tools Better Than Fine-Tuning?

A 2025 paper found that reinforcement learning beats fine-tuning at teaching small models to use tools. I built a full post-training pipeline to test that on Mistral's smallest model.

Yash Thapliyal · December 2026 · 11 min read
tl;dr
  • No: fine-tuning raised Ministral 3 3B's API-Bank tool-call accuracy from 62.0% to 72.4%, while GRPO lowered it to 58.3%.
  • In 78% of GRPO's practice groups, all eight attempts at a prompt scored the same, which gives GRPO no gradient to learn from.
  • Practicing only on prompts the model sometimes solved let GRPO match fine-tuning on BFCL (79.0% vs 78.9%), but not on API-Bank.
  • Biggest caveat: my GRPO recipe was light (small adapters, one pass). Qwen2.5-3B, which the paper used, also favored fine-tuning under it.

A recent paper, ToolRL (Qian et al., 2025), found that reinforcement learning teaches small models to call tools better than fine-tuning on the right answers does. That is a useful claim if it holds: reinforcement learning needs only a way to score answers, not a set of perfect ones. I wanted to know whether it holds for Mistral's smallest open model, Ministral 3 3B. To find out, I built the whole post-training pipeline: data conversion, a tested reward, fine-tuning and reinforcement learning on rented A100 GPUs, and evaluation on two public benchmarks. Then I trained the model both ways, three times each, and read the training logs to see why the results came out the way they did.

The setup: one task, two ways to train, two benchmarks

The task is single-turn tool calling. The model gets a user request and a list of tools, each described by a JSON schema, and must either call the right tool with the right arguments or answer in plain text when no tool fits. I trained Ministral 3 3B Instruct two ways on the same 3,276 examples, ToolRL's training mix drawn from three public tool-calling datasets (ToolACE, xLAM and Hammer):

The reward, ported from ToolRL, adds a format score (1 if the output is a well-formed tool call, else 0) to a correctness score from −3 to 3 for the right tool names, argument names and values, so it runs from −3 to 4. Both methods train small adapter weights on top of the frozen model (LoRA): SFT for two passes over the data, GRPO for one. A third variant runs GRPO starting from the SFT model.

I measure on two benchmarks. BFCL, the Berkeley Function Calling Leaderboard (version 4), has 3,641 single-turn items, including ones where the right move is to call nothing. API-Bank has 597 items from realistic dialogues and is the closest like-for-like comparison with the paper, which used the same items and scoring.

What I built, and the problems it had to solve
  • A reward you can't easily game. The paper calls for optimally pairing each predicted call with a reference call, but its released code pairs them greedily, which can miss credit. I implemented the optimal pairing, normalized argument values so “5” equals 5, and tested the reward against a dozen ways to game it, such as calling every tool, repeating the right call or padding the arguments. Every one scores below the right answer.
  • Clean data. 308 of ToolRL's training records have reference arguments corrupted upstream, so I excluded them. I also checked that no test item appears in the training data: 0 of 3,641 BFCL items and 0 of 597 API-Bank items match.
  • An evaluation that fails loudly. BFCL scores a crashed generation as an answer, and that answer passes the items where the model should call nothing. My runner counts these crashes and fails the run instead of reporting inflated scores.
  • Gaps in the libraries. TRL's GRPO trainer could not give each prompt its own tool list, so I extended it. For SFT then GRPO, I merged both adapters into one and tested that it reproduces the trained model's outputs to within 1e-5; without that check, this method would have been evaluated with its SFT half missing.
  • A budget-guarded cloud runner. Resumable training, automatic evaluation and upload, and a hard spending cap. It ran 13 training runs, including 172,704 GRPO answers sampled and scored, in about 25 hours on one A100 for $42.63.

Fine-tuning beat plain GRPO on both benchmarks

SFT raised API-Bank accuracy from 62.0% to 72.4% and BFCL from 76.2% to 78.9%, averaged over three training runs that landed within 1.2 points of each other on API-Bank. Plain GRPO, trained from the untrained model on all prompts, ended at 58.3% on API-Bank, below where it started, and 76.5% on BFCL, about where it started. Running GRPO after SFT did not add to SFT: 70.9% on API-Bank and 79.2% on BFCL.

Fine-tuning gave the largest and steadiest gain
Accuracy (%). Each dot is one training run and the tick marks the mean; the untrained model and plain GRPO have one run each.
source: results/summary/table.json

GRPO did improve on data like its training set: exact match (right tool and every argument) on held-out examples from the same mix rose from 66.9% to 76.6% (SFT reached 81.2%). That gain did not carry over to the two benchmarks. Strict scoring is not the reason: when API-Bank counts values like “37” and 37 as equal, SFT still leads 73.3% to 64.7%, and plain GRPO stays below the untrained model's 68.2%.

Part of the API-Bank drop shows in the outputs: GRPO learned to decline. Here is one item, with a single Geocoding tool available, where the expected first step is to look up London:

userFind nearby restaurants within 1km of London.
after SFTGeocoding {"address": "London"}
after GRPOI'm sorry, but I currently don't have the tools to directly find nearby restaurants within 1km of London. However, you can use maps or search engines to get this information easily.

In the first training run of each method, GRPO made no call at all on 26 of the 597 API-Bank items, against 10 for the untrained model and 18 for SFT. The reward gives full marks for any plain-text answer when no call is expected, which is true of 12.4% of training prompts, and that may push the model toward declining. Declining is only part of the drop, though: GRPO lost 43 items the untrained model got right and won 21 it got wrong.

Most of GRPO's practice groups taught it nothing

To see why GRPO fell behind, look at one training prompt. It gives the model eight tools and asks: “Sort the numbers [3.2, 1.5, 2.7] in descending order.” The right answer is one call, sort_numbers with those numbers and descending set to true. Before any training, I sampled eight answers from Ministral with its normal randomness (temperature 1), so they could differ. All eight made exactly that call, and all eight got the top reward, 4.0. Every answer equals the group's average, so every push is zero: the prompt costs eight generations and produces no gradient. A prompt the model is unsure about works differently. Asked for a bacterial count after 35 minutes of growth, it made the right call in 4 of 8 tries; the wrong answers earned different amounts of partial credit, so the rewards spread out, and GRPO can push toward the four right ones.

Eight identical scores teach GRPO nothing; a mix of right and wrong does
Eight samples from the untrained model for two real training prompts. A filled tile is an answer that exactly matched the reference call.
“Sort the numbers [3.2, 1.5, 2.7] in descending order.”
sort_numbers(numbers=[3.2, 1.5, 2.7], descending=true)
✓✓✓✓✓✓✓✓
8 of 8 right, all reward 4.0 · spread 0 → no gradient
“What is the final bacterial count after 35 minutes if the initial population was 1800 and the growth rate was 0.035 per minute?”
bacterial_growth(initial_population=1800, growth_rate=0.035, time=35)
✓✓✓✓✗✗✗✗
4 of 8 right · spread 2.27 → learns from these
source: results/prompt_scores_base/pass_rates.jsonl (prompts rlla-2251, rlla-1426)

I picked the sorting prompt because it is short, but it is not rare. Before training, Ministral answered 1,038 of the 3,276 training prompts right on all eight tries and 760 on none. Only 1,478, or 45%, gave it a mix. A prompt it always gets wrong can still give a little signal, because the reward gives partial credit for the right tool or arguments; counting identical rewards rather than identical right-or-wrong outcomes, 1,256 prompts (38%) gave no signal at all.

Before training, fewer than half the prompts gave the model a mix of right and wrong
Number of training prompts by how many of eight samples from the untrained model were exactly right (3,276 prompts).
source: results/prompt_scores_base/summary.json

Training made it worse, because a model that improves also becomes more consistent. TRL, the Hugging Face training library I used, logs the share of groups in each step whose eight rewards were identical; I call those groups silent. For plain GRPO it averaged 78% over the run. It was already 59% in the first tenth of training, up from 38% before training, and reached 84% in the last tenth, while the model's average per-token entropy, a measure of how varied its answers are, fell from 0.20 to 0.07. In 325 of its 819 steps not a single group had any spread, so those steps produced no gradient at all. Starting GRPO from the SFT model was worse, at 86%, likely because SFT had already made the model consistent.

Most groups gave no learning signal, and the share grew as training went on
Share of eight-answer groups whose rewards were all identical, averaged over each tenth of training. Bands span three training runs. Pulled from the Weights & Biases (W&B) training logs.
source: results/summary/wandb_curves.json, from the W&B report

That diagnosis changed what I spent the rest of the budget on. Two more runs of each method in the same setup would have cost about $21.80, just to measure a mostly stalled setup more precisely. A test of a fix for the training signal was estimated at about $5.90, so I ran that first. The fix is to practice only where the model is unsure. Before training, I scored every prompt with eight samples from the untrained model, which took 9 minutes and $0.22 of GPU time, and kept the 1,478 prompts it got right between one and seven times out of eight. GRPO on those started with 36% of groups silent in the first tenth instead of 59%, and its training took less than half as long (369 steps instead of 819).

It worked on one benchmark. Filtered GRPO matched SFT on BFCL, 79.0% against 78.9% over three runs each, and beat plain GRPO on API-Bank, 63.2% against 58.3%. It still finished 9.2 points below SFT on API-Bank, and about half of that gap is formatting: when values like “37” and 37 count as equal, it shrinks to 5.0 points. The silent share also climbed back above 70% by 40% of the way through training: once the model learned the kept prompts, they stopped teaching it too. Keeping the signal for a whole run would need fresh prompts picked during training, which TRL 1.18 does not do. The silent-group share is measured directly; how much of the gap to SFT it explains is my interpretation.

Qwen2.5-3B, a model the paper used, ranks the methods the same way here

The obvious objection is that this could be a Ministral quirk. To test that, I ran the identical pipeline, with the same data, reward, settings and evaluations, on Qwen2.5-3B-Instruct, which the paper reports. On API-Bank, Qwen gave the same order as Ministral: SFT 68.3%, untrained 61.5%, GRPO 53.4%. The paper reports the opposite for the same model: GRPO 67.0% and SFT 50.9%.

Same model, opposite ordering from the paper
API-Bank accuracy (%) for Qwen2.5-3B-Instruct. This pipeline: one training run per method. Paper: ToolRL Table 2, whose SFT row trains on the full 4,000-example set my 3,276 training examples were filtered from.
source: results/summary/table.json, results/reference/toolrl_published.json

So the difference most likely lies in the setup rather than in Ministral, though each Qwen method is a single run. Three differences stand out, and I have not tested which one matters:

Each Qwen method is one training run, but the API-Bank gap between SFT and GRPO is 14.9 points (95% interval 11.4 to 18.4, from resampling the test items), larger than the 6-point spread I saw between training runs of the same method. Filtering helped Qwen as it helped Ministral: 64.7% on API-Bank, 11.2 points above plain GRPO.

Other findings

Details for each are in the report and analysis in the repo.

What this does not show

What to take from this

If you want a small model to call tools and you have reference answers, start with fine-tuning: it was the strongest and steadiest method for Ministral, and the best on API-Bank for Qwen too. Before spending compute on GRPO, sample a few answers per training prompt from your starting model and drop the prompts it always gets right or always gets wrong. Here that took 9 minutes, cut training time by more than half, and brought GRPO level with fine-tuning on BFCL. Then watch the share of groups with identical rewards while training runs: when most groups go silent, most of each step's compute produces no gradient. The next step for this project is a version that keeps the signal alive for the whole run, by picking fresh, uncertain prompts as training goes.

Code on GitHub → Adapters on Hugging Face → Training curves on W&B → ToolRL paper → ← all writing