Abstract
The $Q$-function is a central quantity in many Reinforcement Learning (RL) algorithms for which RL agents behave following a (soft)-greedy policy w.r.t. to $Q$. It is a powerful tool that allows action selection without a model of the environment and even without explicitly modeling the policy. Yet, this scheme can only be used in discrete action tasks, with small numbers of actions, as the softmax over actions cannot be computed exactly otherwise. More specifically, the usage of function approximation to deal with continuous action spaces in modern actor-critic architectures intrinsically prevents the exact computation of a softmax. We propose to alleviate this issue by parametrizing the $Q$-function implicitly, as the sum of a log-policy and a value function. We use the resulting parametrization to derive a practical off-policy deep RL algorithm, suitable for large action spaces, and that enforces the softmax relation between the policy and the $Q$-value. We provide a theoretical analysis of our algorithm: from an Approximate Dynamic Programming perspective, we show its equivalence to a regularized version of value iteration, accounting for both entropy and Kullback-Leibler regularization, and that enjoys beneficial error propagation results. We then evaluate our algorithm on classic control tasks, where its results compete with state-of-the-art methods.
Introduction
Standard off-policy actor-critic algorithms, such as Soft Actor-Critic (SAC), typically optimize two separate objectives: a critic loss to estimate the Q-value and an actor loss to find a policy that maximizes it. In continuous action spaces, calculating the exact "greedy" policy—the softmax of Q-values—is mathematically intractable.
This intractability introduces two major issues in modern RL:
- Optimization Errors: The actor network might not perfectly track the critic's softmax, leading to sub-optimal action selection.
- Inductive Bias: Common parametric approximations, like Gaussian distributions, cannot represent complex, multi-modal distributions, which may be necessary for optimal behavior in certain environments.
The Implicit Q-values (IQ) Framework
The authors propose the Implicit Q-values (IQ) algorithm, which introduces a novel parametrization of the Q-function: $$Q_{ heta,\phi}(s, a) = \tau \ln \pi_\theta(a|s) + V_\phi(s)$$ where $\pi_\theta$ is the policy network, $V_\phi$ is the value network, and $\tau$ is a temperature parameter.
By defining $Q$ in this manner, the policy $\pi_\theta$ is mathematically guaranteed to be the exact softmax of $Q_{ heta,\phi}$ over actions. This allows the algorithm to optimize both networks using a single loss function derived from the Bellman equation, effectively merging actor and critic updates into a single step and eliminating actor approximation error.
To handle continuous action spaces without the restrictive bias of Gaussians, IQ utilizes multicategorical policies. By discretizing each action dimension into bins and treating the policy as a product of independent categorical distributions, the model achieves a much richer representation than a single Gaussian.
Theoretical Foundations
IQ is theoretically equivalent to Mirror Descent Value Iteration (MD-VI). This framework incorporates both entropy regularization (maintaining policy stochasticity) and Kullback-Leibler (KL) regularization (ensuring policy stability across iterations). A key theoretical finding is that KL regularization facilitates "error averaging," where errors tend to cancel out over time rather than compounding, leading to more stable learning dynamics. Furthermore, IQ generalizes several existing methods, serving as a continuous-action extension of Munchausen RL and a regularized version of Advantage Learning.
Experimental Evaluation
The algorithm was evaluated on two benchmark suites: OpenAI Gym (MuJoCo) for locomotion and Adroit Manipulation for high-dimensional hand tasks.
Key Results
- Competitive Performance: IQ achieves performance competitive with state-of-the-art SAC. In MuJoCo tasks like Ant and Hopper, IQ matches or exceeds SAC's final performance.
- Efficiency in High Dimensions: On the complex Adroit benchmarks, IQ demonstrates significantly faster learning, particularly in the Door environment.
- Importance of Representation: Ablation studies confirmed that the success of IQ is tied to its expressive multicategorical policy. Using a standard Gaussian policy with the IQ loss leads to failure, as the representation power in IQ is shifted entirely to the policy network.
Conclusion
IQ simplifies off-policy RL by ensuring the policy is always the exact softmax of the Q-value. While highly effective, future work could explore even more expressive distributions, such as normalizing flows, to capture correlations between action dimensions. Additionally, implementing adaptive temperature scheduling, similar to SAC, could further enhance the algorithm's robustness across diverse tasks.
Summary updated