The polite sentence that broke my model
A short account of teaching small language models to call external tools with GRPO and why enforcing the strictest output rule solved a fragile failure mode.

A short account of teaching small language models to call external tools with GRPO and why enforcing the strictest output rule solved a fragile failure mode.

Teaching models to call tools with a method called GRPO worked, but the simplest, strictest rule—require exact, schema-constrained output—produced the most reliable results.
This story describes a practical engineering failure and fix while training small language models to call external tools. The team used a procedure called GRPO to teach the models to produce tool calls. A seemingly harmless, polite sentence caused the model to emit output the downstream parser could not handle. The eventual fix was to enforce the strictest output rule and validate outputs against the expected schema.
Small models often mimic surface patterns in prompts and examples instead of reliably following implicit structural constraints. Two related failure modes appear across similar cases in the literature:
The team applied a strict rule: require the model to emit only the exact, schema-constrained output with no extra prose. That meant:
Enforcing this rule eliminated the failure mode caused by the polite sentence. The strict rule reduced flexibility in model behavior but increased reliability for tool invocation.
A real Weave project that regression-tests three OpenAI models against the exact reply format your app depends on. The post One Capital Letter Was Silently Breaking My AI Support Bot, and It Wasn't in the New Model appeared first on Towards Data Science .

Two models. Same prompt, same tool description, same request. One of them returned this: { "kind" : "entity" , "entityName" : "todo" , "definition" : { "fields" : { "title" : "text" } } } The other returned this: { "kind" : "entity" , "name" : "todo" , "fields" : { "title" : "text" } } The second one is wrong, and ou..

I fine-tuned Gemma-3–270M on 379 examples of one reasoning step. Continue reading on Medium »

I’m always polite to AI because, when the Terminators arrive, I want them to remember I said please and thank you. I’m joking—or at least I hope I am—but the line points toward something peculiar about working with artificial intelligence. I say please when I ask for something. I say thank you when I receive it, and I
Three words can make a chatbot drop a correct answer. The research explains why, and a two-minute test shows how exposed your own work is. Continue reading on Medium »

I ran my ten most-used Claude and ChatGPT prompts through GPT-6 Astra the week it launched. Nine broke on the first try. Here are the… Continue reading on Medium »
Loading more related stories...
Open the app view to save this story, compare related coverage, and continue from the same source.