Table of Contents
Fetching ...

Real-Time Optimal Control via Transformer Networks and Bernstein Polynomials

Gage MacLin, Venanzio Cichella, Andrew Patterson, Irene Gregory

TL;DR

The paper tackles real-time solution of infinite-dimensional optimal control and calculus-of-variations problems under nonlinear dynamics and constraints. It couples offline data generation via composite Bernstein collocation with a Transformer-based model that maps problem parameters $\bm{\theta}$ to trajectory coefficients expressed as composite Bernstein polynomials $\bm{x}_M(t)$, enabling fast online generation and feasibility verification through Bernstein properties. Core contributions include formalization of $P^{CV}(\bm{\theta})$ and $P^{OC}(\bm{\theta})$, discretization via composite Bernstein collocation, and a training/inference pipeline that uses teacher forcing and autoregressive control-point prediction. Numerical results on the Brachistochrone and obstacle avoidance problems demonstrate accurate, real-time trajectory generation and the potential to warm-start or verify online optimal controllers in safety-critical applications.

Abstract

In this paper, we propose a Transformer-based framework for approximating solutions to infinite-dimensional optimization problems: calculus of variations problems and optimal control problems. Our approach leverages offline training on data generated by solving a sample of infinite- dimensional optimization problems using composite Bernstein collocation. Once trained, the Transformer efficiently generates near-optimal, feasible trajectories, making it well-suited for real-time applications. In motion planning for autonomous vehicles, for instance, these trajectories can serve to warm- start optimal motion planners or undergo rigorous evaluation to ensure safety. We demonstrate the effectiveness of this method through numerical results on a classical control problem and an online obstacle avoidance task. This data-driven approach offers a promising solution for real-time optimal control of nonlinear, nonconvex systems.

Real-Time Optimal Control via Transformer Networks and Bernstein Polynomials

TL;DR

The paper tackles real-time solution of infinite-dimensional optimal control and calculus-of-variations problems under nonlinear dynamics and constraints. It couples offline data generation via composite Bernstein collocation with a Transformer-based model that maps problem parameters to trajectory coefficients expressed as composite Bernstein polynomials , enabling fast online generation and feasibility verification through Bernstein properties. Core contributions include formalization of and , discretization via composite Bernstein collocation, and a training/inference pipeline that uses teacher forcing and autoregressive control-point prediction. Numerical results on the Brachistochrone and obstacle avoidance problems demonstrate accurate, real-time trajectory generation and the potential to warm-start or verify online optimal controllers in safety-critical applications.

Abstract

In this paper, we propose a Transformer-based framework for approximating solutions to infinite-dimensional optimization problems: calculus of variations problems and optimal control problems. Our approach leverages offline training on data generated by solving a sample of infinite- dimensional optimization problems using composite Bernstein collocation. Once trained, the Transformer efficiently generates near-optimal, feasible trajectories, making it well-suited for real-time applications. In motion planning for autonomous vehicles, for instance, these trajectories can serve to warm- start optimal motion planners or undergo rigorous evaluation to ensure safety. We demonstrate the effectiveness of this method through numerical results on a classical control problem and an online obstacle avoidance task. This data-driven approach offers a promising solution for real-time optimal control of nonlinear, nonconvex systems.

Paper Structure

This paper contains 12 sections, 40 equations, 4 figures, 2 tables, 1 algorithm.

Figures (4)

  • Figure 1: Transformer architecture: Input state $\bm{\bar{X}}$ and output state $\bm{\bar{Y}}$ are pre-processed and provided to the encoder and decoder respectively, which yields the predicted output state $\bm{\hat{\bar{Y}}}$ after post-processing.
  • Figure 2: Solutions to the Brachistochrone problem.
  • Figure 3: Sequential application of the obstacle avoidance Transformer model, avoiding multiple obstacles.
  • Figure 4: Three predictions from the obstacle avoidance Transformer model given some random obstacle position, with the dashed line being the trajectory in the absence of the obstacle.

Theorems & Definitions (1)

  • Remark 1