Papers
Topics
Authors
Recent
Search
2000 character limit reached

UCBZero: Reward-Free Exploration in RL

Updated 20 November 2025
  • UCBZero is a task-agnostic exploration algorithm for RL that collects reward-free trajectories and uses UCB bonuses in a two-phase protocol to build near-optimal policies.
  • It achieves sample complexity of O((log N + ι) H⁵SA/ε²) with a provable logarithmic dependence on the number of tasks, matching information-theoretic lower bounds.
  • The algorithm decouples exploration from reward signals, enabling efficient policy optimization across diverse tasks and robust model estimation from episodic MDPs.

UCBZero is a task-agnostic exploration algorithm designed for reinforcement learning (RL) in the absence of reward supervision during exploration. It operates within a tabular, fixed-horizon, episodic Markov Decision Process (MDP) and enables efficient reuse of exploration data to generate near-optimal policies for multiple tasks with different, a priori unknown reward functions. UCBZero achieves near-optimal sample complexity in terms of the number of exploration episodes required to guarantee ϵ\epsilon-optimality simultaneously across NN tasks, with a provably unavoidable logarithmic dependence on NN (Zhang et al., 2020).

1. Task-Agnostic RL: Problem Formulation

The setting is a finite, tabular, episodic MDP defined by (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r): S\mathcal{S} is the state space (S=S|\mathcal{S}|=S), A\mathcal{A} is the action space (A=A|\mathcal{A}|=A), HH is the horizon, Ph(s,a)P_h(\cdot|s,a) is the transition kernel at step NN0, and NN1 is the reward distribution, with all episodes beginning at a fixed NN2.

Learning proceeds in two distinct phases:

  • Exploration phase: Over NN3 episodes, the agent explores the MDP without reward feedback, collecting state-action trajectories NN4.
  • Policy-optimization phase: Presented with NN5 tasks, each with an associated unknown reward function NN6, trajectories are augmented by sample rewards to form NN7. The objective is to identify, for each NN8, a policy NN9 such that with high probability (NN0):

NN1

for all NN2 tasks, by using as few exploration episodes NN3 as possible.

2. UCBZero Algorithmic Principles and Workflow

UCBZero executes an exploration-first, optimization-after protocol based on optimism-driven Q-learning with upper confidence bound (UCB) bonuses.

Notation

  • NN4: Number of tasks
  • NN5: Number of exploration episodes
  • NN6: Confidence parameter
  • NN7, used in the bonus definition
  • NN8: Hoeffding-style UCB bonus
  • NN9: Learning rate
  • (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)0: Q-value at step (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)1, optimistic initialization to (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)2
  • (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)3: State-action visitation count

Pseudocode Outline

Exploration Phase (Zero-reward Q-learning with UCB bonuses)

  • Initialize (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)4 and (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)5 for all (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)6
  • For (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)7 to (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)8 exploration episodes:

    • For (S,A,H,P,r)(\mathcal{S}, \mathcal{A}, H, P, r)9 to S\mathcal{S}0:
    • Choose S\mathcal{S}1
    • Observe next state S\mathcal{S}2
    • S\mathcal{S}3; update count
    • S\mathcal{S}4
    • Update:

    S\mathcal{S}5 - No rewards are used; exploration is driven by the bonus.

Policy-Optimization Phase (for each task S\mathcal{S}6)

  • For S\mathcal{S}7: Input S\mathcal{S}8
  • Initialize S\mathcal{S}9 and S=S|\mathcal{S}|=S0
  • For S=S|\mathcal{S}|=S1 to S=S|\mathcal{S}|=S2:

    • For S=S|\mathcal{S}|=S3 to S=S|\mathcal{S}|=S4:
    • S=S|\mathcal{S}|=S5
    • S=S|\mathcal{S}|=S6
    • Update:

    S=S|\mathcal{S}|=S7

  • Output: Uniform mixture over the sequence of greedy policies.

Explanation

In the exploration phase, the algorithm uses only the confidence bonus S=S|\mathcal{S}|=S8, instilling optimism. In the policy-optimization phase, sampled rewards plus a standard bonus S=S|\mathcal{S}|=S9 are used, recovering standard Q-learning with optimism for each task (Zhang et al., 2020).

3. Theoretical Sample Complexity and Optimality Results

UCBZero's theoretical guarantees quantify both its efficiency and the inherent difficulty of the task-agnostic RL problem.

Main Results

Guarantee Type Episodes Required Dependence on A\mathcal{A}0
Upper Bound A\mathcal{A}1 A\mathcal{A}2
Lower Bound A\mathcal{A}3 A\mathcal{A}4 (provably necessary)
  • Upper Bound: With probability at least A\mathcal{A}5, after A\mathcal{A}6 exploration episodes, UCBZero delivers A\mathcal{A}7-optimal policies for all A\mathcal{A}8 tasks.
  • Lower Bound: Any A\mathcal{A}9-correct algorithm must use at least A=A|\mathcal{A}|=A0 episodes. The logarithmic dependence on A=A|\mathcal{A}|=A1 is shown to be information-theoretically unavoidable.

Notation: A=A|\mathcal{A}|=A2; A=A|\mathcal{A}|=A3 denotes an asymptotic lower bound up to constants (Zhang et al., 2020).

4. Technical Proof Sketch: Regret Decomposition and Coverage

The sample complexity results rest on principles of optimism, Q-regret decomposition, and careful control of empirical value estimates.

  • Optimism & Q-Regret Decomposition: Define a pseudo-MDP with zero rewards to compare Q-updates under pure exploration (A=A|\mathcal{A}|=A4) and per-task learning (A=A|\mathcal{A}|=A5). Using induction and Azuma–Hoeffding concentration:

A=A|\mathcal{A}|=A6

where A=A|\mathcal{A}|=A7 is null under the zero-reward MDP.

  • Aggregate Regret Control: The aggregate Q-regret across episodes,

A=A|\mathcal{A}|=A8

is upper-bounded by A=A|\mathcal{A}|=A9. By the regret-difference lemma, this formally applies independently across all HH0 tasks.

  • Implication: Averaging over HH1 episodes and solving for HH2, the bound HH3 emerges. This matches the lower bound up to order, apart from the HH4 exponent gap (Zhang et al., 2020).

5. Reward-Free RL: The Known-Reward Variant

When the reward functions HH5 for the HH6 tasks are known at the planning stage (the reward-free RL framework), the sample complexity becomes independent of HH7.

  • Key Result: By covering the reward function space with an HH8-net, the complexity reduces to:

HH9

for all policies. The explicit Ph(s,a)P_h(\cdot|s,a)0-dependence disappears.

  • Conceptual Mechanism: If two reward functions differ by at most Ph(s,a)P_h(\cdot|s,a)1 on every transition, then a single near-optimal policy suffices for both (by the Simulation Lemma). Discretizing the reward space yields an effective task number Ph(s,a)P_h(\cdot|s,a)2, with Ph(s,a)P_h(\cdot|s,a)3. This permits absorbing Ph(s,a)P_h(\cdot|s,a)4 into Ph(s,a)P_h(\cdot|s,a)5 for description length scaling (Zhang et al., 2020).

6. Coverage, Model Estimation, and Practical Behavior

  • Visitation Guarantee: UCBZero offers a uniform lower bound on (state, action, timestep) coverage; every triplet is visited at least

Ph(s,a)P_h(\cdot|s,a)6

times, where Ph(s,a)P_h(\cdot|s,a)7, ensuring sufficient empirical coverage.

  • Transition Model Estimation: From zero-reward trajectories, it is possible to estimate a transition model Ph(s,a)P_h(\cdot|s,a)8 such that

Ph(s,a)P_h(\cdot|s,a)9

after NN00 episodes, validating the use of any off-policy or batch RL method on the collected data.

  • Conceptual Insights: UCBZero demonstrates that a combination of exhaustive exploration (without using reward signals) and Q-learning optimism suffices to match the best-reported sample efficiency for task-specific exploration, up to a NN01 factor. This NN02 is proved to be unavoidable when optimizing for NN03 tasks from a single pool of exploration data.

These insights establish UCBZero as a model-free, UCB-based approach for efficient, task-agnostic exploration, enabling a single data collection effort to be leveraged across multiple downstream RL tasks without reward-guided exploration and with near-optimal sample complexity in all core problem dimensions (Zhang et al., 2020).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

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

Follow Topic

Get notified by email when new papers are published related to UCBZero.