Chameleon: Plug-and-Play Compositional Reasoning with Large Language Models

By Pan Lu, Baolin Peng, Hao Cheng, Michel Galley, Kai-Wei Chang, Ying Nian Wu, Song-Chun Zhu, Jianfeng Gao. 2023

483 citations recorded by the source corpus.

Large language models (LLMs) have achieved remarkable progress in solving various natural language processing tasks due to emergent reasoning abilities. However, LLMs have inherent limitations as they are incapable of accessing up-to-date information (stored on the Web or in task-specific knowledge bases), using external tools, and performing precise mathematical and logical reasoning. In this paper, we present Chameleon, an AI system that mitigates these limitations by augmenting LLMs with plug-and-play modules for compositional reasoning. Chameleon synthesizes programs by composing various tools (e.g., LLMs, off-the-shelf vision models, web search engines, Python functions, and heuristic-based modules) for accomplishing complex reasoning tasks. At the heart of Chameleon is an LLM-based planner that assembles a sequence of tools to execute to generate the final response. We showcase the effectiveness of Chameleon on two multi-modal knowledge-intensive reasoning tasks: ScienceQA and TabMWP. Chameleon, powered by GPT-4, achieves an 86.54% overall accuracy on ScienceQA, improving the best published few-shot result by 11.37%. On TabMWP, GPT-4-powered Chameleon improves the accuracy by 17.0%, lifting the state of the art to 98.78%. Our analysis also shows that the GPT-4-powered planner exhibits more consistent and rational tool selection via inferring potential constraints from instructions, compared to a ChatGPT-powered planner. The project is available at https://chameleon-llm.github.io.

Subfields: Artificial Intelligence, Information Systems, Large Language Models, Prompting & Reasoning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Hannaneh Hajishirzi
  5. Yejin Choi
  6. Percy Liang
  7. Caiming Xiong
  8. Quoc V. Le

In Information Systems

  1. Hannaneh Hajishirzi
  2. Christopher Clark
  3. Pan Lu
  4. Xinyun Chen
  5. Chao Zhang
  6. William Yang Wang
  7. Yu Su
  8. Tengyu Ma

In Large Language Models

  1. Wenhu Chen
  2. Xinyun Chen
  3. Denny Zhou
  4. Tengyu Ma
  5. Xuezhi Wang
  6. Aniruddha Kembhavi
  7. Kai-Wei Chang
  8. Hannaneh Hajishirzi

In Prompting & Reasoning

  1. Denny Zhou
  2. Pan Lu
  3. Wenhu Chen
  4. Sean Welleck
  5. Xinyun Chen
  6. Xinyi Wang
  7. Tengyu Ma
  8. Xuezhi Wang

Citations in the corpus