---
title: "Discussion on \"I tested whether a 4B model could replace a 12B one in a tool-using agent. My first test was wrong.\" | Hashnode"
description: "Discussion on \"I tested whether a 4B model could replace a 12B one in a tool-using agent. My first test was wrong.\". Two pre-registered runs on local models, a reader's correction between them, and the one place the small model still breaks."
url: "https://hashnode.com/posts/i-tested-whether-a-4b-model-could-replace-a-12b-one-in-a-tool-using-agent-my-first-test-was-wrong/6af9480bee59aaedae4230a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I tested whether a 4B model could replace a 12B one in a tool-using agent. My first test was wrong.](https://realornoise.hashnode.dev/i-tested-whether-a-4b-model-could-replace-a-12b-one-in-a-tool-using-agent-my-first-test-was-wrong?utm_source=hashnode&utm_medium=feed)

Two pre-registered runs on local models, a reader's correction between them, and the one place the small model still breaks.

Nov 15 · 4 min read · realornoise.hashnode.dev  
Read the article

-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#testing](https://hashnode.com/tag/testing)
-   [#llm](https://hashnode.com/tag/llm)
-   [#ollama](https://hashnode.com/tag/ollama)
-   [#opensource](https://hashnode.com/tag/opensource)

## Written by

[Ajay Surya Senthilrajan](https://hashnode.com/@ajaysurya)

@ajaysurya · Bengaluru, India

  
[View profile](https://hashnode.com/@ajaysurya)

Did your AI agent get worse, or did the eval just get unlucky? I write about telling the two apart.

I build ARCI, an open-source tool that tests AI agents for regressions in CI. One person, working with AI coding agents. I write about evals, noise, and the predictions I got wrong.

## Responses 4

Markdown supported · ⌘↵ to post

[Halfcycle](https://hashnode.com/@halfcycle)

[Nov 15](https://hashnode.com/posts/i-tested-whether-a-4b-model-could-replace-a-12b-one-in-a-tool-using-agent-my-first-test-was-wrong/6af9480bee59aaedae4230a7/comment/6afa148246f49b5a6ac3f4ac)

Writing the prediction and the verdict rule down before each run is the part most model comparisons skip, and it is why the reader's correction was cheap to act on. The 0 of 26 with two faults in one trial is the most useful number here: single-fault tests flatter the small model.

One idea for a third run: put the next step in the error text itself ("unknown SKU; this looks like an order id, look the order up first"). If the 4B closes most of the gap with a better error message, that is a tool-design fix rather than a model fix, and it is much cheaper. Did you try varying the error wording?

[Ajay Surya Senthilrajan](https://hashnode.com/@ajaysurya)

[6d ago](https://hashnode.com/posts/i-tested-whether-a-4b-model-could-replace-a-12b-one-in-a-tool-using-agent-my-first-test-was-wrong/6af9480bee59aaedae4230a7/comment/6afa148246f49b5a6ac3f4ac#reply-6afeaf4f54118fd541b10a9b)

Thank you. I had not varied it when you asked. Run 2 used one wording for that error: the tool's own text, "unknown SKU", passed back to the model as "Error: unknown SKU". It does not say what to do next.

Even so, with only that bare text the 4B usually went straight to the lookup: it made the wrong first call in 108 trials, and in 106 of them its next call was the order lookup. Most of the failures were one step on, at the empty lookup. That reaches the model as a successful call whose whole result is the text null, with no explanation and no next step. Of the 4B's 52 failures, 34 were under that fault, and in 32 of those it got the empty result and never read the order again. I chose these cuts after seeing the data.

So I ran your idea at that point. Same 4B model in both arms, on the 8 stock note tasks under the empty result. One arm gets null, as before. The other gets "lookup\_order returned an empty result. Call lookup\_order again with the same order\_id." The rule and the message were registered before the first trial.

Both arms already had "Retry an empty lookup once." in the system prompt. A small smoke run came before the registration; its trials are not counted.

Result: 15 of 16 passed with the message, 2 of 16 without. The test stopped at round 2. Its verdict was BLOCK, and in this run BLOCK favours the message: I put the message arm in the baseline seat on purpose, because the test has no verdict for "better". Under the test's stated assumptions this supports an advantage of more than 10 points on these 8 tasks. It is a threshold decision, not a measured gain, and it says nothing about the full suite.

What it does not show: whether naming the next step is what helped, since I tested one wording against null and no control message. It says nothing about the 12B model. The 8 tasks were chosen from run 2's failures, and the run stopped early, so 15 and 2 are counts, not rates.

Run 3, with its pre-registration and raw records: docs/results/order-desk-study.md

[Halfcycle](https://hashnode.com/@halfcycle)

[5d ago](https://hashnode.com/posts/i-tested-whether-a-4b-model-could-replace-a-12b-one-in-a-tool-using-agent-my-first-test-was-wrong/6af9480bee59aaedae4230a7/comment/6afa148246f49b5a6ac3f4ac#reply-6aff2200d4293966e07b82c7)

Thanks for running it, and for registering it first. The bigger finding for me is the null: a call that reports success with an empty result was the real trap, because nothing told the model anything was wrong. The control you name is the one I'd want next: a message that says the result is empty without naming the next step. That separates "it noticed" from "it was told what to do".

[Ajay Surya Senthilrajan](https://hashnode.com/@ajaysurya)

[3d ago](https://hashnode.com/posts/i-tested-whether-a-4b-model-could-replace-a-12b-one-in-a-tool-using-agent-my-first-test-was-wrong/6af9480bee59aaedae4230a7/comment/6afa148246f49b5a6ac3f4ac#reply-6b027d0445ba1a860f418609)

Sorry I missed your reply. I tested that control for another reader. The neutral message said, "lookup\_order returned an empty result. This lookup\_order result is for the supplied order\_id." It names the tool and input without prescribing a next step. The shared prompt still said, "Retry an empty lookup once."

In Run 4, 30/32 trials passed with the explicit retry instruction versus 14/32 with the neutral message (BLOCK, round 4). After an empty result, another lookup followed in 31/31 explicit trials and 14/31 neutral trials. I measured actions and final order states. Neither reveals whether the model noticed. A later call could already have been queued. I didn’t compare the neutral message directly with a bare empty result.

In Run 5, both messages prescribed a retry. "Repeat that call with the same input" passed 92/104 versus 86/104 for the named retry (PASS, round 13). That supports a generic shortfall smaller than ten percentage points, a tie or a lead. I didn’t test whether generic was better.

I used one 4B model, one prompt and eight versions of one stock-note task. Sixteen smoke trials preceded run 4’s registration.
