Nonlinear time-optimal model predictive control (TOMPC) enables highly performant control of constrained systems, but its computational cost prohibits real-time use on fast dynamical systems. Neural network imitation of the TOMPC control law can reduce online computational costs, yet existing work mostly targets quadratic cost formulations in simulation and addresses the challenges of neural controllers in isolation. This work imitates a long-horizon nonconvex TOMPC with hard terminal constraints, whose high computational cost limits training-data generation. We present (i) self-informed sampling (SIFS), a data-efficient expert-sampling strategy that uses a learned time-to-go to query the expert only where the policy deviates from time-optimal behavior, (ii) a complete training and control architecture that jointly addresses dataset correlation, suboptimal expert labels, covariate shift, constraint satisfaction and model mismatch, and (iii) real-world validation on a Furuta pendulum. SIFS matches standard dataset aggregation performance in roughly one-third of the training time and with less than half the training data. The resulting controller matches the region of attraction of the expert TOMPC while raising the control frequency from 1.4Hz to 1kHz. On hardware, the controller swings up and stabilizes the pendulum along trajectories closely matching the expert TOMPC solution.
Figures & tables
Fig. 1: Schematic outline of the proposed integrated architecture. Roman numerals refer to the blocks as introduced in the text.
Fig. 2: Predicted time-to-go (T2G) along a rollout for the expert MPC (red) and a partially trained NNMPC (yellow). While the NNMPC prediction is noisy, it closely follows the expected trend except for the highlighted transition (dashed line), where it jumps to a different trajectory. This deviation indicates suboptimal behavior and identifies the states most informative for expert querying.
Fig. 3: Performance comparison of the expert MPC and NNMPC over 1000 randomly sampled initial states.
Computation time (ms)
Max. reliable
Mean
Std. dev.
Max
freq. (Hz)
MPC
114.165
150.132
732.676
1.36
NNMPC (CPU)
4.839
0.809
10.576
94.6
NNMPC (GPU)
0.409
0.094
0.998
1002
TABLE I: Per-iteration computation time during pendulum swing-up and the resulting maximum reliable control frequency.
Fig. 4: Evolution of the failed trajectory percentage over training iterations, with and without the proposed weighting strategy.
Fig. 5: Training progress of self-informed sampling (SIFS), DAgger, and MC-dropout.
Fig. 6: Each model parameter ( m2 , L1 , b2 , l2 , J^2 ; notation as in [ 30 ] ) was systematically perturbed via p←p⋅(1+δ/2) , where δ denotes the normalized deviation, varying between −1 and 1 . For every parameter setting, 200 rollouts were performed from randomly sampled initial states. Each cell reports the percentage of successful trajectories.
Fig. 7: State and control trajectories of the expert MPC solution, the NNMPC in simulation, and the NNMPC deployed on the physical pendulum. The solid hardware curves show one representative run. The shaded bands show the minimum-to-maximum envelope over four additional hardware reruns.
Fig. 8: Swing-up and stabilization starting from the downward equilibrium. Timestamps correspond to the final frame in each overlaid sequence.