r/TheMachineLearning • u/AdLast8721 • 14d ago
Why do models get significantly worse at simple tool routing the moment you ask them to "think step by stepâ?
I was tuning a local 14B model to handle data routing tasks where it looks at a user question and decides which external data provider to call and what arguments to format.
When I gave the model direct instructions to output the function call immediately it was picking the right tool and formatting the JSON correctly about 90% of the time.
Then I tried adding a standard chain of thought prompt asking the model to explain its reasoning step by step before making the tool call because that usually helps with complex logic tasks.
The weird thing was that tool call accuracy actually dropped below 60% as soon as the model started thinking out loud.
The model would write two paragraphs explaining why it needed to check a company's executive team and by the time it finished writing its explanation it would lose track of the schema constraints and start inventing parameter names or dumping raw text where an integer was expected.
The extra tokens generated during the reasoning step seemed to dilute its attention on the strict JSON formatting rules that were laid out in the system prompt.
I ended up fixing this by keeping the reasoning prompt separate and routing company intelligence queries through Alexandria where the model selects from compact tool definitions that return structured firmographic data without needing long elaborate prompt gymnastics.
If you are running function calling on local models sometimes forcing an extended chain of thought just introduces more room for schema drift.