Automating Thought of Search: A Journey Towards Soundness and Completeness

Daniel Cao, Michael Katz, Harsha Kokel, Kavitha Srinivas, Shirin Sohrabi
8/21/2024
cs.AI

No official code found. Best implementation: IBM/AutoToS (5 stars, MIT, last commit 2025-09-18). 1 more below.

Abstract

Large language models (LLMs) are being used to solve planning problems that require search. Most of the literature uses LLMs as world models to define the search space, forgoing soundness for the sake of flexibility. A recent work, Thought of Search (ToS), proposed defining the search space with code, having LLMs produce that code. ToS requires a human in the loop, collaboratively producing a sound successor function and goal test. The result, however, is worth the effort: all the tested datasets were solved with 100% accuracy. Consequently, there is great potential to automate the ToS process. We take a first major step towards automating ToS (AutoToS), taking the human out of the loop of interactions with the language model. AutoToS guides the language model step by step towards the generation of sound and complete search components, through feedback from both generic and domain specific unit tests. We show that AutoToS is able to achieve 100% accuracy on all the evaluated domains with a small number of LLM calls.

View on arXivView PDF

Code Implementations(2)

dogcomplex/AutoToSCommunity71%
MIT

Automating Thought of Search: A Journey Towards Soundness and Completeness - Implementation

30PythonSep 16, 20242 years agoMIT
IBM/AutoToSCommunity67%
MIT

The repository for the code associated with the paper "Automating Thought of Search: A Journey Towards Soundness and Completeness"

54HTML, PDDLJun 16, 20251 years agoMIT

Similar Papers

Cite this paper

@article{cao2024automating,
  title  = {Automating Thought of Search: A Journey Towards Soundness and Completeness},
  author = {Daniel Cao and Michael Katz and Harsha Kokel and Kavitha Srinivas and Shirin Sohrabi},
  year   = {2024},
  eprint = {2408.11326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.11326v2}
}

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/2408.11326.svg)](https://codeofpaper.com/paper/2408.11326)

Discussion