Towards Hyperparameter-free Policy Selection for Offline Reinforcement Learning

Siyuan Zhang, Nan Jiang

The "Chicken-and-Egg" Problem of Offline RL

Offline reinforcement learning (RL) promises to train capable agents entirely on historical data, removing the need for costly or dangerous real-world exploration. However, this introduces a major hurdle known as Offline Policy Selection (OPS). When you train multiple versions of an agent—using different learning rates, architectures, or algorithms—how do you identify the best one without deploying them?

Standard approaches rely on Off-Policy Evaluation (OPE) to estimate a candidate policy's return. Unfortunately, powerful OPE methods like Fitted Q-Evaluation (FQE) are themselves complex deep learning models requiring their own hyperparameters (e.g., network depth, weight decay). If you choose the wrong settings for your evaluator, you will likely select a sub-optimal policy. This creates a frustrating loop: to tune your policy, you need an evaluator, but to tune your evaluator, you need a way to evaluate it.

This paper introduces a practical, hyperparameter-free version of the Batch Value-Function Tournament (BVFT) to break this cycle, offering a method that can rank policies efficiently and even automatically tune other complex evaluation algorithms.

Breaking the Cycle with BVFT

The authors build upon the theoretical framework of BVFT, which shifts away from using a separate, complex neural network to evaluate candidate Q-functions.

The Tournament Idea

Instead of an external evaluator, BVFT uses the candidate functions themselves to create a "projection space." It conducts a tournament, checking how well each candidate satisfies the Bellman equation relative to the others.

Automatic Resolution Selection and the Bias-Variance Tradeoff

Original BVFT theory required a manual "discretization" parameter ($\epsilon_{dct}$) to handle continuous values. The authors uncovered a crucial bias-variance tradeoff tied to this parameter. When discretization is zero, BVFT is identical to a simple, highly biased 1-sample Bellman error check (the "double-sampling" problem). Increasing discretization acts as a form of "de-biasing," but setting it too high causes the model to lose critical detail.

This dynamic creates a "U-shaped" error curve. By developing a rule to automatically find the "sweet spot" at the bottom of this curve, the authors made the algorithm truly hyperparameter-free.

Discretization and the U-shaped error curve in BVFT

Hybridization for Continuous Domains

For continuous-action domains (like robotics), raw BVFT can struggle because the "critic" (Q-function) often lags behind the "actor" (policy). To solve this, the authors introduced BVFT-PE, which evaluates the policy directly. Furthermore, they demonstrate that BVFT can be used as a meta-evaluator to rank different OPE configurations, effectively picking the best evaluator for the job.

Extreme Data Efficiency and Key Results

The researchers evaluated their methods across a wide range of standard RL benchmarks, including Atari Games (via the RLUnplugged dataset), Classic Control, and MuJoCo continuous control tasks (via D4RL).

One of the most striking findings is BVFT's extreme data efficiency. In Atari experiments, BVFT achieved high-quality policy rankings using only 50,000 transitions. For context, standard FQE often requires millions of transitions to reach a comparable level of reliability. BVFT provided competitive results with roughly 20x less data than FQE in these environments.

Performance of BVFT vs. baselines across different dataset sizes in Atari

Summary of Key Results: * Superior Ranking: In discrete domains (Atari and Gym), BVFT consistently outperformed common heuristics like "AvgQ" (picking the policy with highest predicted value) and the 1-sample Bellman Residual. * Tuning the Tuner: By running multiple FQE instances with different hyperparameters and letting BVFT pick the winner, the hybrid approach achieved better results than any single "best-fixed" FQE setup. * Continuous Domain Success: In MuJoCo tasks, the hybrid approach (BVFT + OPE) matched or exceeded the performance of the best-tuned OPE baselines. * Theoretical Grounding: The paper provides a new theorem guaranteeing that BVFT-PE can identify a near-accurate value function with polynomial sample complexity.

Limitations and Future Directions

While highly effective, the tournament approach has a computational complexity of $O(m^2 n)$, where $m$ is the number of candidate policies. If a researcher needs to compare hundreds of models, these pairwise comparisons could become a bottleneck.

Additionally, modern offline RL often relies on "pessimism"—assuming low values for actions not seen in the training data. Incorporating pessimism into BVFT’s dynamic function spaces remains a non-trivial challenge. Finally, while BVFT itself is remarkably lean, the hybrid version still relies on OPE methods that require large datasets, meaning improving the sample efficiency of the entire pipeline is an ongoing open question.

Summary updated

BibTeX
@inproceedings{zhang2021towards,
  author = {Siyuan Zhang and Nan Jiang},
  title = {{Towards Hyperparameter-free Policy Selection for Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=9RFGrW9z9te},
}
Figure