Abstract: Both the optimal value function and the optimal policy can be used to model an optimal controller based on the duality established by the Bellman equation. Even with this duality, no parametric model has been able to output both policy and value function with a common parameter set. In this paper, a unified structure is proposed with a parametric optimization problem. The policy and the value function modelled by this structure share all parameters, which enables seamless switching among reinforcement learning algorithms while continuing to learn. The Q-learning and policy gradient based on the proposed structure is detailed. An actor-critic algorithm based on this structure, whose actor and critic are both modelled by the same parameters, is validated by both linear and nonlinear control.
Introduction
In modern Reinforcement Learning (RL), the mathematical duality between the optimal policy (the action selection mechanism) and the value function (the estimation of state quality) is well-established via the Bellman equation. However, practical implementations typically maintain a separation between these two entities. Standard Actor-Critic architectures often utilize two distinct neural networks, which may only share early feature-extraction layers. This separation fails to fully exploit the underlying mathematical relationship, leading to data inefficiency and making it difficult to transition between different learning paradigms, such as Q-learning and Policy Gradient, during the training process.
This paper introduces a unified structure where the policy and value function are derived from a single set of shared parameters. By framing RL as a parametric optimization problem, we enable a more integrated approach to controller modeling.
Methodology
The core of the proposed unified structure is a Parametric Quadratic Programming (QP) layer. Unlike standard feed-forward architectures, this layer treats the policy and value function as different outputs of the same optimization problem:
- The Unified Structure: The Policy is defined as the optimal solution ($\mu^*$) to the QP problem, while the Value Function is defined as the optimal objective value of that same problem. Because they are derived from the same optimization objective, any update to the parameters of the "Critic" (value function) inherently and simultaneously updates the "Actor" (policy).
- Lifting Function: To accommodate the non-linear dynamics of complex systems, a "lifting function" ($f_\beta$)—typically a multi-layer neural network—is employed. This function maps raw state inputs $x$ into a higher-dimensional feature space $z$, which then serves as the input to the QP layer.
- Differentiable Optimization: Utilizing tools such as
CVXPylayers, the entire QP problem is made differentiable. This allows for end-to-end training, where errors can be backpropagated through the optimization layer to update both the QP parameters and the lifting function.
Experimental Evaluation
The unified structure was evaluated on two primary benchmarks: a controllable but unstable linear system with box constraints, and the classic non-linear Inverted Pendulum environment (OpenAI Gym's Pendulum-v0).
In the non-linear task, the goal was to swing up and balance the pole. The lifting function was tasked with capturing the complex dynamics to provide a suitable feature space for the QP-based controller.
Results and Discussion
The unified structure demonstrated remarkable data efficiency. While traditional deep RL methods often require $10^4$ or more iterations to converge on these benchmarks, the proposed structure achieved stability and high performance in significantly fewer steps.
Key performance metrics include:
- Convergence Speed: Both Q-learning and Actor-Critic variants converged within 50 to 100 iterations.
- Performance vs. Baselines: In linear system tasks, the unified Actor-Critic model achieved a 2.07% higher reward than a standard Model Predictive Controller (MPC).
- Stability: The inverted pendulum successfully reached the target position and remained stable, confirming that the lifting function effectively linearized the non-linear dynamics for the QP layer.
Conclusion
By unifying the policy and value function within a single optimization-based structure, we have bridged the gap between theoretical Bellman duality and practical RL architecture. This approach provides a strong inductive bias for control tasks and achieves extreme data efficiency. Future work will focus on improving the training stability of the Actor-Critic variant and exploring the scalability of this method to high-dimensional, pixel-based environments.
Summary updated