SELAUR: Self Evolving LLM Agent via Uncertainty-aware Rewards

Dengjia Zhang, Xiaoou Liu, Lu Cheng, Yaqing Wang, Kenton Murray, Hua Wei · DOI

TL;DR

SELAUR (Self Evolving LLM Agent via Uncertainty-aware Rewards) is a reinforcement learning framework that uses an LLM's internal "confusion" as a training signal. By integrating token-level uncertainty into reward design, the system turns failed trajectories into valuable learning opportunities and helps agents escape repetitive, suboptimal decision loops.

What Problem Does This Paper Address?

Training LLMs to act as autonomous agents (e.g., browsing the web or cleaning a virtual house) is notoriously difficult because of the "sparse reward" problem. In standard Reinforcement Learning (RL), an agent often only receives feedback at the very end of a long sequence of actions—either it succeeded or it failed.

If an agent fails a 50-step task, a binary reward of "0" doesn't tell the model which of those 50 steps was the mistake. Furthermore, most RL approaches discard failed attempts entirely, wasting potentially useful data. The authors argue that the model’s own intrinsic uncertainty—how hesitant it was when choosing a specific word or action—is a goldmine of information that can provide "dense" feedback even when the final outcome is a failure.

Methods

SELAUR introduces a three-stage pipeline to refine agent behavior:

  1. Uncertainty Estimation: Instead of relying on a single metric, SELAUR combines three complementary token-level measures:
  2. Entropy: Measures the overall spread of the probability distribution (global "sharpness").
  3. Least Confidence: Focuses only on the probability of the most likely token.
  4. Margin: Looks at the gap between the top two token probabilities (detecting ambiguity between two close choices).
  5. Hierarchical Aggregation: These token-level signals are averaged to create a Step-level score. These are then combined into a Trajectory-level score using exponential discounting, which places higher importance on later steps that often determine the final success of a task.
  6. Failure-aware Reward Reshaping: This is the core innovation.
  7. If the agent succeeds, it receives standard rewards.
  8. If the agent fails, SELAUR injects the uncertainty signal back into the reward function. This encourages the agent to revisit and explore states where it previously felt "unsure," effectively treating its own hesitation as a prompt for further exploration rather than a dead end.

Datasets

The authors evaluated SELAUR on two popular interactive benchmarks:

  • ALFWorld: A synthetic environment where agents must follow multi-step instructions to complete household tasks (e.g., "put a chilled wine bottle on the table"). It tests compositional reasoning.
  • WebShop: A simulated e-commerce site where agents must navigate search results and product pages to find items matching a specific user intent (e.g., "find a machine-washable wine-colored top under $40").

Key Insights and Ideas

  • Failures are Learning Opportunities: By assigning a non-zero, uncertainty-based reward to failed trajectories, SELAUR prevents the "gradient vanishing" that happens when agents simply fail repeatedly and learn nothing from it.
  • The Synergy of Metrics: The ablation studies showed that using Entropy, Least Confidence, and Margin together outperforms using any single one. They capture different "zones" of uncertainty—some are better at detecting total confusion, while others detect specific ambiguity between two likely actions.
  • Preventing "Uncertainty Collapse": A common failure mode for LLM agents is getting stuck in a loop (e.g., clicking "back" and "forward" repeatedly). SELAUR identifies these loops through high uncertainty and provides a reward signal that helps the agent "break out" and try a different path.

Key Results

SELAUR was tested using Qwen2.5 (1.5B and 7B) models and compared against strong baselines like PPO and GRPO.

  • ALFWorld: On the 7B model, SELAUR achieved a 96.87% success rate, outperforming the previous state-of-the-art baseline, GiGPO (94.53%), and significantly beating standard PPO (71.09%).
  • WebShop: SELAUR reached a 79.68% success rate, compared to 71.87% for PPO. It also achieved the highest "Task Score" (89.35), indicating better alignment with user intent even when the exact product wasn't purchased.
  • Efficiency: The method is particularly effective for smaller models. The 1.5B version of SELAUR outperformed the 7B versions of several baselines, suggesting that uncertainty-aware rewards can compensate for lower raw parameter counts.

Limitations and Future Work

  • Modality: The current framework is text-based. The authors suggest that future work should extend SELAUR to vision-centric and multimodal tasks, where uncertainty might manifest differently (e.g., uncertainty about an object in an image).
  • Observation Complexity: The environments used (ALFWorld/WebShop) have relatively structured observations. Testing SELAUR in high-dimensional, "noisy" real-world environments remains a challenge.
  • Computational Overhead: While the paper notes the efficiency of the RL approach, calculating multiple uncertainty metrics at every decoding step adds a layer of computational cost that could be optimized.

Summary updated

BibTeX
@misc{zhang2026selaur,
  author = {Dengjia Zhang and Xiaoou Liu and Lu Cheng and Yaqing Wang and Kenton Murray and Hua Wei},
  title = {{SELAUR: Self Evolving LLM Agent via Uncertainty-aware Rewards}},
  year = {2026},
  eprint = {2602.21158},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.21158},
}
Figure