NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimal Horizon-Free Reward-Free Exploration for Linear Mixture MDPs

Junkai Zhang, Weitong Zhang, Quanquan Gu · OpenReview

Abstract

We study reward-free reinforcement learning (RL) with linear function approximation, where the agent works in two phases: (1) in the exploration phase, the agent interacts with the environment but cannot access the reward; and (2) in the planning phase, the agent is given a reward function and is expected to find a near-optimal policy based on samples collected in the exploration phase. The sample complexities of existing reward-free algorithms have a polynomial dependence on the planning horizon, which makes them intractable for long planning horizon RL problems. In this paper, we propose a new reward-free algorithm for learning linear mixture Markov decision processes (MDPs), where the transition probability can be parameterized as a linear combination of known feature mappings. At the core of our algorithm is uncertainty-weighted value-targeted regression with exploration-driven pseudo-reward and a high-order moment estimator for the aleatoric and epistemic uncertainties. When the total reward is bounded by 1, we show that our algorithm only needs to explore $\tilde O( d^2\varepsilon^{-2})$ episodes to find an $\varepsilon$-optimal policy, where $d$ is the dimension of the feature mapping. The sample complexity of our algorithm only has a polylogarithmic dependence on the planning horizon and therefore is "horizon-free". In addition, we provide an $\Omega(d^2\varepsilon^{-2})$ sample complexity lower bound, which matches the sample complexity of our algorithm up to logarithmic factors, suggesting that our algorithm is optimal.

Introduction

In many real-world Reinforcement Learning (RL) scenarios, the reward function is not fixed or known a priori. An agent might need to explore an environment to understand its dynamics before being assigned specific tasks. This paradigm, known as Reward-Free Exploration, consists of an initial exploration phase (collecting data without rewards) followed by a planning phase (finding an optimal policy for a given reward function using the collected data).

A significant challenge in this field is the "curse of the horizon." Most existing algorithms for reward-free exploration exhibit a sample complexity that grows polynomially with the planning horizon $H$ (e.g., $H^3$ or $H^5$). For long-horizon tasks, such as complex robotics or long-term strategic planning, these requirements become prohibitive. This paper, presented at ICML 2023, addresses this bottleneck by introducing the first minimax optimal, "horizon-free" algorithm for linear mixture Markov Decision Processes (MDPs).

The Linear Mixture MDP Framework

The authors focus on Linear Mixture MDPs, a structural class where the transition probability $\mathbb{P}(s'|s,a)$ is represented as a linear combination of known feature mappings $\phi(s'|s,a)$. Specifically, $\mathbb{P}(s'|s,a) = \langle \phi(s'|s,a), \theta^* \rangle$, where $\theta^*$ is an unknown parameter vector. This structure allows for powerful function approximation while maintaining theoretical tractability.

Methodology: HF-UCRL-RFE++

To achieve horizon-free performance, the authors propose HF-UCRL-RFE++. The algorithm integrates several sophisticated techniques to decouple the exploration difficulty from the trajectory length:

1. Value-Targeted Regression (VTR)

The algorithm employs a model-based approach using VTR to estimate the unknown parameter $\theta^*$. By observing transitions, the agent refines its estimate of the environment's dynamics.

2. Exploration-Driven Pseudo-Rewards

Since the agent receives no external reward during the exploration phase, it must self-generate incentives. HF-UCRL-RFE++ constructs pseudo-rewards based on the statistical uncertainty of its current model. These rewards guide the agent toward state-action pairs that are poorly understood, ensuring comprehensive coverage of the environment.

3. High-Order Moment Estimation (HOME)

The most critical innovation is the High-Order Moment Estimation technique. Standard RL algorithms typically track only the mean or variance of value functions. However, to achieve horizon-free bounds, one must control the uncertainty more tightly. HOME recursively estimates higher-order moments (up to $M \approx \log H$) of the value function. This allows the algorithm to apply sharper concentration inequalities, effectively managing both:

  • Aleatoric Uncertainty: The inherent randomness in the environment's transitions.
  • Epistemic Uncertainty: The uncertainty stemming from a lack of data.

4. Bounded Total Reward Assumption

The analysis assumes the total accumulated reward in any episode is bounded by 1. This normalization is a standard convention in horizon-free literature, shifting the focus from the scale of the rewards to the statistical complexity of the exploration process.

Key Results and Theoretical Optimality

The paper provides a rigorous theoretical analysis of the sample complexity, yielding two major findings:

  1. Upper Bound: The HF-UCRL-RFE++ algorithm requires $\tilde{O}(d^2 \epsilon^{-2})$ episodes to find an $\epsilon$-optimal policy. Crucially, the dependence on the horizon $H$ is only polylogarithmic ($\text{polylog}(H)$), making it truly horizon-free.
  2. Lower Bound: The authors construct a "hard" linear mixture MDP and prove a lower bound of $\Omega(d^2 \epsilon^{-2})$.

Because the upper and lower bounds match (up to logarithmic factors), the proposed algorithm is minimax optimal. This demonstrates that for linear mixture MDPs, the fundamental difficulty of exploration is determined by the dimensionality of the features ($d$), not the length of the task ($H$).

Comparison with Prior Work

Previous state-of-the-art algorithms for this setting often required sample complexities such as $O(H^3 d(H+d) \epsilon^{-2})$. By removing the polynomial dependence on $H$, this work represents a massive improvement in efficiency. Even in the "vanilla" setting where rewards are bounded by $H$ rather than 1, the complexity of this approach scales as $\tilde{O}(H^2 d^2 \epsilon^{-2})$, which still outperforms prior results by removing restrictive requirements on the relationship between $d$ and $H$.

Conclusion and Future Directions

This research provides a definitive answer to the feasibility of horizon-free exploration in linear mixture MDPs. By leveraging high-order moment estimation, the authors show that long-term planning does not inherently require exponentially or even polynomially more data, provided the underlying transition structure is linear.

While this is a major theoretical milestone, several avenues for future work remain:

  • Computational Efficiency: The algorithm relies on an optimization oracle to solve for the best policies during exploration, which can be computationally intensive in practice.
  • General Function Approximation: Extending these horizon-free results to non-linear structures, such as neural networks or general function classes with low complexity (e.g., low Bellman eluder dimension), is a promising next step.
  • Time-Variant Systems: Adapting these techniques to environments where transitions change over time could further broaden the applicability of these findings.

Summary updated

BibTeX
@inproceedings{zhang2023optimal,
  author = {Junkai Zhang and Weitong Zhang and Quanquan Gu},
  title = {{Optimal Horizon-Free Reward-Free Exploration for Linear Mixture MDPs}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=5WGXswh2ZH},
}
Figure