Skip to content
Robotics.world

Research

Accelerating Reinforcement Learning via MPC Solver-Gradient Guidance for Weights-varying MPC

In MPC, the cost-function weights determine how the controller trades off competing objectives, but one fixed set of weights is rarely good across all operating conditions.

The paper’s first page · arXiv:2609.01061
arXiv
2609.01061 · Preprint · not peer-reviewed
Published
2026-09-01
Authors
Baha Zarrouki, Arslan Thobani, Jasper Hoffmann, Mattia Piccinini, Rudolf Reiter, Felix Jahncke, Sébastien Gros, Davide Scaramuzza, Johannes Betz

In plain words

In MPC, the cost-function weights determine how the controller trades off competing objectives, but one fixed set of weights is rarely good across all operating conditions.

Key results

  • Sample efficiency gain. SG-RL reaches PPO's best closed-loop return with up to 70.6% fewer samples.
  • Better than pure solver gradients. All SG-RL variants outperform the GB-PL baselines by at least 54% in closed-loop return.

AI summary

Overview

  • Research area: Robotics / control — combining Model Predictive Control (MPC) with reinforcement learning for online cost-weight adaptation.
  • Technical level: Advanced (assumes familiarity with MPC formulations, policy-gradient RL, PPO, and differentiable optimization).
  • Scope: A single paper proposing Solver-Gradient Guided Reinforcement Learning (SG-RL), a hybrid learning scheme that adds differentiable-MPC solver gradients as auxiliary guidance inside PPO, evaluated on autonomous racing with weights-varying nonlinear MPC.

What This Paper Is About

In MPC, the cost-function weights determine how the controller trades off competing objectives, but one fixed set of weights is rarely good across all operating conditions. The paper learns a neural policy that adjusts those weights online, and asks how to combine two very different learning signals: sample-based reinforcement learning (which optimizes the real closed-loop return but needs many samples) and gradients obtained by differentiating through the MPC solver (which are cheap and low-variance but biased when the model is wrong). The goal is a policy that keeps the closed-loop return as its objective while using solver sensitivities to learn faster and more stably.

Key Contributions

  1. SG-RL framework. A solver-sensitivity augmentation for RL-based online MPC cost-weight adaptation: the sampled closed-loop return remains the objective, while bounded, normalized solver-derived gradients act as auxiliary guidance for stability and sample efficiency.
  2. Four modular PPO instantiations. The same solver-gradient signal is injected into four distinct components of Proximal Policy Optimization — actor-update scaling, performance-gated auxiliary policy learning, solver-guided advantage estimation, and solver-aware critic learning — and evaluated separately to see which form of guidance helps most.
  3. An improved GB-PL baseline. Beyond prior work, the gradient-based baseline collects rollout batches, shuffles them into minibatches, and runs multiple optimization epochs, uses a bounded tanh output parameterization, and uses a history-aware observation space (reactive current context, proactive reference preview, adaptive performance history).
  4. Full-scale validation under deliberate model mismatch. Closed-loop evaluation on two full-scale, high-fidelity autonomous racing platforms with nonlinear MPC for combined longitudinal and lateral control, following racelines near the handling limits.

Main Findings

  • Sample efficiency gain: SG-RL reaches PPO's best closed-loop return with up to 70.6% fewer samples.
  • Better than pure solver gradients: All SG-RL variants outperform the GB-PL baselines by at least 54% in closed-loop return.
  • Better peak performance than PPO: All SG-RL variants outperform the PPO baseline in peak closed-loop performance.
  • Zero-shot generalization: The learned weight-adaptation policies transfer to unseen environments without retraining.
  • Interpretable behavior: The policies produce readable weight-adaptation strategies rather than opaque schedules.
  • Trade-off confirmed: Environment-based gradients reflect the realized objective but are sample-hungry and high-variance; solver gradients are low-variance but inherit bias from the predictive model, which motivates the hybrid.
  • Per-variant ranking not available: The supplied content is truncated mid-Section VI, so the specific relative ranking and per-variant quantitative results are not reported here.

Methodology in Plain English

The system has two levels. A low-level nonlinear MPC solves a constrained optimal control problem at every timestep and applies the first control input, exactly as in normal receding-horizon control. On top sits a small feed-forward neural network that looks at three things — current measurable state (reactive), a short lookahead of reference quantities such as target speed and path geometry (proactive), and recent tracking errors (adaptive) — and outputs the MPC cost weights for the next planning horizon. The model and constraints of the MPC are never changed; only the weights move.

To keep the network's output sane, each weight is squashed by a scaled tanh into a domain-knowledge-specified positive range, which also regularizes the search space.

Two baselines are compared. The first, GB-PL, backpropagates a smooth surrogate loss through the MPC solver using KKT-condition sensitivities computed in acados, then through the policy. The second is standard PPO, which treats the plant plus MPC as the environment and learns from sampled closed-loop returns only, with the reward defined as the negative of the same instantaneous performance loss used by GB-PL so the comparison is fair.

SG-RL sits between them. It normalizes the weight-space solver loss gradient to unit length (zeroing it when sensitivities are unavailable, which reduces to ordinary PPO), then injects that direction into four different places in the PPO machinery. The sampled closed-loop return still drives the optimization; the solver signal just steers it. The cars race near the limits of handling with an intentionally mismatched model, which is exactly the regime where pure solver gradients should mislead.

Why This Matters

  • Research impact: It reframes differentiable-MPC gradients from "an objective to optimize" into "an auxiliary signal inside RL," which is a reusable idea for any bilevel problem where a numerical optimizer sits between the policy and the reward.
  • Real-world applications:
    • Autonomous racing and high-performance vehicle control, where the optimal trade-off between tracking and control effort changes from corner to straight.
    • Drone and legged-robot control, where payload, terrain, or wind shift the right cost balance mid-flight.
    • Industrial process control, where setpoint priorities change with production mode or disturbance level.
    • ADAS and on-road autonomy, where comfort, safety-margin, and progress weights should adapt to traffic and weather.
  • Industry relevance: The approach preserves the existing certified MPC model and constraints and only adapts weights, which is far easier to certify and deploy than replacing a controller with an end-to-end learned policy; the sample-efficiency gain also directly reduces expensive high-fidelity simulation or test-track time.

Future Directions

  • Per-variant guidance design: Determining analytically which of the four injection points suits which kind of task, rather than selecting empirically.
  • Robustness to solver failure: The current design zeros the guidance signal when sensitivities are unavailable; how to handle frequent infeasibility or active-set switching more gracefully is open.
  • Beyond quadratic diagonal costs: Whether normalized solver guidance remains well behaved for non-diagonal or non-convex cost parameterizations.
  • Safety guarantees: Quantifying how bounded weight adaptation interacts with constraint satisfaction and stability guarantees during deployment.

Target Audience

Researchers and graduate students working at the intersection of MPC, differentiable optimization, and reinforcement learning; control engineers in automotive, aerospace, and robotics who already run MPC in production and want adaptive weighting without abandoning their model; and RL practitioners interested in injecting model-based gradient structure into policy-gradient methods. Readers without a background in constrained optimal control and PPO will find Sections II–V heavy going.

Authors’ abstract

In Model Predictive Control (MPC), cost-function weights shape closed-loop behavior, yet changing conditions often make fixed parametrizations suboptimal and motivate context-dependent online adaptation. Learning such policies is difficult because behavior depends implicitly on numerical MPC solutions, producing nonlinear, potentially nonsmooth, long-horizon dependencies on policy parameters. This creates a bias-variance tradeoff: Reinforcement Learning (RL) optimizes…

The full abstract on arXiv
Read the original paper

Related papers