A Unified Framework for Reinforcement Learning.

Jicheng Shi, Ying Zhao Lian, Colin N. Jones

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 standard Reinforcement Learning (RL), agents typically rely on two distinct components: the policy (the actor), which maps states to actions, and the value function (the critic), which predicts future rewards. While the Bellman Equation establishes a mathematical duality between these two, most deep RL architectures treat them as separate neural networks. Even in architectures where layers are shared, they usually only share early feature extraction, maintaining separate heads for policy and value estimation.

This separation leads to inefficiencies. If the policy and value function are truly two sides of the same coin, they should share the same parameters. Without full parameter sharing, an agent cannot easily switch between learning paradigms—such as moving from Q-learning to Policy Gradients—without significant "re-learning." This paper addresses this gap by proposing a unified mathematical structure where the policy and value function share 100% of their parameters.

The Unified Optimization Structure

The core innovation of this work is the replacement of standard feed-forward neural networks with a Parametric Quadratic Programming (QP) layer. In this framework, the agent learns the parameters of a QP problem (such as the matrices $Q, A, B$).

  • Unified Modeling: The Policy is defined as the optimal solution ($\\mu$) to the optimization problem, while the Value Function is defined as the optimal objective value of that same problem.
  • Lifting Functions: To handle non-linear dynamics, the authors employ a "lifting function"—a small neural network that maps raw states $x$ into a higher-dimensional space $z$ where the convex QP can operate effectively.
  • Differentiable Optimization: By utilizing tools like CVXPylayers, the framework allows for backpropagating gradients directly through the optimization solver, enabling end-to-end training.
Trajectory reward difference surfaces for Q-learning (a) and Actor-Critic (b), illustrating the consistency of the unified model across different algorithms.

Experimental Evaluation

The proposed structure was tested on two primary control benchmarks:

  1. Linear System: A synthetic, unstable linear system with box constraints on states and actions.
  2. Nonlinear System (Inverted Pendulum): The classic "Pendulum-v0" environment from OpenAI Gym.

To improve initial performance, the authors used system identification and Koopman operator theory to initialize the lifting functions, providing a more structured starting point than random noise.

Results and Discussion

The unified structure demonstrated significant advantages in both performance and data efficiency. In linear system tests, the learned policy achieved a 2.07% higher reward than a standard Model Predictive Controller (MPC) with a horizon of 10.

Most notably, the architecture exhibited extreme data efficiency. While conventional Deep RL algorithms often require $10^4$ or more iterations to solve these control tasks, the proposed unified structure converged in fewer than 100 epochs.

Learning curves for Q-learning and Actor-Critic showing rapid convergence and high average rewards within a small number of training epochs.

However, the authors noted that the Actor-Critic implementation can be less stable during training. This is attributed to the shared parameters being updated simultaneously by two different objectives (policy improvement and value estimation), which can occasionally pull the model in conflicting directions.

Conclusion

By modeling the actor and critic as a single parametric optimization problem, this research provides a bridge between classical control theory and modern reinforcement learning. The resulting framework is not only more parameter-efficient but also allows for seamless transitions between different RL algorithms. Future work will focus on reducing the computational overhead of solving QPs in the forward pass and scaling the approach to higher-dimensional state spaces.

Summary updated

BibTeX
@misc{shi2020unified,
  author = {Jicheng Shi and Ying Zhao Lian and Colin N. Jones},
  title = {{A Unified Framework for Reinforcement Learning.}},
  year = {2020},
  eprint = {2002.06883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.06883},
}
Figure