Manuscript Offprint
arXiv:2610.20333VIGOR-MPC: Vision-Guided Objective Regulation MPC
Jelena Trisovic
Marek Landert
Rahel Rickenbach
Panagiotis Minos
Melanie N. Zeilinger
Abstract: Controlling an agent in an environment solely perceived through onboard vision is challenging: perception yields noisy, variable-length, and partially occluded context, while onboard compute is shared between perception and control, limiting the planning horizon executable in real time. We propose VIGOR-MPC, a modular student–teacher framework, agnostic to the perception pipeline, which addresses reference tracking across navigation tasks by distilling a privileged, field-of-view-aware long-horizon MPC into a computationally lightweight short-horizon MPC whose cost parameters are determined online from vision. The teacher operates in simulation with full state knowledge and a multi-trajectory formulation that guarantees the agent can stay within its field of view. The student observes only the noisy, occluded context produced by a perception module and learns, via a multi-level recurrent mapping, to infer cost parameters that aim to recover the teacher’s behavior despite missing information. We evaluate VIGOR-MPC on vision-based autonomous racing in simulation and on hardware. Using only onboard perception of the track, VIGOR-MPC generalizes to tracks unseen during training and approaches the lap times of the privileged long-horizon teacher while reducing per-step computation by over 90%.
Keywords: Vision-Based Control, Imitation Learning, Model Predictive Control
1 Introduction
In vision-based control tasks, an agent acts in an unknown environment that it perceives only through an onboard camera. While this setting allows for operation without previously mapping the environment and thereby enables a broader range of applications, such as hand-eye coordination for robotic grasping from monocular images [1], or general exploration tasks of mobile robots [2], it introduces challenges for control performance and safety: (i) uncertain and noisy perception, leading to imperfect reference and constraint estimates, (ii) a limited and potentially occluded field of view, (iii) the computational overhead of the perception module leaving limited compute for the controller, which can hinder fast reaction times, and (iv) the absence of prior knowledge about the environments encountered at deployment. While challenges (i)–(iii) are inherent to any vision-based controller, challenge (iv) is where end-to-end learning approaches fundamentally struggle, as they tend to generalize poorly to unseen layouts or new information sources.
Inspired by recent progress in combining vision-based with optimization-based control [3, 4], as well as developments in imitation learning exploiting the structure of optimization-based controllers [5, 6, 7], we demonstrate how structured imitation learning can be leveraged to bring the
Institute for Dynamic Systems and Control, ETH Zurich, Switzerland, ETH AI Center, These authors contributed equally (shared first authorship). The codebase is available in the eth research collection repository, https://doi.org/10.3929/ethz-c-000807583, or under https://github.com/VIGOR-MPC/codebase/. Further material can be found under https://vigor-mpc.github.io/.

Figure 1: Overview of the VIGOR-MPC framework. The student employs a predefined, parameterized MPC structure whose cost parameters are generated by a memory-capable neural network from noisy and partial environmental observations. The mapping is trained via imitation learning using a privileged teacher with full environmental knowledge. The vision-based challenges addressed by the framework, together with the resulting control requirements, are illustrated on the right.
strengths of optimization-based control to the vision-based setting. Our approach employs a student-teacher framework that addresses these challenges through a privileged, field-of-view-aware model predictive control (MPC) teacher with full state information, that is by construction capable of remaining safely within the field of view, and a computationally efficient student with multi-level memory that, via imitation, learns to adapt the parameters of a predefined control structure from the noisy, partially occluded, variable-length context produced by a perception module. Unlike prior work that learns short-horizon cost parameters under perfect information [6], our setting introduces imperfect, time-varying, partially occluded and missing context, addressed through a field-of-view-aware privileged teacher, a memory-capable parameter mapping, and real-time context-driven reference adjustment mechanisms enabling obstacle avoidance from perceived context alone. The student thereby inherits the teacher's field-of-view-aware safe and obstacle avoidant behavior while adapting online to perceptual uncertainty, demonstrated in simulation and on hardware on a vision-based racing task with no prior track knowledge.
Related Work We organize prior work on vision-based control by how much classical control structure is preserved between perception and action. End-to-end policies map camera observations directly to actions, from early behavior-cloning approaches in driving [8, 9] to recent foundation-model-scale variants [10]. However, they are data-intensive, lack constraint-handling, and require retraining under domain shift. Modular pipelines with a classical controller feed fixed-form perception outputs into a predefined controller, which was applied both in agile flight [11, 12, 3] and driving [13, 14]. The controller is safe and interpretable but rigid, and cannot adapt to noisy, or variable-length context. A recent line of work designs controllers that handle perception uncertainty explicitly [4, 15, 16] through different variants of constraint tightening rather than learned adaptation. Modular pipelines with a learned controller either map perception-derived system and environment states to actions via reinforcement learning or imitation trained policy [17, 18, 19, 20] or learn only specific ingredients of an otherwise classical controller, such as the cost or decision variables of an MPC [7, 21, 6], dynamics model [22], its sampling distribution [23], or a terminal value function [24]. Fully learned controllers handle constraints only implicitly; partially learned ones preserve the optimization scaffolding and inherit its safety and generalization, but have been developed almost exclusively with clean state-based context, hence neglecting perception. Building on [6], our work fills the gap in this last category by adapting cost parameters to the noisy, occluded, variable-length context produced by a perception module.
R1 - Safety under Limited Context with Variable Length and Occlusions: When a camera is mounted on a moving agent, information about upcoming references and the environment is limited by its field of view. Furthermore, as the agent, camera, or surrounding objects move, the field of view changes and previously visible information may disappear. This occurs, for example, in autonomous driving when a vehicle enters a curve, in tabletop manipulation when a robotic arm occludes objects and reference points, or when perceived frames are lost during transmission. Instead of the required , , and we rather observe , , and , with , , and smaller or equal to , potentially different from each other, and sometimes even equal to zero. Moreover, as the agent moves through the unknown environment, the amount of captured contextual information varies with its orientation, and in general for . Consequently, the controller must (i) ensure safe operation by planning the existence of a trajectory within the field of view and enforcing constraint satisfaction under a time-varying effective horizon , , without conditioning on a fixed or minimum lookahead; (ii) maintain a recurrent internal state that aggregates past observations, so that context which is temporarily occluded or out of view at time remains available to the controller.
R2 - Robustness to Noisy and Uncertain Context: Relevant environmental information must be extracted from the captured images using a suitable perception algorithm, which introduces a source of uncertainty that manifests as noise and outliers in the estimated references and context. Such perception errors are typically difficult to model or bound reliably, as they combine small estimation noise with occasional large outliers and may vary with viewing angle, lighting, or scene content. The resulting estimates are denoted as , and , where and indicate the noise vectors of corresponding dimensions whose distributions are generally unknown and non-stationary. The controller should therefore compensate for perception uncertainty directly from data, without requiring explicit uncertainty estimates, prescribed error bounds, or distributional assumptions on .
R3 - Generalizability to Unknown Environments and Modularity: The core motivation for vision-based control is that the environment is unknown both during deployment and training, and hence the framework cannot be trained on the exact target environment. Furthermore, the representations of , , and are application-dependent: the context may encode any handcrafted or learned property of the scene obtained from arbitrary sensor modalities, while the reference may be specified, e.g., as waypoints or road curvature. The controller should hence generalize to previously unseen environments and remain agnostic to the specific perception pipeline producing its inputs.
R4 - Fast Reactions under Limited Compute: In practical hardware deployments, computational resources are inherently limited and control decisions must be generated with low latency. At the same time, the perception stack already imposes a substantial computational burden, leaving only limited resources for the control computation. The resulting controller should hence be computationally efficient, ensuring fast reaction times while maintaining high performance.
Since racing applications on an unknown track [25, 4] describe a safety-critical robotics application in an unknown, continuously changing environment, they describe a representative bench-mark for the proposed framework. Hence, for illustration, we will repeatedly refer to the example of an autonomous car, operating on an unknown planar road of constant and known width . In this setting, is the track centerline and contains the track boundaries and any road-blocking obstacles. The vehicle dynamics are expressed in the Frenet frame attached to the centerline, so that the local track curvature enters explicitly. Hence, is the track curvature along the upcoming reference. The example setup is visualized in Figure 2 and further details are provided in the Appendix D. To demonstrate that VIGOR-MPC is not specific to car racing, we additionally include quadrotor racing and reference-tracking experiments in Appendix F.4.

Figure 2: Illustration of the considered example setup.
3 Method
The proposed framework adopts a student–teacher imitation learning structure, specifically designed to address the challenges inherent to vision-based control introduced in Section 2. Since both the student and the teacher build upon MPC, we briefly introduce the MPC problem in Section 3.1. This is followed by a detailed overview of the proposed learning framework and the employed key concepts in Section 3.2. A visualization of the main idea is provided in Figure 1.
3.1 Preliminaries: Model Predictive Control
With indicating the prediction horizon, we denote a general MPC controller with . Combining both context sources in , at time step , it takes the current state , as well as the reference and context information , and as input and solves:
(1)
The function defines the stage cost with parameters , summarized in . Furthermore, potentially context-dependent state and control-input constraints are indicated with and , respectively. Solving Eq. 1 yields the optimal state and control-input trajectories over the prediction horizon , denoted by and , with and indicating the optimal state and control input at prediction step , respectively. Then, only the first optimal control input is applied, after which the optimization is reinitialized and solved again at the next time step.
3.2 Imitation Learning from Perfect Knowledge
The proposed approach leverages a privileged teacher operating in a near-perfect setting, while the student adheres to a predefined control structure and learns to adapt its objective parameters. This enables the student to imitate the teacher's full knowledge behavior under imperfect, real-world conditions and partial knowledge. Since the proposed approach is designed to work in an unknown environment, we train in a representative example environment and leverage the student's generalization capabilities to transfer to unseen ones. We thereby design the components as follows:
Environment: The training setting should be representative of the expected target environment, but does not have to fully align with it. It should share the same types of references and contextual information, while ideally covering a broad range of the context variations expected during deployment. Moreover, to enable both teacher supervision and student training, it must provide access to both perfect ground-truth information and a realistic, noisy perception of the scene. We thus simulate the investigated robotics platform and perception pipeline, providing ground-truth references and con-text , , at any time step , as well as their noisy and potentially occluded counterparts , , obtained from the simulated perception pipeline.
Teacher: The teacher is privileged: it has access to sufficient computational resources, and operates on ground-truth references and context , , at any time step . Nevertheless, it remains aware of the limited field of view and employs a control approach that guarantees safety under all circumstances, satisfying the constraints and ensuring to remain within the current field of view. Under these assumptions, we design the teacher as a multi-trajectory model predictive controller (MT-MPC) [26]. At every time step , the MT-MPC guarantees the existence of a feasible control sequence that keeps the agent safely within the observable field of view. This is achieved by jointly predicting two trajectories, a safe trajectory and a performance trajectory , coupled only through their first prediction step via the constraint . The safe trajectory is constrained to remain within the field of view through a terminal constraint , while the performance trajectory optimizes the control objective. We choose a long horizon and denote the resulting controller as . The full optimization problem is provided in Appendix B.1.
Student: The student operates in a simulation of the real-world (or in the real-world for finetuning) and receives noisy, partially occluded reference and context information , , within the limited field of view. It is deployed as a closed-loop controller with a predefined, parametrized control structure whose parameters are produced by a parametric mapping as from the noisy context and the current state, resulting in a controller denoted by . This construction follows the structural template of [6], in which a short-horizon MPC equipped with a learned, context-dependent cost imitates the behavior of a long-horizon MPC at a fraction of the computational cost. This template already addresses three of the requirements identified in Section 2: the MPC backbone provides the structural affordances for safe behavior, such as constraint- and dynamics-aware predictions, partially addressing R1; the modular separation between the learned mapping and the MPC yields a controller that generalizes across environments and remains agnostic to the perception pipeline producing its inputs (R3); and the short-horizon design leaves real-time budget for that perception pipeline (R4). The field-of-view-aware safety behavior itself, however, is not inherent to this structure and must be instilled through imitation of the privileged teacher. Moreover, the original formulation assumes perfect, noise-free, and fully observable context, and therefore does not capture the limited and time-varying field of view or the perceptual uncertainty inherent to vision-based control. In addition, obstacle avoidance is not explicitly considered. We address these limitations along three axes, illustrated schematically in Figure 3. First, to enable reactive obstacle avoidance, we augment the environmental context with and allow the parametric mapping to influence the controller either directly, through constraint adaptation, or indirectly, through reference modification. Second, to represent partially observable context sequences within a fixed-dimensional input space, occluded measurements are padded using a non-informative value, while the corresponding visibility information is encoded through a binary mask for each context dimension. Third, to retain information that was previously observed but has since left the field of view, we implement as a recurrent neural network (RNN) with multi-level recurrence given by parametrized nonlinear maps and . The lower-level recurrence processes the spatial context within each perception frame , with hidden states evolving as , where is the input at context step . Attention pooling aggregates these hidden states into a fixed-dimensional frame representation , which is concatenated with the state , forming a higher-level input . The higher-level hidden state then evolves as , and the network output is . The lower-level recurrence thus provides memory within a frame and the higher-level one across frames, allowing the network to exploit observations that temporarily leave the field of view and providing a nonlinear filtering mechanism under partial observability and occlusions.
Training: We seek parameters of that enable the student to imitate the privileged teacher despite noisy and limited observations, i.e., to learn to filter, distrust, and infer unknown parts of

Figure 3: Schematic overview of the proposed context-processing pipeline. To obtain a fixed-dimensional representation, missing entries are padded with non-informative values and accompanied by binary masks indicating valid observations. The resulting context sequence is processed by an RNN, which extracts relevant temporal information while maintaining an internal memory state, enabling retention of previously observed but currently occluded context.
its context. To account for the memory of the multi-level recurrent architecture, training samples consist of sequences of consecutive frames. For a sequence ending at frame , processes the preceding frames to build its hidden state before predicting the cost parameters for the final frame, on which the loss is evaluated. Specifically, we minimize the mean-squared error between the predicted trajectories of the long-horizon MT-MPC teacher with full environmental knowledge, , and those of the short-horizon student MPC with the inferred cost parameters, :
where the expectation is taken over initial states . We draw sequence starting points uniformly at random and retain only those for which the teacher admits a feasible solution over the full sequence. Since teacher and student horizons differ, the loss is evaluated over the first steps only. To backpropagate through the student MPC, we employ the differentiable-MPC approach of [5], as in [6]. The full training algorithm is given in Appendix D.3.
4 Experiments
We evaluate the proposed framework on a vision-based autonomous racing task used as an example throughout the paper. The system dynamics are modeled using a kinematic bicycle model [27], with the vehicle state and track expressed in the Frenet frame [28]. The controller is formulated as a model predictive contouring controller (MPCC) [29] with a quadratic stage cost and cost parameter vector , where . The context variable comprises a long-horizon sequence of track curvatures and track boundaries, potentially tightened by obstacles, within the field of view. Implementation details on the vehicle model and control formulation are provided in Appendix D.
Experiment Design and Baselines: We evaluate our approach in simulation and on hardware, and compare against three baselines: (i) the privileged teacher with , i.e., a long-horizon MT-MPC with perfect environmental knowledge (reference and constraints), (ii) a long-horizon MT-MPC with imperfect knowledge due to inferring it from images, , and (iii) a short-horizon MPC with , without context-dependent adjustment of the cost parameters , denoted as . Design choices for all baselines are detailed in Appendix D, as well as comparisons with a fully learned baseline. Simulation results are presented in Section 4.1, and hardware experiments in Section 4.2. Furthermore, additional simulation and hardware results, including the application of VIGOR-MPC to quadrotor dynamics, can be found in Appendix F.
Table 1: Imitation error computed as a root mean square error (RMSE) on states and control inputs over the first 5 prediction steps with respect to , lap time, and per-step execution time, both reported as absolute values and relative changes with respect to the teacher . Mean and standard deviation over 50 initial states for the lap time and 200 sample states for the imitation error and execution time calculation. Evaluations are done on the track of Figure 4 without obstacles.
| Controller | Imitation error ↓ | Lap time [s] ↓ | Execution time [ms] ↓ | ||
|---|---|---|---|---|---|
| 0.0103 ± 0.0216 | 7.39 ± 0.02 | +0.4% | 545.0 ± 250.8 | 0.0 ± 46.0% | |
| 0.0219 ± 0.0315 | 7.91 ± 0.05 | +7.5% | 35.3 ± 4.1 | 93.5 ± 1.1% | |
| VIGOR-MPC | 0.0126 ± 0.0335 | 7.44 ± 0.03 | +0.6% | 31.6 ± 4.7 | 94.2 ± 1.0% |
Computed over 198 initial states; 2 outliers in which the MPC failed to converge were removed.



Figure 4: Visualization of environments with randomly generated obstacle configurations and closed loop application of VIGOR-MPC.
4.1 Simulation Results
The racing track images are rendered in Blender [30], from which the perception module (Appendix D.2) extracts noisy reference and context information for the student. The following results show how the proposed framework meets the requirements in Section 2, i.e., robustness to imperfect knowledge, computation time reduction, behavior under limited and varying information length, and generalization. Additionally, to motivate our design choices, we provide an ablation study of the method components.
Matching Teacher Performance under Imperfect Knowledge: We evaluate each baseline against the privileged teacher and provide the results in Table 1. The track layout is chosen as in Figure 4, without obstacles. We observe that VIGOR-MPC reduces the imitation error by 57.53% over the short-horizon MPC and closely matches the imperfect-knowledge MT-MPC denoted with , despite operating on the same noisy context with a far shorter horizon. Additionally, VIGOR-MPC nearly matches the lap time of , while the short-horizon baseline is 7.5% slower, and achieves a 94.2% reduction in computation time, confirming that it nearly recovers teacher performance at a fraction of the computational cost. Due to the observed heavy-tailed nature of the imitation error distribution, we provide further statistics in Table 6 of the Appendix F.1, reflecting reduced median and upper-tail error of VIGOR-MPC compared to .
Limited and Varying Information Length and Safety: In Figure 4 we illustrate environments with randomly generated obstacle configurations and show how VIGOR-MPC achieves reactive obstacle avoidance with respect to arbitrary and potentially changing obstacle placements. From the investigated 100 configurations, it successfully avoided all obstacles for 99 of them, and remained safe by coming to a complete stop rather than crashing on the remaining one.
Generalization to Unseen Environments: The generalization capabilities of VIGOR-MPC are visualized in Figure 5, showing the training and different test track layouts and obstacle configurations with successful, i.e., performant and obstacle-avoiding, closed-loop application of VIGOR-MPC. The corresponding lap times are reported in Table 2.

Figure 5: Closed-loop employment of VIGOR-MPC on three different track layouts (with randomly placed obstacle configurations), where only the track layout on the left was seen during training.
Table 2: Lap time comparison of VIGOR-MPC and perfect teacher on two unseen tracks with two object configurations each.
| Controller | Train Track | Test Track 1 | Test Track 2 | ||
|---|---|---|---|---|---|
| top | bottom | left | right | ||
| 17.75 s | 7.36 s | 7.46 s | 11.29 s | 11.29 s | |
| VIGOR-MPC | 18.12 s | 7.39 s | 7.46 s | 11.32 s | 11.32 s |


Figure 6: (Left and center) Impact of multi-frame recurrence for 100 initial conditions: critical frame drops right before an obstacle handled successfully when multi-frame memory is available. (Right) Lateral cost adjustment shifts references.
Ablation Study: We ablate the components that distinguish VIGOR-MPC from its ZipMPC backbone [6]. Starting from an obstacle-aware ZipMPC (with context padding), VIGOR-MPC introduces four elements: (a) a field-of-view-aware MT-MPC teacher in place of ZipMPC's plain long-horizon teacher; (b) binary masks marking which entries of the padded context are genuine observations rather than non-informative padding values; (c) a context recurrence, i.e., the RNN unrolled over the context sequence within a single frame; and (d) a time recurrence, i.e., the hidden state propagated across frames, acting as a memory of context that has left the field of view. Table 3 reports the lap completion rate as these components are added cumulatively, over 100 random obstacle configurations deliberately harder than those of Figure 4: twice as many obstacles, wider on average, and predominantly on the inner side of the track. From the baseline, adding the FOV-aware teacher alone raises completion only marginally, and adding either masking or context recurrence individually on top of it yields little. The two are strongly complementary: combined, they reach , as the mask tells the recurrence which observations to trust while the recurrence is what exploits that information. Finally, the cross-frame time recurrence achieves the success rate of .
We further isolate the time recurrence under complete frame occlusions: in Figure 6 we drop the 10 frames preceding an obstacle once it has entered the field of view, comparing VIGOR-MPC with and without the multi-frame recurrence. The same figure illustrates how cost term that penalizes lateral deviation reshapes the centerline reference in response to newly perceived context.
Table 3: Ablation over the FOV-aware components, starting from an obstacle-aware ZipMPC baseline. Each row cumulatively enables the corresponding component, reporting lap completion rate over 100 random obstacle configurations.
| FOV-Aware MT-MPC Teacher | Masking | Context Recurr. | Time Recurr. | Success |
|---|---|---|---|---|
| ✕ | ✕ | ✕ | ✕ | 0% |
| ✓ | ✕ | ✕ | ✕ | 4% |
| ✓ | ✓ | ✕ | ✕ | 3% |
| ✓ | ✕ | ✓ | ✕ | 6% |
| ✓ | ✓ | ✓ | ✕ | 46% |
| ✓ | ✓ | ✓ | ✓ | 94% |
4.2 Hardware Experiments
For the real-world experiments, we employ a modified F1Tenth platform [31] using the software stack of [32]. Onboard computation is performed on a LattePanda Sigma equipped with an Intel Core i5-1340P processor, ensuring that perception and control run locally without external compute. The MPC is solved with acados [33] at a control rate of 30 Hz. From the Intel RealSense D405 RGB-D camera stream, a perception pipeline detects the lane markings and estimates the centerline, while obstacles are handled by a separate detection module; further details are provided in Appendix D.2. The track is built from interlocking foam mats with a lane width of 1.10 m, and lane boundaries are defined by white adhesive tape on a black surface to provide high contrast for perception. Ground-truth state estimates are obtained from an external motion capture system. A visualization of the obtained closed-loop performance of VIGOR-MPC is provided in Figure 7, including an image of our real-world testing setup at the top. The perception pipeline and all training data were generated entirely in simulation using Blender-rendered environments, with no real-world data used during training. Further details and results from our real-world experiment, including generalization capabilities, behavior under dynamic obstacle replacement, and comparisons with can be found in Appendix E and F.

Figure 7: Closed-loop deployment of VIGOR-MPC on hardware.
5 Conclusion
In this work, we present VIGOR-MPC, an imitation learning framework that combines a privileged teacher with a student leveraging the structure and advantages of optimization-based control with learned adaptation to address the challenges arising from vision-based control. The privileged teacher operates with perfect environmental knowledge and a long-horizon MT-MPC, while the student leverages a predefined short-horizon MPC structure whose cost parameters are generated by a memory-capable neural network from partial and noisy observations. The proposed framework was evaluated on the example application of autonomous racing. The results demonstrate that VIGOR-MPC can successfully approximate the behavior of the privileged teacher despite a limited field of view and imperfect perception, in simulation and the real-world.
6 Limitations
Despite the promising results, the proposed framework exhibits several limitations that motivate future research. First, the current setup relies on a motion capture system for velocity estimates. However, the car's relative position and orientation with respect to the track are estimated directly from onboard perception. In principle, velocity estimates could be obtained via point-cloud registration and an Extended Kalman Filter instead. Second, with the current context choice, obstacles are restricted to the left or right side of the track and cannot occupy the center line. More expressive context choices or richer MPC parameterizations could allow handling more complex obstacle configurations. Third, although the proposed imitation learning framework inherits desirable properties from the privileged teacher, strong theoretical guarantees cannot be provided without exact imitation across the full feasible state space.
Acknowledgments
This research was partly supported by the ETH AI Center through an ETH AI Center doctoral fellowship to Jelena Trisovic. Additionally, it was supported as a part of NCCR Automation, a National Centre of Competence in Research, funded by the Swiss National Science Foundation (grant number 51NF40_225155).
References
[1] S. Levine, P. Pastor, A. Krizhevsky, J. Ibarz, and D. Quillen. Learning hand-eye coordination for robotic grasping with deep learning and large-scale data collection. The International journal of robotics research, 2018.
[2] A. Sridhar, D. Shah, C. Glossop, and S. Levine. Nomad: Goal masked diffusion policies for navigation and exploration. In 2024 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2024.
[3] A. Loquercio, E. Kaufmann, R. Ranftl, M. Müller, V. Koltun, and D. Scaramuzza. Learning high-speed flight in the wild. Science Robotics, 2021.
[4] J. Trisovic, A. Carron, and M. N. Zeilinger. Predictive control for driving under uncertain road geometry estimated from onboard vision. IEEE Transactions on Control Systems Technology, 2026.
[5] B. Amos, I. Jimenez, J. Sacks, B. Boots, and J. Z. Kolter. Differentiable mpc for end-to-end planning and control. Advances in neural information processing systems, 2018.
[6] R. Rickenbach, A. Lahoud, E. Schaffernicht, M. Zeilinger, and J. A. Stork. Zipmpc: Compressed context-dependent mpc cost via imitation learning. In Conference on Robot Learning. PMLR, 2025.
[7] Y. Song and D. Scaramuzza. Policy search for model predictive control with application to agile drone flight. IEEE Transactions on Robotics, 2022.
[8] M. Bojarski, D. Del Testa, D. Dworakowski, B. Firner, B. Flepp, P. Goyal, L. D. Jackel, M. Monfort, U. Muller, J. Zhang, et al. End to end learning for self-driving cars. arXiv preprint arXiv:1604.07316, 2016.
[9] F. Codevilla, M. Müller, A. López, V. Koltun, and A. Dosovitskiy. End-to-end driving via conditional imitation learning. In 2018 IEEE international conference on robotics and automation (ICRA). IEEE, 2018.
[10] A. Hu, L. Russell, H. Yeo, Z. Murez, G. Fedoseev, A. Kendall, J. Shotton, and G. Corrado. Gaia-1: A generative world model for autonomous driving. arXiv preprint arXiv:2309.17080, 2023.
[11] E. Kaufmann, A. Loquercio, R. Ranftl, A. Dosovitskiy, V. Koltun, and D. Scaramuzza. Deep drone racing: Learning agile flight in dynamic environments. In Conference on Robot Learning. PMLR, 2018.
[12] A. Loquercio, E. Kaufmann, R. Ranftl, A. Dosovitskiy, V. Koltun, and D. Scaramuzza. Deep drone racing: From simulation to reality with domain randomization. IEEE Transactions on Robotics, 2019.
[13] M. Müller, A. Dosovitskiy, B. Ghanem, and V. Koltun. Driving policy transfer via modularity and abstraction. arXiv preprint arXiv:1804.09364, 2018.
[14] D. Chen, B. Zhou, V. Koltun, and P. Krähenbühl. Learning by cheating. In Conference on robot learning. PMLR, 2020.
[15] N. Niknejad, G. S. Sankar, B. Kiumarsi, and H. Modares. Robust model predictive control design for autonomous vehicles with perception-based observers. arXiv preprint arXiv:2509.05201, 2025.
[16] H. Ham and H. Ahn. Dro-edl-mpc: Evidential deep learning-based distributionally robust model predictive control for safe autonomous driving. IEEE Robotics and Automation Letters, 2026.
[17] E. Kaufmann, L. Bauersfeld, A. Loquercio, M. Müller, V. Koltun, and D. Scaramuzza. Champion-level drone racing using deep reinforcement learning. Nature, 2023.
[18] P. R. Wurman, S. Barrett, K. Kawamoto, J. MacGlashan, K. Subramanian, T. J. Walsh, R. Capobianco, A. Devlic, F. Eckert, F. Fuchs, et al. Outracing champion gran turismo drivers with deep reinforcement learning. Nature, 2022.
[19] J. Lee, J. Hwangbo, L. Wellhausen, V. Koltun, and M. Hutter. Learning quadrupedal locomotion over challenging terrain. Science robotics, 2020.
[20] J. Xing, A. Romero, L. Bauersfeld, and D. Scaramuzza. Bootstrapping reinforcement learning with imitation for vision-based agile flight. In Conference on Robot Learning. PMLR, 2025.
[21] A. Romero, Y. Song, and D. Scaramuzza. Actor-critic model predictive control. In 2024 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2024.
[22] A. Nagabandi, G. Kahn, R. S. Fearing, and S. Levine. Neural network dynamics for model-based deep reinforcement learning with model-free fine-tuning. In 2018 IEEE international conference on robotics and automation (ICRA). IEEE, 2018.
[23] J. Sacks and B. Boots. Learning sampling distributions for model predictive control. In Conference on Robot Learning. PMLR, 2023.
[24] K. Lowrey, A. Rajeswaran, S. Kakade, E. Todorov, and I. Mordatch. Plan online, learn offline: Efficient learning and exploration via model-based control. arXiv preprint arXiv:1811.01848, 2018.
[25] P. Cai, H. Wang, H. Huang, Y. Liu, and M. Liu. Vision-based autonomous car racing using deep imitative reinforcement learning. IEEE Robotics and Automation Letters, 2021.
[26] D. Saccani, L. Cecchin, and L. Fagiano. Multitrajectory model predictive control for safe uav navigation in an unknown environment. IEEE Transactions on Control Systems Technology, 2022.
[27] R. Rajamani. Vehicle dynamics and control. Springer, 2006.
[28] W. Milliken. Milliken. Race Car Vehicle Dynamics. Warrendale, Society of Automotive Engineers, 1995.
[29] A. Liniger, A. Domahidi, and M. Morari. Optimization-based autonomous racing of 1: 43 scale rc cars. Optimal Control Applications and Methods, 2015.
[30] Blender Foundation. Blender, 2025. URL https://www.blender.org.
[31] M. O'Kelly, H. Zheng, D. Karthik, and R. Mangharam. F1tenth: An open-source evaluation environment for continuous control and reinforcement learning. Proceedings of Machine Learning Research, 2020.
[32] A. Carron, S. Bodmer, L. Vogel, R. Zurbrügg, D. Helm, R. Rickenbach, S. Muntwiler, J. Sieber, and M. N. Zeilinger. Chronos and crs: Design of a miniature car-like robot and a software framework for single and multi-agent robotics and control. In 2023 IEEE International Conference on Robotics and Automation (ICRA). IEEE, 2023.
[33] R. Verschueren, G. Frison, D. Kouzoupis, J. Frey, N. v. Duijkeren, A. Zanelli, B. Novoselnik, T. Albin, R. Quirynen, and M. Diehl. acados—a modular open-source framework for fast embedded optimal control. Mathematical Programming Computation, 2022.
[34] P. Donti, B. Amos, and J. Z. Kolter. Task-based end-to-end model learning in stochastic optimization. Advances in neural information processing systems, 2017.
[35] B. Wilder, B. Dilkina, and M. Tambe. Melding the data-decisions pipeline: Decision-focused learning for combinatorial optimization. In Proceedings of the AAAI conference on artificial intelligence, 2019.
[36] A. A. Lahoud, E. Schaffernicht, and J. A. Stork. Learning solutions of stochastic optimization problems with bayesian neural networks. In International Conference on Artificial Neural Networks. Springer, 2024.
[37] B. Amos and J. Z. Kolter. Optnet: Differentiable optimization as a layer in neural networks. In International conference on machine learning. PMLR, 2017.
[38] D. E. Rumelhart, G. E. Hinton, and R. J. Williams. Learning representations by back-propagating errors. Nature, 1986.
[39] A. Graves. Long short-term memory. Supervised sequence labelling with recurrent neural networks, 2012.
[40] K. Cho, B. Van Merriënboer, C. Gulcehre, D. Bahdanau, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), 2014.
[41] H. Pacejka. Tire and vehicle dynamics. Elsevier, 2005.
[42] J. Kong, M. Pfeiffer, G. Schildbach, and F. Borrelli. Kinematic and dynamic vehicle models for autonomous driving control design. In 2015 IEEE intelligent vehicles symposium (IV). IEEE, 2015.
[43] C. Topal and C. Akinlar. Edge drawing: a combined real-time edge and segment detector. Journal of Visual Communication and Image Representation, 2012.
[44] S. Kumar and R. Gill. Path following for quadrotors. In 2017 IEEE Conference on Control Technology and Applications (CCTA). IEEE, 2017.
A Extended Related Work
We position our approach within the broader landscape of vision-based control by organizing prior work depending on how much classical control structure is preserved between perception and control.
End-to-end policies. At one extreme, a single neural policy maps camera observations directly to actions. Early work cloned human driving demonstrations end-to-end [8, 9], and the paradigm has since been scaled to video- and language-conditioned foundation models trained on fleets of real-world driving data [10]. While such policies can acquire complex sensorimotor behaviors, training requires substantial data and compute, the resulting policies offer no explicit mechanism for constraint satisfaction, and non-trivial changes to the deployment domain or task typically necessitate retraining. Robotics applications that demand fast training, modest compute, and reuse of existing perception modules therefore favor modular architectures that separate perception from control. This modularity is empirically dominant across robotics, including agile flight, autonomous driving, and legged locomotion.
Modular pipelines with a classical controller. Classically, a modular architecture is adopted where the perception module produces a fixed-form plan (waypoints, trajectories, or segmentations) that a classical controller executes. Such pipelines have been deployed across robotics, including drone racing [11, 12], agile flight in cluttered environments [3], and autonomous driving [13, 14], where these perception outputs are tracked by a fixed low-level controller. These systems inherit the safety and interpretability of a non-learned controller and transfer well to real hardware, but the controller is rigid, as it cannot adapt to features of the perceived context that are noisy, occluded, or of variable length. A growing line of work therefore designs controllers that explicitly make use of perception uncertainty, for instance by propagating sampled curvature realizations through a multi-stage MPC [4], enclosing perception noise within set-based observers for tube-based MPC [15], or integrating evidential confidence into a distributionally robust MPC [16]. Such methods share our motivation of treating perception output as a non-ideal signal, but address uncertainty through constraint tightening rather than learned adaptation of the controller itself.
Modular pipelines with a learned controller. Between these extremes lie modular pipelines in which the controller is itself partly or fully learned. Fully learned controllers map a perception-derived state estimate to actions via a neural network trained with RL, imitation, or a combination of the two; prominent examples include Swift [17], GT Sophy [18], and teacher-student distillation pipelines for legged locomotion and agile flight [19, 20]. The resulting controller, however, remains unstructured: constraints and partial observability are handled only implicitly, and adaptation to new deployment conditions still demands extensive data collection and retraining. Partially learned controllers instead preserve an optimization-based structure and learn only specific ingredients of it, such as the cost or decision variables of an MPC [7, 21, 6], the dynamics model [22], the sampling distribution [23], or a terminal value function [24]. Because the dynamics model, constraints, and optimization scaffolding are retained, such controllers inherit the generalization, interpretability, and constraint-handling properties of classical control while still adapting to context from data.
Our work belongs to this last category. The methods above, however, have been developed almost exclusively with clean, low-dimensional context from ground-truth simulation or accurate state estimation. To our knowledge, none has been deployed in a vision-based regime where the context is itself the noisy output of a perception module. Our approach addresses this gap, building on [6] and extending it with ingredients required for vision-based deployment, detailed in Section 3.
B Additional Methodological Preliminaries
This appendix section provides additional details on the learning and control concepts employed in this work. Specifically, we present the full optimization formulation of the MT-MPC in Section B.1, describe the employed differentiable MPC scheme in Section B.2, and summarize the basics of RNNs in Section B.3.
B.1 Multi-Trajectory Model Predictive Control
Under the assumption of sufficient computational resources and perfect environmental knowledge, the privileged teacher employs the structural idea of multi-trajectory model predictive control (MT-MPC) [26]. The original formulation was motivated by safe navigation of unmanned aerial vehicles in unknown static environments perceived by an onboard extroceptive sensor. It guarantees that, provided initial feasibility, a feasible control sequence exists at every subsequent time step that allows the agent to safely remain within the observable field of view, thereby ensuring safe operation under newly encountered conditions. This property is achieved by jointly predicting two pairs of state and input trajectories within the optimization: a safe trajectory pair and a performance trajectory pair, denoted with and respectively. While the safe trajectory remains within the field of view to guarantee safety, the performance trajectory aims to optimize the control objective. These trajectories are coupled through their first prediction step, via an equality constraint , ensuring that the applied input balances safety and performance. A full MT-MPC formulation is given in the following:
(3)
Thereby indicates a valid terminal set that ensures the agent stays within the field of view.
B.2 Differentiable Model Predictive Control
The network inferring the objective parameters of our student MPC is trained by minimizing the loss in Eq. 2 using a gradient-based algorithm. Accordingly, we need to propagate gradients from the imitation loss , to the weights of our mapping function , outputting the context-dependent cost parameters . This propagation is described by the following equation:
However, propagating gradients through an optimization procedure, which in our case corresponds to the MPC problem of our student , is not trivial [34, 35, 36]. Therefore, in accordance to [6], we leverage an existing differentiable MPC technique and employ the approach of [5], as it is compatible with general MPC cost formulations. This method extends KKT-based differentiation [37] to non-convex settings by iteratively solving convex quadratic approximations using the iterative Linear Quadratic Regulator (iLQR).
B.3 Recurrent Neural Networks
To enable our parametric mapping function to retain memory, we employ a recurrent neural network (RNN) [38]. This class of neural network architectures processes sequential data by leveraging an internal hidden state that evolves over time, allowing the network to retrieve information from previous inputs, thereby giving it memory capabilities. Formally, given an input sequence , in our case chosen as the padded perceived context of interest , an RNN updates its hidden state recursively according to , where denotes the input at time step , the hidden state from the previous time step, and a parameterized nonlinear mapping. The output of the network is then obtained as , where maps the hidden state to the desired output. Note that in the employed set-up corresponds to our objective parameter adaptation vector .
The hidden state thereby serves as an internal memory, allowing the network to retain relevant information from past observations. In practice, variants such as long short-term memory (LSTM) [39] and gated recurrent units (GRUs) [40] are commonly used to improve training stability and capture long-range dependencies. This property makes RNNs particularly suitable for partially observable settings, where relevant environmental information may no longer be directly available at the current time step.
C Detailed Imitation Learning Algorithm
In this appendix section, we present the complete imitation learning algorithm in detail.
Algorithm 1 VIGOR-MPC
Inputs: Initial weights of the multi-level RNN . Horizon lengths , , and loss horizon . Sequence length .
Cost parameters of the MT-MPC and nominal cost parameters of . simulation environments , . State-dependent field-of-view operator . Number of training iterations per environment .
1: for to do 2: for to do 3: repeat 4: 5: until is feasible at for all 6: 7: for to do 8: 9: 10: end for 11: 12: 13: 14: 15: 16: {backprop through MPC and all frames} 17: end for 18: Update simulation environment 19: end for
Detailed Algorithm. The step-by-step training of VIGOR-MPC using a gradient-based learning approach is presented in Algorithm 1. As inputs to the algorithm, we provide the structure of our memory-capable RNN, , its initial weights , the horizon lengths of our perfectly knowledgeable teacher and our student, and respectively, a set of well-tuned cost parameters of our teacher
MT-MPC, , and a set of manually set initial cost parameters of our student MPC. Furthermore, we provide simulation environments , with , that in the considered application example of an autonomous car would consist of randomly chosen obstacle configurations, as well as the camera-specific and state dependent field of view operator . Additionally, we denote with and the ground truth and perception-derived context, respectively, and with SAMPLESEQ we denote the sequence of states obtained by simulating the long horizon teacher control strategy for time steps from a randomly initialized initial state. To provide a wider range of context variation during training, we iterate over environmental setups (lines 1 and 13). For each environment, we iterate over several training steps , in which we sample a batch of initial states and compute the loss using empirical risk minimization over the batch. The manually set parameters of our student MPC are used as a warm start for the learning algorithm, and the employed RNN outputs the correction values , which we add to inferring the learned cost parameters (lines 9 and 11). Finally, we adopt the mean squared error (MSE) as an imitation loss between the predicted states of the performance trajectory of the teacher MT-MPC and the trajectory of the student MPCs. In practice, we consider only the first steps in the imitation loss, i.e., , and use Adam as the gradient-based optimizer to update the RNN weights (lines 13 to 16).
D Implementation Details
In the following, we provide all the necessary implementation details of running our example application case, the autonomous driving, in simulation. We provide the model and control details in Section D.1, followed by the perception pipeline description in Section D.2 and network and training details in Section D.3.
D.1 Example Simulation Setup
In this section, we describe the employed coordinate system, the Frenet frame, the corresponding vehicle dynamics model, and the resulting MPC formulation used for racing. In addition, the selected model and control parameters are summarized.
Frenet Frame The Frenet coordinate frame [28] is widely used in racing applications. It describes a reference-based coordinate system and hence defines the vehicle's position relative to a given trajectory through its progress on a track or path, the lateral deviation from the corresponding center line, and the agent's orientation relative to the path, denoted by , , and , respectively. The corresponding position vector is defined as and illustrated in Figure 8.
Car Dynamics To model the car’s dynamics, we adopt the kinematic bicycle model [27], detailed below. Thereby, denotes the distance from the rear axle to the center of mass, and the distance from the center of mass to the front axle. Additionally, we indicate the curvature with , which is progress-dependent. For an illustration of the introduced parameters, refer to Figure 8.
The kinematic bicycle model assumes negligible tire slip and treats the wheels as rolling without lateral force generation. This makes it less accurate than dynamic models such as the Pacejka tire model [41] in high-speed or aggressive-maneuvering regimes, where slip angles become significant. However, for the low-to-moderate velocity range and acceleration profiles relevant to our F1TENTH platform, the kinematic model has been shown to track real vehicle behavior closely [42], while being substantially cheaper to evaluate inside the MPC optimization. This trade-off motivates its use both in our teacher and student controllers. The model takes the motor torque and the front wheel steering angle as control inputs. The side slip angle is defined as
The discrete-time dynamics in Frenet frame, discretized using the Euler method with sampling time , follow as
Note that the curvature appears explicitly in three of the four dynamic equations, reinforcing its role as the dominant environmental context shaping the vehicle's evolution along the track. Parameter values used in our experiments are listed in Table 4.
Table 4: Powertrain and slip angle parameter values.
| Parameter | ||||
|---|---|---|---|---|
| Value |

Figure 8: Illustration of the car's position in the Frenet frame, including its progress coordinate , its lateral deviation , and its respective orientation . Its velocity and the steering angle are also shown, as well as the car's rear and front length, and .
Table 5: State and input constraint parameter values.
| Parameter | Value |
|---|---|
D.2 Perception Pipeline Details
The perception module processes either onboard RGB-D data or simulated onboard RGB-D images rendered in Blender to extract the centerline reference and track boundary context used by the controller. The pipeline consists of three main stages: depth-based mask filtering, edge extraction via Edge Drawing [43], and centerline estimation from the detected lane markings.
D.2.1 Depth-Based Mask Filtering
To restrict subsequent processing to the drivable floor region, we generate a binary mask that suppresses obstacles, reflections, and background clutter. Given a camera-to-floor transformation , ), we synthesize an artificial depth map representing the expected depth of the floor at every pixel up to a fixed horizon distance. The smart mask is then obtained by comparing the measured depth map against :
• pixels with are classified as obstacles,
• pixels with are classified as reflections,
• pixels with invalid (NaN) depth are discarded.
The comparison uses a multiplicative threshold that loosens with distance to account for the growing stereo depth uncertainty, with a tighter lower bound (obstacles) than upper bound (reflections), as obstacles are both easier to identify and more critical to exclude. The resulting mask restricts all downstream processing to pixels that lie on the expected floor surface.
D.2.2 Lane Marking Detection via Edge Drawing
Within the masked floor region, lane markings are extracted using the Edge Drawing algorithm [43]. After converting the color image to grayscale and applying Gaussian smoothing, horizontal and vertical gradients are computed with Sobel filters and thresholded to retain only strong responses. Edge Drawing then identifies anchor points at local maxima of the gradient magnitude and traces edges by following the highest-gradient neighbors. The smart mask from Section D.2.1 is applied to filter out anchors lying on obstacles or reflections, both improving accuracy and reducing the tracing cost. As a post-processing step, edges extending beyond the horizon distance and edges shorter than a minimum length are discarded. Unlike conventional edge detectors that return a binary edge image, Edge Drawing returns each edge as an ordered, contiguous sequence of pixels with a well-defined start and end, which is essential for the subsequent centerline extraction.
D.2.3 Centerline Estimation from Lane Markings
The detected edge pixels are projected onto the calibrated floor plane to obtain a metric 2D representation of the lane markings. Each projected edge is smoothed by a moving average over its floor coordinates to attenuate pixelation noise, sparsified by enforcing a minimum spacing of 2–4 cm between consecutive points, and oriented such that the point closest to the camera origin is its starting point.
The processed edges are then grouped into lane markings using two criteria: spatial proximity and orientation consistency. Proximity is evaluated only from the first and last points of each edge to reduce computational cost, using a threshold related to the lane-marking thickness. Orientation consistency is evaluated via the dot product of the edge direction vectors, each defined from the corresponding edge endpoints, and used to reorient edges within a group when needed, with the edge closest to the camera origin serving as the orientation reference. Edges that fail either the proximity or orientation criteria are discarded. To avoid redundant comparisons, a visited-edge map is maintained such that each edge is processed only once. For each grouped lane marking, a sidedness label in is assigned by projecting the inter-edge vector onto the lane-marking normal, indicating whether the marking lies to the left or right of its neighbor.
Finally, the centerline is computed by pairing lane markings of opposite sidedness within the same group. For paired markings, midpoints are obtained by an interleaved, recursively refined moving average over corresponding edge points, leveraging the ordered structure of the edge samples to establish local point correspondences. The recursion deepens whenever the connecting vector between matched points deviates beyond an angular threshold, ensuring robustness to local mismatches in sampling, and continues until all points are processed or a maximum recursion depth is reached. For unpaired segments, where only one of the two lane markings is visible, the assumption that the ego vehicle remains within the lane uniquely determines the inward offset direction, and the centerline is reconstructed by offsetting the visible marking by the known half-lane width along its inward normal. For partially overlapping lane markings, offsets are applied only to unmatched residual sections after recursive pairing. The concatenated midpoints form the centerline estimate passed to the controller, while the grouped lane markings provide the track-boundary context .
D.2.4 Obstacle Detection
Following the centerline extraction of Section D.2.3, we detect the obstacles and convert them into a progress-dependent narrowing of the admissible lateral corridor. The result is forwarded directly as environmental context and the boundary constraint of the trained short-horizon MPC. In our example setup, the obstacles are marked in a distinct color, so detection reduces to a color-segmentation problem. However, the geometric reasoning that follows is agnostic to how the obstacle silhouette in image space is obtained.
Color segmentation and clustering. The RGB image is converted to the HSV color space and thresholded to a binary mask isolating the obstacle color (in our case, yellow). Morphological opening and closing remove speckle and fill small holes, and part of the image above the horizon is masked out. The resulting mask is eroded and decomposed into connected components, with components whose pixel area falls below a minimum threshold discarded as noise. For each retained component j we compute its convex hull, and collect the set of its vertices.
Unprojection to the body frame. Using the aligned depth image together with the camera calibration matrix and the extrinsic calibration , the vertices of the convex hull of each cluster are projected onto the ground plane, giving a set of body-frame points for cluster . Crucially, the centerline is extracted in the same body frame and from the same image. The curvilinear coordinates introduced below are therefore computed entirely in the body frame, with the vehicle at the origin, as shown in Figure 9.
Curvilinear projection. Let denote the extracted centerline polyline in the body frame, obtained after outlier rejection and one-dimensional Gaussian smoothing, and let be its cumulative arc length. The arc length is offset by the distance from the vehicle to the first centerline point, , so that the progress coordinate is measured consistently with the controller's convention (the vehicle's own projection onto the centerline). For an obstacle point we locate the foot of the normal onto the polyline,
and obtain its progress as .
Track width adjustment. Each cluster is summarized by the arc-length interval it occupies and by its closest lateral approach to the centerline on each side. Considering only points that lie within the nominal corridor, , we define
Frame 410 (ts = 1779990653.5929 s)
RGB + yellow mask (image space)


Figure 9: Example of an egocentric view from the car and the obstacle detection.
i.e. the smallest absolute lateral distance attained by the cluster on the left () and right () side, respectively. Starting from the nominal half-width, , every cluster tightens the corresponding boundary over its arc-length span,
When several clusters overlap in arc length, the tightest bound prevails. The outcome is a pair of progress-dependent corridor bounds and that coincide with the nominal track half-width wherever no obstacle is observed and shrink to the obstacle's nearest edge wherever one is detected.
D.3 Learning Framework Setup and Implementation Details
In the following, we detail the employed learning framework including some technical details on the available compute, the structure of the chosen neural network, and details on the training set-up.
Technical Details. Training was performed using 80 CPU cores, each allocated 4 GB of RAM (320 GB total memory). The generation of target trajectories via simulation was parallelized, and model training was carried out in mini-batches with a batch size of 80 over 20 epochs. For execution in simulation an Intel(R) Core(TM) i7-13700K processor (13th generation), comprising 24 cores was employed.
Input to the Neural Network. The RNN input consists of the available environmental context within the field of view, , together with a subset of state variables from . Note that to ensure generalizability and avoid overfitting to a specific training track, the track progress variable was never provided to the RNN as state information, rather we use only , , and as RNN inputs, capturing the relevant local vehicle dynamics while remaining sufficiently track-independent. The dynamics context vector is chosen as in [6] and contains a sequence of track curvature values. Additionally, we augment the input with environmental context that contains track boundary information on both sides, overlayed by detected obstacle information that tighten the track from the respective side. All context values are extracted from the current state onward and masked by the state dependent field-of-view operator . Specifically, the sequence length is chosen to cover the maximum possible progress over the MT-MPC prediction, which has been obtained by using the maximum velocity and progressing the context information forward for steps, before masking it with . Missing or occluded context information is replaced with a noninformative padding value and is related to a negative mask value.
Neural Network and Training. The network input is divided into two components: (i) a global context vector containing three state-related features, and (ii) a variable-length sequential context representation encoding the perceived environmental information over the visible horizon. To process the sequential input, we employ a single-layer gated recurrent unit (GRU) with hidden size 32. Since the visible context length may vary between samples due to the limited field of view, the sequential inputs are padded and processed using packed sequences, with the corresponding valid lengths determined through a binary visibility mask. The GRU output sequence is subsequently aggregated through an attention-based pooling layer, yielding a fixed-dimensional latent representation that summarizes the available contextual information. The pooled recurrent feature is concatenated with the global context vector and passed through a feedforward network consisting of six fully connected layers with 512 hidden units each. All hidden layers use a LeakyReLU activation with slope 0.1. Based on the resulting shared latent representation, the network predicts the MPC cost parameters through two separate output heads. This architecture allows the student to combine short-term memory of previously observed environmental context with a structured prediction of horizon-dependent MPC objective parameters. Further details can be found in the code provided in the supplementary material.
Imitation Loss and Validation. As described in the main text, the imitation loss is defined as the sum of the mean squared error (MSE) between the student and teacher trajectories for both states and control inputs. Specifically, the loss is computed between the predicted trajectories of VIGOR-MPC and those of the privileged teacher . In line with the implementation details presented in [6], we apply manually selected weighting factors to balance the contribution of the individual state and input dimensions and prevent individual variables from dominating the loss. The exact weights are provided in the supplementary code. Furthermore, we also evaluate the loss only over the first prediction steps. For model selection, lap performance on the training track is periodically evaluated from a fixed initial state throughout training. After completion, the model achieving the best lap performance on this validation rollout is selected.
E Hardware and Experimental Setup
E.1 Hardware Setup: Car and Camera
For our real-world experiments we employ a modified F1Tenth platform [31] running the software stack of [32]. All computation is performed onboard a LattePanda Sigma equipped with an Intel Core i5-1340P processor, so that both perception and control run locally without any external compute. The vehicle carries an Intel RealSense D405 RGB-D camera as its sole exteroceptive sensor, providing aligned color and depth streams. In our experiments, we used resolution and the rate of 90 FPS.
E.2 Environment Setup: Track and Obstacles
The track is assembled from interlocking foam mats and has a lane width of 1.10 m. Its boundaries are marked with white adhesive tape on a black surface, providing the high contrast required by the perception pipeline. Obstacles are introduced as physical objects placed on the track, which the vehicle must perceive and avoid online. The corresponding detection module is detailed in Appendix D.2.
E.3 Experiment Setup
The MPC is solved with acados [33] at a control rate of 30 Hz. From the RealSense color and depth streams, the perception pipeline detects the lane markings and estimates the centerline, while obstacles are handled by the separate detection module described in Appendix D.2. Prior to each run, a calibration step uses an AprilTag placed on the floor to recover the pose of the camera relative to the ground plane. Ground-truth state estimates, which the controller assumes to be known, are obtained from an external motion-capture system.


Figure 10: Closed-loop employment of VIGOR-MPC on different obstacle layouts (with randomly placed obstacle configurations).
F Additional Results
In this section, we present additional results, augmenting those in the main paper. Therefore, we provide additional simulation results in Section F.1, and additional real-world results in Section F.2. This is then concluded with some visualizations of the training behaviour in Section F.3.
F.1 Additional Simulation Results
In the following, we provide further immitation error statistics, visualization of the obstacle avoiding capabilities of VIGOR-MPC, a comparison with an end-to-end learned algorithm, and illustrate the effect of teacher horizon length on lap time and per-step solve time.
Extended Heavy-Tail Statistics for Imitation Error: To account for heavy-tailed distributions in Table 1 of the paper, in Table 6 we report the median, IQR, and p90. VIGOR-MPC reduces the median loss by 51.4% relative to , and substantially reduces the upper-tail error. Its p90 (tail performance) is comparable to the teacher baseline. The difference to is significant under a Wilcoxon signed-rank test ( ), which does not rely on a normality assumption.
Table 6: Heavy-tail statistics of the imitation error: median, interquartile range (IQR), and 90th percentile (p90).
| Method | Median | IQR | p90 |
|---|---|---|---|
| VIGOR-MPC | 0.00320 | [0.00055, 0.01341] | 0.02913 |
| 0.00152 | [0.00023, 0.00947] | 0.02871 | |
| 0.00657 | [0.00107, 0.03552] | 0.05999 |

Figure 11: Closed-loop employment of VIGOR-MPC on different obstacle layouts (with randomly placed obstacle configurations) of a track not seen during training.
Further Results on Obstacle Avoidance: The following results augment Figure 4 with additional visualizations of successfully completed laps under randomly generated obstacle configurations. We also include the single configuration, out of the 100 tested, in which VIGOR-MPC failed to complete the lap. Notably, even in this case it came to a safe stop rather than crashing into the obstacle. In Figure 11 we show how VIGOR-MPC, trained only on the left track of Figure 5, avoids obstacles on configurations of a track not seen during training. Across 100 different obstacle configurations, it never crashes and always completes the lap successfully. Finally, in Figure 12, we provide examples of obstacle configurations intentionally placed to be difficult for the car to navigate. None of these were seen during training, not even the general placement patterns, such as obstacles on both sides of the track at the same arc length. Despite this, VIGOR-MPC avoids the obstacles and completes the laps in closed loop.


Figure 12: Closed-loop employment of VIGOR-MPC on different obstacle layouts (with intentionally placed obstacle configurations).
Comparison with an End-to-End Learned Policy: To emphasize the importance of the MPC controller structure when it comes to ensuring constraint satisfaction, we compare VIGOR-MPC against an end-to-end policy that imitates the same teacher but predicts control inputs directly. This baseline receives inputs identical to those of VIGOR-MPC, namely the global state features v, d, together with the field-of-view-limited horizon of track curvature and left and right boundary distances, and it shares the same recurrent backbone formed by a GRU encoder, attention pooling over the visible context, and a fully connected head. The only structural difference lies in the output and what follows it. Whereas VIGOR-MPC emits cost-parameter adjustments used in short-horizon MPC, which is then solved as a differentiable layer to produce the applied control, the baseline maps the shared representation directly to the two control inputs, torque and steering.
To ensure that any performance gap cannot be attributed to insufficient capacity, we deliberately grant the baseline a strictly larger backbone. We deepen the recurrent encoder from one to three GRU layers and double its hidden state from 32 to 64 units, while keeping the six fully connected layers of width 512 unchanged. The policy is trained on the same data and for the same number of epochs, using a weighted mean-squared error that regresses its output onto the first applied control of the long-horizon MT-MPC teacher.
Despite its larger capacity and identical supervision, the end-to-end policy exhibits substantially worse constraint satisfaction. Evaluated on the same 100 obstacle configurations used to assess VIGOR-MPC, it crashed into an obstacle or the track boundary in 89 of the 100 runs. Representative laps are shown in Figure 13. We attribute this gap to the absence of the MPC's constraint-aware optimization. The parameters predicted by VIGOR-MPC are used by a controller that explicitly enforces the dynamics together with the track and obstacle boundaries, so that even an imperfect parameter prediction still yields a feasible and safe trajectory. The end-to-end policy, by contrast, must encode this behavior implicitly in its weights and has no mechanism to enforce constraint satisfaction at deployment.
Table 7: Lap-time and per-step solve time of long horizon MT-MPC with increasing horizon length, indicating the used horizon length with a cross.
| 15 | 30 | 40 | ||
|---|---|---|---|---|
| Lap time [s] | 7.46 | 7.36 | 7.33 | 7.33 |
| Solve time [ms] | 537.3 | 978.2 | 1284.5 | 1982.3 |
Effect of Teacher Horizon Length on Lap Time and Per-step Solve Time: As shown in Table 7, the teacher's lap time improves with increasing horizon length, saturating at , while solve time keeps increasing; shortening the horizon reduces solve time but degrades lap time. Because of this solve time, the teacher serves purely as an offline oracle that generates imitation targets during training and is never deployed on hardware. Since perception and control share a computational budget, cutting control cost by more than frees resources for perception.


Figure 13: Closed-loop employment of the end-to-end baseline on different obstacle layouts (with randomly placed obstacle configurations corresponding to those shown in Figure 10).
F.2 Additional Real-World Results
In the following, we provide further experimental results obtained with our real-world F1-Tenth car, including, further obstacle configurations, comparisons to the short horizon MPC baseline , and generalization capabilities. To not clutter our visualization, only one lap per obstacle configuration is provided. To demonstrate how our approach successfully handles dynamically changing obstacle configurations, we refer to our supplementary material and the contained video.
Further Obstacle Configurations: In Figure 14 we illustrate a selection of successfully handled obstacle configurations, applying VIGOR-MPC in closed loop on our hardware setup. Note that all of these configuration results were collected in a continuous run in which we removed and replaced some of the obstacles.

Figure 14: Visualization of additional successfully handled obstacle configurations of VIGOR-MPC in closed-loop deployment on our real-world setup.
Comparison with Short Horizon MPC: A comparison of our proposed method with the short horizon baseline MPC, , both employing the same centerline estimation and obstacle detection pipeline, is provided in Figure 15. Leveraging a comparable amount of compute, VIGOR-MPC successfully manages to complete the lap, while the short horizon baseline MPC, fails and crashes into the track boundary at various instances.
Generalization Capabilities: Finally, we also demonstrate the generalization capabilities of VIGOR-MPC on hardware. Therefore, we executed a model, solely trained on the leftmost track in Figure 5, on our hardware track. Once again, we replaced the obstacles dynamically during execution. Three laps with different obstacle configurations are visualized in Figure 16.

Figure 15: Comparison of our short horizon MPC baseline and VIGOR-MPC in closed-loop deployment on our real-world setup. The laps are visualized in the image on the left and the one in the middle, VIGOR-MPC is deployed in the image on the right

Figure 16: Deployment of VIGOR-MPC on our hardware track, with a model that has only been trained on the leftmost track of Figure 5 and dynamical obstacle replacement.
F.3 Illustration of Training Behavior
We show how the trajectory of the car changes as the training progresses in Figure 18 and how the open loop prediction changes with respect to the perfect teacher and short horizon MPC in Figure 17. The figures demonstrate that, as training progresses, the behavior of VIGOR-MPC shifts from short-horizon MPC to long-horizon MT-MPC behavior.

Figure 17: Open-loop VIGOR-MPC prediction as training progresses against long horizon MT-MPC open-loop prediction (solid, in blue) and short-horizon MPC open-loop prediction (dashed, in green).

Figure 18: Evolution of the VIGOR-MPC trajectories across epochs.
F.4 Extension to Quadrotor Dynamics
To demonstrate that VIGOR-MPC is not specific to car racing, we extended our simulation pipeline to account for quadrotor dynamics. More specifically, we adapted the dynamics of [44], which describe the motion of the quadrotor relative to a reference path in a Frenet-frame, and simplified them as follows. First, we neglect the motor and attitude dynamics, assuming that the inner attitude loop is sufficiently fast. The control inputs are therefore the desired accelerations , , along the tangential, normal, and binormal directions of the path, together with the yaw rate , so that each translational axis evolves as a double integrator. Second, we set the path torsion to zero, . This decouples the lateral offset from the out-of-plane offset , so that describes the altitude of the quadrotor relative to the track plane. Third, the heading is decoupled from the translational motion and simply integrates the commanded yaw rate. With state and input , discretizing with the forward Euler method and sampling time gives
(9)
As in the car racing setting, the state is augmented with soft-constraint penalty terms. These keep the lateral offset within the track boundaries, , and the tangential velocity within . The inputs are bounded by for and , where and . With this setup, we performed the following two experiments.
Racing in 3D: We extend the racing track to 3D and augment the reference line with an altitude profile given by . We choose an amplitude of , m and a wavelength of , m. Using the long-horizon multi-trajectory MPC, , with a horizon length of achieves a lap time of 7.62s. However, running our VIGOR-MPC training pipeline, as described for the car example, VIGOR-MPC nearly matches this performance, finishing the lap within 7.82s with a horizon length of only 6. In contrast, the baseline short-horizon MPC, , using the same horizon length of 6, requires 9.97s to complete the lap, resulting in a performance gap of more than 2s. A visualization of the 3D racing track is provided in the leftmost image of Figure 19.
Reference Tracking in 3D: Leveraging the fact that reference-tracking problems can be formulated as path-following problems, we demonstrate that VIGOR-MPC can also be applied to this task by connecting the provided reference points with trajectory segments. We consider a quadrotor operating in a pillared environment, where reference points are placed midway between consecutive pillars, and the quadrotor is required to come to a stop at the final reference point. A visualization of the tracking task and its execution in simulation is shown in the middle and rightmost images of Figure 19.

VIGOR-MPC = 7.82s


waypoints
★ start
★ target
Figure 19: Visualization of the quadrotor experiments. Left image: quadrotor racing application in 3D, with an illustration of VIGOR-MPC's racing line and the lap times of , , and VIGOR-MPC shown at the bottom, where and . Middle image: explanatory figure illustrating how a reference-tracking task in a constrained environment can be reformulated as a path-following task. Right image: application of VIGOR-MPC with quadrotor dynamics to solve a reference-tracking task in a pillared environment.