Formalizing Learning from Language Feedback with Provable Guarantees

Wanqiao Xu, Allen Nie, Ruijie Zheng, Aditya Modi, Adith Swaminathan, Ching-An Cheng

Introduction

While Large Language Model (LLM) agents have demonstrated impressive, "vibes-based" success in following instructions and responding to critiques, the field has lacked a rigorous mathematical framework to measure the difficulty of language-based tasks or guarantee optimal learning. Traditional Reinforcement Learning (RL) relies on scalar rewards (e.g., +1 or 0), but real-world feedback is often much richer. For instance, a critique like "The summary is accurate but misses the character's motivation" contains significantly more actionable information than a simple zero score.

To bridge this gap, this paper formalizes Learning from Language Feedback (LLF). In LLF, numerical rewards are hidden (latent), and the agent must navigate its environment using only text-based observations and feedback. By introducing a novel complexity metric and a provably efficient algorithm, the authors demonstrate that rich language feedback can make learning exponentially faster than traditional RL.

Theoretical Framework: The Transfer Eluder Dimension

Standard RL theory is not built to handle the high-dimensional, semantic nature of text. To address this, the authors propose a framework built on three core pillars:

  1. The Hypothesis Verifier: Instead of relying on a standard reward model, the framework defines a "verifier" loss. This mechanism checks if a candidate "hypothesis"—a text-based description of the world state or task logic—is consistent with the observed language feedback.
  2. Transfer Eluder Dimension ($dim_{TE}$): This metric represents the paper's most significant theoretical contribution. It measures how effectively the information contained in language feedback reduces uncertainty about the hidden reward. A small $dim_{TE}$ implies that a single piece of feedback provides substantial information about many different possible actions.
  3. Thinking as Hypothesis Generation: The framework treats an LLM's internal reasoning (or "thinking tokens") as testable scientific hypotheses. If a reasoning trace predicts a specific outcome that contradicts the environment's feedback, that entire line of reasoning can be systematically discarded.

The HELiX Algorithm

Building on this framework, the authors introduce HELiX, a "no-regret" algorithm based on Hypothesis Elimination. HELiX operates through sequential interactions using a principled explore-exploit mechanism:

  • Maintain: The algorithm keeps a working set of all hypotheses that remain consistent with the history of feedback.
  • Exploit (Consensus): If all remaining hypotheses agree on the optimal next action, the agent takes that action.
  • Explore (Optimism): If the hypotheses disagree, the agent selects the action that appears best under the most "optimistic" plausible hypothesis, conceptually similar to the Upper Confidence Bound (UCB) approach in multi-armed bandits.

In practice, HELiX is implemented by prompting an LLM to generate multiple "thinking traces" (hypotheses) and subsequently scoring potential actions against those traces.

Empirical Evaluation and Key Results

The authors evaluate HELiX on two complex 2D grid environments requiring strategic exploration: Battleship (locating hidden ships using hit/miss and ship-type feedback) and Minesweeper (uncovering safe cells using numerical adjacency clues). These tasks, adapted from the LLF-Bench, were chosen specifically because standard Chain-of-Thought (CoT) prompting frequently fails them due to a lack of systematic exploration.

Key Findings

  • Exponential Speedup: The paper mathematically proves that for certain reasoning tasks, language feedback provides an exponential speedup in learning efficiency compared to scalar rewards. Knowing why an action failed is far more valuable than merely knowing that it failed.
  • Theoretical Guarantees: The authors establish a regret bound of $\tilde{O}(T^{3/4} \sqrt{dim_{TE}})$. This guarantees that the agent's performance gap, relative to an optimal player, shrinks predictably over time.
  • Empirical Superiority: Across both Battleship and Minesweeper, HELiX consistently outperformed standard CoT baselines and epsilon-greedy exploration strategies.
  • The Importance of Consensus: The exploitation step—acting only when hypotheses agree—proved crucial. Optimistic exploration alone was insufficient to solve the tasks reliably.
  • Token Efficiency: Although HELiX consumes more tokens per step to sample multiple hypotheses, it terminates games much faster than baselines. This often results in a lower total token cost to achieve success.

Limitations and Future Directions

While HELiX marks a significant step toward principled interactive learning, the authors note several limitations. First, the $dim_{TE}$ is a worst-case complexity measure; in practice, tasks with a high theoretical $dim_{TE}$ might still be solvable because LLMs possess strong inductive biases. Second, the practical implementation assumes the underlying LLM can generate a diverse and faithful set of hypotheses. If the LLM is inherently "blind" to certain possibilities, HELiX cannot evaluate or eliminate them. Finally, building the score matrix between hypotheses and actions requires multiple LLM calls. Scaling this approach to more complex, multi-turn environments will likely require optimizations such as prefix caching and parallel sampling.

Summary updated

BibTeX
@inproceedings{xu2026formalizing,
  author = {Wanqiao Xu and Allen Nie and Ruijie Zheng and Aditya Modi and Adith Swaminathan and Ching-An Cheng},
  title = {{Formalizing Learning from Language Feedback with Provable Guarantees}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=LkTtWmZaxq},
}
Figure