Regularized reinforcement learning (RL), such as entropy-regularized Soft Q-Learning (SQL) or Soft Actor-Critic (SAC), is highly sensitive to the size and scale of the action space. This sensitivity leads to inconsistent regularization across different states. In standard, unregularized RL, changing the units of an action space (e.g., measuring a robot's acceleration in $m/s^2$ instead of $ft/min^2$) doesn't change the optimal policy. However, in regularized RL—which adds a penalty or bonus like entropy to encourage exploration—the optimal policy does change.
This paper introduces "decoupled regularizers," a method that normalizes the regularization penalty by its mathematical range, ensuring consistent behavior regardless of how many actions are available or what units are used to measure them.
The Core Issues
The coupling of regularization to the action space creates two major problems:
- Scale Sensitivity: If you scale the action space, standard heuristics for tuning the regularization temperature (like the one used in SAC) can completely break down. The temperature can explode to infinity, causing catastrophic forgetting and optimization failure.
- Gravitation Towards Regularization: In environments where the number of available actions depends on the state (state-dependent action spaces), states with more actions naturally allow for higher entropy. The agent is inadvertently incentivized to seek out these "hub states" simply to harvest the larger regularization bonuses. This throws off the balance between maximizing the actual reward and exploring.
Proposed Solution: Decoupled Regularizers
To fix this inconsistency, the authors propose controlling the regularization so its impact remains constant regardless of the action space.
Defining the Range: The authors define the "range" of a regularizer as the difference between its maximum possible value (e.g., a uniform distribution) and its minimum possible value (e.g., a deterministic, one-hot policy) over a given action space. For standard regularizers, this range grows as the number of actions increases.
Static Decoupling: To decouple the regularizer, it is divided by its range. For discrete entropy-regularized RL (like SQL), this means dynamically adjusting the temperature $\tau$ for each state $s$ by dividing it by $\log|\mathcal{A}(s)|$ (the logarithm of the number of available actions).
Dynamic Decoupling (Fixing SAC): For continuous control algorithms like SAC that automatically tune their temperature, the standard heuristic sets the target entropy to the negative dimension of the action space ($-dim(\mathcal{A})$). The authors show this is arbitrary and brittle. Instead, they propose a new target entropy that is a convex combination of the maximum possible entropy (uniform policy) and the minimum reasonable entropy, controlled by a parameter $\alpha$ (with a recommended value of $\alpha \approx 0.77$).
Experimental Validation & Key Results
The authors evaluated their approach across three distinct environments, yielding strong evidence for the necessity of decoupling.
Toy MDP
In a custom grid-world where the dimensionality (number of actions) can be scaled, standard SQL diverges and fails to find the goal as the action dimensions exceed 6. Decoupled SQL, however, remains stable and finds near-optimal paths regardless of dimensionality.
DeepMind Control Suite (DMC)
To test robustness in continuous control, the authors modified standard DMC environments to scale the action spaces (e.g., restricting actions to $[-0.1, 0.1]$ or expanding to $[-4, 4]$). When the action scale is altered, standard SAC with automatic temperature tuning fails completely in several tasks because the target entropy becomes infeasible. The proposed dynamic decoupled SAC maintains high performance across all tested scales.
Drug Design MDP
This biological sequence design task involves building molecules fragment by fragment, naturally featuring highly variable, state-dependent action spaces. Here, Decoupled SQL significantly outperformed both standard SQL and Generative Flow Networks (GFlowNets). It achieved a higher median reward and discovered a vastly larger number of diverse, high-quality molecular modes.
Key Insights
- Entropy is not scale-free: Standard entropy regularization inadvertently acts as a "reward magnet" for states with large action spaces. If state A has 2 actions and state B has 100, an entropy-regularized agent will artificially prefer state B just because it can be more "random" there.
- SAC's famous heuristic is flawed: The widely used heuristic for SAC only works well when actions are normalized to $[-1, 1]$. If the action space is tiny (e.g., $[-0.005, 0.005]$), the maximum possible entropy drops below the heuristic target, making the optimization problem infeasible.
- Decoupling restores SQL's viability: SQL was previously thought to be too unstable for complex tasks like drug design. By simply decoupling the regularization, SQL becomes highly competitive, proving that the instability was largely an artifact of action-space bias.
Limitations and Future Work
The mathematical proofs regarding the regularizer's range rely on the regularizer being strictly convex and symmetric. Not all regularizers fit this definition (e.g., certain quadratic penalties), meaning the exact decoupling math might need adaptation for exotic regularizers. Furthermore, while this paper solves scale invariance for the regularization term, achieving full scale invariance in RL requires making the optimizers and loss functions scale-invariant as well, which remains an open challenge for future work.
Summary updated