Papers
Topics
Authors
Recent
Assistant
AI Research Assistant
Well-researched responses based on relevant abstracts and paper content.
Custom Instructions Pro
Preferences or requirements that you'd like Emergent Mind to consider when generating responses.
Gemini 2.5 Flash
Gemini 2.5 Flash 175 tok/s
Gemini 2.5 Pro 54 tok/s Pro
GPT-5 Medium 38 tok/s Pro
GPT-5 High 37 tok/s Pro
GPT-4o 108 tok/s Pro
Kimi K2 180 tok/s Pro
GPT OSS 120B 447 tok/s Pro
Claude Sonnet 4.5 36 tok/s Pro
2000 character limit reached

MPC-Based Safety Filter

Updated 13 November 2025
  • MPC-based safety filters are defined as receding-horizon intervention mechanisms that modify arbitrary inputs to ensure hard state and input constraints while maintaining system stability.
  • The framework utilizes an online constrained MPC optimization to minimally adjust proposed control signals, enforcing a stability bound through a Lyapunov-based cost function.
  • Practical applications, such as automotive driver assistance, demonstrate the filter’s ability to integrate backup control laws and guarantee bounded convergence under dynamic conditions.

A Model Predictive Control (MPC)-based safety filter is a receding-horizon intervention mechanism that wraps an arbitrary (and potentially unsafe) input signal—typically from a learning-based controller, human operator, or trajectory planner—with a formal guarantee of safety and, when possible, stability. The core principle is to solve a constrained MPC problem at each time-step, "filtering" the proposed input so that the actual control administered is certifiably safe (i.e., satisfying state and input constraints), and, in advanced treatments, ensures desirable stability properties such as bounded convergence or uniform asymptotic stability. This framework extends and systematizes classical MPC safety and stability results, allowing seamless integration with practical system designs, robust backup control, and adaptation to dynamic trajectory tracking.

1. System Architecture and Notation

Consider the discrete-time, nonlinear plant model: xk+1=f(xk,uk)x_{k+1} = f(x_k,u_k) where xkXRnx_k \in X \subseteq \mathbb{R}^n is the state (in a compact set XX), ukURmu_k \in U \subseteq \mathbb{R}^m is the control input (in a compact set UU), and ff is continuous with f(0,0)=0f(0,0)=0. The filter operates online: at each time kk, it receives a proposed input udes(k)u_{\mathrm{des}}(k), which may not satisfy constraints or deliver stability. The safety filter dynamically checks the feasibility of udes(k)u_{\mathrm{des}}(k). If infeasible, it substitutes the minimally invasive safe action u(k)u(k) through the receding-horizon MPC framework.

Key aspects:

  • Hard state and input constraint enforcement,
  • Optional stabilization/tracking to a target (origin or reference),
  • Online backup controller for recursive feasibility.

2. MPC-Based Safety Filter Formulation

At each time kk, after measuring the current state xkx_k and receiving the candidate input udes(k)u_{\mathrm{des}}(k), the filter solves the following finite-horizon nonlinear MPC optimization: minu0k,...,uN1k  G(xk,uk,udes(k))\min_{u_{0|k},...,u_{N-1|k}} \; G(x_{\cdot|k},u_{\cdot|k},u_{\mathrm{des}}(k)) subject to

x0k=xk,xi+1k=f(xik,uik),xikX,uikU,xNkXfx_{0|k} = x_k, \quad x_{i+1|k} = f(x_{i|k}, u_{i|k}), \quad x_{i|k} \in X, \quad u_{i|k} \in U, \quad x_{N|k} \in X_f

where the cost function GG is typically

G=udes(k)u0k2G = \|u_{\mathrm{des}}(k) - u_{0|k}\|^2

to ensure minimal perturbation from the nominal command. The terminal set XfX_f is chosen so it is forward-invariant under a nominal local controller, ensuring recursive feasibility.

The safe output assigned to the plant is always: u(k)=u0ku(k) = u_{0|k}^* where the superscript * denotes the optimizer's solution.

3. Stability Augmentation Mechanism

To guarantee stability beyond mere constraint satisfaction, the filter augments the optimization with a classical MPC Lyapunov-style cost: J(xk,uk)=i=0N1(xik,uik)+Vf(xNk)J(x_k, u_{\cdot|k}) = \sum_{i=0}^{N-1} \ell(x_{i|k}, u_{i|k}) + V_f(x_{N|k}) where (x,u)\ell(x,u) is a positive-definite stage cost (often quadratic), and VfV_f is a terminal cost (typically via Riccati or LQR design). At each step, a one-step upper bound constraint is enforced: J(xk,uk)JB(k)J(x_k, u_{\cdot|k}) \leq J_B(k) where JB(k)J_B(k) is a time-varying stability bound, initialized by JB(0)J_B(0) and updated recursively: JB(k+1)=V(xk,k)ζ(k+1)(xk,u0k)J_B(k + 1) = V(x_k, k) - \zeta(k+1) \cdot \ell(x_k, u_{0|k}^*) with ζ(k+1)[ζmin,1]\zeta(k+1) \in [\zeta_{\min}, 1], trading off convergence speed and nominal matching.

Terminal ingredients:

  • A local backup controller κ(x)\kappa(x) and invariant terminal set XfX_f so that

Vf(f(x,κ(x)))Vf(x)(x,κ(x))V_f(f(x,\kappa(x))) - V_f(x) \leq -\ell(x, \kappa(x))

This guarantees recursive feasibility as well as bounded, Lyapunov-style stability.

Formal guarantees:

  • Bounded convergence: The state sequence remains bounded and converges to zero, i.e., xk0x_k \rightarrow 0 as kk \rightarrow \infty.
  • Uniform asymptotic stability: The same bound/convergence applies uniformly in any time-shifted window.

Proof relies on standard MPC Lyapunov decrease, shift-append backup policy, and recursive feasibility.

4. Online Filter Algorithm and Implementation

Algorithm 1 (Model Predictive Stability Filter)

  1. Initialize with horizon NN, stage cost \ell, terminal cost VfV_f, terminal set XfX_f, and bound JB(0)J_B(0).
  2. For each time-step kk:

    • Measure current state xkx_k.
    • Receive input udes(k)u_{\mathrm{des}}(k).
    • Solve MPC safety filter:

    minG(xk,uk,udes(k))\min G(x_{\cdot|k}, u_{\cdot|k}, u_{\mathrm{des}}(k))

    subject to dynamics, constraints xNkXfx_{N|k} \in X_f, and stability bound J(xk,uk)JB(k)J(x_k, u_{\cdot|k}) \leq J_B(k). - Apply u(k)=u0ku(k) = u_{0|k}^*. - Update the stability bound:

    JB(k+1)=V(xk,k)ζ(k+1)(xk,u0k)J_B(k+1) = V(x_k, k) - \zeta(k+1)\ell(x_k, u_{0|k}^*)

- Increment kk.

Backup logic: If udesu_{\mathrm{des}} is safe and does not violate the stability bound, the filter passes it through. Otherwise, it "projects" udesu_{\mathrm{des}} into the largest subset admitting a feasible backup trajectory.

5. Design Guidelines and Tuning Parameters

Critical parameters and their tuning:

  • Prediction horizon NN: Larger NN expands the filter’s feasible domain and reduces conservatism, but incurs higher computation. Typical values are N[10,50]N \in [10, 50].
  • Stage cost (x,u)\ell(x,u): Quadratic form (x,u)=xTQx+uTRu\ell(x,u) = x^T Q x + u^T R u; QQ penalizes state error, RR penalizes input deviation.
  • Terminal cost Vf(x)V_f(x): Quadratic Vf(x)=xTPxV_f(x) = x^T P x, where PP is obtained from the Riccati equation for an LQR design.
  • Terminal set XfX_f: Defined as Xf={x:Vf(x)τ}X_f = \{x : V_f(x) \leq \tau \}, with small τ\tau.
  • Stability trade-off ζ(k)\zeta(k): Lower ζmin\zeta_{\min} reduces intervention, higher values yield faster convergence.

6. Demonstrative Automotive Application

The framework is validated using an advanced driver assistance system scenario for a single-track car model linearized about 10 m/s cruising:

  • States: x=[zlong,zlat,ψ,v,β,ψ˙]TR6x = [z_{\mathrm{long}}, z_{\mathrm{lat}}, \psi, v, \beta, \dot \psi]^T \in \mathbb{R}^6
  • Inputs: u=[δ,a]Tu = [\delta, a]^T, with constraints such as δ35|\delta| \leq 35^\circ, 7a+2m/s2-7 \leq a \leq +2\,\mathrm{m/s}^2, box constraints on other variables.
  • Reference: Generated from a lane-change planner: sequence rk=(xkr,ukr)r_k = (x_k^r, u_k^r).
  • Filter parameters: N=30N = 30, Q=I6Q = I_6, R=I2R = I_2, PP from LQR, ζmin=0.1\zeta_{\min} = 0.1.

Key findings:

  • For nominal demanded (u_des) inputs, the filter is minimally invasive: average ζ0.18\zeta \approx 0.18.
  • When u_des would induce instability or violate constraints, e.g., sharp steering reversals, the filter actively projects the steering into the largest safe admissible set, ensuring convergence to the reference trajectory.
  • The performance bound

V(xT,T)V(x0,0)k=0T1ζ(k+1)(xk,uk)V(x_T, T) - V(x_0, 0) \leq -\sum_{k=0}^{T-1} \zeta(k+1)\ell(x_k, u_k)

is numerically verified for monotonic decrease.

  • Full constraint satisfaction and uniform convergence to the reference are attained.

7. Context and Significance

MPC-based safety filters with formal stability mechanisms, as constructed in this framework (Milios et al., 8 Apr 2024), represent a systematic methodology to shield safety-critical systems from the risks of arbitrary learning-based or human inputs. These filters guarantee hard constraint satisfaction and, by embedding Lyapunov-style stability costs and bounds, admit rigorous guarantees of bounded, even uniform, convergence under minimal intervention. The modular architecture enables plug-and-play augmentation of existing control stacks (including learning-based policies), supports computationally tractable online filtering, and is readily tuned for application-specific requirements. The framework's utility is exemplified in contextually demanding domains such as automotive lane-keeping and trajectory stabilization, delivering both empirical safety and mathematical guarantees without imposing excessive conservatism. The approach admits straightforward extensions to trajectory tracking and other domains, subject to the expressiveness of the terminal ingredients and stability bounds.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)
Forward Email Streamline Icon: https://streamlinehq.com

Follow Topic

Get notified by email when new papers are published related to Model Predictive Control (MPC)-Based Safety Filter.