Adaptive Q-Network: On-the-fly Target Selection for Deep Reinforcement Learning

Théo Vincent, Fabian Wahren, Jan Peters, Boris Belousov, Carlo D'Eramo · DOI

Abstract

Deep Reinforcement Learning (RL) is notoriously sensitive to hyperparameter configurations, often requiring extensive manual tuning or sample-intensive automated methods. We present Adaptive Q-Network (AdaQN), a novel framework for Automated RL (AutoRL) that dynamically selects optimal hyperparameters during training without requiring additional environment interactions. By maintaining an ensemble of Q-networks with diverse configurations and periodically selecting the network with the lowest empirical Bellman error as a shared target, AdaQN effectively navigates the non-stationary landscape of RL optimization. Experiments on MuJoCo and Atari 2600 benchmarks demonstrate that AdaQN achieves superior sample efficiency and stability, often outperforming the best static hyperparameter configurations.

Introduction

The performance of Deep RL agents is famously "brittle," where minor adjustments to learning rates, network architectures, or optimizers can be the difference between success and failure. While Automated RL (AutoRL) aims to mitigate this, existing approaches typically suffer from two primary drawbacks: extreme sample inefficiency due to multiple evaluation trials, and an inability to adapt to the non-stationary nature of the RL optimization process, where the "best" configuration may change over time.

The AdaQN Framework

Adaptive Q-Network (AdaQN) addresses these challenges by integrating hyperparameter selection directly into the training loop. The framework is versatile and can be applied to both value-based methods (AdaDQN) and actor-critic architectures (AdaSAC).

Dynamic Target Selection

The core mechanism of AdaQN involves maintaining an ensemble of $K$ online Q-networks, each initialized with different hyperparameters—such as varying activation functions, optimizers, or architectures. Unlike standard ensembles where networks learn independently, AdaQN utilizes a shared target network to synchronize learning.

Comparison between standard Q-Network ensembles and the Adaptive Q-Network (AdaQN) approach.

At each target update interval, the algorithm evaluates the approximation error (empirical Bellman error) for every network in the ensemble using data already present in the replay buffer. The network exhibiting the lowest error is selected to update the shared target. This mechanism forces the entire ensemble to move toward the configuration that is currently learning most effectively, allowing the agent to pivot between different "strengths" as training progresses.

Behavioral Policy

To ensure that all networks in the ensemble remain viable candidates and continue to explore the state space, AdaQN employs an $\epsilon$-greedy-style behavioral policy. While the agent primarily acts based on the current "best" performing network, it occasionally samples actions from other ensemble members to prevent "passive learning" and maintain the diversity of the ensemble.

Key Insights and Results

The use of Bellman error as a selection criterion is mathematically justified as a proxy for minimizing the overall performance loss of the agent. This allows for high-frequency adaptation without the need for costly environment evaluations.

Experimental Performance

  • MuJoCo (Continuous Control): AdaSAC consistently matched or outperformed the best possible static hyperparameter configurations by discovering non-trivial, dynamic learning rate schedules.
  • Atari 2600 (Discrete Control): In massive search spaces involving dozens of optimizers and activation functions, AdaDQN outperformed strong AutoRL baselines like SEARL and DEHB within a fixed budget of 40 million frames.
  • Efficiency and Robustness: By leveraging existing replay buffer data, AdaQN is an order of magnitude more sample-efficient than traditional grid search. Furthermore, it proved highly robust to stochasticity; even its worst-performing seeds typically performed on par with the average of standard methods.

Conclusion and Future Work

AdaQN represents a significant advancement in self-tuning RL agents. While it introduces additional computational overhead due to parallel ensemble training, its sample efficiency and ability to navigate non-stationary environments make it a powerful tool for robust Deep RL. Future research may explore using weighted ensemble mixtures rather than a single "winner" to further stabilize the target selection process.

Reference: Vincent, T., et al. (2025). Adaptive Q-Network: On-the-fly Target Selection for Deep Reinforcement Learning. ICLR 2025.

Summary updated

BibTeX
@inproceedings{vincent2025adaptive,
  author = {Théo Vincent and Fabian Wahren and Jan Peters and Boris Belousov and Carlo D'Eramo},
  title = {{Adaptive Q-Network: On-the-fly Target Selection for Deep Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=leACdxBEgv},
}
Figure