Towards Autonomous Agents: Adaptive-Planning, Reasoning, and Acting in Language Models

Abstract

We propose a novel in-context learning algorithm for building autonomous decision-making language agents. The language agent continuously attempts to solve the same task by reasoning, acting, observing and then self-correcting each time the task fails. Our selected language agent demonstrates the ability to solve tasks in a text-based game environment. Our results show that the gemma-2-9b-it language model, using our proposed method, can successfully complete two of six tasks that failed in the first attempt. This highlights the effectiveness of our approach in enhancing the problem-solving capabilities of a single language model through self-correction, paving the way for more advanced autonomous agents. The code is publicly available at https://github.com/YenCheHsiao/AutonomousLLMAgentwithAdaptingPlanning.git.

Cite

Text

Dutta and Hsiao. "Towards Autonomous Agents: Adaptive-Planning, Reasoning, and Acting in Language Models." NeurIPS 2024 Workshops: OWA, 2024.

Markdown

[Dutta and Hsiao. "Towards Autonomous Agents: Adaptive-Planning, Reasoning, and Acting in Language Models." NeurIPS 2024 Workshops: OWA, 2024.](https://mlanthology.org/neuripsw/2024/dutta2024neuripsw-autonomous/)

BibTeX

@inproceedings{dutta2024neuripsw-autonomous,
  title     = {{Towards Autonomous Agents: Adaptive-Planning, Reasoning, and Acting in Language Models}},
  author    = {Dutta, Abhishek and Hsiao, Yen-Che},
  booktitle = {NeurIPS 2024 Workshops: OWA},
  year      = {2024},
  url       = {https://mlanthology.org/neuripsw/2024/dutta2024neuripsw-autonomous/}
}