Introduction
Large Language Models (LLMs) increasingly rely on external tools—such as calculators, search engines, or specialized APIs—to augment their reasoning capabilities. However, standard approaches to tool selection typically employ greedy decoding, where the model selects the single most probable tool token at each step. This method is inherently brittle; if the model's top prediction is incorrect, even if the correct tool is highly probable, the entire reasoning chain often fails.
To address this, we present TECTON (Tool selECTion via meta-reasONing), a framework that leverages the general reasoning strengths of LLMs to evaluate and select from a pool of candidate tools, moving beyond the limitations of greedy selection.
The TECTON Framework
TECTON operates in two distinct phases: a specialized reasoning phase followed by a generalist meta-reasoning phase.
1. Reasoning Phase
In this initial stage, the model uses a fine-tuned language modeling head to suggest potential tools. Instead of selecting only the top result, TECTON employs top-$k$ decoding to generate a set of candidate tools. This approach is motivated by the observation that the correct tool is frequently present within the top five most likely tokens, even when it is not the absolute most probable.
2. Meta-Reasoning Phase
The system then reverts to the "frozen" base LLM (e.g., Llama 3 8B Instruct) to evaluate these candidates. Two primary strategies are explored:
- TECTON-SCORE: The model evaluates candidates as a multiple-choice task. To mitigate inherent selection bias (e.g., a preference for option 'A'), a Bias Calibration technique is used, which involves shuffling options and averaging the model's scores.
- TECTON-GENERATE: The candidates are presented as "hints" within the prompt. The model then generates a final answer, guided by these hints and supported by Dynamic Exemplar Retrieval, which provides few-shot examples relevant to the specific candidate tools.
Experimental Evaluation
The framework was evaluated on several mathematical reasoning benchmarks, specifically modified ("XL" versions) to include larger numbers that necessitate tool use over internal arithmetic.
- In-Distribution: GSM8K-XL and FuncQA (one-hop and multi-hop).
- Out-of-Distribution (OOD): ASDiv-XL, MAWPS-XL, and SVAMP-XL.
Results
TECTON demonstrates significant performance improvements over existing baselines, including ToolkenGPT and TRICE.
As shown in the results table, TECTON-GENERATE is particularly effective for complex tasks. On the multi-hop FuncQA-MH dataset, it achieved 20.6% accuracy, more than doubling the performance of ToolkenGPT (10.3%). Furthermore, TECTON showed robust generalization to OOD datasets, maintaining an average lead of 8.5 percentage points over ToolkenGPT.
Discussion and Conclusion
The success of TECTON highlights the value of separating tool "brainstorming" from tool "judgment." By using a specialized head for generation and a general-purpose model for meta-reasoning, TECTON effectively utilizes the broad cognitive abilities of the base LLM that are often suppressed during narrow tool-use fine-tuning.
While currently focused on mathematical reasoning, the meta-reasoning approach holds promise for broader applications, such as knowledge-intensive QA or multi-modal task execution, where selecting the optimal tool from a diverse set of options is critical. Future research will explore the scalability of this framework to more open-ended and complex tool-use environments.
Summary updated