Implicit Bias of Policy Gradient in Linear Quadratic Control: Extrapolation to Unseen Initial States

Noam Razin, Yotam Alexander, Edo Cohen-Karlik, Raja Giryes, Amir Globerson, Nadav Cohen

TL;DR

This paper reveals that when training optimal controllers using policy gradient methods, their ability to generalize (extrapolate) to unseen initial states depends heavily on whether the system's natural dynamics induce exploration during training. Crucially, the authors prove that the implicit bias of policy gradient does not minimize the standard Euclidean norm of the controller parameters, breaking from a core piece of conventional wisdom in supervised learning.

What Problem Does This Paper Address?

In modern machine learning, overparameterized models can fit training data in infinitely many ways, but gradient descent possesses an "implicit bias" that naturally guides it toward solutions that generalize well. While this phenomenon is heavily studied in supervised learning, it remains poorly understood in reinforcement learning and optimal control.

Specifically, this paper tackles out-of-distribution generalization (extrapolation): if we train a controller on a limited set of initial states, will it successfully stabilize the system when starting from a completely new, unseen initial state? This is a vital question for safety-critical applications like robotics or autonomous driving, where physical training cannot safely cover every possible starting condition.

Methods

The authors use the fundamental Linear Quadratic Regulator (LQR) framework as a theoretical testbed. To study implicit bias effectively, they focus on an underdetermined setting where controls are unregularized ($R=0$), the control matrix $B$ has full rank, and the training initial states do not span the entire state space.

To quantify extrapolation, they introduce two complementary metrics:

  1. Optimality Measure ($\mathcal{E}_{opt}$): Measures how close the induced dynamics are to zero for unseen states.
  2. Cost Measure ($\mathcal{E}_{cost}$): Evaluates the suboptimality of the total cost accumulated from unseen states.

For their theoretical analysis of typical systems, they employ advanced tools from random matrix theory and topology—specifically leveraging the concept of genus expansion to compute expectations of traces of random matrix products. Finally, they validate their theory empirically on both linear LQR setups and complex non-linear environments using deep neural networks as controllers.

Datasets

As a theoretical control paper, it does not use standard static datasets (like ImageNet). Instead, it evaluates performance on simulated control environments:

  • Synthetic LQR Problems: Custom-designed linear systems featuring Identity, Shift, and Random Gaussian transition matrices.
  • The Pendulum Control Problem: A classic non-linear simulation tracking vertical angle and angular velocity.
  • The Quadcopter Control Problem: A highly non-linear, 12-dimensional flight simulation tracking position, tilt angles, and their respective velocities.

Key Insights and Ideas

  • Extrapolation Requires Exploration: A controller's ability to extrapolate depends entirely on the interplay between the system dynamics and the training states. If the system's natural dynamics keep trajectories confined to the subspace of seen training states, extrapolation fails. However, if the dynamics force trajectories to explore orthogonal dimensions, extrapolation can be near-perfect.
Intuition of exploration vs extrapolation during policy gradient training.
  • Implicit Bias $\neq$ Minimum Norm: In supervised linear regression, gradient descent implicitly minimizes the Euclidean norm of the weights. The authors show this rule fails in optimal control. The minimum-norm controller solution is actually a non-extrapolating baseline that does nothing on unseen states. Policy gradient explicitly biases toward a different, better-extrapolating solution.
  • Random Systems Generically Help: In a typical setting where system transitions are random, the state trajectories naturally tend to span the entire state space over time. This implies that many real-world systems might inherently possess the "exploration" needed to help policy gradient extrapolate successfully.

Key Results

  • LQR Extrapolation: Under an "identity" system (which induces no exploration), policy gradient achieves zero extrapolation. Conversely, under "shift" and random systems, it achieves substantial, non-trivial extrapolation.
Extrapolation performance across different LQR system types.
  • Extension to Non-Linear Systems & Neural Networks: The core insights carry over to non-linear systems controlled by deep neural networks. For the pendulum and quadcopter tasks, the natural "falling" dynamics of the uncontrolled systems induce exploration of lower heights. Complying with the theory, policy gradient yields near-perfect extrapolation to unseen lower initial states, achieving normalized cost measures close to the ideal minimum of 0 (whereas the non-extrapolating baseline sits at 1).

Limitations and Future Work

  • First-Iteration Limits: The formal high-probability guarantees for random systems are currently limited to the first iteration of policy gradient ($K^{(2)}$).
  • Horizon Scaling: The learning rate bounds and state-dimension requirements scale super-exponentially with the time horizon $H$ due to the mathematical constraints of the double factorial $(4H-1)!!$.
  • Linear vs. Non-Linear Theory: While experiments show the phenomenon holds for non-linear systems and neural networks, the formal mathematical proofs are strictly for linear systems (LQR).
  • Future Directions: The authors suggest extending the theory to multi-iteration policy gradient, non-linear systems, and model-free settings where gradients must be estimated via sampling. They also highlight a exciting practical avenue: developing algorithms that intelligently select initial training states to maximize downstream extrapolation.

Summary updated

Abstract

In modern machine learning, models can often fit training data in numerous ways, some of which perform well on unseen (test) data, while others do not. Remarkably, in such cases gradient descent frequently exhibits an implicit bias that leads to excellent performance on unseen data. This implicit bias was extensively studied in supervised learning, but is far less understood in optimal control (reinforcement learning). There, learning a controller applied to a system via gradient descent is known as policy gradient, and a question of prime importance is the extent to which a learned controller extrapolates to unseen initial states. This paper theoretically studies the implicit bias of policy gradient in terms of extrapolation to unseen initial states. Focusing on the fundamental Linear Quadratic Regulator (LQR) problem, we establish that the extent of extrapolation depends on the degree of exploration induced by the system when commencing from initial states included in training. Experiments corroborate our theory, and demonstrate its conclusions on problems beyond LQR, where systems are non-linear and controllers are neural networks. We hypothesize that real-world optimal control may be greatly improved by developing methods for informed selection of initial states to train on.
BibTeX
@inproceedings{razin2024implicit,
  author = {Noam Razin and Yotam Alexander and Edo Cohen-Karlik and Raja Giryes and Amir Globerson and Nadav Cohen},
  title = {{Implicit Bias of Policy Gradient in Linear Quadratic Control: Extrapolation to Unseen Initial States}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=XT6iF8FDZx},
}
Figure