arXiv:2610.09107cs.AIOct 2026

Manuscript Offprint

arXiv:2610.09107

Constraint Tree Exploration for Learning from Language Feedback

Shaoang Li, Daniel R. Jiang, Jian Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Natural-language feedback in interactive learning often explains why an action failed by pointing to violated requirements. Misinterpreting this feedback can lead an agent to rule out valid solutions. We study this setting by modeling user intent as latent constraints over an action space and formulating learning from language feedback as pure exploration over feasible regions. We introduce TRACE, an algorithm that organizes candidate constraints in a tree and tests each proposed refinement by generating actions that satisfy it. TRACE commits to the refinement only if the resulting feedback does not contradict it over repeated tests. We distinguish two ways of using the same feedback: (i) falsification, which detects contradictions to the constraint set currently being tested, and (ii) identification, which may additionally name a violated constraint. We prove high-probability coverage bounds with dependence on the candidate class size H for TRACE-FALSIFICATION. With reliable identification, TRACE-IDENTIFICATION can replace this dependence by K/pextK/p_{ext}, where K is the number of latent constraints and pextp_{ext} lower-bounds the probability of extracting a missing true constraint from informative feedback. We evaluate TRACE across six language-feedback tasks. On RecMovie, TRACE-IDENTIFICATION achieves 73% and 86% final-output success under caps of 20 and 60 evaluated outputs, compared with at most 42% and 48% for the evaluated prompting baselines given the same feedback and output caps. Controlled identity-corruption experiments further show greater robustness than direct accumulation when the falsification detector remains reliable.

1 INTRODUCTION

Interactive agents built on large language models (LLMs) can receive feedback expressed in natural language rather than as a numerical reward (Cheng et al., 2023; Shinn et al., 2023). A user may reject a movie recommendation by saying “I wanted something from the 90s”, revise a travel plan by saying “this exceeds my budget”, or correct a generated poem by saying “the second line has too many syllables”. Such feedback can explain why an action failed by identifying an unmet requirement. Because this requirement also applies to other candidate actions, the feedback can help narrow the search for acceptable alternatives. The challenge is to infer useful constraints from incomplete or ambiguous feedback and determine when the available evidence justifies enforcing them.

Existing approaches have explored how natural-language feedback can be incorporated into LLM agents. Feedback-driven methods, including REFLEXION (Shinn et al., 2023), SELF-REFINE (Madaan et al., 2023), TEXTGRAD (Yuksekgonul et al., 2025), and language-agent tree search (LATS) (Zhou et al., 2024), use feedback to guide generation and search through revised prompts, reflective memories, textual gradients, or value estimates. Recent theoretical work provides complementary abstractions, including regret bounds under hindsight instructions (Misra et al., 2024) and consistency-based elimination over global hypotheses (Xu et al., 2025). We focus on pure exploration over feasible regions: the learner discovers, tests, and accumulates latent constraints to progressively restrict the action space. This formulation makes explicit both the information needed to propose a constraint and the evidence needed to commit to it.

We consider episodes with fixed latent requirements represented in a finite candidate class. We distinguish two oracle-access regimes induced by the same natural-language feedback. In the

(a) Language feedback proposes a constraint

(b) Constraint tree

(c) Test-before-commit

Figure

Figure 1: Constraint-tree exploration in TRACE. At a committed node v with constraint set CvC_v, a candidate constraint cnewc_{\text{new}} proposes a child u with Cu=Cv∪{cnew}C_u = C_v \cup \{c_{\text{new}}\}. The child is tested by sampling actions satisfying CuC_u: feedback contradicting CuC_u rejects the child, while survival for a fixed number mexpm_{\text{exp}} of tests leads to commitment. Extracted identities guide proposals; falsification tests determine commitment.

falsification setting, the learner has access to a violation oracle that tests whether feedback contradicts the constraint set currently being tested. In the identification setting, the learner additionally has access to an extractor that may name a violated atomic constraint. These two regimes specify what information the learner can obtain from the same raw feedback. Identification access can accelerate exploration by revealing which constraint to test next. But an extracted identity is only a proposal, not a fact: committing an incorrectly extracted constraint can permanently shrink the feasible region in the wrong direction. Without identities, however, discovering useful constraints may require blind search over a large candidate class. The challenge is therefore to benefit from named constraints without trusting them too early. This leads to the central question of the paper:

How can an agent exploit named constraints from language feedback without committing to them prematurely, and when does identification access reduce the sample complexity of exploration?

We answer this question with the Test-and-Refine Algorithm for Constraint Exploration (TRACE). The search state in TRACE is the committed constraint set, which indexes a surviving feasible region. Candidate refinements form children in a constraint tree, as illustrated in Figure 1. Rather than committing to a proposed constraint immediately, TRACE performs a multi-round test: it samples actions from the child region and rejects the child if feedback contradicts the tested constraint set. If the child survives repeated tests, the algorithm commits to it and descends the tree. Thus, extracted identities are treated as proposals, not facts. The tree separates proposal from commitment and organizes partially accumulated constraints. The same test-before-commit primitive instantiates the two oracle-access regimes formalized in Section 2.2: TRACE-FALSIFICATION (TRACE-F; Assumption 1 only), which uses the violation oracle for falsification, and TRACE-IDENTIFICATION (TRACE-I; Assumptions 1 and 2), which additionally prioritizes constraints extracted from feedback.

Our analysis separates the cost of blind falsification from the value of usable identities. In the falsification setting, TRACE-F discovers true constraints by proposing candidates from a finite class of size H, leading to sample complexity O~(H)\widetilde{\mathcal{O}}(H) up to the per-test cost of falsification (Theorem 2). In the identification setting, under sound extraction and an explicit discovery-progress condition, TRACE-I replaces this dependence by the effective discovery cost O~(K/pext)\widetilde{\mathcal{O}}(K/p_{\mathrm{ext}}), where K is the number of latent constraints and pextp_{\mathrm{ext}} lower-bounds the probability of extracting a missing true constraint from informative feedback (Theorem 3). These bounds quantify how usable identities can reduce the number of tested refinements relative to uniform blind search.

Empirically, we evaluate TRACE across five controlled language-feedback environments spanning six task instances: recommendation, two entity-deduction benchmarks, MASTERMIND, and constrained poem generation. On RecMovie, TRACE-I achieves 73% and 86% final-output success under common caps of 20 and 60 evaluated outputs, compared with at most 42% and 48% for the evaluated prompting baselines. Controlled MASTERMIND sweeps show that identification-guided proposals require fewer tested refinements as the candidate class grows. False-identity experiments further show that TRACE-I remains more robust than direct accumulation when extracted identities are corrupted and the falsification detector remains reliable.

In summary, we make three contributions. First, we formulate learning from language feedback as pure exploration over latent constraints, where feedback provides local evidence about feasible regions rather than scalar rewards. Second, we introduce TRACE, a parser-agnostic test-before-commit framework that treats extracted identities as proposals rather than facts. Third, we derive high-probability coverage bounds that quantify the benefit of identification access, and we evaluate proposal efficiency, interaction budgets, and robustness to identity corruption.