Reinforcement learning (RL) algorithms, such as Q-learning, rely heavily on accurately estimating action-values. However, learning these values is often highly inefficient. To address this, researchers have introduced the Mean-Expansion (ME) Layer, a parameter-free architectural addition that accelerates RL by sharing value information across actions. By transforming the learning objective from large absolute action-values to smaller residuals relative to an implicit baseline, the ME layer improves sample efficiency, reduces value overestimation, and widens action gaps across 57 Atari games.
The Inefficiencies of Standard Q-Learning
In value-based RL, agents estimate the "return" (total future reward) for every possible action in a given state. The authors identify two major bottlenecks in how current architectures handle this process:
- The "Zero-to-Hero" Problem: Action-values (Q-values) are often very large, yet neural networks are typically initialized with weights that produce outputs near zero. It takes a massive number of incremental updates to drag these values from zero to their true, high-magnitude targets.
- Independent Updates: Standard Q-networks treat each action's value as an independent target. In reality, actions within a state are highly correlated—if a state is advantageous, most actions taken there will have high values. Standard architectures fail to exploit this shared state-level value efficiently.
While "Dueling Networks" were previously designed to solve this by splitting the network into a state-value stream and an advantage stream, they require extra parameters and a more complex architecture.
The Mean-Expansion Layer
To resolve these inefficiencies, the authors propose the Mean-Expansion (ME) Layer, a linear, invertible transformation applied at the very end of a Q-network.
Instead of the network's last layer outputting the final Q-values ($q$), it outputs a vector of residuals ($z$). The ME layer then calculates the final values using the formula:
$$q = \left(I + \frac{k}{n}J\right)z$$
(Where $I$ is the identity matrix, $J$ is a matrix of ones, $n$ is the number of actions, and $k$ is a scaling coefficient).
This mathematical transformation effectively creates a state-dependent baseline that is shared across all actions without needing a separate value stream or any additional learnable parameters. Because the network is now learning residuals ($z$) rather than absolute returns ($q$), the target values have a much lower "norm" (they are closer to zero). This makes the optimization problem significantly easier and faster for the neural network to solve.
Crucially, the ME layer is "plug-and-play." It can be dropped into existing architectures like Deep Q-Networks (DQN) or Implicit Quantile Networks (IQN) without changing the underlying RL algorithm.
Experimental Validation and Key Insights
The researchers evaluated their method across a stochastic 5x5 Gridworld, the Gymnasium LunarLander-v3 environment (for sensitivity analysis on the scaling coefficient $k$), and the standard Atari 2600 benchmark consisting of 57 different games.
The ME layer fundamentally alters the learning dynamics. By scaling the gradients for the shared component of the value, the agent learns the general "goodness" of a state much faster than it learns the specific nuances of each action. This lower-norm representation dramatically accelerates learning.
On the Atari-57 benchmark, the ME-enhanced DQN (called IB-DQN) achieved the peak performance of a standard DQN in just 20 million timesteps, compared to the standard 50 million—a 40% reduction in training time. It also outperformed both standard DQN and the more complex Dueling DQN in terms of Interquartile Mean (IQM) scores across all 57 games. When added to the state-of-the-art IQN, the ME layer (IB-IQN) similarly showed clear improvements in learning speed and final score.
Beyond speed, the ME layer naturally dampens value overestimation—a notorious bug in Q-learning. It also increases the "action gap" (the distance between the best action and the second-best), making the agent's policy more robust to small errors in value estimation. The authors found that setting the scaling coefficient $k$ equal to the number of actions ($n$) provided the best balance of speed and numerical stability.
Limitations and Future Directions
Despite its successes, the ME layer has limitations. If the scaling coefficient $k$ is set too high, the gradients can become unstable, leading to a dramatic drop in performance. Furthermore, the current derivation is specific to discrete action spaces. Extending this value-sharing logic to continuous action spaces (like controlling a robotic arm) remains an open challenge. Finally, while the layer clearly reduces overestimation and increases action gaps empirically, the authors note that a full mechanistic explanation for exactly why these specific secondary benefits occur so consistently is still a subject for future research.
Summary updated