Constraint Tree Exploration for Learning from Language Feedback
Organizations: Stony Brook University · Meta Platforms
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 for TRACE-Falsification. With reliable identification, TRACE-Identification can replace this dependence by , where is the number of latent constraints and 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.
Figures & tables
| RecMovie | 20Q | EDA | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | Natural | Falsif. | Identif. | Natural | Falsif. | Identif. | Natural | Falsif. | Identif. |
| Random | – | – | – | – | – | – | |||
| DirectLLM | |||||||||
| Reflexion | |||||||||
| Self-Refine | |||||||||
| TRACE | – | – | – | ||||||
| Falsification | Identification | ||||
|---|---|---|---|---|---|
| env.succ. | attempts | env.succ. | attempts | ||
| LLM | Identification | Final Pass |
|---|---|---|
| Qwen3-4B | [ , ] | [ , ] |
| DeepSeek-V4-Flash | [ , ] | [ , ] |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Mastermind | Haiku | Tanka |
|---|---|---|---|
| Random | |||
| DirectLLM | |||
| Reflexion ( Shinn et al., 2023 ) | |||
| Self-Refine ( Madaan et al., 2023 ) | |||
| TRACE-F | |||
| TRACE-I |
| Method | Rec. | 20Q | EDA | Mmind | Haiku | Tanka |
|---|---|---|---|---|---|---|
| Random | ||||||
| DirectLLM | ||||||
| Reflexion | ||||||
| Self-Refine | ||||||
| TRACE-F | ||||||
| TRACE-I |
| TRACE-F CI | TRACE-I CI | ||
|---|---|---|---|
| Configuration | RecMovie | 20Q | EDA Things |
|---|---|---|---|
| TRACE-I | |||
| Direct-Commit (best variant) |
| Method | Rec. | 20Q | EDA |
|---|---|---|---|
| Group A: binary oracle | |||
| DirectLLM | |||
| Reflexion | |||
| Self-Refine | |||
| TRACE-F | |||
| Group B: identity oracle | |||
| Method | final env. | soft regret | |
|---|---|---|---|
| TRACE-F | |||
| TRACE-I | |||
| Direct-AND | |||
| Direct-OR | |||
| Direct-RANKED | |||
| Random |
| Proposer | any-success |
|---|---|
| TRACE-F (uniform) | 57% |
| Incremental-LM (atomic per-feedback) | 74% |
| TRACE-I (decoded) | 95% |
| Detector | Overall | Final Output |
|---|---|---|
| Rule-based detector | 57% | 51% |
| LLM, zero-shot | 21% | 12% |
| LLM, chain-of-thought | 21% | 1 8% |
| Configuration | env.success |
|---|---|
| TRACE-I | 90% |
| Direct-AND (strict) | 15% |
| Direct-OR (per-dim disjunction) | 23% |
| Direct-RANKED (top- match score) | 22% |
| Omission rate | any-success |
|---|---|
| 95% | |
| 95% | |
| 95% | |
| 94% | |
| 93% | |
| 87% |
| Method | any-succ. | ||
|---|---|---|---|
| TRACE-I | |||
| Direct-AND | |||
| Direct-OR | |||
| Direct-RANKED | |||
| TRACE-I | |||
| Direct-AND |
| Method | ||
|---|---|---|
| TRACE-I ( ) | [ , ] | [ , ] |
| DirectLLM (Table 1 config.) | [ , ] | n/a |
| Reflexion (Table 1 config.) | [ , ] | n/a |
| Self-Refine (Table 1 config.) | [ , ] | n/a |
| DirectLLM-W8 | [ , ] | [ , ] |
| Reflexion-NoCycle | [ , ] | [ , ] |
| Success | Mean rounds | P90 rounds | ||
|---|---|---|---|---|
| [ , ] | ||||
| [ , ] | ||||
| [ , ] | ||||
| [ , ] | ||||
| [ , ] |
| Method | Evals | Gen. LLM | Aux. LLM | LLM tokens | Wall (s) |
|---|---|---|---|---|---|
| TRACE-I ( ) | |||||
| TRACE-I ( , default) | |||||
| DirectLLM-W8 | |||||
| Reflexion-NoCycle | |||||
| Self-Refine-W8 | |||||
| Best-of- ( ) |
| Root | Rounds ( ) | Rounds ( ) | ||
|---|---|---|---|---|
| [ , ] | [ , ] | |||
| , oracle-trusted | [ , ] | [ , ] |
| 20Q | EDA Things | |||
|---|---|---|---|---|
| Configuration | env.succ. | superset | env.succ. | superset |
| TRACE-F (uniform) | 84% | 82% | 87% | 84% |
| TRACE-I (decoded) | 100% | 100% | 99% | 99% |
| K | TRACE-F succ. | Binary attempts | TRACE-I succ. | Identity attempts |
|---|---|---|---|---|
| 2 | ||||
| 4 | ||||
| 6 | ||||
| 8 | ||||
| 10 |
| Haiku ( ) | Tanka ( ) | |||
|---|---|---|---|---|
| Method | env.succ. | attempts | env.succ. | attempts |
| TRACE-F | [ , ] | [ , ] | ||
| TRACE-I | [ , ] | [ , ] | ||