2022

Decomposed Prompting: A Modular Approach for Solving Complex Tasks

Khot, Tushar, Trivedi, Harsh, Finlayson, Matthew et al.

Understand

Few-shot prompting is a surprisingly powerful way to use Large Language Models (LLMs) to solve various tasks.

  • However, this approach struggles as the task complexity increases or when the individual reasoning steps of the task themselves are hard to learn, especially when embedded in more complex tasks.
  • To address this, we propose Decomposed Prompting, a new approach to solve complex tasks by decomposing them (via prompting) into simpler sub-tasks that can be delegated to a library of prompting-based LLMs dedicated to these sub-tasks.
  • This modular structure allows each prompt to be optimized for its specific sub-task, further decomposed if necessary, and even easily replaced with more effective prompts, trained models, or symbolic functions if desired.

Reading the bibliography…