Is Value Learning Really the Main Bottleneck in Offline RL?

Seohong Park, Kevin Frans, Sergey Levine, Aviral Kumar

TL;DR

Conventional wisdom blames "broken" value functions for the poor performance of offline reinforcement learning (RL). This paper flips the script, revealing that the real bottlenecks are often the policy extraction method and test-time generalization. By switching to gradient-based extraction and using simple test-time adjustments, the authors show we can significantly close the gap between offline RL and imitation learning.

What Problem Does This Paper Address?

In theory, offline RL is the "holy grail" of data-driven control: it should be able to learn an optimal policy from a pile of suboptimal, "noisy" experience. In practice, however, it often loses to simple imitation learning (IL) on expert data.

Researchers have long assumed the culprit is the value function. Because offline RL relies on Temporal Difference (TD) learning—which is notoriously unstable and prone to overestimation on out-of-distribution actions—the community has spent years trying to "fix" value learning. This paper asks a provocative question: What if the value function is actually fine, and we’re just bad at using it?

The authors investigate three potential bottlenecks:

  1. Imperfect Value Estimation: The value function itself is wrong.
  2. Imperfect Policy Extraction: We have a good value function but cannot turn it into a good policy.
  3. Imperfect Generalization: The policy works on training data but fails on the specific states the agent visits during a real test run.

Methods

The authors conduct a massive empirical study across diverse environments using "data-scaling matrices." They decouple value learning from policy learning to see how each scales with more data.

Data-scaling matrices comparing policy extraction methods across various environments.

The Comparison

They compare three popular policy extraction methods:

  • AWR (Advantage-Weighted Regression): A "weighted behavioral cloning" approach that stays strictly within the "convex hull" of the dataset.
  • DDPG+BC: A gradient-based approach that "hill-climbs" the value function while staying near the data.
  • SfBC (Sampling-filtered BC): A method that samples many actions and picks the one with the highest predicted value.

The Solutions

To address the generalization bottleneck, they propose two "on-the-fly" techniques:

  • OPEX (On-the-fly Policy EXtraction): At test time, after the policy picks an action, you take a single gradient step to "nudge" that action in the direction of higher value according to the (frozen) Q-function.
  • TTT (Test-Time Training): You continue to update the policy's neural network weights during evaluation rollouts to better align with the value function on the specific states being visited.

Datasets

The study utilizes a wide array of standard and challenging benchmarks, including D4RL (locomotion and navigation), ExORL (unsupervised exploratory data), Kitchen (robotic manipulation), and Adroit (high-dimensional hand manipulation). Crucially, they experiment with varying levels of data coverage (how much of the state space is seen) versus data optimality (how "expert" the data is).

Key Insights and Ideas

  • Policy Extraction is not an Afterthought: The choice of extraction algorithm often matters more than the value learning objective. DDPG+BC consistently outperformed AWR, even when both used the exact same value function.
  • AWR's Hidden Pathology: Weighted behavioral cloning (like AWR) has a "mode-covering" nature. It struggles to leverage the value function effectively and is highly prone to overfitting when you try to make it more aggressive with high temperatures.
  • The Generalization Gap is the Real Killer: Agents often learn a near-perfect policy for the states in the training set, but as soon as they are deployed, they drift into "novel" states where the policy hasn't generalized well.
Conceptual diagram illustrating how evaluation trajectories drift out of the training data distribution.
  • Coverage > Optimality: For offline RL, having "messy" data that covers a wide area is often better than having "clean" expert data that only covers a narrow path. High coverage allows the value function to provide a better "map" for generalization.

Key Results

  • DDPG+BC Dominance: DDPG+BC was better than or equal to AWR in 15 out of 16 experimental settings.
  • The "Aha" Moment on Generalization: By tracking Mean Squared Error (MSE) against an optimal policy, the authors found that Evaluation MSE (on states visited at test time) is the only metric that truly predicts performance. Training and Validation MSE often stay flat while the agent's performance improves, meaning the agent is primarily learning how to handle the distribution shift.
  • Test-Time Gains: The proposed OPEX and TTT methods led to substantial performance boosts across nearly all tasks without requiring any changes to the original offline training phase.

Limitations and Future Work

  • Proxy Metrics: The authors use MSE against an "optimal" policy as a proxy for accuracy. However, in tasks with multiple valid solutions, a high MSE might not actually mean a bad policy.
  • Continuous vs. Discrete: The study focuses on continuous control. The authors note that DDPG+BC doesn't translate directly to discrete actions, which remains an open area for investigation.
  • The "How" of Generalization: While the paper identifies generalization as a bottleneck, the "best" way to train a policy to generalize well from the start (without test-time fixes) is still an open research question.

Conclusion for Practitioners: If your offline RL agent is failing, don't just reach for a more complex value learning objective. Try switching to a gradient-based policy extraction like DDPG+BC, and consider "nudging" your actions at test time using your learned value function.

Summary updated

BibTeX
@inproceedings{park2024is,
  author = {Seohong Park and Kevin Frans and Sergey Levine and Aviral Kumar},
  title = {{Is Value Learning Really the Main Bottleneck in Offline RL?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=nyp59a31Ju},
}
Figure