APAC: Arbitrated Predictive Actor-Critic
- APAC is a modular control framework that fuses actor–critic RL with MPC to ensure robust and safe performance in nonlinear, constrained systems.
- It employs parallel MPC solves with actor roll-out and a shifted warm start, effectively mitigating local minima and suboptimal trajectories.
- The framework provides theoretical performance bounds based on critic accuracy and MPC horizon while demonstrating practical improvements in tasks like autonomous driving.
The Arbitrated Predictive Actor–Critic (APAC) algorithm is a modular control strategy that synthesizes actor–critic reinforcement learning (RL) with nonlinear model predictive control (MPC). APAC exploits the complementary strengths of RL and MPC by using a trained actor–critic pair to initialize and evaluate multiple parallel MPC solves at every timestep. The online arbitration between trajectories ensures robust performance and substantial improvement over standalone RL or MPC policies for nonlinear, constrained systems. APAC introduces performance guarantees based on critic accuracy and MPC horizon, enabling safe and efficient control without global optimality requirements (Reiter et al., 2024).
1. Problem Setting and Cost Structure
APAC is formulated for discrete-time nonlinear systems of the form
where is smooth, and is compact. The infinite-horizon cost, for stage cost and discount , is
with given. For a stationary policy , the cost is , and the optimal value function .
MPC computes an approximate solution via finite horizon 0 and terminal cost 1:
2
with the optimization 3.
This structure generalizes stochastic and deterministic optimal control, where the limitations of a short MPC horizon or approximate critic induce suboptimality.
2. Actor–Critic Representation and Training
APAC assumes offline availability of:
- Critic 4, trained to minimize the Bellman residual:
5
where 6 is a replay buffer.
- Actor 7, trained to minimize the expected Q-value or value objective
8
The actor is used offline during training (e.g., with Soft Actor–Critic (SAC) or Proximal Policy Optimization (PPO)), and online for MPC initialization and trajectory roll-outs.
Actor trajectory roll-out for 9 steps from state 0 constructs candidate actions
1
producing 2.
3. Parallel MPC Architecture and Arbitration
At each timestep 3, APAC executes two parallel MPC optimizations:
- Actor-warm-start MPC: Initialized by the actor roll-out 4 from the current state.
- Shifted-warm-start MPC: Initialized by shifting the previous solution 5, appending 6.
Both solves use the RL critic 7 as terminal cost. After solving, two open-loop trajectories are obtained:
- 8 (actor-warm-start)
- 9 (shifted-warm-start)
The infinite-horizon cost for each trajectory is approximated as
0
1
Arbitration: The first input of the lower-cost trajectory (by 2 vs. 3) is applied to the plant, and the full trajectory is stored as next step’s shifted-warm-start candidate.
This parallel architecture increases computational effort only marginally (factor ≈2), but significantly mitigates local minima in MPC optimization and exploits the complementary behavior of actor–critic and classical solvers (Reiter et al., 2024).
4. Performance Guarantees
APAC provides theoretical guarantees under a uniform Bellman error bound for the critic:
4
With this, the APAC closed-loop cost 5 versus the pure actor 6 satisfies:
7
For the optimal value 8, the following suboptimality bound holds for the APAC controller:
9
If the critic's Bellman error 0 and the horizon 1, APAC attains optimality. These bounds hold even when MPC optimizations are not globally optimal, as long as the parallel candidates are solved and evaluated as described.
5. Online Execution Flow
APAC’s online controller proceeds as follows:
- Initialization: At 2, initialize shifted-warm guess 3 (e.g., zeros or actor roll-out).
- Measurement: Observe current state 4.
- Actor Roll-out: Simulate actor trajectory for 5 steps to form 6, 7.
- Shifted Guess: Shift previous step's optimal input sequence and append a new actor step for 8.
- Parallel MPC Solves: Solve two MPC instances (one from actor-warm-start, one from shifted-warm-start).
- Cost Evaluation: Compute approximate infinite-horizon costs 9 and 0 for the two resulting trajectories.
- Arbitration: Apply the first control of the trajectory with lower cost; use the full selected trajectory as next step’s shifted guess.
- Iteration: Repeat at next timestep.
This control policy is modular, allowing the use of any actor–critic RL architecture and any MPC solver.
6. Implementation, Hyperparameters, and Case Studies
Key APAC hyperparameters include prediction horizon 1 (20–60 in cited applications), discount factor 2 (0.95–0.99), Bellman error 3 (tuned via RL training), and MPC solver configuration (tolerances, iterations).
Toy Problem ("Snow Hill"):
- Double integrator dynamics with position-dependent deceleration.
- Stage cost: 4 with 5.
- Compared pure SAC, pure MPC, and APAC.
- APAC reached the goal from all initial states, where MPC alone was often trapped and SAC was suboptimal. Closed-loop cost reduction was approximately 6 over SAC.
Autonomous Driving Overtaking:
- Five-state single-track Frenet dynamics, constraints on velocity, acceleration, and collision avoidance.
- RL actors from SAC and PPO; MPC horizon 7; RTI solver in acados.
- APAC–RTI with actor warm start every 8 steps.
- APAC–RTI outperformed pure MPC (9–0 cost reduction for 1) and both SAC and PPO, especially escaping local MPC minima.
Computation times (mean/max, ms) for 2:
- RL–SAC policy evaluation: 3 (4)
- MPC: 5 (6)
- APAC–RTI (SAC): 7 (8)
APAC supports arbitrary actor–critic and MPC solver combinations, trading CPU cost for improved local and global control performance. Longer horizons and improved critic fit (9) tighten suboptimality bounds, but increase computational burden.
7. Modularity and Practical Remarks
The APAC framework is architecturally modular: any actor–critic pair (e.g., SAC, PPO) and any MPC solver (e.g., real-time iteration, sequential quadratic programming) can be used without modification. The method does not require globally optimal MPC solves; local solutions suffice for the performance guarantee, as arbitration over multiple candidate trajectories mitigates poor local minima. In real-time settings, limited-iteration RTI-based APAC controllers balance solution quality and computational cost.
APAC addresses the limitations of both RL and MPC: the actor–critic augments MPC with global information, while MPC leverages constraints and system models. This integration has been demonstrated to yield superior empirical and theoretical performance on a range of nonlinear, constrained control problems (Reiter et al., 2024).