CREATOR: Disentangling Abstract and Concrete Reasonings of Large Language Models through Tool Creation

Cheng Qian, Chi Han, Yi R. Fung, Yujia Qin, Zhiyuan Liu, Heng Ji · DOI

TL;DR

This paper introduces CREATOR, a framework that enables Large Language Models (LLMs) to create their own tools instead of just using pre-existing ones. By separating abstract tool design from concrete execution, CREATOR significantly boosts LLM performance on complex reasoning tasks and demonstrates a powerful new paradigm for AI problem-solving.

What Problem Does This Paper Address?

LLMs have become adept at using external tools (like APIs) to solve problems. However, this capability is hampered by two main issues: the limited availability of pre-built tools for novel problems, and the inherent instability of LLMs when they have to both plan how to use a tool and then execute the plan. This often leads to errors, especially in complex reasoning scenarios. The authors aim to overcome these limitations by empowering LLMs to become tool creators themselves, thereby increasing their flexibility, accuracy, and robustness.

Methods

CREATOR is a four-stage framework designed to leverage LLMs' creative and reasoning abilities:

  1. Creation: LLMs are prompted to generate new, reusable tools (as Python code with documentation) based on the problem's abstract requirements. This stage focuses on disentangling the core logic of a problem.
  2. Decision: LLMs then decide when and how to use the available tools (including newly created ones) to solve the specific problem. This stage focuses on concrete reasoning and application.
  3. Execution: The generated code (tools and decisions) is executed by a code interpreter. The LLM is not involved in this stage.
  4. Rectification: If execution fails (e.g., due to errors), the LLM is provided with error tracebacks and prompted to fix the tool or decision. If successful, the output is compared to the ground truth.

This disentanglement of abstract (tool creation) and concrete (decision-making) reasoning is a core innovation.

Datasets

  • MATH: A benchmark dataset of challenging math competition problems.
  • TabMWP: A dataset featuring diverse tabular contexts for problem-solving.
  • Creation Challenge: A newly introduced dataset of 2K diverse questions specifically designed to highlight the necessity and benefits of LLM tool creation, as existing tools are often inadequate for these problems.

Key Insights and Ideas

  • LLMs as Tool Creators: The most significant insight is that LLMs can be effectively trained to create their own tools, rather than just being users of pre-defined ones. This unlocks a new level of problem-solving capability.
  • Disentangling Reasoning: Separating abstract tool design from concrete decision-making is crucial. This allows LLMs to focus on each aspect more effectively, leading to better performance.
  • Code as a Medium: Using code as the primary medium for tool creation and reasoning makes the process more precise and amenable to automated error handling and rectification.
  • Knowledge Transfer: Tools created for one problem can be reused for similar problems with different scenarios, demonstrating a powerful form of knowledge transfer.
  • Hierarchical Tool Creation: LLMs can create tools with varying levels of complexity, from simple enhancements of existing tools to complex hierarchical structures.

Key Results

  • CREATOR significantly outperforms existing Chain-of-Thought (CoT), Program-of-Thought (PoT), and general tool-using baselines on the MATH and TabMWP benchmarks.
  • On MATH, CREATOR achieved an accuracy of 59.7%, surpassing baselines by significant margins.
  • On TabMWP, CREATOR achieved an accuracy of 94.7%.
  • On the new Creation Challenge dataset, CREATOR achieved 75.5% accuracy, demonstrating its effectiveness on novel problems.
  • The rectification stage can improve accuracy by approximately 10%.
  • Providing hints about tool utility and inputs/outputs can boost performance on the Creation Challenge dataset by up to 18.7%.

Limitations and Future Work

  • Limited Scope of Benchmarks: The current evaluation is limited to MATH, TabMWP, and the Creation Challenge dataset. Future work should expand to a broader range of tasks to assess generalizability.
  • Execution of Full Projects: While CREATOR can create tools, evaluating its ability to create and execute entire project pipelines is still an open area.
  • Understanding LLM Capabilities: Further research is needed to fully understand the boundaries and potential of LLMs in tool creation.
  • Ethical Considerations: The authors highlight the importance of addressing privacy concerns (especially with demonstration data), fairness (mitigating biases in tool creation), and transparency (documenting tool development and limitations).

Summary updated

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