Skip to content
AI Learning Ground Start learning

Research ·

Keyword Harnesses Fail Open: A Cheap Diagnostic Ladder for Tool-Use Claims in Small Language Models

A Hugging Face paper shows keyword-matching benchmarks can falsely credit small language models with tool use, and proposes a cheap CPU diagnostic ladder plus a targeted SFT repair that fixed a 1.1B model in about 3.3 GPU-hours.

Keyword Harnesses Fail Open: A Cheap Diagnostic Ladder for Tool-Use Claims in Small Language Models
Image: Hugging Face

Researchers document a false positive in tool-use evaluation using two Spanish security language models with a shared decoder, tokenizer, and special tokens. A 661.6M model and a 1,109M model scored nearly identically on lenient metrics (B4: 0.660 vs. 0.650), but verbatim-reproduction checks separated them completely: the 600M emitted valid tool calls with generalized arguments on 6/6 training examples, while the 1B did so on 0/6 across checkpoints.

A first-token probe showed the 1B's failure came from a missing prior: its probability of emitting the <|tool_call|> token was around 10^-4 to 10^-5, apparently erased by a web-heavy training phase. A targeted SFT recipe (diverse corpus, 5x higher learning rate, 2,202 steps, roughly 3.3 GPU-hours, using three orders of magnitude fewer tokens than the failed phase) repaired it. Valid emission rose from 0.100 to 0.959 on 269 corpus rows, and the repaired 1B beat the 600M on 238 unseen prompts (0.536 vs. 0.428, p=0.004). Embedding checks found 97.7% of the trigger token's tied bf16 embedding table bit-identical, so the repair lives in surrounding network weights. Both models still over-trigger, rarely abstaining on negative prompts (0.09 and 0.17 abstention rates).

For builders, the takeaway is that lenient keyword metrics can mask complete tool-use failure in small models. The diagnostic ladder runs in minutes on CPU and should gate tool-use claims, and a missing tool-call prior can be fixed cheaply with targeted SFT rather than full retraining. A commenter notes the same fragility in string-match scoring and asks how to distinguish quoting an instruction from following it.

Remaining caveats: suppression benefits of a diverse corpus stay a hypothesis due to seed sensitivity, and factorial analyses confirm all repair configurations install the format but not necessarily restraint.

References

Read the full story at Hugging Face ↗Like, save or discuss on Buzz

#research