Trusting Forecasts Through a Wrong Model: Riccati-Propagated Preview Gains

Many controllers act on predictions of the future. A battery operator sees a demand forecast for the next day, a vehicle sees the road ahead, and a building controller sees a weather forecast. Receding horizon control, also called model predictive control (MPC), handles this well. At every step it plans the next several actions using a model of the system and the forecast, executes only the first action, and then replans once the new state is observed. How much the current action should react to a forecast $\tau$ steps ahead is set by a matrix gain. That gain comes out of the Riccati recursion, the backward equation that computes the optimal quadratic cost-to-go of a linear system. In practice the gain is computed from an estimated model $(\hat A, \hat B)$. The theory has examined two error sources separately: errors in the forecast, with the dynamics assumed known, and errors in the dynamics, with no forecast at all. It has not examined what happens to the forecast gains when both are wrong at once.

This note proposes to answer that question and to turn the answer into a controller. The idea is to treat each forecast gain as an uncertain estimate. Its uncertainty can be computed by pushing the least-squares covariance of $(\hat A,\hat B)$ through the derivative of the Riccati equation. The controller then shrinks each lookahead's contribution by a matrix factor that reflects both forecast noise and model-induced gain error. The theory makes a sharp prediction. When the closed-loop system decays slowly, as an integrator-like battery state of charge does, model error rather than forecast noise caps the useful preview length, and the best window should grow like $1/\epsilon_m$, where $\epsilon_m$ is the model error. It should not grow logarithmically. Under online identification with $\epsilon_m \sim t^{-1/2}$, the preview length should therefore expand like $\sqrt t$.

Core Claim

Consider dynamics $x_{t+1} = A x_t + B u_t + w_t$ with forecasts $\hat w_{t+\tau}$ of the disturbance $w$. For unconstrained quadratic cost, the optimal action is $u_t = -K x_t - \sum_{\tau\ge 0} M_\tau w_{t+\tau}$. The gain on a lookahead $\tau$ steps away is

$$ M_\tau = (R + B^\top P B)^{-1} B^\top (A_{cl}^\top)^{\tau} P, $$

where $P$ solves the algebraic Riccati equation, $K$ is the feedback gain, and $A_{cl} = A - BK$ is the closed-loop matrix with spectral radius $\rho<1$. Certainty equivalence uses $\hat M_\tau$ built from $(\hat A, \hat B)$. A first-order expansion, assuming a well-conditioned $A_{cl}$, gives $\|\hat M_\tau - M_\tau\| \lesssim (c_1 + c_2\,\tau/\rho)\,\rho^{\tau}\,\epsilon_m$. The $\tau$ factor appears because differentiating a matrix power produces $\tau$ copies of the perturbation. The value of the forecast at lookahead $\tau$ scales only like $\rho^\tau$. The relative gain error therefore grows linearly in $\tau$, and forecasts beyond roughly $\tau \approx \rho/(c_2\epsilon_m)$ hurt more than they help, even when the forecasts themselves are perfect.

When $\rho$ is small, the exponential truncation analyzed by On the Regret Analysis of Online LQR Control with Predictions dominates, and this cap never binds. When $\rho$ is near one, the cap binds and determines the optimal window. That is the new regime this note targets.

The controller replaces each $\hat M_\tau$ with $\hat M_\tau \Gamma_\tau$. The matrix weight $\Gamma_\tau$ minimizes the expected squared action error from that lookahead, given three inputs: the forecast error covariance at $\tau$, the disturbance second moment, and the covariance of $\hat M_\tau$. That last covariance is obtained by the delta method through the Riccati tangent.

Research Program

The method borrows two existing tools. The first is the observation in Automatic differentiation of Sylvester, Lyapunov, and algebraic Riccati equations that the derivative of the Riccati solution with respect to the model satisfies a linear Lyapunov equation. This allows the Jacobian of every $M_\tau$ with respect to $(A,B)$ to be computed by one Lyapunov solve per parameter direction. That avoids the $n_x^2\times n_x^2$ Kronecker construction that limits Infinite-Horizon Differentiable Model Predictive Control. The second tool is least-squares identification. Its parameter covariance gives the input uncertainty that the Jacobian propagates.

The theory component has three parts. The first is a dynamic regret bound for certainty-equivalent preview control that carries a cross term coupling $\epsilon_m$ with the disturbance magnitude at each lookahead. This extends Zhang et al.'s decomposition into truncation, prediction, and matrix-approximation errors, which assumes known $(A,B)$. The second is a matching lower-bound construction on a scalar integrator showing that the $1/\epsilon_m$ window scaling is necessary. The third is a regret bound for the shrinkage controller in the online setting, where $\epsilon_m$ shrinks as data accumulates.

The motivating results stand in a definite relation to this work. Suboptimality Analysis of Receding-Horizon Quadratic Control With Unknown Linear Systems studies the planning horizon's trade-off between model error and terminal-cost error and arrives at $N_t \propto \log t$. Its setting has no external forecasts, so it says nothing about how far ahead to trust a preview. The $O(\epsilon^2)$ suboptimality results of Certainty Equivalence is Efficient for Linear Quadratic Control and Naive Exploration is Optimal for Online LQR constrain the proposal. They imply that for the feedback part $K$, model error costs only second order. The gain from shrinkage has to come from the preview part, where the error enters linearly through the cross term with nonzero $w$, and the experiments must check this.

For constrained problems, the shrunk preview is implemented by feeding the MPC quadratic program the modified forecasts $\Gamma_\tau \hat w_{t+\tau}$, together with terminal cost $\hat P$. The theory covers only the unconstrained case. Constrained behavior is treated empirically, and the proposal makes no claim beyond what the experiments show.

Baselines

The naive reference is static certainty-equivalent LQR that ignores forecasts and uses only $\hat K$. The minimax-optimality results of Mania et al. and Simchowitz and Foster describe this controller for stationary noise, and preview has to beat it in order to matter at all.

The strongest existing method is certainty-equivalent preview MPC with the full forecast window, as analyzed by Zhang et al. A stronger version of this baseline uses an oracle window: the best fixed $W$, chosen by grid search on held-out episodes with the same total simulation budget the shrinkage method gets for estimating forecast-noise covariance. A third baseline transplants Shi et al.'s rule $W_t \propto \log t$ to the preview window. A fourth is a set-membership robust receding-horizon controller in the style of Robust Data-Driven Receding Horizon Control. It is relevant on the constrained benchmark.

Two ablations isolate the key ingredient. One computes $\Gamma_\tau$ using forecast noise only, without the Riccati-propagated model term. The other uses a single tuned scalar geometric discount $\gamma^\tau$. All methods share the same identification data, forecasts, and random seeds.

No reported result was found on Lacuna for Zhang et al.'s or Shi et al.'s controllers on any of the benchmarks below, so the baseline numbers will be produced here. Beating a baseline means a lower cumulative regret relative to the clairvoyant controller, which knows the true model and the true disturbances. The reduction must be statistically separated across seeds in the slow-closed-loop regime. On the constrained benchmark it must also come with no increase in constraint violations or infeasibility.

Why not just…?

Why not just grid-search the preview window? This baseline is strong when the model error is fixed, and the oracle-$W$ baseline is included for exactly that reason. The proposal has two answers. First, under online identification $\epsilon_m$ shrinks, so the best window moves over time. The theory predicts $W^\ast \sim \sqrt t$, which a fixed grid-searched window cannot follow. Second, hard truncation discards directional information that matrix weights keep. If oracle-$W$ matches shrinkage in the online experiments, the contribution reduces to the scaling law, and the note will report it that way.

Why not just discount forecasts by a tuned scalar $\gamma^\tau$? This is the real threat. The derived error has the shape $\tau\rho^\tau$, not $\gamma^\tau$, and it is anisotropic: model error hits some disturbance directions far harder than others. Whether this matters is an empirical question. The scalar-discount ablation decides it. It is evaluated on systems where the model uncertainty is deliberately concentrated in one input channel, and on systems where it is isotropic. Shrinkage should win only in the first case.

Why not just use robust min-max MPC? Mania et al. document the price of caution once errors fall below the stability threshold. In the preview setting, a worst-case design also discards the forecast value that motivates the problem. The set-membership baseline will show whether that price appears on the battery task.

Proposed Experiments

The first testbed uses synthetic linear systems: random stabilizable systems and the seven mass-spring-damper systems used by Amos et al. The closed-loop spectral radius is swept from 0.5 to 0.99, $\epsilon_m$ is controlled by the amount of identification data, and disturbances follow the synthetic ARIMA process of Adversarial Examples for Model-Based Control. The decisive check is whether the empirically best window scales like $1/\epsilon_m$ when $\rho$ is near one, and like the log-based truncation of Zhang et al. when $\rho$ is small. A log-log slope near $-1$ in the slow regime confirms the cross term. A flat slope refutes it.

The second testbed is online. Identification runs alongside control, and the experiment compares $W_t\propto\sqrt t$ shrinkage against $\log t$ and fixed windows on cumulative regret.

The third testbed is the PJM 2015 battery-storage task from Li et al. The state of charge is an integrator, which places it in the $\rho\approx1$ regime, and the battery has hard state-of-charge and power limits. The metrics are operating cost relative to clairvoyant control, battery throughput, and the infeasibility rate. Li et al. report that adversarial forecasts raise cost by 8500%, while random noise of the same size had negligible effect on the ARIMA task. This experiment does not use adversarial forecasts. It uses honest forecasts with an imperfectly identified battery model, which is a different stress test. A secondary check measures wall-clock overhead: the extra Lyapunov solves per replanning step must stay small next to the quadratic program's solve time.