Under review · Int. J. of Control, Automation and Systems

Linear or Bilinear:
A Criterion for Koopman Rollouts
in Sampling-Based Predictive Control

Kangmin Lee Sanghyun Kim*
Department of Mechanical Engineering, Kyung Hee University
*Corresponding author
Paper (PDF) arXiv · Coming Soon BibTeX
Abstract

A constant input matrix, and a criterion

Koopman operator models enable sampling-based Model Predictive Path Integral (MPPI) control to roll out thousands of sampled input sequences through a low-cost learned lifted model. However, recent Koopman MPPI controllers keep a constant input matrix, which is suitable for convex Koopman MPC, but not needed for sampling. It fixes a single gain from input to tracked output, yet for many robots the true gain varies with heading or attitude.

This paper supplies a criterion for when the states a task visits rule out such a matrix. If the output is read linearly from the lifted state, the largest gap between the predicted and true gains over those states is at least half the true gain's variation. This holds for any lifting features and every horizon step, but the criterion says nothing if the input moves the output only through acceleration or higher derivatives.

Where the gain varies strongly, as for a freely turning unicycle or a drone over a wide yaw range, linear rollouts fail. A bilinear rollout, where the input matrix instead depends on the lifted state, stays close to the true-model oracle. Its MPPI update costs under twice the time of a linear update. Where the gain varies little, the linear rollout is less accurate than the bilinear one in most tests but can remain within the task tolerance. Yet passing the criterion is not enough. In a pendulum swing-up, linear models of matching width fail at long horizons even for outputs with a constant one-step input gain, while bilinear models with the same outputs can succeed. The cheaper linear rollout is therefore worth trying at small gain variation, but a closed-loop test is still needed to confirm it works for a given task.

See the criterion in action

Same training, two rollouts

The linear and bilinear models are trained independently with the same network architecture, data, multi-step loss, and training schedule, and they run in the same MPPI with the same settings and noise realizations. They differ only in how the input enters the rollout. The oracle rolls out the true dynamics.

Linear ruled out: the gain varies strongly

Unicycle, drive to goal velocity command

Unicycle drive to goal, oracle
Oracle
Unicycle drive to goal, linear
Linear
Unicycle drive to goal, bilinear
Bilinear

Body-velocity drone, figure-8 velocity command

Drone figure-8, oracle
Oracle
Drone figure-8, linear
Linear
Drone figure-8, bilinear
Bilinear
Linear not ruled out: the gain varies little

Thrust-driven quadrotor, fly-to-goal thrust command

Quadrotor fly-to-goal, oracle
Oracle
Quadrotor fly-to-goal, linear
Linear
Quadrotor fly-to-goal, bilinear
Bilinear
Not ruled out, yet linear of matching width fails at long horizons

Torque-limited pendulum, 15-step swing-up horizon torque command

Both learned models predict the angle itself, as in Hao et al., so the one-step input gain of their output is constant. Both swing the pendulum up and hold it.

Pendulum, 15-step swing-up horizon, oracle
Oracle
Pendulum, 15-step swing-up horizon, linear
Linear
Pendulum, 15-step swing-up horizon, bilinear
Bilinear

Torque-limited pendulum, 30-step swing-up horizon torque command

The same trained models, with only the swing-up horizon lengthened to 30 steps. The linear model no longer swings the pendulum up, while the bilinear one still does. In both settings, all five models of each class behave alike.

Pendulum, 30-step swing-up horizon, oracle
Oracle
Pendulum, 30-step swing-up horizon, linear
Linear
Pendulum, 30-step swing-up horizon, bilinear
Bilinear
The criterion is a necessary condition. When the input gain varies strongly over the visited states, no constant input matrix can match it under a linear readout, whatever the lifting features, and a larger linear lift does not help. When the gain varies little, the linear rollout is not ruled out and can meet the task tolerance, as in the graded drone study. The pendulum shows that passing the test is not enough, even for an output with a constant one-step gain, so a closed-loop test decides.
Contributions

What the paper adds

  1. A necessary condition for a constant input matrix. With a linear readout, a linear lifted model has one input gain everywhere. Over the states a task visits, its worst-case gain error is then at least half the gain variation νΦ, at every horizon step and for any dictionary.
  2. Where the criterion rules linear out. On the unicycle and on a drone with a wide yaw range, linear rollouts fail, while the bilinear one stays near the oracle and needs less than twice the linear MPPI update time. A graded drone study shows that the point of failure depends on the tolerance.
  3. Where it does not, and its limit. At small variation, the cheaper linear model can meet the tolerance, though the bilinear one is usually more accurate. On a torque-driven arm, the linear error stays small for the joint angles but grows with the one-step gain variation for the end effector. Passing the test is still not enough. In a pendulum swing-up with a horizon of 30 steps or more, bilinear models can succeed, whereas linear models of the same width fail in every tested setting, even when they predict the angle itself, whose one-step gain is constant.
The criterion

When is a constant input matrix ruled out?

Under a linear readout, a linear lifted model predicts the same input gain at every state. Somewhere on the states a task visits, it therefore misses the true gain Φ by at least half its variation νΦ, whatever the lifting features. The normalized variation ν̂ lies between 0 and 2.

Legend: true gain (dashed black), linear model (orange), bilinear model (blue)
ν̂ small

A narrow heading range

A narrow heading range keeps the input gain nearly constant over the operating set

When the visited headings stay in a narrow range, the input gain stays nearly constant and the bound is small. The criterion does not rule the linear rollout out, and whether it is accurate enough becomes a closed-loop question. If the input reaches the tracked output only through acceleration or higher derivatives, the first-order gain is zero and the criterion says nothing.

ν̂ large

A freely turning heading

A freely turning heading makes the input gain vary widely over the operating set

When the heading turns freely, the rotation sweeps the gain across its range, and a velocity-commanded vehicle reaches ν̂ = 2. A linear lift is ruled out once the bound exceeds the task tolerance. A larger lift does not help, since the input still multiplies the same constant matrix. A bilinear rollout, whose input matrix depends on the lifted state, can follow the change.

Method

Two ways for the input to enter

Koopman methods lift the state through a dictionary into z = Ψ(x), and MPPI rolls thousands of sampled input sequences through the lifted model. The question is how the input u enters that rollout.

Linear rollout
z+ = A z + B u

One constant input matrix B for every state, the form used by recent Koopman MPPI controllers.

Bilinear rollout
z+ = A z + B0 u + Σi ui (Bi z)

The input also multiplies the lifted state, so the predicted input gain changes with the state.

The cost reads the observables back linearly, b = C z. Writing M(u) = A + Σi ui Bi, the bilinear step becomes z+ = M(u) z + B0 u, which costs m+1 matrix–vector products against one for the linear model. Its predicted input gain is affine in the lifted state, so it can match the true gain on the visited states exactly when that gain is affine in the lifted features. Each model learns its dictionary jointly with its matrices, and both use the same architecture, data, and multi-step loss.

Bilinear Koopman MPPI · one control step
  1. Lift the current state once, z0 = Ψ(x).
  2. Sample K input sequences vt(k) = Pc(ut + εt(k)), with ε ∼ 𝒩(0, Σ) and Pc the identity or a projection onto the input set.
  3. Roll each through the bilinear model z+ = M(v) z + B0 v, accumulating the trajectory cost S(k) on the predicted observables.
  4. Update the plan: ut ← ut + (Σk w(k) εt(k)) ∕ (Σj w(j)),  w(k) = exp(−(S(k) − minj S(j)) ∕ λ).
  5. Apply u0 projected onto the input set, shift the plan, and warm-start the next control step.
Results

Five systems, by gain variation

Each system is placed by its normalized gain variation ν̂. Where ν̂ is large, the linear rollout fails and the bilinear one stays close to the oracle. Where ν̂ is small or the criterion is silent, the linear rollout is not ruled out, and the closed-loop outcome depends on the task.

System Gain variation ν̂ Closed loop (Oracle / Linear / Bilinear) Open-loop prediction Criterion
Unicyclevelocity command R(θ), 2 90.8 / 0.8 / 90.4  % success bilinear over 30× more accurate ruled out
Dronevelocity command R(ψ), 1.5–1.9 0.046 / 1.40 / 0.046  m bilinear over 100× more accurate ruled out
Quadrotorthrust command position: second order
velocity: 0.27
20 of 20 / 20 of 60 / 54 of 60  stay within 0.12 m depends on channel and horizon not ruled out
Torque armtorque command second order prediction only end effector: linear input-response error 3–10× the bilinear
joint angles: small for both
silent
Pendulumtorque command 0 16 / 0 / 14  of 16 settings linear error over 30% larger not ruled out

Closed-loop entries: success rate over 250 trials per controller (unicycle), mean tracking error over 60 episodes (drone), trials that stay within 0.12 m of the goal over the last 2 s of a 10 s flight (quadrotor), and MPPI settings in which the class succeeds, with both learned classes at width 64 (pendulum). On the quadrotor, the bilinear model succeeds more often for all five data sets, and the gap is not attributed to a state-dependent gain. The pendulum counts use the observables of Table 1 (sine and cosine of the angle), and wider linear models (width 256) succeed in the four settings with a 65-step swing-up horizon. With angle outputs, all five linear models succeed at a 15-step swing-up horizon, but at most two do at 20 steps, and the linear models fail in every setting from 30 steps on. Bilinear models with the same outputs fail at 65 steps, but at least four of five succeed at 20 steps and in the four clamped settings with 30 or 45 steps. "Second order" means the input reaches the output only through acceleration, so the criterion is silent for it.

Graded gain variation

The drone's yaw range sets ν̂ = 2 sin ψ̄ (2 beyond ψ̄ = π/2). The linear open-loop error grows with it and stays within 2% of a constant-gain least-squares predictor, while the bilinear error stays below 0.006 m. In closed loop, the bilinear controller's mean tracking error is within 0.006 m of the oracle's in every episode. All linear episodes succeed up to ν̂ = 0.40, 0.96, or 1.43 for tolerances of 0.10, 0.15, or 0.25 m. The criterion bounds the one-step input-response error, not the tracking error, so it does not predict these levels.

ψ̄ (rad)ν̂Linear (m)LS error (m)Bilinear (m)Linear success
000.00140.00140.001015/15
0.20.400.0410.0410.001515/15
0.50.960.0980.0980.005415/15
0.81.430.1530.1550.00235/15
1.21.860.2210.2230.00130/15
π/220.2790.2810.00100/15
π20.4090.4110.00310/15

Open-loop position errors at 15 steps, means over five training runs per class. LS is a constant-gain least-squares predictor. Linear success counts episodes within the 0.15 m tolerance over five models and three references.

Other rollout classes

Every class gets the same data, training budget, and MPPI. A larger linear lift does not help. On the drone, the rollouts with a state-dependent input gain come within 7% of the oracle, except a decoder whose training collapsed. On the unicycle, only the bilinear model and the neural model with clamped inputs come close, the latter at one to two orders of magnitude more operations per step.

Rollout modelUnicycle success (%)
unclamped / clamped
Drone tracking error (m)Operations per step
unicycle / drone
Linear0.8 / 1.31.40 ± 0.8980 / 221
Linear, N = 29—1.38 ± 0.95— / 957
Linear + decoder (γ = 0)22.4 / 53.30.049 ± 0.0114944 / 5469
Linear + decoder (γ = 0.1)15.6 / 58.0training collapsed (9 of 10 runs)4944 / 5469
Frozen bilinear28.8 / 28.70.048 ± 0.01180 / 221
Neural dynamics53.6 / 1000.046 ± 0.00917,408 / 17,792
Bilinear90.4 / 1000.046 ± 0.009208 / 897
Oracle (true model)90.8 / 1000.046 ± 0.009—

Operations are multiply–accumulate operations per rollout step. "Clamped" restricts the candidates to the training input range. The frozen model holds the bilinear input matrix at the current state over the horizon.

Reproducibility

Experiment parameters

Key per-system MPPI settings, shared by the linear and bilinear controllers. No parameter was tuned separately for either learned model.

System N (lifted dim) K (samples) T (horizon) Δt (s) λ (temperature)
Unicycle81,536400.050.4
Drone131,024150.050.25
Pendulum82,560650.050.8
Quadrotor241,500200.020.5
Simulators. Unicycle & drone kinematic · pendulum analytical · quadrotor & torque arm in MuJoCo
Protocol. Unicycle 250 trials per controller · drone 60 episodes · quadrotor 60 trials of 10 s (oracle 20) · pendulum 16 MPPI settings, 10 trials per model
Rollout cost. m+1 matrix–vector products per step vs. 1 for linear
Timing (one CPU thread). One bilinear MPPI update takes 4.9 / 2.4 / 5.8 / 6.4 ms vs. 3.5 / 1.3 / 4.1 / 3.6 ms for linear (unicycle / drone / pendulum / quadrotor)
Citation

BibTeX

@article{lee2026linearbilinear,
  title   = {Linear or Bilinear: A Criterion for Koopman Rollouts
             in Sampling-Based Predictive Control},
  author  = {Lee, Kangmin and Kim, Sanghyun},
  journal = {International Journal of Control, Automation and Systems},
  year    = {2026},
  note    = {Under review},
  url     = {https://rcilab.github.io/koopman-mppi}
}