Papers
Topics
Authors
Recent
Search
2000 character limit reached

SQ-BCP: Self-Querying Bidirectional Planning

Updated 29 January 2026
  • The paper presents categorical pullback verification as a central contribution that ensures plan-goal compatibility and reduces resource-violation rates to as low as 5.8%.
  • SQ-BCP employs a bidirectional search strategy with systematic self-querying to explicitly resolve unknown preconditions while strictly enforcing hard constraint compliance.
  • The framework integrates deterministic constraint checking with autonomous bridging actions to engineer necessary facts, thereby enhancing planning robustness in partially observable domains.

Self-Querying Bidirectional Categorical Planning (SQ-BCP) is a planning framework designed for inference-time decision-making with LLMs under conditions of partial observability and underspecified constraints. The method enforces explicit representation and systematic resolution of action preconditions, leveraging bidirectional search grounded in category theory. SQ-BCP introduces categorical pullback verification as a certificate of plan-goal compatibility, combines deterministic constraint checking with rigorous self-querying and bridging for unknowns, and achieves substantial reductions in resource-violation rates without compromising plan reference quality, as empirically demonstrated on procedural and recipe-based tasks (Qu, 27 Jan 2026).

1. Mathematical Formalism and Core Objects

The planning context in SQ-BCP is formalized via categorical structures:

  • Planning States (wWw \in \mathcal{W}): A state is a tuple w=(r,s,,t)w = (r, s, \ell, t), where rRnr \in \mathbb{R}^n encodes resource vector, ss is a symbolic structure (graph or propositional representation), \ell is a set of logical predicates, and tt models temporal allocation.
  • Morphisms (Operations): Action f:wwf: w \to w' is a category-theoretic morphism, where transitions update resources (r=r+Δrr' = r + \Delta r), manipulate structure (s=f(s)s' = f(s)), predicates (=Δ\ell' = \ell \oplus \Delta \ell), and time (t=t+Δtt' = t + \Delta t).

A planning problem seeks a morphism chain from initial state w0w_0 to goal ww^* such that all transitions uphold hard constraints (resource, logical, and temporal) and, crucially, terminal state-object compatibility is certified via categorical pullback.

Precondition status labels for candidate actions are annotated as λ{Sat,Viol,Unk}\lambda \in \{\text{Sat}, \text{Viol}, \text{Unk}\}, denoting certainly satisfied, certainly violated, or unknown. The set of unresolved preconditions at ww for candidate hh is denoted U(w,h)={pPre(h)label(p)=Unk}U(w, h) = \{ p \in Pre(h)|\, label(p)=Unk \}.

A task-specific heuristic distance metric, D(w,w)=αsds(s,s)+αrrr1+αd(,)+αtdt(t,t)D(w, w') = \alpha_s d_s(s, s') + \alpha_r \|r - r'\|_1 + \alpha_\ell d_\ell(\ell, \ell') + \alpha_t d_t(t, t'), is employed for scoring and pruning, but correctness is exclusively determined by constraint checks and pullback verification.

Categorical pullback verification operates within a category T\mathcal{T}: a candidate plan is accepted only if the forward and backward chains from w0w_0 and ww^* intersect at a state for which a pullback exists, guaranteeing goal compatibility and constraint satisfaction.

2. Algorithmic Structure and Workflow

SQ-BCP executes a bidirectional search, interleaving hypothesis expansion and explicit unknown resolution:

  • Initialization: Separate forward (GFG_F) and backward (GBG_B) search graphs are seeded at w0w_0 and ww^*, respectively; planning proceeds in both directions.
  • Expansion and Refinement: Nodes are expanded by generating and ranking action hypotheses, with all unknown preconditions resolved before commitment. Unknowns are addressed via a fixed sequence:

    1. Bridging Actions: Autonomous proposals aimed at establishing the unknown fact through side-effect actions, constrained by a TbridgeT_{bridge} limit.
    2. Self-Querying: If bridging fails, explicit queries are issued to an oracle or user for ground-truth resolution.
  • Acceptance and Verification: Candidate chains are screened for hard constraint compliance and joined if their distance falls below a threshold. Final acceptance requires existential categorical pullback:

PullbackVerify(wf,w)=True if the pullback wf×constraintsw exists in TPullbackVerify(w_f, w^*) = \text{True if the pullback } w_f \times_{constraints} w^* \text{ exists in } \mathcal{T}

  • Cycle Detection: Refinement signatures σ=w,p,Prelabels,Effsummary\sigma = \langle w, p, Pre_{labels}, Eff_{summary} \rangle are hashed to prevent infinite looping in bridging or query proposals.

SQ-BCP's algorithmic priorities separate solution ranking (distance-based) from correctness (constraint and categorical checks), yielding robust execution integrity.

3. Theoretical Properties and Guarantees

The framework is underpinned by formal guarantees:

  • Refinement Terminates: Resolution of mm unknowns with TbridgeT_{bridge} bounded requires at most m(Tbridge+1)m \cdot (T_{bridge} + 1) steps; cycle detection ensures bridging proposals do not loop indefinitely.
  • Soundness (Correctness): Any plan accepted via resolved preconditions, deterministic hard-constraint checks, and successful pullback verification is categorically compatible with goal requirements.
  • Completeness Under Bounded Branching: Given finite branching (KK maximum hypotheses per state), bounded unknowns (UmaxU_{max}), and limited bridging attempts (RR), all valid plans of depth dd are discoverable within O(KdRUmax)O(K^d \cdot R^{U_{max}}) expansions if unpruned by screening.

These theoretic results formalize the termination, soundness, and (assumption-bound) completeness of SQ-BCP as a reliable planning procedure for LLMs in partially observable domains.

4. Empirical Evaluation and Results

SQ-BCP's empirical performance is documented across procedural and recipe domains:

  • Datasets:
    • WikiHow: Procedure-driven tasks with "Things You'll Need" established as latent preconditions.
    • RecipeNLG: Recipe adaptation, latent preconditions (e.g., binding agents).
    • k-Reveal Protocol: Controlled hiding of preconditions—out of mm annotated, only kk revealed per instance.
  • Oracle Simulation: All approaches employ a simulated perfect oracle for answering queries.
  • Metrics:
    • Reference Similarity: ROUGE-1/ROUGE-2 (WikiHow), BLEU (RecipeNLG).
    • Constraint Violations: Proportion of plans violating resource or predicate requirements.

The following table (in LaTeX tabular) summarizes averaged results for k[1,4]k \in [1,4] reveals: $\begin{array}{l|ccc|cc} \textbf{Method} & \text{ROUGE-1↑} & \text{ROUGE-2↑} & \text{ResViol↓} & \text{BLEU↑} & \text{ResViol↓} \ \hline \text{Direct Prompt} & 46.3 & 42.1 & 78.3\% & 0.897 & 65.7\% \ \text{CoT} & 48.5 & 44.7 & 83.2\% & 0.900 & 64.1\% \ \text{ToT} & 52.9 & 45.2 & 94.7\% & 0.892 & 66.5\% \ \text{ReAct} & 55.8 & 47.4 & 76.9\% & 0.912 & 59.9\% \ \underline{\text{Self-Ask}} & \underline{56.1} & \underline{47.4} & 26.0\% & \underline{0.913} & 15.7\% \ \mathbf{SQ\text{-}BCP} & 52.7 & 45.9 & \mathbf{14.9\%} & 0.907 & \mathbf{5.8\%} \ \end{array}$ SQ-BCP reduces resource-violation rates to 14.9%14.9\% (WikiHow) and 5.8%5.8\% (RecipeNLG), nearly halving error rates relative to the best structured question-asking baseline (Self-Ask), while maintaining competitive reference similarity.

Qualitative traces demonstrate SQ-BCP's intervention: infeasible hypotheses (e.g., lacking budget) are rejected via self-queries, and previously blocked actions are unblocked through structured bridging (e.g., “sand legs into cylinders” before wheel assembly). All accepted chains maintain satisfied preconditions and categorical compatibility at meet-points (Qu, 27 Jan 2026).

5. Advantages, Limitations, and Domain Scope

SQ-BCP offers several methodological advantages:

  • Explicit Precondition Labelling: Sat/Viol/Unk semantics eliminate precondition hallucination.
  • Systematic Self-Querying: Unfeasible branches are detected and excluded promptly.
  • Bridging Mechanism: Autonomous synthesis of supporting actions enables fact engineering at runtime.
  • Pullback Verification: Compositional goal compatibility is certified via category-theoretic principles.

Limitations are noted:

  • Oracle Realism: Simulation of perfect oracle responses inflates robustness; real users may be noisy, reluctant, or costly.
  • LLM Misclassification: Improperly labelled or extraneous preconditions can yield unnecessary querying or premature discards.
  • Constraint Coverage: Only hard constraints are modeled; continuous geometric or stochastic feasibility is out of scope.
  • Computational Overhead: Bridging and verification at inference time require nontrivial compute, limiting horizon and latency scaling.
  • Domain Specificity: Empirical validation is restricted to instructional and recipe domains; generalization to robotics and software remains open.

A plausible implication is that further scaling and adaptation to domains with real-world feedback, continuous constraints, or complex stochastic effects would require substantial extensions or additional modeling components.

Self-Querying Bidirectional Categorical Planning is positioned as an evolution beyond traditional prompt-based, chain-of-thought (CoT), and question-asking frameworks in LLM planning. Unlike approaches that rely on implicit or heuristic precondition inference and unstructured self-ask protocols, SQ-BCP formalizes action applicability and plan correctness via explicit precondition labelling and category-theoretic verification. This systematic approach enables predictable and sound planning under partial information, reducing resource and constraint violations without substantial loss of plan reference similarity.

Related frameworks include:

  • Self-Ask, which directly queries missing information but lacks structured bridging.
  • Chain-of-Thought and Tree-of-Thought, which expand thought paths but do not enforce hard constraint or categorical verification.
  • ReAct, combining reasoning and acting but with higher resource violation rates.

SQ-BCP's methodology raises opportunities for integration with continuous planning, active user interaction modeling, and expansion beyond procedural generation to other AI planning domains. Further empirical validation and refinement in noisy or high-dimensional environments are identified as pressing research avenues (Qu, 27 Jan 2026).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Self-Querying Bidirectional Categorical Planning (SQ-BCP).