SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks

Abstract

We introduce SwiftSage, a novel agent framework inspired by the dual-process theory of human cognition, designed to excel in action planning for complex interactive reasoning tasks. SwiftSage integrates the strengths of behavior cloning and prompting large language models (LLMs) to enhance task completion performance. The framework comprises two primary modules: the Swift module, representing fast and intuitive thinking, and the Sage module, emulating deliberate thought processes. The Swift module is a small encoder-decoder LM fine-tuned on the oracle agent's action trajectories, while the Sage module employs LLMs such as GPT-4 for subgoal planning and grounding. We develop a heuristic method to harmoniously integrate the two modules, resulting in a more efficient and robust problem-solving process. In 30 tasks from the ScienceWorld benchmark, SwiftSage significantly outperforms other methods such as SayCan, ReAct, and Reflexion, demonstrating its effectiveness in solving complex interactive tasks.

Cite

Text

Lin et al. "SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks." Neural Information Processing Systems, 2023.

Markdown

[Lin et al. "SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks." Neural Information Processing Systems, 2023.](https://mlanthology.org/neurips/2023/lin2023neurips-swiftsage/)

BibTeX

@inproceedings{lin2023neurips-swiftsage,
  title     = {{SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks}},
  author    = {Lin, Bill Yuchen and Fu, Yicheng and Yang, Karina and Brahman, Faeze and Huang, Shiyu and Bhagavatula, Chandra and Ammanabrolu, Prithviraj and Choi, Yejin and Ren, Xiang},
  booktitle = {Neural Information Processing Systems},
  year      = {2023},
  url       = {https://mlanthology.org/neurips/2023/lin2023neurips-swiftsage/}
}