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.
Introduction: The Mystery of Generalization in Control
In the realm of supervised learning, the success of deep neural networks is often attributed to the implicit bias of gradient descent. When faced with an underdetermined problem—where many different parameter configurations can perfectly fit the training data—gradient descent naturally gravitates toward "simpler" solutions, such as those with minimum norm. This bias is a cornerstone of generalization in modern AI.
However, in the field of optimal control and reinforcement learning (RL), this phenomenon remains poorly understood. When we train a controller (e.g., for a drone or a robotic arm) using policy gradient (PG) methods, we typically train on a specific set of initial states. A critical question for safety and reliability is: will this controller work when the system starts from a state it never encountered during training? This ability to generalize to novel starting conditions is known as extrapolation.
The Problem: Beyond Minimum Norm
The researchers from Tel Aviv University and Google focused on the Linear Quadratic Regulator (LQR), a foundational problem in control theory. They specifically looked at "underdetermined" LQR scenarios where multiple controllers could achieve zero cost on the training set.
In standard supervised regression, the "minimum norm" solution is usually the gold standard for generalization. Surprisingly, the authors prove that in control, the opposite is true: the minimum norm controller is precisely the one that fails to extrapolate. Such a controller (referred to as $K_{no-ext}$) minimizes training cost by essentially doing nothing—applying zero control—to any state direction not explicitly seen during training. If the system drifts into an unseen region, the minimum norm controller has no "knowledge" of how to recover.
Key Insights: Exploration as the Engine of Extrapolation
The core discovery of this research is that the implicit bias of policy gradient is fundamentally different from that of supervised learning. Instead of minimizing parameter norms, PG is biased toward solutions that leverage the system's own dynamics.
The ability of a PG-trained controller to extrapolate depends entirely on how much the system "explores" the state space during the training process. If the trajectories initiated from training states naturally drift into new areas of the state space, the policy gradient algorithm "sees" these transitions and learns how to steer the system back to the goal.
As illustrated in the figure above, the Policy Gradient Iterate $t$ Controller explores various states during the learning process. By the time it reaches the Final Controller stage, it has learned to steer even "unexplored" states (purple circles) toward the target (the star at 0). In contrast, the Non-Extrapolating Controller only knows how to handle the initial training state and fails to stabilize any other point in the state space.
Theoretical and Empirical Evidence
To validate these insights, the authors employed a mix of rigorous theory and complex simulations:
- Synthetic LQR Systems: They tested systems with different "exploration" properties. In a "Shift" system, where dynamics naturally cycle through all dimensions, they proved that PG achieves perfect extrapolation as the time horizon increases. In systems with random dynamics, they used advanced random matrix theory to show that even a single step of policy gradient significantly outperforms the minimum norm baseline.
- Non-linear Benchmarks: Moving beyond linear theory, the researchers tested neural network controllers on the Pendulum and Quadcopter environments.
- Gravity as a Teacher: A fascinating observation was made in these physical simulations. PG extrapolated exceptionally well to states below the training set. This is because gravity naturally pulls the system downward during training, forcing the controller to learn recovery behaviors for those lower states, even if it never "started" there.
Results and Implications
The empirical results were striking. In Quadcopter simulations, the policy gradient method achieved a normalized extrapolation cost of 0.032 (where 0 is perfect extrapolation), while the non-extrapolating baseline remained at 1.0 (complete failure to generalize).
These findings suggest that the success of RL in the real world may not just be about the algorithm, but about the natural physics of the environment providing "free" exploration.
Conclusion: Toward Informed Training
This research opens a new path for improving reinforcement learning. If extrapolation depends on exploration during training, we can improve performance by carefully selecting initial training states that maximize the coverage of the state space. Rather than training on random points, "informed selection" of starting conditions could lead to controllers that are far more robust to the unpredictable nature of the real world.
Summary updated