Abstract
MultiTool-CoT is a novel framework that enables Large Language Models (LLMs) to orchestrate multiple external tools—such as calculators and domain-specific databases—within a single "Chain of Thought" reasoning process. By interleaving model generation with real-time tool execution, the system achieves state-of-the-art performance on complex chemistry reasoning tasks, significantly outperforming models that rely on internal knowledge alone.
Introduction
While Large Language Models (LLMs) like GPT-3 are remarkably good at following instructions and mimicking human-like reasoning, they suffer from two major "Achilles' heels": arithmetic accuracy and knowledge gaps. LLMs often fail at precise, multi-step calculations, and their internal knowledge is frozen at the time of training, leading to potential hallucinations in niche scientific domains.
Previous research attempted to mitigate these issues by providing access to a single tool. However, real-world reasoning, such as solving a chemistry word problem, typically requires a sequence of actions: identifying a reaction, looking up constants, and performing mathematics. MultiTool-CoT addresses this by allowing a model to use a diverse "toolbox" dynamically during the reasoning process.
The MultiTool-CoT Framework
The authors introduce MultiTool-CoT, an interactive framework based on few-shot prompting. The core mechanism involves an interactive loop between the LLM (specifically GPT-3 text-davinci-003) and external tools.
The process works as follows:
- Tool Triggers: The model is prompted with examples where reasoning steps include specific triggers formatted as
<<Tool Name >>. - Interactive Loop: When the LLM generates a trigger, the system pauses generation, extracts the tool name and input (e.g., a chemical formula), executes the tool, and appends the result back into the reasoning chain.
- Resumption: The model reads the output and continues reasoning until a final answer is reached.
For chemistry tasks, three tools were implemented: a Calculator (CAL) using Python's eval(), a Chemical Reaction Predictor (CRP) for balancing equations, and a Molar Mass List (MML) for chemical property lookups.
Experimental Setup
The framework was evaluated using the NumGLUE Task 2 dataset, which consists of chemistry problems requiring both domain knowledge and numerical reasoning. Evaluation was performed on 325 test questions using 20 training questions as few-shot examples.
Results and Analysis
The MultiTool-CoT framework demonstrated a significant performance leap over standard prompting techniques. As shown in the table below, accuracy improved from a mere 1.0% in the zero-shot setting to 85.85% with the full MultiTool-CoT approach.
Key Insights
- The Synergy Effect: The performance gain from using multiple tools is greater than the sum of its parts. While individual tools like MML or CAL improved accuracy to 69% and 62% respectively, their combined use reached 85%. This suggests that complex reasoning is a "weakest link" problem; failure in either factual lookup or calculation leads to an incorrect final answer.
- Prompting vs. Fine-tuning: Unlike methods requiring expensive fine-tuning, MultiTool-CoT works via few-shot prompting, making it highly extensible to new tools.
- Logic as the Bottleneck: Despite tool access, the model failed in some cases due to incorrect reasoning processes (39% of errors), indicating that logical structuring remains a primary challenge for LLMs even when execution is outsourced.
Conclusion
MultiTool-CoT effectively addresses the limitations of LLMs in specialized domains by providing external "crutches" for math and facts. While the current implementation faces constraints like context window limits and input sensitivity, it sets a new state-of-the-art on the NumGLUE benchmark and provides a blueprint for applying LLMs to other complex fields like medicine.
Summary updated