Model-Based Imitation Learning For Monocular Vision-Based Navigation
Reliable navigation with a single monocular limited field-of-view camera is challenging because the lack of depth measurements and limited spatial awareness complicate collision checking. Existing approaches to tackle these challenges fall into two categories.
From the abstract. Our summary is in progress.
Full paper
Model-Based Imitation Learning For Monocular Vision-Based Navigation
Published under CC BY 4.0. Reproduced with attribution; original at arXiv:2611.10635 (PDF).
Abstract
Reliable navigation with a single monocular limited field-of-view camera is challenging because the lack of depth measurements and limited spatial awareness complicate collision checking. Existing approaches to tackle these challenges fall into two categories. Model-based planners can incorporate explicit collision-avoidance guidance which leads to better generalization but are often computationally expensive and require manual tuning of the algorithmic parameters. In contrast, end-to-end approaches trained by imitation learning can be flexible but typically encode safety only implicitly and thus can suffer from high collision rates in novel scenarios.
In this paper, we present a middle ground through model-based imitation learning. The model-based part is a learned collision model that can map a sequence of past images and a candidate control sequence to a distribution of worst-case obstacle clearance. This predictive distribution in turn is used to define a collision-risk cost in a trajectory optimization formulation. The imitation component uses human demonstrations to learn scene-dependent balancing of collision risk with other task costs such as goal progress. We also use it to learn the algorithmic parameters (e.g., a warm start) of our optimizer to accelerate the solution process. We show that our approach can demonstrate highly reliable navigation in cluttered environments on robots with different embodiments. We also demonstrate a substantial reduction in collision rate over recent end-to-end and model-based baselines.
Index Terms:
Monocular visual navigation, model-based imitation learning, differentiable trajectory optimization, collision avoidance
I Introduction
Reliable autonomous navigation capability in highly cluttered environments is a fundamental requirement for deploying mobile robots and requires 3D perception of the environment. For some robot embodiments such as quadrotors, using the typical 3D sensors such as LiDAR proves challenging from the perspective of payload capacity or energy consumption. Thus, this work aims to recreate LiDAR-like navigation with just a single monocular camera with a limited field of view. The core challenge in this regard stems from the lack of metric depth information from native RGB observations. Moreover, because of the limited FOV, the robot can only perceive a part of the environment at any given time and thus can lead to additional collision risk.
Existing approaches to monocular visual navigation broadly fall into model-based and end-to-end learning-based paradigms. The former class of methods relies on using estimated depth [1, 2, 3] to build occupancy maps [4] or subsequently plan using these representations. This structure allows for explicit reasoning about collision avoidance but monocular depth estimates can be noisy and the distribution of the noise can change with viewing angle and lighting conditions. MonoMPC [5] explicitly accounts for the depth estimation uncertainty and shows stronger performance using a sampling-based MPC approach. However, its underlying planner is still computationally demanding and requires extensive manual tuning. For example, the weights of the cost function need to be manually tuned and the performance of the sampling-based trajectory optimizer depends critically on algorithmic parameters such as the initial distribution and the temperature parameter.
End-to-end approaches avoid constructing explicit occupancy maps or collision models. Instead, they directly map sequences of images and goal context to short-horizon trajectories or control inputs [6]. FlowNav [7] uses depth features from the current image as additional conditioning input to improve reliability. These approaches are very flexible and can directly learn navigation behavior through human demonstrations. However, collision avoidance is generally encoded implicitly through demonstrations or introduced through auxiliary safety corrections rather than incorporated directly into the trajectory-generation objective. As a result, their performance can be brittle, especially in environments which differ substantially from the training data. One simple alternative used in works like [8] is to augment end-to-end approaches with a safety filter based on the estimated depth. But this cited work does not include depth uncertainty and we observed that the performance gain provided by it can be marginal(see supplementary material).
Our Approach and Contributions: In this paper, we present a model-based imitation-learning approach for monocular image-based navigation. Our approach can be viewed as the middle ground between purely model-based planners and end-to-end approaches. It inherits the safety assurances of the former while also being capable of adapting the navigation behavior by learning from human demonstrations.
Our first contribution, which represents the model-based aspect of our approach, is a probabilistic collision model that maps sequences of monocular observations to trajectory-dependent collision risk. Like FlowNav [7] and MonoMPC [5], we use Depth Anything V2 [2]. Our model converts depth estimates from the image sequence into point-cloud embeddings and concatenates them with the control sequence to obtain a manipulatable distribution of worst-case clearance and subsequently collision risk. We show that the encoded temporal context allows our learned model to reason about collision with the obstacles currently not present in the field of view. This provides our learned collision model with a sense of memory without explicitly needing to build an occupancy map.
Our second contribution is a learned planning architecture that embeds a parameterized, risk-aware trajectory optimizer directly within the neural policy. The resulting local navigation policy consists of two coupled components: a neural parameter-prediction network and a trajectory optimizer. The neural module maps visual observations and start-goal context to two sets of parameters. The first set consists of the weights that balance the trade-off between minimizing collision risk and other task-relevant costs such as goal progress. The second set consists of algorithmic hyperparameters that configure the trajectory optimizer itself and accelerate its convergence to a locally-optimal solution.
To make this architecture trainable from demonstrations, we formulate the trajectory optimizer as a differentiable soft Cross-Entropy Method (soft-CEM), motivated by the differentiable CEM formulation of Amos and Yarats [9]. The differentiability allows the imitation loss to be mapped back to the weights of the neural module. The resulting policy therefore learns an end-to-end mapping from visual observations and robot states to the parameters that configure trajectory optimization, while preserving an explicit model-based planning structure. Throughout the paper, we refer to the neural parameter-prediction component as the policy network.
Practical Benefits and Experimental Results: Our approach offers three key benefits: it provides explicit collision-risk awareness during trajectory generation, leverages observation history to overcome limited-FOV constraints for smoother navigation, and automates cost weight and hyperparameter tuning to reduce latency and manual effort.
We validate the above claimed benefits in real-world experiments against both end-to-end and model-based baselines. For the former, we chose FlowNav [7]. In a Corridor-like environment, our method achieves an observed collision rate of 4\% at an average speed of 0.80 m/s, compared with collision rate of 50\% for FlowNav. We use MonoMPC as the model-based baseline. Across the three environments used for comparison with MonoMPC, our method achieves collision rates of 0\%–7\%, compared with 23\%–70\% for MonoMPC. Our approach also produces smoother motion, with an average excess heading variation of 0.0188 rad/step, compared with 0.0306 rad/step for MonoMPC.
II Related Works
We present a brief description of how our work improves upon the state-of-the-art.
II-A Temporal Mapping for Visual Navigation
The Cognitive Mapping and Planning (CMP) approach [10] learns a top-down spatial memory for differentiable planning, while Active Neural SLAM [11] predicts obstacle maps and robot pose. Semantic MapNet [12] aggregates RGB-D observations into semantic maps. For monocular navigation, MonoNav [4] fuses estimated depth into a 3D reconstruction and searches over motion primitives. These methods use temporal information to construct spatial representations. Our approach instead predicts a distribution of worst-case obstacle clearance for each candidate control sequence. This allows previously observed obstacles outside the current view to inform trajectory-level risk assessment without constructing an explicit occupancy or semantic map.
II-B Learning Collision Models
Kahn et al. [13] learn action-conditioned collision probabilities from image sequences, supervised by collision outcomes recorded during robot interaction. N-MPC [14] predicts collision scores at queried 3D positions from sensor depth images and uses these scores to constrain predicted positions in MPC. We differ from Kahn et al. [13] because we learn clearance distributions instead of direct probabilities. Supervised clearance labels are easier to obtain and can also be generated for unexecuted candidate trajectories. Our work is also closely related to MonoMPC [5], which predicts a worst-case clearance distribution from the current image and uses it in risk-aware MPC. We extend this formulation with image history and one-sided losses that directly supervise the risk surrogate for safe and unsafe trajectories. As a result, our model is able to predict reliable collision risk even for obstacles which are not currently in the robot’s camera view.
II-C Model-Based Imitation Learning
Universal Planning Networks [15] and Pan et al. [16] learn latent predictive models through imitation losses on optimized actions. MILE [17] jointly learns a visual world model and a driving policy. Differentiable MPC [18] learns controller costs and dynamics from demonstrations, while DriViDOC [19] learns image-conditioned MPC cost parameters. DIPP [20] jointly learns agent predictions, cost weights, and planner initialization through a differentiable planner, using prediction and planning losses.
Whereas UPN [15] and DIPP [20] learn predictive models through differentiable planning, we train our collision model separately and freeze it during policy learning. This prevents policy training from reducing the risk loss by modifying the collision model rather than improving the planned motion.
III Methods
Symbols and Notation
We will use lowercase letters to represent scalars, while bold font variants will be used for vectors. Matrices will be represented by uppercase bold font letters.
III-A Overview of the Approach
Consider the discrete-time dynamical system \mathbf{x}_{k+1}=\mathbf{f}(\mathbf{x}_{k},\mathbf{u}_{k}) with initial state \mathbf{x}_{0}. Over a planning horizon H, the control sequence is denoted by \mathbf{u}=[\mathbf{u}_{0},\ldots,\mathbf{u}_{H-1}]\in\mathbb{R}^{N_{u}\times H}, where each control input satisfies \mathbf{u}_{k}\in\mathbb{R}^{N_{u}}. The admissible control set is defined as:
\displaystyle\mathcal{U}=\left\{\mathbf{u}\in\mathbb{R}^{N_{u}\times H}\mathrel{\Big|}\begin{subarray}{c}\mathbf{u}_{\min}\leq\mathbf{u}_{k}\leq\mathbf{u}_{\max},\\
k=0,\ldots,H-1\end{subarray}\right\}.As shown in Fig. 1, our local navigation policy at state \mathbf{x}_{0} is framed as the following optimization problem:
\mathbf{u}^{\star}\in\operatorname*{arg\,min}_{\mathbf{u}\in\mathcal{U}}\big[\mathbf{w}_{h}^{\top}\mathbf{J}_{\mathrm{hand}}(\mathbf{u})+w_{n}J_{\mathrm{neural}}(\mathbf{o},\mathbf{u})\big].The vector \mathbf{J}_{\mathrm{hand}}(\mathbf{u})\in\mathbb{R}^{n_{h}} aggregates handcrafted objectives, such as goal progress, trajectory smoothness, and control effort. The model-based component of our approach learns the neural cost J_{\mathrm{neural}}(\mathbf{o},\mathbf{u}), which estimates collision risk conditioned on candidate controls \mathbf{u} and an observation vector \mathbf{o}=(I_{0:m},\mathbf{x}_{0}) comprising a history of monocular image frames I_{0:m} and the current state \mathbf{x}_{0}.
The imitation learning component of our approach infers the weighting parameters \mathbf{w}_{h} and w_{n} from human demonstrations. This enables the policy to balance goal progress and smoothness against collision risk based on teleoperated robot trajectories in obstacle-rich environments. In addition to the cost weights, the same imitation learning framework predicts algorithmic hyperparameters \mathbf{\phi} (e.g., a warm start) for the trajectory optimizer, substantially reducing inference latency.
A key challenge is that expert demonstrations provide supervision only in the form of desired trajectories, rather than target values for the cost weights or optimizer hyperparameters. We therefore learn these quantities through their downstream effect on the trajectory produced by the planner. Specifically, we employ a policy network (Fig. 1) that maps the current navigation context to cost weights and optimization hyperparameters, which are then passed to a differentiable optimization layer. The output of this layer is the optimal control sequence and its induced trajectory is compared with the expert trajectory. The gradients of this imitation loss are traced through the optimization layer to update the policy network.
In the following section, we first present our approach for learning J_{\mathrm{neural}}, followed by a differentiable-optimization-based imitation-learning approach.
III-B Learned Neural Collision-Risk Cost
Let d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) be a learned model which denotes the worst-case obstacle clearance along a given control sequence \mathbf{u} and is conditioned on the current observation \mathbf{o}. Let d_{0}(\mathbf{o};\boldsymbol{\alpha}) be another learned model which denotes the worst-case obstacle clearance at the current position of the robot. The neural collision-risk cost in (2) is constructed from d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) and d_{0}(\mathbf{o};\boldsymbol{\alpha}).
\overline{h} and the empirical risk surrogate r^{\mathrm{emp}}. Gaussian NLL fits the distribution, while one-sided safe/unsafe supervision shapes the risk surrogate.III-B1 DCBF-Inspired Collision-Risk Cost
A potential collision avoidance constraint using the learned clearance model d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) can be formulated as [5]:
\displaystyle h\big(d(\mathbf{o},\mathbf{u};\boldsymbol{\psi})\big) \\ \displaystyle=-d(\mathbf{o},\mathbf{u};\boldsymbol{\psi})+d_{\mathrm{thresh}}\leq 0.The above constraint is violated when the worst-case obstacle clearance falls below d_{\mathrm{thresh}}. As a result, a fast-moving robot can satisfy (3) while approaching an obstacle with its predicted clearance only slightly above the threshold, leaving insufficient room to brake in the next planning cycle. We therefore augment (3) with a barrier-based condition inspired by discrete control barrier functions [21, 22]. Define
\displaystyle h_{0}(\mathbf{o};\boldsymbol{\alpha}) \\ \displaystyle=-d_{0}(\mathbf{o};\boldsymbol{\alpha})+d_{\mathrm{thresh}}, \\ \displaystyle h_{1}(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) \\ \displaystyle=-d(\mathbf{o},\mathbf{u};\boldsymbol{\psi})+d_{\mathrm{thresh}}.The barrier-based collision avoidance constraint is
\displaystyle h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) \\ \displaystyle\triangleq h_{1}(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) \\ \displaystyle-(1-\gamma)h_{0}(\mathbf{o};\boldsymbol{\alpha})\leq 0,\quad\gamma\in(0,1].The parameter \gamma controls how fast the predicted clearance is allowed to decrease relative to its current value. A smaller \gamma increases conservativeness and makes the robot react to obstacles from a larger distance. Larger values permit a greater decrease in clearance, while \gamma=1 recovers the original collision-avoidance constraint in (3).
Extension to Probabilistic Setting: Rather than predicting a single value for d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) and d_{0}(\mathbf{o};\boldsymbol{\alpha}), it is more useful to predict a distribution that captures uncertainty arising from noisy monocular depth estimates [1, 2, 3]. We model d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) and d_{0}(\mathbf{o};\boldsymbol{\alpha}) as
\displaystyle d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) \\ \displaystyle\sim\mathcal{N}\big(\mu_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u}),\sigma_{\boldsymbol{\psi}}^{2}(\mathbf{o},\mathbf{u})\big), \\ \displaystyle d_{0}(\mathbf{o};\boldsymbol{\alpha}) \\ \displaystyle\sim\mathcal{N}\big(\mu_{0,\boldsymbol{\alpha}}(\mathbf{o}),\sigma_{0,\boldsymbol{\alpha}}^{2}(\mathbf{o})\big).The predicted variances quantify uncertainty in the corresponding clearance values. The distributions of d and d_{0} induce a Gaussian distribution \mathcal{N}(\mu_{h_{b}},\sigma^{2}_{h_{b}}) over h_{b} (see the supplementary text). Consequently, deterministic enforcement of the collision-avoidance constraint (5) is no longer appropriate. Instead, it is expressed as the chance constraint \mathbb{P}\!\left(h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha})\leq 0\right)\geq 1-\varepsilon or, equivalently, \mathbb{P}(h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha})>0)\leq\varepsilon. We define the associated collision risk as
\displaystyle r\!\left(h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha})\right) \\ \displaystyle\triangleq\mathbb{P}\!\left(h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha})>0\right).The collision risk is the probability that a control sequence violates the collision-avoidance constraint in (5). A larger value indicates that the predicted clearance is more likely to decrease faster than the constraint permits. A smaller value indicates that the control sequence is more likely to satisfy the constraint.
Rather than computing the collision risk in (7) analytically, we approximate it using r^{\mathrm{emp}}, an empirical collision-risk surrogate. This surrogate can be evaluated using either random samples or fixed deterministic Gaussian quantiles drawn from \mathcal{N}(\mu_{h_{b}},\sigma^{2}_{h_{b}}). We use deterministic Gaussian quantiles instead of Monte Carlo samples to avoid sampling variability. Thus, fixed observation and control inputs (\mathbf{o},\mathbf{u}) always produce the same r^{\mathrm{emp}} value. The supplementary text provides the quantile construction.
The algebraic form of r^{\mathrm{emp}} depends on what kind of risk metric we want to evaluate. Common choices include sample average approximation (SAA) [23, 24, 25] and conditional value-at-risk (CVaR) [26, 27]. SAA computes the empirical violation frequency while CVaR aggregates the upper-tail constraint values. Our method is agnostic to the choice of r^{\mathrm{emp}}. In this work, we instantiate r^{\mathrm{emp}} using Maximum Mean Discrepancy (MMD) [28, 5, 29, 30], whose construction is detailed in the supplementary text.
The neural collision-risk cost used in (2) is
\displaystyle J_{\mathrm{neural}}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) \\ \displaystyle=\left[r^{\mathrm{emp}}\!\left(\{{}^{j}\overline{h}_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha})\}_{j=1}^{N}\right)-\tau\right]_{+}.where {}^{j}\overline{h}_{b}=\max(0,{}^{j}{h}_{b}) and {}^{j}{h}_{b} is the j^{th} Gaussian quantile derived from \mathcal{N}(\mu_{h_{b}},\sigma^{2}_{h_{b}}) (see the supplementary text). Furthermore, [a]_{+}=\max(0,a), and \tau is the threshold applied to the empirical collision-risk surrogate. The value of \tau is reported in Section IV-A. Equation (8) is a soft penalty-based surrogate for enforcing the chance constraint r\leq\varepsilon. A restrictive \varepsilon can reject useful motion under predictive uncertainty and lead to overly conservative behavior. Thus, the weighted neural cost allows the optimizer to trade surrogate-risk exceedance against task progress.
III-B2 Task-Aware Collision-Model Training
Having constructed the neural collision-risk cost in Section III-B1, we now present how the collision model d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) is learned. As summarized in Figure 2, this model maps the visual observation history, current robot state, and a given control sequence to the distribution of worst-case obstacle clearance along that sequence. For each observation \mathbf{o} and control sequence \mathbf{u}, we roll out the corresponding trajectory and use privileged LiDAR measurements to collect its ground-truth worst-case obstacle clearance d_{\mathrm{gt}}. The collision-model dataset contains both safe and unsafe motion primitives, where d_{\mathrm{gt}}\geq d_{\mathrm{thresh}} denotes a safe primitive and d_{\mathrm{gt}}<d_{\mathrm{thresh}} denotes an unsafe primitive.
Following the task-aware collision-model training framework of MonoMPC [5], we combine distribution fitting with task-aware supervision. A standard way to train a model that outputs a Gaussian distribution is to minimize the Gaussian negative log-likelihood (NLL):
\displaystyle\mathcal{L}_{\mathrm{NLL}} \\ \displaystyle=\frac{1}{2}\log\!\left(2\pi\sigma_{\boldsymbol{\psi}}^{2}(\mathbf{o},\mathbf{u})\right)+\frac{\left(d_{\mathrm{gt}}-\mu_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u})\right)^{2}}{2\sigma_{\boldsymbol{\psi}}^{2}(\mathbf{o},\mathbf{u})}.However, NLL alone does not supervise how the variance should behave in downstream planning. A safe trajectory may be assigned high collision risk because of an inflated variance, or an unsafe trajectory may be assigned low collision risk because of an underestimated variance. We therefore augment the NLL loss with the collision-risk estimation head shown in Figure 2, which provides the task-aware supervision. During collision-model training, the residuals are computed directly from raw clearance, without the barrier formulation: {}^{j}\overline{h}=\max(0,d_{\mathrm{thresh}}-{}^{j}d), where {}^{j}d=\mu_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u})+\sigma_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u})\,{}^{j}z and {}^{j}z=\Phi^{-1}((j-0.5)/N) for j=1,\ldots,N. Here \Phi^{-1} is the inverse standard-normal cumulative distribution function. Specifically,
\displaystyle\mathcal{L}_{\mathrm{safe}} \\ \displaystyle=\left[r^{\mathrm{emp}}\!\left(\{{}^{j}\overline{h}(\mathbf{o},\mathbf{u};\boldsymbol{\psi})\}_{j=1}^{N}\right)-\tau\right]_{+}^{2}, \\ \displaystyle\mathcal{L}_{\mathrm{unsafe}} \\ \displaystyle=\left[r^{\star}-r^{\mathrm{emp}}\!\left(\{{}^{j}\overline{h}(\mathbf{o},\mathbf{u};\boldsymbol{\psi})\}_{j=1}^{N}\right)\right]_{+}^{2}, \\ \displaystyle\mathcal{L}_{\mathrm{collision\text{-}risk}} \\ \displaystyle=\begin{cases}\omega_{\mathrm{safe}}\mathcal{L}_{\mathrm{safe}},&d_{\mathrm{gt}}\geq d_{\mathrm{thresh}},\\
\omega_{\mathrm{unsafe}}\mathcal{L}_{\mathrm{unsafe}},&d_{\mathrm{gt}}<d_{\mathrm{thresh}},\end{cases}The total loss is \mathcal{L}_{\mathrm{CM}}=\beta_{1}\mathcal{L}_{\mathrm{NLL}}+\beta_{2}\mathcal{L}_{\mathrm{collision\text{-}risk}}. Equation (10) penalizes a safe primitive if its predicted collision-risk surrogate exceeds the threshold \tau. Thus, variance is regularized in a way that the risk-surrogate values of safe primitives remain below the prescribed threshold. In contrast, equation (11) penalizes an unsafe primitive when its predicted surrogate is below the target r^{\star}=\max\!\left(\zeta s+(1-\zeta)s^{2},r_{\mathrm{floor}}\right). Here s=(d_{\mathrm{thresh}}-d_{\mathrm{gt}})/d_{\mathrm{thresh}} is its normalized penetration severity. The parameter \zeta blends the linear and quadratic dependence of r^{\star} on this severity, while r_{\mathrm{floor}} ensures a minimum target for every unsafe primitive.
Equation (12) selects the appropriate one-sided loss using the ground-truth safe or unsafe label. The coefficients \omega_{\mathrm{safe}} and \omega_{\mathrm{unsafe}} control the relative influence of the two classes. Finally, \mathcal{L}_{\mathrm{CM}} combines Gaussian distribution fitting through \mathcal{L}_{\mathrm{NLL}} with the collision-risk supervision through \mathcal{L}_{\mathrm{collision\text{-}risk}}. The coefficients \beta_{1} and \beta_{2} balance these two objectives and are specified in Section IV-A. The current worst-case obstacle clearance model d_{0}(\mathbf{o};\boldsymbol{\alpha}) is trained similarly to d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}).
III-B3 Neural Network Architecture
Figure 2 summarizes the collision-model architecture for d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}). Each of the past m=20 image frames and the current one are passed to a frozen Depth Anything V2 [2] to obtain metric depth estimates. Each depth map is then back-projected to a two-dimensional point cloud. A shared PointNet-like encoder [31] independently maps each point cloud to a frame-level feature. Temporal self-attention then aggregates these features into the context \mathbf{c}_{\mathrm{feat}}. We concatenate \mathbf{c}_{\mathrm{feat}} with current state \mathbf{x}_{0} and control sequence \mathbf{u} and pass them through a multi-layer perceptron \mathbf{MLP}_{\psi} to obtain the mean and variance of the worst-case obstacle clearance distribution. A separate risk-head then uses these predictions to evaluate r^{\mathrm{emp}} and the task-risk loss discussed in the previous subsection. For our MMD-based r^{\mathrm{emp}}, the \mathbf{MLP}_{\psi} also predicts the control-dependent kernel width \lambda_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u}), which is used to compute r^{\mathrm{emp}} as detailed in the supplementary text.
(\mathbf{w}_{h},w_{n},\boldsymbol{\phi};n,L)III-C Differentiable Planning and Policy Network Learning
The optimizer in (2) is realized by soft-CEM, a differentiable variant of conventional CEM [32], motivated by Amos and Yarats [9]. The overall algorithm is shown in Alg. 1. Assume we have access to a policy network \boldsymbol{\pi}_{\boldsymbol{\theta}} that provides the following predictions
\displaystyle(\boldsymbol{w}_{h},w_{n},\boldsymbol{\phi}) \\ \displaystyle=\pi_{\boldsymbol{\theta}}(I_{0:m},\mathbf{x}_{0},\mathbf{g}), \\ \displaystyle\boldsymbol{\phi} \\ \displaystyle=(\mathbf{u}_{\mathrm{mean}}^{(0)},\boldsymbol{\rho}^{(0)},\eta)\in\mathbb{R}^{n_{\phi}}.Here \mathbf{u}_{\mathrm{mean}}^{(0)} and \boldsymbol{\rho}^{(0)} are the mean and element-wise variance, respectively, used to initialize the CEM algorithm in Alg. 1. The initial mean lies in \mathcal{U}. The scalar \eta is the soft-weighting temperature and controls how strongly refinement emphasizes lower-cost candidates. The weights \boldsymbol{w}_{h},w_{n} are fed to the cost function in (2) to trade off collision risk with other task-relevant costs.
Control Sampling: At iteration l of our CEM, Alg. 1, we first sample n control input sequences using the reparameterization trick in the following manner.
\mathbf{u}_{q}^{(l)}=\Pi_{\mathcal{U}}\!\left(\mathbf{u}_{\mathrm{mean}}^{(l-1)}+\sqrt{\boldsymbol{\rho}^{(l-1)}}\odot\boldsymbol{\xi}_{q}^{(l)}\right),\quad q=1,\ldots,n,where \boldsymbol{\xi}_{q}^{(l)}\sim\mathcal{N}(\mathbf{0},\mathbf{I}), \Pi_{\mathcal{U}} projects \mathbf{u}_{q} to \mathcal{U}. We also append the previous mean as an additional candidate, \mathbf{u}_{n+1}^{(l)}=\mathbf{u}_{\mathrm{mean}}^{(l-1)}, giving n+1 candidate control sequences indexed by \mathcal{Q}=\{1,\ldots,n+1\}.
Soft weighting. Each candidate is scored by J_{q}^{(l)} using (2), with the frozen risk model providing the collision-risk part (8) of the cost. Writing J_{\min}^{(l)}=\min_{q^{\prime}\in\mathcal{Q}}J_{q^{\prime}}^{(l)},
\displaystyle\alpha_{q}^{(l)} \\ \displaystyle=\frac{\exp\!\left(-(J_{q}^{(l)}-J_{\min}^{(l)})/\eta\right)}{\sum_{q^{\prime}\in\mathcal{Q}}\exp\!\left(-(J_{q^{\prime}}^{(l)}-J_{\min}^{(l)})/\eta\right)}.The temperature \eta sets how strongly low-cost candidates dominate, and subtracting J_{\min}^{(l)} is a numerical stabilization that leaves \alpha^{(l)} unchanged.
\widetilde{\mathbf{c}}_{\mathrm{feat}}, the current state \mathbf{x}_{0}, and goal \mathbf{g} determine the cost weights \boldsymbol{w}_{h},w_{n} and optimizer hyperparameters \boldsymbol{\phi}=(\mathbf{u}_{\mathrm{mean}}^{(0)},\boldsymbol{\rho}^{(0)},\eta). The Alg. 1 box represents the complete soft-CEM procedure with L refinement iterations. The updated means define \mathcal{L}_{\mathrm{task\text{-}risk}}. The final mean’s induced planar trajectory is compared with the expert trajectory through \mathcal{L}_{\mathrm{imit}}. Gradients of the weighted loss pass through Alg. 1 to train the policy network while the clearance-model parameters remain fixed.Moment update. The mean and variance of the control sampling distribution are updated using \alpha_{q}^{(l)} in the following manner.
\displaystyle\mathbf{u}_{\mathrm{mean}}^{(l)} \\ \displaystyle=\sum_{q\in\mathcal{Q}}\alpha_{q}^{(l)}\mathbf{u}_{q}^{(l)}, \\ \displaystyle\boldsymbol{\rho}^{(l)} \\ \displaystyle=\Pi_{[\rho_{\min},\rho_{\max}]}\Big(\sum_{q\in\mathcal{Q}}\alpha_{q}^{(l)}\big(\mathbf{u}_{q}^{(l)}-\mathbf{u}_{\mathrm{mean}}^{(l)}\big)^{\odot 2}\Big),where (\cdot)^{\odot 2} is element-wise squaring and the variance projection acts element-wise. Each updated mean satisfies the control bounds by construction, being a convex combination of admissible control sequences. The temperature \eta remains constant across CEM iterations. It should be noted that unlike hard-elite CEM, every control sample contributes to the moment update.
Re-parameterized sampling, cost evaluation, soft weighting, and the moment refit are differentiable, while the projections are differentiable almost everywhere. Since both the cost weights and \boldsymbol{\phi} depend on \boldsymbol{\theta}, the derivative \partial\mathbf{u}_{\mathrm{mean}}^{(L)}/\partial\boldsymbol{\theta} is computed by differentiating through all L unrolled iterations.
Learning the Policy Network: Figure 3 summarizes policy network training. The core network architecture consists of an independent copy of the perception architecture in Section III-B3, with separate parameters, to produce \widetilde{\mathbf{c}}_{\mathrm{feat}}. This context is combined with \mathbf{x}_{0} and \mathbf{g} and passed through an MLP to obtain \boldsymbol{w}_{h},w_{n},\boldsymbol{\phi}, which are then passed to the soft-CEM block of Alg. 1.
Let \mathbf{u}_{\mathrm{mean}}^{(L)} be the control sequence obtained by running L CEM refinement iterations and let \mathbf{x}(\mathbf{u}_{\mathrm{mean}}^{(L)})\in\mathbb{R}^{2\times H} be its induced planar trajectory. The final mean is supervised against the expert trajectory:
\displaystyle\mathcal{L}_{\mathrm{imit}} \\ \displaystyle=\frac{1}{2H}\left\|\mathbf{x}(\mathbf{u}_{\mathrm{mean}}^{(L)})-\mathbf{x}(\mathbf{u}_{\mathrm{exp}})\right\|_{F}^{2}.The subscript F denotes the Frobenius norm, and the normalization averages over the 2H planar trajectory coordinates. We also accumulate J_{\mathrm{neural}} evaluated at every updated control mean and include that as the additional task loss for the policy network training.
\displaystyle\mathcal{L}_{\mathrm{task\text{-}risk}} \\ \displaystyle=\frac{1}{L}\sum_{l=1}^{L}J_{\mathrm{neural}}\!\left(\mathbf{o},\mathbf{u}_{\mathrm{mean}}^{(l)}\right).The total loss is \mathcal{L}=\lambda_{\mathrm{imit}}\mathcal{L}_{\mathrm{imit}}+\lambda_{\mathrm{task\text{-}risk}}\mathcal{L}_{\mathrm{task\text{-}risk}}. The imitation term brings the CEM output trajectory closer to the expert demonstrations, while the second term improves safety of each intermediate solution. We can backpropagate \mathcal{L} through the unrolled Alg. 1 iterations to train the policy network to produce scene-dependent cost weights and algorithmic hyperparameters.
IV Validation and Benchmarking
We evaluate navigation safety, efficiency, steering smoothness, and computation time in real-world experiments. Metric definitions, aggregation rules, and timing details are provided in the supplementary text.
IV-A Experimental and Implementation Setup
Benchmarking setup: We evaluate on a Clearpath Jackal using only the RGB stream of an Intel RealSense D435i camera (69^{\circ} horizontal FOV). A SICK TIM551 2D LiDAR is used solely for ground-truth evaluation and visualization. The system runs ROS Noetic on a locally networked RTX 3080 laptop, with TensorRT-accelerated Depth Anything V2 [2]. Tests use static cardboard-box obstacles in Corridor, Grid-Easy, and Grid-Difficult environments. Figure 4 shows the Jackal and Parrot Bebop trial environments. The accompanying video provides further details.
Planning setup: Alg. 1 is implemented in JAX [33] and executed in a receding-horizon MPC loop. With n_{h}=1, the vector \boldsymbol{w}_{h} reduces to the scalar w_{h}, and the hand-crafted cost in (2) is J_{\mathrm{hand}}(\mathbf{u})=\sum_{k=0}^{H-1}[(x_{k}-x_{f})^{2}+(y_{k}-y_{f})^{2}], where (x_{k},y_{k}) is the position component of the rolled-out state \mathbf{x}_{k+1} and (x_{f},y_{f}) is the goal. Each sequence contains H=50 linear- and angular-velocity pairs over 5 s (\Delta t=0.1 s), bounded by [0,1] m/s and [-1,1] rad/s, respectively. Initial sampling variances are bounded elementwise by [\rho_{\min},\rho_{\max}]=[10^{-4},5]. Softplus keeps w_{h}, w_{n}, and \eta positive.
Shared dataset: The collision model and policy share 278{,}518 scenes collected through teleoperation and a privileged LiDAR-based planner [34]. Each scene contains 21 point clouds derived from I_{0:m} (m=20), covering 2 s at 0.1 s intervals. Each cloud contains 300 two-dimensional points estimated using Depth Anything V2 [2], expressed in the robot frame at acquisition. Policy-training records are (I_{0:m},\mathbf{x}_{0},\mathbf{g},\mathbf{u}_{\mathrm{exp}}), containing the current state, goal, and 50-step expert control sequence. The current position is the origin of the ego-centered planning frame, so only current velocity is stored for \mathbf{x}_{0}. Each scene also records the expert primitive’s ground-truth worst-case clearance. Following [5], clearance for a primitive \mathbf{u} is computed as
\displaystyle d_{\mathrm{gt}}(\mathbf{u}) \\ \displaystyle=\min_{\begin{subarray}{c}k=0,\ldots,H-1\\
\mathbf{p}\in\mathcal{P}_{\mathrm{LiDAR}}\end{subarray}}\left\|\begin{bmatrix}x_{k}(\mathbf{u})\\
y_{k}(\mathbf{u})\end{bmatrix}-\mathbf{p}\right\|_{2},where (x_{k}(\mathbf{u}),y_{k}(\mathbf{u})) is the robot position at trajectory index k and \mathcal{P}_{\mathrm{LiDAR}} is the privileged LiDAR cloud. Clearance is measured from the robot center while d_{\mathrm{thresh}}=0.35 m accounts for the robot radius and a safety buffer.
Collision-model augmentation: For collision-model training, each scene is paired with the expert primitive and 50 generated motion primitives. The expert and generated motion primitives are labeled safe/unsafe using (19), and their clearance values are recorded.
t denotes the current frame, while t-2 and t-5 denote previous frames.Training setup: Both collision model and policy networks are implemented and trained in Equinox [35] on an RTX 5090. Collision-model training uses N=20 deterministic clearance quantiles and d_{\mathrm{thresh}}=0.35 m. All experiments use the squared-MMD surrogate r^{\mathrm{emp}} defined in the supplementary text. We set \beta_{1}=1, \beta_{2}=10, \omega_{\mathrm{safe}}=10, \omega_{\mathrm{unsafe}}=1, \tau=0.005, \zeta=0.5, and r_{\mathrm{floor}}=2\tau=0.01. Policy training uses L=5 refinements, each with n=20 stochastic candidates and one current-mean anchor, with \gamma=0.95, \lambda_{\mathrm{imit}}=1, and \lambda_{\mathrm{task\text{-}risk}}=10.
IV-B Comparison with MonoMPC [5]
In this subsection, we compare our approach with a closely related baseline MonoMPC [5] that also uses a learned collision model with a risk-aware trajectory optimization for monocular navigation. This benchmark is particularly important because our approach improves upon MonoMPC [5] by incorporating observation history into collision prediction, improving task-aware training and making the planner adaptable to the complexity of the encountered navigation scenario. We first examine the collision-model predictions to illustrate how temporal context helps address the limited spatial coverage of monocular observations.
Effect of Temporal Context on Collision Risk Prediction: A nearby obstacle may leave the camera’s field of view while remaining relevant to the safety of a candidate trajectory. Fig. 5 illustrates this situation through a sequence of past observations and the current frame. The red points show the ground-truth LiDAR geometry, while the green points show the point clouds estimated from monocular images. In Fig. 5, we show a trajectory primitive resulting from a control sequence whose safety needs to be assessed. It can be seen that it passes very close to an obstacle (red point cloud)–ground-truth minimum clearance of d_{\mathrm{gt}}=0.115\,\mathrm{m}, below the prescribed safety threshold of d_{\mathrm{thresh}}=0.35\,\mathrm{m}. However, due to the limited FOV, the robot does not see the obstacle in its current frame. As a result, MonoMPC, which predicts collision risk using only the current image, classifies the primitive as safe.
In contrast, our proposed collision model correctly classifies the primitive as unsafe as it is able to leverage past observations through the perception encoder described in Section III-B3 to predict the correct distribution of the worst-case clearance. Thus, this example illustrates how temporal context provides a learned memory for collision assessment without constructing an explicit occupancy map.
- Corridor
- Alg. 1 (Ours)
- 7
- 0.77
- 1.00
- 0.26
- 0.82
- MonoMPC [5]
- 37
- 0.28
- 0.86
- 0.39
- 0.93
- Grid-Easy
- Alg. 1 (Ours)
- 3
- 0.81
- 1.00
- 0.26
- 0.78
- MonoMPC [5]
- 23
- 0.36
- 0.80
- 0.35
- 0.87
- Grid-Difficult
- Alg. 1 (Ours)
- 0
- 0.76
- 1.00
- 0.30
- 0.93
- MonoMPC [5]
- 70
- 0.31
- 0.74
- 0.40
- 0.91
Comparing the Planning Performance: Table I compares our planner with MonoMPC in Corridor, Grid-Easy, and Grid-Difficult environments (Fig. 4(a)-(c)), showing how our improved collision model along with the learned planner improves the overall navigation performance as compared to MonoMPC. Our planner’s observed collision rates are 7\%, 3\%, and 0\%, versus 37\%, 23\%, and 70\% for MonoMPC, respectively. It also achieves more than twice the average linear speed (0.76–0.81 m/s versus 0.28–0.36 m/s), while using 21 candidates per iteration and five CEM refinements, compared with MonoMPC’s 100 candidates and 20 refinements.
Figure 6 compares excess heading variation and the mean absolute change in angular-velocity commands across individual runs. Our planner has lower medians for both metrics in all three environments, which indicates less heading oscillation and smaller steering corrections. This behavior is consistent with the use of observation history in our collision model. In cluttered environments, MonoMPC can overlook nearby obstacles outside the current view because its collision model uses only the latest image. As the robot turns, these obstacles can enter the camera’s view and trigger further changes in direction. Our model uses earlier observations to account for previously seen obstacles, which can reduce the need for these repeated corrections.
IV-C Comparison with FlowNav [7]
FlowNav [7] is an end-to-end learned visual-navigation policy. Building on the topological, goal-conditioned architecture of NoMaD [6], it replaces the diffusion-based action head with conditional flow matching for faster action generation and augments the visual observation tokens with depth priors obtained from an off-the-shelf monocular depth foundation model [2]. Like other end-to-end policies, FlowNav maps observations directly to trajectories and has no explicit mechanism for evaluating the task risk of a candidate control. Therefore, safety is only implicit in the imitation objective. Fig. 7 shows that the proposed local navigation policy (Alg. 1) achieves higher average and mean per-run peak speeds than FlowNav (0.80 and 1.00 m/s versus 0.27 and 0.36 m/s), while reducing the observed collision rate from 50\% to 4\%, a relative reduction of 92\%. Thus, in these trials, the higher operating speeds are accompanied by a lower observed collision rate. Refer to the videos in the supplementary material to further understand how the lack of explicit safety guidance during inference harms the performance of FlowNav.
IV-D Ablation
We assess the contribution of learned initialization, cost weights, and temperature in Alg. 1 using A1 and A2 (Fig. 8), both initialized with \mathbf{u}_{\mathrm{mean}}^{(0)}=\mathbf{0} and fixed variance \boldsymbol{\rho}^{(0)}. The ablation uses a grid environment (Fig. 4(d)), more challenging than Grid-Difficult (Fig. 4(a)).
A1: The first baseline retains the cost weights \boldsymbol{w}_{h},w_{n} and temperature \eta predicted by the policy network \pi_{\boldsymbol{\theta}}.
A2: The second baseline adds uniform random noise to the policy-predicted cost weights \boldsymbol{w}_{h},w_{n} and temperature \eta before running Alg. 1. As can be seen, the learned planner performs the best in terms of collision rate, speed and steering smoothness. The results are not surprising. Since, both optimizer warm-start and weights are learned together, even just removing the former (Ablation A1) drastically reduces the performance. Removing warm-start benefit and perturbing the learned weights (Ablation A2) leads to further degradation.
IV-E Zero-Shot Transfer
Fig. 4(e) shows zero-shot transfer of the unmodified trained collision model and policy network to a Parrot Bebop drone (see supplementary video), and Alg. 1 is used without modification because the platform accepts the same velocity-command parameterization.
V Conclusions and Future Work
We presented a model-based imitation learning approach for monocular navigation in cluttered environments, integrating a learned collision model into a scene- and context-adaptive trajectory optimizer trained via imitation loss. The collision model predicts a worst-case clearance distribution from image history, helping account for previously observed, out-of-view obstacles without occupancy mapping.
Real-world tests showed lower collision rates and higher average speeds than MonoMPC and FlowNav, with smoother actions and fewer candidates per CEM iteration than MonoMPC. A drone demonstration qualitatively supported transfer of the full pipeline to a new robot and camera without modification or retraining.
Our evaluation is limited to static environments. Future work will extend the collision model to dynamic environments and test robustness to sensor occlusion and high-speed motion blur.
AI Usage Acknowledgment: We used GPT6Pro for text polishing and formatting, figure editing, and code generation. All ideas and algorithmic development, experimental results are our own.
References
Supplementary Material
Appendix A Introduction
This supplementary material uses the notation of the main paper. Section B provides the collision-risk formulation and analysis supporting main-paper Section III-B. Section C specifies the implemented network architectures for main-paper Sections III-B3 and III-C. Section D presents qualitative results corresponding to the comparisons, ablations, and transfer experiments in main-paper Section IV. It also includes a quantitative comparison with CARE supporting the discussion in main-paper Section I. Section E defines the evaluation metrics and their aggregation across runs. Table S1 summarizes these connections.
- Sec. B: Collision-risk formulation and analysis
- Sec. III-B; Eqs. (6)–(8)
- Secs. C-A–C-D: Network architecture
- Secs. III-B3, III-C; Figs. 2, 3
- Secs. C-E–C-F: Training and computation time
- Secs. III-C, IV-A; Alg. 1
- Sec. D-A: MonoMPC trajectories and oscillations
- Sec. IV-B; Table I; Fig. 6
- Sec. D-B: FlowNav trajectories
- Sec. IV-C; Fig. 7
- Sec. D-C: CARE comparison and trajectories
- Sec. I: Safety augmentation of visual policies
- Sec. D-D: Fixed-initialization baselines
- Sec. IV-D; Fig. 8
- Sec. D-E: Bebop transfer
- Sec. IV-E; Fig. 4(e)
- Sec. E: Evaluation metrics
- Sec. IV; Table I; Figs. 6–8
Appendix B Collision-Risk Formulation and Analysis
B-A Deterministic Gaussian Quantiles
Evaluating r^{\mathrm{emp}} and the neural collision-risk cost in (8) requires a finite set of residual quantiles \{{}^{j}\overline{h}_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha})\}_{j=1}^{N}. We use deterministic Gaussian quantiles instead of Monte Carlo samples to avoid sampling variability. For fixed inputs, the quantile locations and residual quantiles are unchanged, so repeated evaluations produce the same value of r^{\mathrm{emp}} without stochasticity from Monte Carlo sampling.
We use N fixed midpoint locations of the standard-normal distribution:
\displaystyle{}^{j}z \\ \displaystyle=\Phi^{-1}\!\left(\frac{j-0.5}{N}\right),\qquad j=1,\ldots,N,where \Phi^{-1} is the inverse standard-normal cumulative distribution function. Using the fixed locations in (S1), the h_{b} and \overline{h}_{b} quantiles are
\displaystyle{}^{j}h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) \\ \displaystyle=\mu_{h_{b}}+\sigma_{h_{b}}\,{}^{j}z, \\ \displaystyle{}^{j}\overline{h}_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) \\ \displaystyle=\max\!\left(0,{}^{j}h_{b}\right),\qquad j=1,\ldots,N,where the mean and variance of h_{b}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) are
\displaystyle\mu_{h_{b}}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) \\ \displaystyle=-\mu_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u})+d_{\mathrm{thresh}} \\ \displaystyle\quad-(1-\gamma)\left(-\mu_{0,\boldsymbol{\alpha}}(\mathbf{o})+d_{\mathrm{thresh}}\right), \\ \displaystyle\sigma_{h_{b}}^{2}(\mathbf{o},\mathbf{u};\boldsymbol{\psi},\boldsymbol{\alpha}) \\ \displaystyle=\sigma_{\boldsymbol{\psi}}^{2}(\mathbf{o},\mathbf{u})+(1-\gamma)^{2}\sigma_{0,\boldsymbol{\alpha}}^{2}(\mathbf{o}).The models parameterized by \boldsymbol{\psi} and \boldsymbol{\alpha} separately predict the marginal distributions of d(\mathbf{o},\mathbf{u};\boldsymbol{\psi}) and d_{0}(\mathbf{o};\boldsymbol{\alpha}) in (6). Because these models do not define a joint distribution over the two clearances, we treat their predictions as independent. This assumption yields the moments in (S3).
B-B MMD-Based Collision-Risk Surrogate
Let p_{\overline{h}_{b}} denote the distribution of the nonnegative barrier residual \overline{h}_{b}=[h_{b}]_{+} represented by the quantiles in (S2b). The key observation is that its entire probability mass lies on the nonnegative side of \overline{h}_{b}=0. Moreover, as the collision risk \mathbb{P}(h_{b}>0) approaches zero, p_{\overline{h}_{b}} converges to the Dirac measure p_{\delta_{0}} concentrated at the origin [29]. Thus, collision risk can be reduced by minimizing the difference between p_{\overline{h}_{b}} and p_{\delta_{0}}. We formulate this distribution matching through MMD [28, 36] and use the MMD-based collision-risk surrogate proposed in [5, 29, 30]. For the distribution p_{\overline{h}_{b}}, let \mu[p_{\overline{h}_{b}}]=\mathbb{E}_{z\sim p_{\overline{h}_{b}}}[K_{\lambda}(z,\cdot)] denote its reproducing kernel Hilbert space (RKHS) embedding. The resulting collision-risk surrogate is
\displaystyle r_{\mathrm{MMD}} \\ \displaystyle\triangleq\operatorname{MMD}^{2}\!\left(p_{\overline{h}_{b}},p_{\delta_{0}}\right) \\ \displaystyle=\left\|\mu[p_{\overline{h}_{b}}]-\mu[p_{\delta_{0}}]\right\|_{\mathcal{H}}^{2}.The Laplace kernel used in this work is
\displaystyle K_{\lambda}(z,z^{\prime}) \\ \displaystyle=\exp\!\left(-\frac{|z-z^{\prime}|}{\lambda}\right).The Laplace kernel is characteristic. Therefore, r_{\mathrm{MMD}}=0 if and only if p_{\overline{h}_{b}}=p_{\delta_{0}} [28], which is equivalent to \mathbb{P}(h_{b}>0)=0, or equivalently, zero collision risk in (7).
For efficient evaluation, we replace the population embeddings in (S4) with a finite-quantile approximation based on the N deterministic residual quantiles in (S2b). This converts the population expectations into finite sums and provides repeatable surrogate values and gradients without Monte Carlo sampling variability. Let
\displaystyle\widehat{P}_{N}^{\overline{h}_{b}} \\ \displaystyle\triangleq\frac{1}{N}\sum_{j=1}^{N}\delta_{{}^{j}\overline{h}_{b}}denote the discrete residual measure that approximates p_{\overline{h}_{b}}. The corresponding finite approximations of the kernel mean embeddings are
\displaystyle\widehat{\mu}_{N}[\widehat{P}_{N}^{\overline{h}_{b}}] \\ \displaystyle=\frac{1}{N}\sum_{j=1}^{N}K_{\lambda}({}^{j}\overline{h}_{b},\cdot), \\ \displaystyle\widehat{\mu}_{N}[p_{\delta_{0}}] \\ \displaystyle=\frac{1}{N}\sum_{j=1}^{N}K_{\lambda}(0,\cdot).The finite-quantile approximation of r_{\mathrm{MMD}} is
\displaystyle r_{\mathrm{MMD}}^{\mathrm{emp}} \\ \displaystyle=\left\|\widehat{\mu}_{N}[\widehat{P}_{N}^{\overline{h}_{b}}]-\widehat{\mu}_{N}[p_{\delta_{0}}]\right\|_{\mathcal{H}}^{2}.Using the kernel trick, (S8) becomes
\displaystyle r_{\mathrm{MMD}}^{\mathrm{emp}} \\ \displaystyle=\frac{1}{N^{2}}\sum_{i=1}^{N}\sum_{j=1}^{N}K_{\lambda}({}^{i}\overline{h}_{b},{}^{j}\overline{h}_{b}) \\ \displaystyle\quad-\frac{2}{N}\sum_{i=1}^{N}K_{\lambda}({}^{i}\overline{h}_{b},0)+1.B-B1 Finite-Quantile Convergence of r^{\mathrm{emp}}_{\mathrm{MMD}}
Let
\widehat{P}_{N}^{h_{b}}\triangleq N^{-1}\sum_{j=1}^{N}\delta_{{}^{j}h_{b}}be the equal-weight measure supported on the midpoint quantiles in (S2a). This midpoint construction gives \widehat{P}_{N}^{h_{b}}\longrightarrow p_{h_{b}} weakly, where p_{h_{b}} is the Gaussian barrier distribution specified by (S3). Weak convergence is preserved under the continuous transformation h_{b}\mapsto\max(0,h_{b}) used in (S2b). Therefore, \widehat{P}_{N}^{\overline{h}_{b}}\longrightarrow p_{\overline{h}_{b}} weakly as N\longrightarrow\infty. For a fixed control sequence, the Laplace kernel is bounded and continuous. Lemma 10 of [36] therefore implies
\displaystyle\left\|\widehat{\mu}_{N}[\widehat{P}_{N}^{\overline{h}_{b}}]-\mu[p_{\overline{h}_{b}}]\right\|_{\mathcal{H}} \\ \displaystyle\longrightarrow 0\quad\text{as}\quad N\longrightarrow\infty.Since p_{\delta_{0}} is concentrated at zero, both its population embedding and its N-point empirical embedding equal K_{\lambda}(0,\cdot). Therefore, \widehat{\mu}_{N}[p_{\delta_{0}}]=\mu[p_{\delta_{0}}] for every N. Continuity of the squared RKHS norm then gives
\displaystyle r_{\mathrm{MMD}}^{\mathrm{emp}} \\ \displaystyle\longrightarrow r_{\mathrm{MMD}}\quad\text{as}\quad N\longrightarrow\infty.Importance of the kernel parameter. The kernel width \lambda controls the sensitivity of r_{\mathrm{MMD}}^{\mathrm{emp}}. An excessively large \lambda makes the embeddings nearly constant and less sensitive to collision risk. An excessively small \lambda makes the embeddings sharply separated and can produce overly conservative behavior. We therefore predict a positive, control-dependent kernel width \lambda_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u}) from the observation and control sequence. Its output is bounded to \lambda_{\boldsymbol{\psi}}\in[0.05,25.0].
Use across stages. During collision-model training, r_{\mathrm{MMD}}^{\mathrm{emp}} is evaluated on the residual quantiles \{{}^{j}\overline{h}\}_{j=1}^{N} computed directly from raw clearance: {}^{j}\overline{h}=\max(0,d_{\mathrm{thresh}}-{}^{j}d), with {}^{j}d=\mu_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u})+\sigma_{\boldsymbol{\psi}}(\mathbf{o},\mathbf{u})\,{}^{j}z and {}^{j}z given by (S1). This training stage does not use the barrier formulation; see main-paper Section III-B2. Its gradients update \boldsymbol{\psi}, including the predicted clearance uncertainty and kernel width. During policy training, the collision models are frozen and the same squared-MMD construction is evaluated on the barrier residual quantiles \{{}^{j}\overline{h}_{b}\}_{j=1}^{N} from (S2b). The resulting surrogate is used by J_{\mathrm{neural}} in (8), while gradients update only the policy parameters \boldsymbol{\theta}. At deployment, all learned models are frozen and the surrogate is used only to evaluate control sequences.
Appendix C Network Architecture and Implementation Details
The specifications below correspond to the collision model in main-paper Fig. 2 and the policy network \pi_{\boldsymbol{\theta}} in main-paper Fig. 3. All tensor dimensions omit the batch axis. The implementation uses JAX and Equinox with 32-bit floating-point parameters.
C-A Inputs and Normalization
Visual input. The input contains 21 point clouds: m=20 past frames followed by the current frame, sampled at 0.1 s intervals. Each cloud has 300 points with two coordinates, giving an input tensor of size 21\times 300\times 2. Each point cloud is expressed in the robot frame at the time its image was captured; the history is not transformed into a common frame. Metric depth is obtained with the frozen Depth Anything V2 model and back-projected as described in main-paper Section IV-A. Point coordinates are normalized independently by coordinate-wise training-set minima and maxima. The collision model and policy use their respective saved normalization statistics.
State, goal, and control inputs. The state input contains the measured current linear and angular velocities in \mathbb{R}^{2}; the policy additionally receives the local goal \mathbf{g}\in\mathbb{R}^{2}. These vectors are standardized using training-set means and standard deviations. The collision model receives a flattened representation of the main-paper control sequence \mathbf{u}=[\mathbf{u}_{0},\ldots,\mathbf{u}_{H-1}]\in\mathbb{R}^{2\times H}, with H=50 and \mathbf{u}_{k}=(v_{k},\omega_{k})^{\top}. The flattened input is (v_{0},\ldots,v_{49},\omega_{0},\ldots,\omega_{49})\in\mathbb{R}^{100}, standardized using the corresponding linear- and angular-velocity statistics. All 100 control entries are optimized; the measured current velocity is supplied separately through the state input. Velocity history is not an input to the networks.
C-B Point-Cloud and Temporal Encoders
The collision model and policy have independent encoders, with context dimensions D=40 and D=64, respectively. Within each encoder, the same point-cloud network processes all 21 frames. Its layer specification is given in Table S2.
- Point-wise encoder
- Five Conv1D layers: 2\!\to\!64\!\to\!64\!\to\!64\!\to\!128\!\to\!D
- Pooling
- Global maximum over the 300 points
- Pooled projection
- Linear D\to 256, LayerNorm, ReLU, dropout, linear 256\to D
- Frame projection
- Linear D\to D
- Position embedding
- Learned array of size 21\times D
- Temporal attention
- One pre-normalized self-attention block; four heads of width D/4
- Temporal MLP
- Two linear layers, D\to 4D\to D, with SiLU between them
- Context readout
- Final (current-frame) token of dimension D
Point-cloud layers. All five convolutions use kernel size 1, stride 1, no padding, and a bias, followed by ReLU. There is no per-point normalization. LayerNorm is applied only to the pooled 256-dimensional projection. The pooled output and frame projections have biases and no output activation. Dropout after the pooled ReLU has probability 0.1.
Temporal block. The learned position embeddings are added to the projected frame tokens. Self-attention operates on the full 21-token sequence without a causal mask. Query, key, value, and output projections are D\to D linear maps without biases. Each head has dimension 10 for the collision model and 16 for the policy. The attention and feed-forward sublayers each have pre-LayerNorm and a residual connection. Dropout with probability 0.1 is applied to the attention weights and to both residual-branch outputs. The feed-forward hidden dimensions are 160 and 256, respectively. All LayerNorm layers use learned affine parameters and \epsilon=10^{-5}. The readout is \mathbf{c}_{\mathrm{feat}}\in\mathbb{R}^{40} for the collision model and \widetilde{\mathbf{c}}_{\mathrm{feat}}\in\mathbb{R}^{64} for the policy.
C-C Clearance and Kernel-Width Network
Input and hidden layers. The concatenation of current velocity, candidate control sequence, and visual context has dimension 2+100+40=142. Four fully connected layers have widths 142\to 256\to 256\to 256\to 40. Each layer has a bias and is followed by LayerNorm, SiLU, and dropout with probability 0.1.
Output heads. Three independent linear 40\to 1 heads with biases produce raw scalar outputs a_{\mu}, a_{\sigma}, and a_{\lambda}. The output transformations are
\displaystyle\mu_{\boldsymbol{\psi}} \\ \displaystyle=\operatorname{softplus}(a_{\mu}), \\ \displaystyle\sigma_{\boldsymbol{\psi}} \\ \displaystyle=\operatorname{softplus}(a_{\sigma})+10^{-3}, \\ \displaystyle\lambda_{\boldsymbol{\psi}} \\ \displaystyle=0.05+24.95\operatorname{sigmoid}(a_{\lambda}).The standard-deviation output is squared wherever \sigma_{\boldsymbol{\psi}}^{2} is required. The kernel width lies in [0.05,25.0]. The MMD risk is computed from the predicted distribution using N=20 deterministic quantiles and has no additional trainable head.
C-D Policy and Soft-CEM Parameter Heads
The policy concatenates its 64-dimensional visual context with separate 64-dimensional state and goal embeddings. The resulting 192-dimensional vector is processed by a shared fusion MLP and five output heads, as specified in Table S3.
- State encoder
- 2\to 256\to 64; two layers
- Goal encoder
- 2\to 256\to 64; two layers
- Fusion MLP
- 192\to 256\to 256\to 256; three layers
- Mean head
- 256\to 100; entries of \mathbf{u}_{\mathrm{mean}}^{(0)}
- Variance head
- 256\to 100; entries of \boldsymbol{\rho}^{(0)}
- Goal-weight head
- 256\to 1; w_{h}
- Neural-weight head
- 256\to 1; w_{n}
- Temperature head
- 256\to 1; \eta
Activations and output constraints. The state, goal, and fusion MLPs apply SiLU after every layer except the last, with no additional normalization or dropout. The mean head is linear; its outputs are clipped by the planner to [0,1] m/s for linear velocity and [-1,1] rad/s for angular velocity. The variance head predicts physical squared-control units and is clipped elementwise to [10^{-4},5]. The three scalar heads use softplus. Since n_{h}=1, \boldsymbol{w}_{h} reduces to w_{h}. The network has 203 scalar outputs in total: 100 means, 100 variances, and three positive scalars.
Head initialization. The variance head is initialized with zero weights and biases of 5 for both control channels. The goal-weight, neural-weight, and temperature heads also have zero weights, with inverse-softplus biases producing initial outputs w_{h}=0.01, w_{n}=1000, and \eta=0.9, respectively. The mean head retains the default random linear-layer initialization. The policy’s learned position embeddings are initialized to zero.
Parameter counts and training status. The collision model contains 245{,}531 learned parameters, and the policy contains 381{,}515, including their respective point-cloud encoders, temporal blocks, position embeddings, and output heads. These counts exclude the frozen depth estimator. During policy training only \boldsymbol{\theta} is updated; the collision model is frozen and evaluated with dropout disabled. At deployment, all parameters are fixed and dropout is disabled in both networks.
C-E Training Configuration
Both networks are trained on an RTX 5090 with a batch size of 256 using AdamW. We use a cosine learning-rate schedule from 10^{-4} to 10^{-6}, weight decay 6\times 10^{-5}, and global gradient-norm clipping at 1. Training the collision model with \mathcal{L}_{\mathrm{CM}} for 100 epochs takes approximately 45 minutes. The collision model is then frozen. Training the policy network through the differentiable soft-CEM layer with the combined imitation and task-risk loss \mathcal{L} for 100 epochs takes approximately one hour.
C-F Computation Time
On an RTX 3080 laptop, Alg. 1 alone takes 0.0035 s with five soft-CEM refinements, 20 stochastic candidates, and one current-mean anchor. Depth estimation runs in parallel and takes 0.02 s. For comparison, MonoMPC’s planning time is 0.016 s.
Appendix D Additional Navigation Results
The following subsections present qualitative results for the main-paper experiments and an additional quantitative comparison with CARE.
D-A Qualitative Trajectories with MonoMPC
We show qualitative plots of the trajectories generated by Alg. 1 and MonoMPC in Grid-Difficult and Grid-Easy (Fig. S2(a) and (b), respectively) and in Corridor (Fig. S2(c)). These plots supplement the results in main-paper Section IV-B. The full navigation trials can be found in the accompanying video.
D-A1 Oscillatory Motion
Figure S2 shows how the planned trajectories evolve over selected replanning instants in one of the experiments. In these snapshots, MonoMPC’s trajectories fluctuate substantially between replanning steps, with repeated changes in the planned direction. Alg. 1, in contrast, maintains a stable optimized trajectory directed toward the goal while avoiding obstacles. This behavior is consistent with the lower excess heading variation and smaller changes in angular-velocity commands reported for our method in main-paper Fig. 6.
The observed difference is also consistent with the use of observation history in our collision model. MonoMPC evaluates collision risk from the latest image, so a nearby obstacle outside the current camera view may be omitted when a trajectory is planned. As the robot turns, the obstacle can reappear and prompt another change in direction. Our collision model incorporates earlier observations of such obstacles, which can reduce repeated steering corrections and changes in the optimized trajectory between successive MPC steps.
D-B Qualitative Trajectories with FlowNav
We show qualitative plots of the trajectories generated by Alg. 1 and FlowNav in the Corridor environment in Fig. S3. These plots accompany main-paper Section IV-C and Fig. 7. The full navigation trials can be found in the accompanying video.
D-C Comparison with CARE
CARE [8] augments a pretrained visual-navigation policy with depth-based repulsive corrections, without retraining the policy or requiring additional range sensors. In our experiments, CARE is applied to NoMaD [6]. It computes repulsive force vectors from the estimated monocular depth and uses them to locally adjust NoMaD’s predicted trajectory away from nearby obstacles. This local, hand-designed correction differs from the trajectory-level collision-risk objective optimized by Alg. 1.
Table S4 reports the Corridor results. Alg. 1 achieves a collision rate of 4\%, compared with 90\% for CARE, while attaining higher average and mean per-run peak linear speeds (0.80 and 1.00 m/s versus 0.43 and 0.57 m/s). These results show that CARE’s local safety corrections do not prevent frequent collisions in the evaluated Corridor trials.
- Alg. 1 (Ours)
- 4
- 0.80
- 1.00
- CARE [8]
- 90
- 0.43
- 0.57
We show qualitative plots of the trajectories generated by Alg. 1 and CARE in Fig. S4, with CARE snapshots taken from a collision trial. The full navigation trials can be found in the accompanying video.
D-D Fixed-Initialization Baselines
We show qualitative plots of the trajectories generated by Alg. 1 and the two fixed-initialization baselines, A1 and A2, in Fig. S5. A1 and A2 use learned and perturbed weights and temperature, respectively, as described in main-paper Section IV-D and Fig. 8. The full navigation trials can be found in the accompanying video.
D-E Deployment on the Parrot Bebop
We show qualitative plots of the trajectories generated by Alg. 1 during deployment on the Parrot Bebop in Fig. S6. The entire navigation pipeline transfers without modification or retraining, as described in main-paper Section IV-E. The full navigation trials can be found in the accompanying video.
Appendix E Evaluation Metrics
The metrics below are computed from the corresponding method- and environment-specific deployment logs. At each recorded step t, the logs contain linear velocity v_{t}^{\mathrm{lin}}, angular velocity v_{t}^{\mathrm{ang}}, and heading \vartheta_{t}.
E-A Collision Rate and Speed
Collision rate is the percentage of navigation runs in which a collision occurs. For each run, average linear speed is the arithmetic mean of v_{t}^{\mathrm{lin}} over all recorded steps, and peak linear speed is the maximum recorded linear velocity. The reported average speed and mean per-run peak speed are the arithmetic means of these respective per-run statistics over all available runs. Each run has equal weight, regardless of its duration. Both linear-speed metrics are reported in m/s. For angular speed, the same averaging and peak operations are applied to |v_{t}^{\mathrm{ang}}|, with results reported in rad/s. Speed statistics are interpreted together with collision rate to assess whether faster motion compromises safety.
E-B Steering Oscillation
For the MonoMPC comparison, we additionally quantify back-and-forth heading fluctuations and changes in angular-velocity commands. Both methods use the same logging interval, \Delta t_{\mathrm{log}}=0.1 s. For a run with T\geq 2 recorded steps, let \widetilde{\vartheta}_{t} denote the unwrapped heading at step t. Excess heading variation is
\overline{\Delta\vartheta}=\frac{\displaystyle\sum_{t=0}^{T-2}|\widetilde{\vartheta}_{t+1}-\widetilde{\vartheta}_{t}|-|\widetilde{\vartheta}_{T-1}-\widetilde{\vartheta}_{0}|}{T-1}.Subtracting the absolute net heading change removes the turn required by the route; the remainder quantifies back-and-forth fluctuations. Dividing by T-1 accounts for different run lengths, giving units of rad/step. Mean absolute angular-velocity command variation is
\overline{|\Delta v^{\mathrm{ang}}|}=\frac{1}{T-1}\sum_{t=0}^{T-2}|v_{t+1}^{\mathrm{ang}}-v_{t}^{\mathrm{ang}}|.This statistic measures the mean absolute command change per logged transition and is reported in rad/s. It is not divided by the logging interval and therefore is not angular acceleration. Both metrics are computed separately for every run, and their per-run distributions are shown for Corridor, Grid-Easy, and Grid-Difficult in main-paper Fig. 6. Pooled averages give each run equal weight. Lower values indicate less heading oscillation and less abrupt steering input, respectively.