Introduction
Standard reinforcement learning (RL) for continuous control typically relies on the "Actor-Critic" paradigm. In this framework, a Critic network estimates the value of actions (Q-values), while an Actor network learns a policy to select the best action. However, this approach faces significant hurdles: the actor is often trained on lagging critic estimates, and its mathematical form is frequently restricted to simple distributions, such as a single Gaussian. This limitation prevents agents from representing complex, multi-modal strategies.
Empirical analysis reveals a startling deficiency in current methods: in common benchmarks, a fully trained actor network often selects actions that are worse than a random guess in approximately 15% of states. To address this, we introduce Q-functionals, an architecture that eliminates the need for a separate actor network by enabling high-speed, parallel action evaluation.
The Q-functional Architecture
The core innovation of this work is the Q-functional network. Unlike standard Q-networks that take both state ($s$) and action ($a$) as inputs to produce a scalar value, a Q-functional network takes only the state as input and outputs a set of coefficients ($x_i(s)$). These coefficients are used to weight a set of fixed basis functions ($\phi_i(a)$), such as Legendre polynomials or Fourier series, over the action space.
Mathematically, the Q-value is represented as: $$Q(s, a) = \sum x_i(s) \phi_i(a)$$
This architectural shift provides three primary advantages:
- Massive Parallelism: Because the neural network inference only happens once per state, evaluating thousands of candidate actions reduces to a simple matrix multiplication on the GPU.
- Elimination of the Actor: With the ability to evaluate thousands of actions nearly instantaneously, the agent can simply sample a large batch of actions and select the one with the highest predicted reward.
- Representational Flexibility: Q-functionals can capture complex, multi-modal reward surfaces that traditional Gaussian actors cannot.
Experimental Results
We evaluated Q-functionals across the OpenAI Gym continuous control suite, ranging from low-dimensional tasks like Pendulum to high-dimensional locomotion tasks like Humanoid-v2 (which features a 17-dimensional action space).
Performance and Scaling
Contrary to the "curse of dimensionality" which suggests sampling is inefficient in high dimensions, Q-functionals demonstrated their strongest relative performance on the most complex tasks. On the Humanoid-v2 benchmark, the Q-functional approach significantly outperformed standard baselines like DDPG and TD3.
Efficiency and Multi-modality
Using a rank-3 Legendre basis, the Q-functional was found to be 20x faster and required 10x less memory than a standard Q-network when evaluating large action batches. Furthermore, in "bandit" tasks with multiple optimal actions, Q-functionals correctly identified and sampled from multiple peaks, whereas standard Soft Actor-Critic (SAC) failed by attempting to average the distinct optimal strategies.
Conclusion and Future Work
Q-functionals represent a robust alternative to the actor-critic paradigm for continuous control. By reframing the Q-function as a state-dependent combination of basis functions, we enable efficient, high-fidelity action selection without the constraints of a separate policy network. Future research will explore more sophisticated sampling techniques, such as the Cross-Entropy Method, and automated methods for selecting the optimal basis functions for specific task geometries.
Summary updated