Papers
Topics
Authors
Recent
Search
2000 character limit reached

Chain of Uncertain Rewards with Large Language Models for Reinforcement Learning

Published 15 Apr 2026 in cs.LG, cs.AI, cs.CL, cs.MA, and cs.RO | (2604.13504v1)

Abstract: Designing effective reward functions is a cornerstone of reinforcement learning (RL), yet it remains a challenging and labor-intensive process due to the inefficiencies and inconsistencies inherent in traditional methods. Existing methods often rely on extensive manual design and evaluation steps, which are prone to redundancy and overlook local uncertainties at intermediate decision points. To address these challenges, we propose the Chain of Uncertain Rewards (CoUR), a novel framework that integrates LLMs to streamline reward function design and evaluation in RL environments. Specifically, our CoUR introduces code uncertainty quantification with a similarity selection mechanism that combines textual and semantic analyses to identify and reuse the most relevant reward function components. By reducing redundant evaluations and leveraging Bayesian optimization on decoupled reward terms, CoUR enables a more efficient and robust search for optimal reward feedback. We comprehensively evaluate CoUR across nine original environments from IsaacGym and all 20 tasks from the Bidexterous Manipulation benchmark. The experimental results demonstrate that CoUR not only achieves better performance but also significantly lowers the cost of reward evaluations.

Authors (1)

Summary

  • The paper introduces the CoUR framework to decompose and refine reward functions in RL by quantifying uncertainty in generated reward components.
  • The paper employs a three-stage process—LLM-based generation, Code Uncertainty Quantification, and Bayesian Decoupling Optimization—to reduce computational costs and improve convergence.
  • The paper demonstrates notable performance gains on IsaacGym and Bidexterous Manipulation tasks, underscoring the benefits of uncertainty-aware, modular reward design.

Chain of Uncertain Rewards with LLMs for Reinforcement Learning

Motivation and Challenges in Reward Design

Designing reward functions in RL remains a bottleneck, primarily due to the manual and trial-and-error nature of the process, which yields redundancy, inconsistency, and high computational costs. Traditional methods treat reward functions as monolithic structures, rarely addressing local uncertainties at intermediate decision points or decomposing complex objectives. Recent LLM-driven approaches (L2R, Eureka, Text2Reward) enable automated and interpretable reward design but fail to mitigate local ambiguities and component redundancy, leading to suboptimal task performance and inefficient computation. Figure 1

Figure 1: LLM-based reward function optimization suffers from local uncertainties, redundancy, and computational inefficiency that the Chain of Uncertain Rewards framework aims to resolve.

Chain of Uncertain Rewards Framework

The Chain of Uncertain Rewards (CoUR) framework introduces a structured pipeline to streamline reward design and optimization in RL. The pipeline actively quantifies uncertainty in reward code and decouples reward components for independent optimization. The framework operates in three stages:

  1. LLM-Based Reward Generation: Given a task description, an LLM synthesizes a multi-term reward function, leveraging language understanding and code generation capabilities.
  2. Code Uncertainty Quantification (CUQ): CUQ analyzes generated reward components through textual and semantic similarity (employing string matching and CodeBERT-style embeddings), assigning uncertainty scores (U-scores) to ambiguous or redundant terms. Components with high U-scores are prioritized for alternative generation and clarification, ensuring robustness and interpretability.
  3. Bayesian Decoupling Optimization (BDO): Reward terms are decoupled, and their hyperparameters are optimized independently using Bayesian optimization. BDO exploits U-scores to guide global search, prioritizing highly uncertain components for exploration, thus accelerating convergence and reducing computational, rollout, and evaluation overhead. Figure 2

    Figure 2: The CoUR pipeline integrates LLM-based reward generation, CUQ-driven component refinement, and decoupled Bayesian optimization for robust RL reward design.

Technical Methodology

RL tasks are formalized as MDPs; reward generation maps task descriptions to mathematical expressions controlling agent behavior. The CoUR pipeline decomposes reward functions as R(s,a)=iαiRi(s,a)R(s, a) = \sum_{i} \alpha_i R_i(s, a), with αi\alpha_i as component weights. CUQ utilizes string and embedding-based metrics to determine U(Ri)=1max(Stext,Ssemantic)U(R_i) = 1 - \max(S_{\text{text}}, S_{\text{semantic}}), refining high-UU components via LLMs.

BDO separately optimizes each reward term's hyperparameters using Gaussian Process-based Bayesian search, tracing objective functions J(Ri)J(R_i) and recombining optimized terms for final reward synthesis. The integration of CUQ and BDO allows guided exploration and global search efficiency, as ambiguity-driven prioritization reduces redundant code evaluation.

Empirical Evaluation

CoUR is validated across nine IsaacGym environments and twenty Bidexterous Manipulation benchmark tasks. Metrics include human normalized scores and binary success rates. CoUR delivers strong numerical improvements, outperforming Text2Reward, Eureka, L2R, sparse and human-engineered baselines:

  • IsaacGym: CoUR achieves a normalized score of 5.62, compared to 2.78 (Text2Reward), 2.66 (Eureka), and 1.00 (human baseline).
  • Bidexterous Manipulation: CoUR scores a 65.63% success rate versus 56.87% (Text2Reward) and 45.90% (human baseline).

Ablation studies address three critical questions:

  • Decoupling and Optimization: Decoupled BDO improves normalized score and success rate up to 12.4% and 8.7% respectively over monolithic optimization.
  • Efficiency of CUQ: CUQ reduces training iterations by 20%, focusing evaluation on high-uncertainty reward terms.
  • BO vs. LLM-only: Bayesian Optimization converges 35% faster and requires 25% less computation than direct LLM-based hyperparameter tuning.

Sampling step analysis in BDO shows performance saturation at 5 steps, balancing computational cost and reward effectiveness.

Practical and Theoretical Implications

CoUR demonstrates that modular, uncertainty-aware reward design is scalable and generalizable across diverse robotic morphologies and manipulation scenarios. The decomposition and prioritization strategy allow RL researchers to automate complex reward specification, minimize redundant evaluation, and systematically refine ambiguous or conflicting reward terms. The incorporation of uncertainty quantification in reward design sets a precedent for interpretable RL pipeline engineering, potentially advancing safe deployment in high-stakes environments and accelerating experimentation cycles.

On a theoretical front, CoUR highlights the synergy between LLMs, uncertainty quantification, and Bayesian optimization, opening new avenues in hierarchical RL reward construction and automated RL pipeline design. It suggests future integration of advanced LLM reasoning (e.g., Chain-of-Thought, semantic deliberation), structured hyperparameter search, and, potentially, self-adaptive reward shaping via continuous uncertainty tracking.

Conclusion

The Chain of Uncertain Rewards delivers a systematic, robust framework for automated reward function design in RL, combining LLM-based synthesis, uncertainty quantification, and decoupled Bayesian optimization. Its state-of-the-art empirical performance, efficiency improvements, and modular methodology hold broad implications for scalable and interpretable RL solutions. The approach provides a foundation for further research in uncertainty-aware reward shaping, component-level optimization, and automatic pipeline design in reinforcement learning.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

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

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.