OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoning

Pan Lu, Bowen Chen, Sheng Liu, Rahul Thapa, Joseph Boen, James Zou

TL;DR

OctoTools is a new, training-free framework that empowers large language models (LLMs) to tackle complex reasoning tasks by intelligently using a diverse set of external tools. It achieves significant performance gains over existing methods by introducing standardized "tool cards," a hierarchical planner-executor system, and a novel toolset optimization strategy, making LLMs more capable and versatile.

What Problem Does This Paper Address?

Solving complex reasoning tasks often requires more than just raw language understanding. It involves integrating visual perception, accessing specialized knowledge, performing calculations, and orchestrating multiple steps. While LLMs are powerful, they struggle with these multi-faceted problems. Existing approaches that augment LLMs with external tools often require extensive training, are limited to specific domains or tool types, or lack flexibility. This leaves a gap for a general-purpose, easy-to-use framework that can seamlessly integrate diverse tools to enhance LLM reasoning capabilities without requiring model retraining.

Methods

OctoTools introduces a novel agentic framework with three core components:

  • Standardized Tool Cards: Each tool (e.g., image captioner, web search, code executor) is described by a "tool card" that encapsulates its functionality, input/output formats, usage constraints, and best practices. This modular design simplifies tool integration, replacement, and expansion.
  • Planner-Executor Paradigm: A dedicated planner agent handles both high-level strategy and low-level task execution. The planner generates a tentative plan, breaks it down into sub-goals, and selects appropriate tools. An executor agent then translates these actions into executable commands, runs the tools, and updates the context with results. This separation enhances transparency and reduces errors.
  • Task-Specific Toolset Optimization: To avoid overwhelming the LLM with too many tools, OctoTools employs a lightweight algorithm that identifies an optimal subset of tools for a given task based on validation performance, improving both accuracy and efficiency.

Datasets

OctoTools was evaluated on 16 diverse benchmarks, including:

  • Vision: AlgoPuzzleVQA, Hallusion-VD, PuzzleVQA, VQA 2.0
  • Mathematical: Game of 24, Omni-MATH, CLEVR-Math, MathVista
  • Scientific: GPQA, MMLU-Pro, SciFIBench
  • Medical: MedQA, PathCLS, PathVQA, SLAKE
  • Agentic: GAIA-Text

The paper does not introduce new benchmarks but rather uses existing ones to demonstrate the framework's generality.

Key Insights and Ideas

  • Tool Cards are Key to Extensibility: The standardized tool card system is a significant innovation, allowing for easy integration of new tools without modifying the core framework. This modularity is crucial for building adaptable agentic systems.
  • Planner-Executor Separation Enhances Robustness: By separating strategic planning from command execution, OctoTools reduces errors and improves transparency, making the system more reliable and easier to debug.
  • Training-Free is a Game Changer: The ability to achieve substantial performance gains without fine-tuning LLMs is a major advantage, making OctoTools more accessible and adaptable to new domains and tools.
  • Toolset Optimization Matters: While enabling all tools offers benefits, a carefully selected subset can further boost performance, highlighting the importance of intelligent tool management.

Key Results

OctoTools achieved substantial performance improvements across 16 diverse benchmarks:

  • Average Accuracy Gain: 9.3% over zero-shot GPT-4o and 7.7% over GPT-4o with chain-of-thought prompting.
  • Outperforms Competitors: Up to 10.6% improvement over other agent frameworks like AutoGen, GPT-Functions, and LangChain when using the same set of tools.
  • Robustness: Demonstrated strong performance even with weaker LLMs (GPT-40-mini) and compact backbones, and showed graceful degradation under injected tool failures.
  • Efficiency: The planner-executor loop often stops early on simpler queries, indicating efficient resource utilization.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • LLM Capabilities: OctoTools' performance is inherently tied to the underlying LLM's reasoning abilities. Hallucinations or misinterpretations by the LLM can impact downstream performance.
  • Tool Quality and Availability: The framework assumes external tools are accurate and accessible. Issues like internet connectivity, API quotas, or deprecated services can affect tool benefits. Ensuring robustness to degraded or missing tools is an open challenge.
  • Toolset Optimization: The greedy search strategy for toolset optimization is efficient but not globally optimal and relies on validation data. Future work could explore dynamic, query-level adaptation.
  • Computational Cost: Multi-step planning increases latency and cost. For large-scale applications, batching, pruning, or model distillation might be necessary.
  • Fairness, Privacy, and Security: Calling external APIs or executing generated code raises concerns about user data, unsafe code execution, and potential biases propagated by external tools.
  • Reproducibility: Exact reproduction requires snapshotting tool versions or containerized environments due to potential evolution of third-party services.
  • Ethical Deployment: The modularity of OctoTools could lower barriers to misuse, such as large-scale disinformation generation. Governance and safeguards are critical.

Future work could focus on improving tool quality, developing more sophisticated toolset optimization strategies, and addressing the ethical implications of deploying such powerful agentic systems.

Summary updated

BibTeX
@inproceedings{lu2025octotools,
  author = {Pan Lu and Bowen Chen and Sheng Liu and Rahul Thapa and Joseph Boen and James Zou},
  title = {{OctoTools: An Agentic Framework with Extensible Tools for Complex Reasoning}},
  booktitle = {FM-Wild @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=MwPOhwY3sl},
}
Figure