Overview
This paper bridges a major gap between offline and online Reinforcement Learning (RL) by demonstrating that density ratio modeling—a powerful analytical tool previously reserved for offline settings—can be successfully adapted for online exploration. The authors introduce GLOW, the first algorithm to achieve sample-efficient online learning using density ratios, alongside HyGLOW, a computationally efficient variant designed for "hybrid" settings where agents have access to both logged offline data and live online interaction.
Introduction & Motivation
In RL, research is typically bifurcated into offline RL (learning from a fixed, pre-collected dataset) and online RL (learning actively by interacting with an environment).
Recently, offline RL has widely embraced "density ratio modeling" (also known as marginalized importance weights). This technique is highly favored because it allows for learning under relatively weak assumptions. Specifically, it bypasses the need for "Bellman completeness," a strict mathematical condition that is notoriously difficult to satisfy in practice when using expressive function approximators like neural networks.
However, density ratios have been conspicuously absent from online RL. The intuition behind this absence is straightforward: a density ratio compares the distribution of where an agent currently is to where it wants to be. In offline RL, the agent has a fixed dataset distribution to serve as a stable denominator. In online RL, the data distribution is constantly shifting as the agent explores, making these ratios potentially infinite, undefined, or highly unstable.
This paper asks a fundamental question: Can online RL benefit from the same flexible modeling assumptions that density ratios brought to offline RL?
Proposed Methods: GLOW and HyGLOW
The authors tackle this challenge by introducing two primary algorithms and a novel meta-algorithm:
- GLOW (Global Optimism via Weight Function Realizability): This is the core online algorithm. It operates on the principle of "optimism in the face of uncertainty." GLOW maintains a "version space" (a set of plausible models) and selects the one that predicts the highest possible reward. The breakthrough lies in how it defines this version space: it uses clipped density ratios to measure Bellman error. By truncating the ratios, the algorithm prevents "exploding" weights from destabilizing the learning process during the early stages of exploration.
- $H_2O$ (Hybrid-to-Offline Reduction): A meta-algorithm that acts as a black-box reduction. It allows practitioners to take an existing offline RL algorithm and "lift" it into a hybrid setting (where some offline data is available, but online collection is also permitted) by repeatedly calling the offline solver on a mixture of historical and newly collected data.
- HyGLOW: A specific instantiation of $H_2O$ designed to be computationally efficient. While GLOW serves as a theoretical "existence proof" that is computationally intractable, HyGLOW provides a concrete path toward practical implementation in hybrid RL scenarios.
The key structural assumption underpinning these methods is coverability. This assumes that there exists some distribution that covers the state space well, even if the learning agent does not initially know what that distribution is.
Theoretical Scope and Environments
Because this is a theoretical contribution, the authors do not benchmark on standard empirical datasets (e.g., MuJoCo or Atari). Instead, they provide rigorous mathematical guarantees for broad classes of Markov Decision Processes (MDPs), including:
- Tabular MDPs: Small, discrete environments.
- Block MDPs: Environments with rich, high-dimensional observations but a latent discrete state space.
- Low-rank/Linear MDPs: Environments where transition dynamics and rewards can be represented as linear combinations of known features.
The authors use these classes to demonstrate that their "coverability" and "realizability" assumptions are naturally satisfied in many standard RL theoretical benchmarks.
Core Theoretical Insights
- Unification through Coverability: The paper suggests that the theoretical divide between online and offline RL is narrower than it appears. "Coverability" serves as the common thread; if a state space can be covered, density ratios can be leveraged to find the optimal policy, regardless of whether the agent starts with the data or must gather it autonomously.
- The Power of Truncation: The crucial mechanism enabling online density ratios is clipping. By intentionally ignoring the parts of the density ratio that are excessively large (which represent regions the agent hasn't explored yet), the agent can focus on refining its knowledge of the "known" world while using optimism to safely push into the "unknown."
- Averaging Out the Risk: While a density ratio might be dangerously large in a single round, the authors prove that on average across all rounds of exploration, the cumulative error introduced by clipping remains bounded and small.
Main Results
- Sample Efficiency: The authors prove that GLOW achieves a sample complexity of $\tilde{O}(H^2 C_{cov} / \epsilon^2)$, where $H$ is the horizon and $C_{cov}$ is the coverability coefficient. This matches the best-known theoretical rates for online RL, but under much weaker and more flexible assumptions.
- Regret Bounds: GLOW is shown to achieve $\sqrt{T}$ regret, the theoretical "gold standard" for how quickly an agent's performance must converge to the optimum over $T$ steps.
- Hybrid Efficiency: HyGLOW is shown to be both statistically efficient and computationally tractable, provided the underlying offline solver it calls is also efficient.
Limitations and Future Directions
- Computational Complexity of GLOW: While GLOW is statistically efficient (requiring relatively few samples to learn), it is computationally intractable because it requires solving a complex global optimization problem over a broad function class.
- Realizability Assumptions: The paper assumes "realizability"—meaning the true value function and true density ratios actually live within the function classes provided to the algorithm. While standard in theoretical RL, this remains a strong requirement for complex real-world tasks.
- Closing the Gap: For "pure" policy classes, the current sample complexity achieved is $1/\epsilon^4$. The authors note that improving this bound to $1/\epsilon^2$ remains an open theoretical challenge.
- Deep RL Implementation: The most exciting next step is to translate these theoretical algorithms into practical Deep RL methods, utilizing neural networks to approximate both the density ratios and value functions.
Summary updated