Feedback Linearization for Uncertain Systems via Reinforcement Learning

Tyler Westenbroek, David Fridovich-Keil, Eric Mazumdar, Shreyas Arora, Valmik Prabhu, S. Shankar Sastry, Claire J. Tomlin · DOI

TL;DR

This paper introduces a novel framework that combines reinforcement learning (RL) with feedback linearization to control complex, unknown nonlinear systems. By learning a linearizing controller using model-free RL, the approach allows for precise trajectory tracking even when the system's dynamics are not fully understood, bridging a gap between traditional control theory and modern machine learning.

What Problem Does This Paper Address?

Controlling nonlinear systems, especially those with unknown or complex dynamics, is a significant challenge in robotics and control engineering. A powerful technique called feedback linearization can simplify control by transforming a nonlinear system into an equivalent linear one. However, this method traditionally requires an accurate model of the system's dynamics, which is often difficult to obtain in practice due to factors like friction, unmodeled components, or sensor noise. Existing model-based approaches for learning linearizing controllers often struggle with complex dynamics, require highly structured models, or face issues with parameter estimation and singularities. On the other hand, model-free reinforcement learning excels at learning control policies for unknown systems but often suffers from poor sample efficiency and doesn't inherently leverage the structural benefits of techniques like feedback linearization. This paper aims to bridge this gap by using model-free RL to learn a linearizing controller for systems with unknown dynamics, thereby enabling precise control without needing a perfect model.

Methods

The core of the paper's contribution lies in its novel approach to learning a feedback linearizing controller using model-free policy optimization. The authors propose to learn an affine correction term to a nominal (potentially inaccurate) linearizing controller. This learned term is parameterized and optimized using a continuous-time objective function that minimizes the difference between the desired linear behavior and the actual system output under the learned controller.

Key methodological aspects include:

  • Feedback Linearization Foundation: The paper starts by outlining the principles of feedback linearization for both SISO and MIMO systems, defining the concept of relative degree and the decoupling matrix.
  • Learned Affine Correction: Instead of learning the entire linearizing controller from scratch, the approach learns an additive correction term: $\hat{u}_\theta(x,v) = [\beta_m(x) + \beta_{\theta_1}(x)] + [\alpha_m(x) + \alpha_{\theta_2}(x)]v$. Here, $\beta_m$ and $\alpha_m$ represent a nominal model's linearizing components (if available), and $\beta_{\theta_1}$ and $\alpha_{\theta_2}$ are parameterized functions (e.g., neural networks or radial basis functions) that learn the unknown parts of the dynamics.
  • Continuous-Time Optimization: A point-wise loss function $l(x, v, \theta) = ||v - W_\theta(x, v)||^2$ is defined, measuring how well the learned controller linearizes the plant. This loss is then averaged over a state distribution $\mathcal{X}$ and a virtual input distribution $\mathcal{V}$ to form a continuous-time optimization problem: $L(\theta) = \mathbb{E}_{x \sim \mathcal{X}, v \sim \mathcal{V}} l(x, v, \theta)$.
  • Convexity Guarantees: The authors provide theoretical conditions under which this optimization problem becomes convex (or even strongly convex) when the parameterized functions are chosen appropriately (e.g., linear in their parameters). This is crucial for guaranteeing convergence to a global optimum.
  • Discrete-Time Approximation and RL: For practical implementation on real-world systems with discrete sampling, the continuous-time problem is approximated. This approximation is cast as a reinforcement learning problem, where the learned controller's parameters are updated using policy gradient methods (specifically, REINFORCE and PPO are mentioned). The RL formulation encourages exploration and handles the challenges of sampled-data systems.

Datasets

The paper does not introduce new datasets. Instead, it relies on:

  • Simulated Systems:
    • A fully actuated double pendulum.
  • A 14D quadrotor system.
  • Real-World Robot:
    • A 7-DOF Baxter manipulator arm.

The experiments involve collecting data from these systems by running them with various control inputs and observing their outputs. This data is then used to train the parameterized linearizing controllers.

Key Insights and Ideas

  • Bridging Control Theory and RL: The paper successfully integrates the structural advantages of feedback linearization with the model-free learning capabilities of reinforcement learning. This allows for precise control of complex systems without requiring perfect prior knowledge.
  • Learning Correction, Not Everything: By focusing on learning an affine correction to a nominal model, the approach is more sample-efficient and robust than trying to learn the entire linearizing controller from scratch, especially when some prior knowledge (even if imperfect) is available.
  • Convexity for Guarantees: Establishing conditions for the convexity of the learning problem is a significant theoretical contribution. It provides a foundation for guaranteeing that the learned controller can indeed recover the true linearizing controller under certain assumptions.
  • Singularity-Free Learning: A key practical advantage is that the proposed learning framework avoids the singularity issues that plague many traditional adaptive control methods for feedback linearization. This makes the learning process more stable and reliable.
  • Leveraging Nominal Models: The framework can effectively utilize even inaccurate nominal models as a starting point, leading to faster learning and better performance compared to starting from a completely unknown system.

Key Results

  • Simulation Performance: In simulations, the learned linearizing controllers for the double pendulum and quadrotor systems achieved performance very close to that of an ideal, model-based feedback linearizing controller. The learned controllers quickly converged to desired trajectories, outperforming controllers based on inaccurate nominal models.
  • Robotic Experiment Performance: On the 7-DOF Baxter robot arm, the learned controller significantly reduced steady-state errors compared to the nominal feedback linearizing controller, demonstrating its ability to compensate for unmodeled dynamics like series-elastic actuators and numerical solver inaccuracies.
  • Learning Speed: The paper shows that a more accurate initial nominal model leads to faster learning (higher reward per epoch) for the quadrotor system, as illustrated by learning curves.
  • Robustness to Model Mismatch: The learned controller for the quadrotor demonstrated the ability to overcome significant model mismatch (scaling factors of 0.33, 0.6, and 0.8) and still achieve good tracking performance.

Limitations and Future Work

  • Model Assumption: The approach assumes that the plant and the nominal model have the same relative degree. While this is often inferable, it's a necessary condition.
  • Parameterization Complexity: For high-dimensional systems, the number of terms required for function approximation (e.g., radial basis functions) can become prohibitively large. The paper notes that other architectures like neural networks can offer more compact representations but complicate theoretical analysis.
  • Discrete-Time Theory: While a discrete-time approximation is used for practical implementation, the theoretical guarantees of convexity and convergence are primarily derived for the continuous-time problem. Extending these theoretical results to the sampled-data setting is identified as future work.
  • Neural Network Expressiveness: In the Baxter robot experiment, the authors conjecture that the remaining steady-state error might be due to the neural network not being sufficiently expressive for the complexity of the task.
  • Future Directions: The authors suggest exploring other function approximation architectures (like multi-layer neural networks) and investigating different policy optimization algorithms. They also propose extending the framework to optimize over different classes of controllers and further theoretical analysis for discrete-time systems.

Summary updated

BibTeX
@inproceedings{westenbroek2020feedback,
  author = {Tyler Westenbroek and David Fridovich-Keil and Eric Mazumdar and Shreyas Arora and Valmik Prabhu and S. Shankar Sastry and Claire J. Tomlin},
  title = {{Feedback Linearization for Uncertain Systems via Reinforcement Learning}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2020},
  doi = {10.1109/icra40945.2020.9197158},
}
Figure