CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Models

Cheng Qian, Chi Han, Yi Ren Fung, Yujia Qin, Zhiyuan Liu, Heng Ji

Introduction

Large Language Models (LLMs) have demonstrated significant potential in using external tools like calculators or search engines. However, they are often restricted to a fixed set of APIs and struggle with complex, multi-step reasoning. CREATOR is a novel framework that shifts LLMs from being mere "tool users" to "tool creators." By disentangling abstract reasoning (designing a tool) from concrete reasoning (using the tool), CREATOR enables LLMs to solve complex problems with unprecedented flexibility and accuracy, outperforming standard prompting and fixed-API methods.

The Limitations of Current Tool-Use

While existing tool-use pipelines are powerful, they face three major hurdles that limit their general applicability:

  1. Limited Scope: Models are restricted to a predefined set of APIs. If a tool doesn't exist for a specific problem, the model is stuck.
  2. Fragile Reasoning: Humans solve problems by identifying general patterns and creating reusable methods. LLMs typically try to solve every instance from scratch, which is error-prone for complex tasks.
  3. Poor Error Handling: Most pipelines lack a robust way to recover when a tool call fails or produces an error.

The CREATOR Framework

CREATOR addresses these challenges through a four-stage framework designed to mimic human problem-solving:

  1. Creation (Abstract Reasoning): The LLM identifies the core logic needed and writes a general-purpose Python tool (a function) with documentation.
  2. Decision (Concrete Reasoning): The model decides exactly how to call the newly created tool to solve the specific query (e.g., defining the input variables).
  3. Execution: A Python interpreter runs the combined code, offloading computation and logic to a reliable execution environment.
  4. Rectification: If execution fails, the LLM receives the error traceback and is prompted to fix either the tool's logic or the decision-making code.
The CREATOR framework separates tool creation from tool usage, allowing for more robust problem-solving compared to standard API-based tool use.

Evaluation and Benchmarks

The researchers evaluated CREATOR on three distinct benchmarks to test its versatility:

  • MATH: A dataset of challenging high school math competition problems.
  • TabMWP: A benchmark for math word problems involving diverse tabular data.
  • Creation Challenge: A new dataset introduced in this paper containing 2,000 diverse questions specifically designed to be difficult for existing APIs, necessitating the creation of custom logic.

Key Insights: The Power of Disentanglement

The most significant finding is that separating the "tool-making" phase from the "tool-using" phase leads to much higher accuracy. This disentanglement prevents the model from getting bogged down in numerical details while trying to establish general logic.

CREATOR demonstrates superior performance on complex problems where standard tools or reasoning methods fail, as seen in these Pascal's Triangle and counting examples.

Furthermore, using Python code as a universal medium allows the model to leverage a precise language that is sensitive to errors and provides clear feedback for self-correction. The framework also facilitates knowledge transfer; tools created for one problem can often be reused for similar ones, with the authors finding that transferring tools improved accuracy by 15.3% in related scenarios.

Key Results

CREATOR consistently outperformed established baselines across all tested benchmarks:

  • MATH: Achieved 59.7% accuracy, significantly higher than Chain-of-Thought (37.9%) and Program-of-Thought (53.9%).
  • TabMWP: Reached a near-perfect 94.7% accuracy.
  • Rectification Power: The self-correction stage alone boosted performance by approximately 10% across various tasks.
  • Robustness: CREATOR showed much higher resilience as problem difficulty increased compared to traditional methods.

Conclusion and Future Work

CREATOR represents a significant step toward more autonomous and capable AI agents. By teaching models to build their own tools, we move beyond the constraints of fixed APIs. While successful, challenges remain in scaling tool creation to complex software project pipelines. Future work will focus on expanding CREATOR to more diverse domains and exploring how LLMs can manage a persistent "toolbox" of their own creations over time.

Summary updated

BibTeX
@inproceedings{qian2023creator,
  author = {Cheng Qian and Chi Han and Yi Ren Fung and Yujia Qin and Zhiyuan Liu and Heng Ji},
  title = {{CREATOR: Tool Creation for Disentangling Abstract and Concrete Reasoning of Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.462},
}
Figure