Where to Search: Measure the Prior-Structured Search Space of LLM Agents
Zhuo-Yang Song
TL;DR
The paper tackles the problem of quantifying and guiding long-horizon, LLM-assisted iterative search by encoding domain priors into a structured hypothesis space. It develops a compact formal theory that models agents as fuzzy relation operators constrained by a safety envelope and aggregates multi-step reachability through a coverage generating function $P_{f,g}(p)$ with a continuation parameter $p$. Key contributions include formal definitions of the search space, safety envelope, coverage measure, critical parameter $p_c$, and coverage index $R_c$, along with transitivity relations and epoch-based interpretations; it validates the framework via two minimal instantiations (Majority-vote walking and IdeaSearch) that demonstrate approximately unidirectional, safety-compliant search dynamics. The work provides a model-agnostic, computable language for evaluating and designing LLM-driven long-horizon search strategies, with implications for agent design, evaluation metrics, and potential integration with reinforcement learning rewards.
Abstract
The generate-filter-refine (iterative paradigm) based on large language models (LLMs) has achieved progress in reasoning, programming, and program discovery in AI+Science. However, the effectiveness of search depends on where to search, namely, how to encode the domain prior into an operationally structured hypothesis space. To this end, this paper proposes a compact formal theory that describes and measures LLM-assisted iterative search guided by domain priors. We represent an agent as a fuzzy relation operator on inputs and outputs to capture feasible transitions; the agent is thereby constrained by a fixed safety envelope. To describe multi-step reasoning/search, we weight all reachable paths by a single continuation parameter and sum them to obtain a coverage generating function; this induces a measure of reachability difficulty; and it provides a geometric interpretation of search on the graph induced by the safety envelope. We further provide the simplest testable inferences and validate them via two instantiation. This theory offers a workable language and operational tools to measure agents and their search spaces, proposing a systematic formal description of iterative search constructed by LLMs.
