State Machine of Thoughts: Leveraging Past Reasoning Trajectories for Enhancing Problem Solving

Jia Liu, Jie Shuai, Xiyao Li
12/29/2023
cs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Current Large Language Model-based agents reason within an exploration-evaluation framework, navigating problem-solving processes in a tree-like manner. However, these methods often neglect successful reasoning trajectories once a problem is resolved, leading to inefficient use of these trajectories for future analogous problems. To address this inefficiency, we adopt a state machine to record experience derived from previous reasoning trajectories. Within the state machine, states represent decomposed sub-problems, while state transitions reflect the dependencies among sub-problems. The state machine records both successful and failed trajectories. Utilizing the experience from the state machine, our proposed State Machine of Thoughts (SMoT) selects the most optimal sub-solutions and avoids incorrect ones. Our experiments show that SMoT can significantly improve problem-solving abilities in two exploration-intensive problems: the 24-point game and a taxi navigation reinforcement learning game.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2023state,
  title  = {State Machine of Thoughts: Leveraging Past Reasoning Trajectories for Enhancing Problem Solving},
  author = {Jia Liu and Jie Shuai and Xiyao Li},
  year   = {2023},
  eprint = {2312.17445},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.17445v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.17445.svg)](https://codeofpaper.com/paper/2312.17445)

Discussion