Brief Is Better: Non-Monotonic Chain-of-Thought Budget Effects in Function-Calling Language Agents
Organizations: IIIS, Tsinghua University
Abstract
How much should a language agent think before taking action? Chain-of-thought (CoT) reasoning is widely assumed to improve agent performance, but the relationship between reasoning length and accuracy in structured tool-use settings remains poorly understood. We present a systematic study of CoT budget effects on function-calling agents, sweeping six token budgets (0--512) across 200 tasks from the Berkeley Function Calling Leaderboard v3 Multiple benchmark. Our central finding is a striking non-monotonic pattern on Qwen2.5-1.5B-Instruct: brief reasoning (32 tokens) dramatically improves accuracy by 45% relative over direct answers, from 44.0% to 64.0%, while extended reasoning (256 tokens) degrades performance well below the no-CoT baseline, to 25.0% (McNemar p < 0.001). A three-way error decomposition reveals the mechanism. At d = 0, 30.5% of tasks fail because the model selects the wrong function from the candidate set; brief CoT reduces this to 1.5%, effectively acting as a function-routing step, while long CoT reverses the gain, yielding 28.0% wrong selections and 18.0% hallucinated functions at d = 256. Oracle analysis shows that 88.6% of solvable tasks require at most 32 reasoning tokens, with an average of 27.6 tokens, and a finer-grained sweep indicates that the true optimum lies at 8--16 tokens. Motivated by this routing effect, we propose Function-Routing CoT (FR-CoT), a structured brief-CoT method that templates the reasoning phase as "Function: [name] / Key args: [...]," forcing commitment to a valid function name at the start of reasoning. FR-CoT achieves accuracy statistically equivalent to free-form d = 32 CoT while reducing function hallucination to 0.0%, providing a structural reliability guarantee without budget tuning.
Figures & tables
| Budget | Accuracy | 95% CI | vs. | vs. | Validity fail. | Content err. |
|---|---|---|---|---|---|---|
| 44.0% | [37.0, 51.0] | — | pp | 6.0% | 50.0% | |
| 64.0% | [57.5, 70.5] | pp | — | 2.5% | 33.5% | |
| 58.0% | [51.0, 65.0] | pp | pp | 0.5% | 41.5% | |
| 51.5% | [44.5, 58.5] | pp | pp | 9.0% | 39.5% | |
| 25.0% | [19.0, 31.0] | pp | pp | 19.5% | 55.5% | |
| 22.5% | [17.0, 28.5] | pp | pp | 21.5% | 56.0% |
| Tasks | % | Cumulative % | |
|---|---|---|---|
| 0 (no CoT) | 88 | 52.7% | 52.7% |
| 32 tokens | 60 | 35.9% | 88.6% |
| 64 tokens | 10 | 6.0% | 94.6% |
| 128 tokens | 6 | 3.6% | 98.2% |
| 256 tokens | 1 | 0.6% | 98.8% |
| 512 tokens | 2 | 1.2% | 100.0% |
| Strategy | Accuracy | Gap to oracle | Tokens/task | FLOPs ratio |
|---|---|---|---|---|
| No CoT ( ) | 44.0% | pp | 0 | 1.0 |
| Fixed | 64.0% | pp | 32 | 1.1 |
| Fixed | 58.0% | pp | 64 | 1.2 |
| Fixed | 25.0% | pp | 256 | 2.0 |
| Fixed | 22.5% | pp | 512 | 3.0 |
| Oracle 2-budget | 76.0% | pp |
| Budget | Correct | Halluc. fn | Wrong valid fn | Wrong args | No JSON |
|---|---|---|---|---|---|
| 44.0% | 3.0% | 30.5% | 19.5% | 3.0% | |
| 64.0% | 2.5% | 1.5% | 32.0% | 0.0% | |
| 58.0% | 0.5% | 3.0% | 38.5% | 0.0% | |
| 51.5% | 8.5% | 10.5% | 29.0% | 0.5% | |
| 25.0% | 18.0% | 28.0% | 27.5% | 1.5% | |
| 22.5% | 20.0% | 32.5% | 23.5% | 1.5% |
| Method | Budget | 1.5B Acc. | 7B Acc. | Routing valid% | Halluc.% |
|---|---|---|---|---|---|
| Free-form (no CoT) | 0 | 44.0% | 40.5% | — | 3.0% |
| Free-form | 16 | 71.5% | 84.5% | — | 1% |
| Free-form (default) | 32 | 64.0% | 82.5% | — | 2.5% |
| FR-CoT | 30 | 64.0% | 83.0% | 99.5%/98.5% | 0.0% |
| Method | Budget | 1.5B Acc. | 7B Acc. | Wrong valid |
|---|---|---|---|---|
| Free-form | 44.0% | 40.5% | 30.5%/16.0% | |
| Free-form | 64.0% | 82.5% | 1.5%/ 1% | |
| Free-form | 25.0% | 18.0% | 28.0%/ 26% | |
| Constrained | 47.5% [40.5,55.0] | 58.5% [51.5,65.5] | 24.5%/9.5% | |
| Constrained | 62.5% [55.5,69.0] | 63.5% [57.0,70.0] | 1.5%/0.0% | |
| Constrained | 58.0% [51.0,65.0] | 33.5% [27.0,40.0] | 0.0%/0.0% |
| Phase 1: 32-token reasoning | Phase 2: forced fn | Phase 2: arg. output |
|---|---|---|
| ...capital of Brazil... {"function_name": "country | country_info .capital | Human: Given the following context... (hallucinated) |
| ...triangle side lengths... {"function_name": "triangle | triangle_prop erties.get | ‘‘‘\nTo complete the function... (malformed) |
| ...capacitance formula... {"function_name": "cap | capacitance_ calculator.calc | Human: Given the following... (hallucinated) |
| Budget | 1.5B Acc. | 1.5B Halluc. | 7B Acc. | 7B Halluc. |
|---|---|---|---|---|
| 44.0% | 3.0% | 40.5% | 1% | |
| 64.0% | 2.5% | 82.5% | 1% | |
| 58.0% | 0.5% | 78.5% | 1% | |
| 51.5% | 8.5% | 36.0% | — † | |
| 25.0% | 18.0% | 18.0% | — † | |
| 22.5% | 20.0% | 14.0% | — † |
| Budget | Phi-3-mini Acc. | Halluc. | EOS rate | Mean tokens |
|---|---|---|---|---|
| 29.5% | 1% | — | — | |
| 86.0% | 0.0% | 0.0% | 32.0 | |
| 83.5% | 1% | 0.5% | 64.0 | |
| 74.5% | — † | 24.0% | 123.8 | |
| 66.5% | — † | 68.0% | 184.3 | |
| 57.5% | — † | 68.5% | 285.8 |
| Qwen2.5-1.5B | Qwen2.5-7B | ||||
|---|---|---|---|---|---|
| Budget | EOS rate | Mean tokens | EOS rate | Mean tokens | |
| 0.0% | 32.0/32 | 0.0% | 32.0/32 | ||
| 0.0% | 64.0/64 | 0.0% | 64.0/64 | ||
| 0.0% | 128.0/128 | 0.0% | 128.0/128 | ||
| 0.0% | 256.0/256 | 0.0% | 256.0/256 | ||
| 0.0% | 512.0/512 | 0.0% | 512.0/512 | ||
| CoT-32 effect | Count | Mean | Std |
|---|---|---|---|
| Helps (wrong right) | 60 | 0.506 | 0.383 |
| No change | 120 | — | — |
| Hurts (right wrong) | 20 | 0.634 | 0.413 |
| Mann-Whitney (helps vs. hurts) | 0.092 (borderline) | ||
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Budget | Standard | Format-ctrl |
|---|---|---|
| 41.0% | 48.0% | |
| 63.0% | 75.0% | |
| 59.0% | 65.0% | |
| 44.0% | 46.0% | |
| 22.0% | 15.0% |
| Budget | Accuracy |
|---|---|
| 41.0% | |
| 68.0% | |
| 69.0% | |
| 61.0% | |
| 63.0% | |
| 60.0% |
Efficient Language Model Reasoning
Efficient language model reasoning studies how to improve problem-solving accuracy while reducing inference, memory, latency, and training costs.
See all 356 papers