Reinforcement Learning (RL) is notoriously "sample-hungry," frequently requiring millions of interactions with an environment to master even simple tasks. While practitioners have long relied on expert demonstrations to "warm start" RL agents, the theoretical community has struggled to quantify exactly how much this prior data accelerates learning.
The paper "Demonstration-Regularized RL" provides a rigorous mathematical answer to this open question. By employing KL-regularization to tether an online agent to a behavior-cloned expert, the authors demonstrate that the number of online samples required to find an optimal policy shrinks in direct proportion to the amount of expert data available.
The Exploration-Exploitation Challenge
The central hurdle in RL is the exploration-exploitation trade-off. In environments with sparse rewards, an agent might wander aimlessly for eons before stumbling upon a successful outcome. Expert demonstrations—trajectories of an expert performing the task, often without explicit reward labels—offer a logical remedy.
However, existing theoretical work typically falls into two distinct silos: purely offline RL (learning from a fixed dataset without environment interaction) and purely online RL (learning from scratch through trial and error). The "middle ground"—using a fixed set of demonstrations to accelerate online learning—is widely used in practice, such as in training Large Language Models via Reinforcement Learning from Human Feedback (RLHF). Yet, it has lacked tight theoretical bounds. This paper asks a fundamental question: Exactly how many fewer online samples are needed if an agent has access to $N^E$ expert trajectories?
A Two-Stage Regularized Approach
To address this, the authors propose a two-stage framework called Demonstration-Regularized RL:
- Behavior Cloning (BC): First, the agent utilizes the $N^E$ expert demonstrations to learn a reference policy ($\pi^{BC}$) via Maximum Likelihood Estimation.
- KL-Regularized Online Learning: The agent then interacts with the environment. Instead of strictly maximizing the cumulative reward, it maximizes a "regularized" objective: $$\text{Reward} - \lambda \cdot \text{KL}(\text{Current Policy} \| \pi^{BC})$$
This KL penalty discourages the agent from straying too far from the expert's behavior, effectively guiding its exploration. To solve this regularized objective, the authors introduce two novel algorithms: UCBVI-Ent+ for Finite MDPs (discrete states and actions) and LSVI-UCB-Ent for Linear MDPs (where state-action values are represented as linear combinations of features).
Crucially, this approach avoids "pessimism injection"—a common but computationally heavy technique in offline RL that involves being overly conservative about unvisited states. Instead, the KL-penalty naturally and efficiently handles uncertainty.
Key Insights and Theoretical Guarantees
The paper establishes several foundational insights, most notably the $1/N^E$ Scaling. The online sample complexity scales inversely with $N^E$, meaning expert data fundamentally changes the rate at which the agent learns online, rather than just providing a constant head start.
The authors quantify the sample complexity—the number of interactions needed to reach an $\varepsilon$-optimal policy—across different environments:
- Finite MDPs: The complexity is bounded by $\widetilde{\mathcal{O}}\left(\frac{\text{Poly}(S, A, H)}{\varepsilon^2 N^E}\right)$, where $S$ is the number of states, $A$ is the number of actions, and $H$ is the horizon.
- Linear MDPs: The complexity is bounded by $\widetilde{\mathcal{O}}\left(\frac{\text{Poly}(d, H)}{\varepsilon^2 N^E}\right)$, where $d$ is the feature dimension. Achieving these "fast rates" in linear settings is technically demanding, but the authors prove that KL-regularization provides the necessary structure.
- Behavior Cloning: The BC step itself is proven to converge at a rate of $\mathcal{O}(1/N^E)$, faster than the standard $\mathcal{O}(1/\sqrt{N^E})$ often seen in imitation learning.
Furthermore, the paper establishes that RLHF is not inherently harder than standard RL. By modeling human feedback using the Bradley-Terry-Luce (BTL) model, they demonstrate that demonstration-regularized RLHF is provably efficient, matching the rates of standard RL with demonstrations, provided the preference data is collected around a good behavior-cloned policy.
Limitations and Future Directions
While the theoretical guarantees are robust, they rely on certain assumptions. The theory assumes the expert is "close to optimal"; if demonstrations come from a mediocre source, KL-regularization might hinder the agent. Additionally, while Linear MDPs are a step up from tabular models, extending these proofs to general function approximation (like deep neural networks) remains an open challenge. Finally, the RLHF results are currently limited to pairwise comparisons and "white-box" preference models, paving the way for future research into more complex ranking feedback and black-box human behavior modeling.
Summary updated