Eau De $Q$-Network: Adaptive Distillation of Neural Networks in Deep Reinforcement Learning

Théo Vincent, Tim Faust, Yogesh Tripathi, Jan Peters, Carlo D'Eramo · DOI

Abstract

Eau De Q-Network (EauDeQN) is a novel dense-to-sparse reinforcement learning algorithm that automatically discovers optimal pruning schedules and final sparsity levels during training. By maintaining a population of networks with varying sparsity and adaptively selecting the best-performing one, EauDeQN eliminates the need for manual hyperparameter tuning while maintaining performance comparable to dense networks.

Introduction

Deploying Deep Reinforcement Learning (RL) agents on resource-constrained hardware requires efficient, sparse neural networks. "Dense-to-sparse" training, where a network is gradually pruned during learning, is the current state-of-the-art. However, these methods typically rely on rigid, hand-designed pruning schedules and require the final sparsity level to be pre-defined. Setting this target too high leads to performance collapse, while setting it too low misses efficiency opportunities. Finding the optimal "Goldilocks" level usually requires expensive hyperparameter sweeps across environments and architectures.

Methodology: Eau De Q-Network

EauDeQN synchronizes the pruning schedule with the agent's actual learning pace by combining two core concepts: Distill Q-Network (DistillQN) and Adaptive Q-Network (AdaQN).

Overview of Distill Q-Network and Adaptive Q-Network components.

In DistillQN, the online network is a pruned version of the target network, transforming the standard temporal-difference (TD) loss into a distillation loss. AdaQN extends this by maintaining a population of $K$ online networks (e.g., $K=5$), each with a different sparsity level, all training against a single shared target network.

The Adaptive Loop

The algorithm employs an adaptive loop consisting of evaluation, exploitation, and exploration phases to manage the population:

The adaptive loop: Exploitation of low-loss networks and exploration of new sparsity levels.
  • Evaluation & Exploitation: At each target update step, the algorithm evaluates the cumulative loss of all $K$ online networks. The network with the lowest loss is "crowned" and becomes the new target network, ensuring the target only updates from a successfully learning network.
  • Exploration (Pruning): The winning network is duplicated to replace the rest of the population. These duplicates are then pruned to new, higher sparsity levels. Importantly, one copy is kept at the current sparsity level. If the sparser networks fail to learn (causing their loss to spike), the algorithm naturally falls back to the denser copy, effectively pausing the pruning process until the agent is ready.

Experimental Evaluation

The authors evaluated EauDeQN across three diverse RL settings:

  • Online Q-Learning (DQN): Tested on 10 Atari 2600 games.
  • Offline Q-Learning (CQL): Evaluated on the same 10 Atari games using offline datasets (5% of samples).
  • Actor-Critic (SAC): Tested on 6 continuous control physics environments from the MuJoCo simulator.

Key Insights and Results

  • Self-Paced & Adaptive Pruning: EauDeQN naturally discovers safe final sparsity levels without human intervention. It aggressively prunes large networks (often >90% sparsity) but recognizes limited capacity in small networks, stopping pruning earlier (e.g., ~50% sparsity) to preserve performance.
  • Performance: Across Atari and MuJoCo benchmarks, EauDeQN matches the returns of dense networks. It significantly outperforms fixed-schedule baselines on small architectures where rigid schedules often degrade performance.
  • Training Efficiency: While maintaining a population requires ~1.4x more training time and ~1.55x more FLOPs per gradient update, EauDeQN is more efficient overall. It avoids the massive compute budget required for traditional hyperparameter sweeps to find optimal sparsity.

Limitations and Future Work

The primary drawback is the increased VRAM and compute overhead during training to maintain the $K$ online networks. Additionally, in SAC experiments, EauDeQN was only used to prune the critic network while the actor remained dense. Future work could investigate hybrid approaches for actor-critic setups, using simple schedules for the actor while leveraging EauDeQN to adaptively prune the larger critic network.

Summary updated

BibTeX
@misc{vincent2025eau,
  author = {Théo Vincent and Tim Faust and Yogesh Tripathi and Jan Peters and Carlo D'Eramo},
  title = {{Eau De $Q$-Network: Adaptive Distillation of Neural Networks in Deep Reinforcement Learning}},
  year = {2025},
  eprint = {2503.01437},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01437},
}
Figure