A fast vehicle can only avoid an obstacle it detects early enough, and far-away obstacles look small in the camera. Small-object detectors add a high-resolution prediction branch to see these distant targets. This branch is a "P2 head": a detector output that works on a feature map only four times coarser than the input image, rather than the usual 8–32 times. The small-object literature reports its gain as a single dataset-wide accuracy score. A controller needs something different. It needs to know, for an object that currently occupies a given number of pixels, how large the localization error can be and how likely the object is to be missed entirely. It also needs to know whether, at the current speed, the vehicle's nonlinear braking and steering dynamics leave enough room to react once the object becomes reliably visible.
We propose to calibrate a four-head detector with distribution-free error sets that depend on the object's apparent pixel size. These sets cover both box error and miss rate. We then turn them into constraints for a nonlinear model predictive controller (MPC), which plans a short trajectory each step by optimizing over a model of the dynamics. The central constraint ties the vehicle's speed to its "reliable detection range", the distance beyond which small obstacles are no longer detected with a guaranteed miss rate. The P2 head extends that range. Because stopping distance grows nonlinearly with speed and tire saturation, the controller can convert the extra range into safe speed. A linearized model would misjudge that conversion. The claim is testable, and the proposal is designed so that it can fail cleanly.
Core Claim
Detection error from multi-scale detectors is strongly heteroscedastic, meaning its size varies systematically with apparent object size and with which pyramid level produced the detection. A single, marginal confidence margin averages this structure away. It is too loose for large, near objects and too tight for small, far ones. We claim that three things together give a closed-loop system higher safe speed at equal or lower collision rate than a well-tuned uniform margin, and higher speed than tiling at matched latency: (i) size-conditioned conformal sets, (ii) an explicitly calibrated miss-rate-versus-range curve, and (iii) a nonlinear MPC that enforces a speed–range constraint. The P2 head matters in this story only insofar as it moves the reliable detection range outward. We measure that shift directly rather than through mean average precision (mAP).
Relation to Prior Work
Three works motivate the gap by coupling perception to control under linear dynamics. Robust Guarantees for Perception-Based Control bounds a learned perception map's error by a local slope condition and synthesizes a robust linear controller. It shows in CARLA that nominal controllers drift out of distribution and fail. Certainty Equivalent Perception-Based Control gives sample-complexity rates for a kernel-regression perception map. Evaluating Robust, Perception Based Control with Quadrotors deploys the robust linear approach on a hover-linearized quadrotor. All three regress a low-dimensional state from the whole image. None has bounding-box detection, miss events, or a notion of object scale. The hardware paper also acts as a constraint on our design: worst-case slope bounds were so conservative that they had to be relaxed by hand. That result argues for calibrated, statistical sets rather than worst-case bounds.
Two works supply the uncertainty method. Adaptive Bounding Box Uncertainties via Two-Step Conformal Prediction, with code in Conformal-OD, calibrates class sets and then box-coordinate quantiles for Faster R-CNN on static images. It reaches its 90% coverage target, while Gaussian and ensemble baselines fall short. It does not condition on object size, does not treat false negatives, and has no controller. Forking Uncertainties uses conformal risk control to feed calibrated sets into MPC, but only for one-dimensional time series. We reuse the two-step construction, condition it on size and pyramid level, add a miss-rate calibration, and adopt the risk-control framing from the latter work.
The P2-head papers supply the perception component. Small Object Detection in UAV Images Based on YOLOv8n, CSW-YOLO, and PCPE-YOLO each add a 160×160 head and report aggregate gains. They also report its cost: 8.1 to 12.5 GFLOPs in the YOLOv8n case. HyperNet explains why the head is needed, since deep layers discard fine spatial layout. None of these papers reports error as a function of object size, which is exactly what a controller consumes.
On the control side, Adaptive Economic MPC and ABC-LMPC handle nonlinear dynamics with tubes and sampled safe sets, but assume state is measured. LOCUS learns safety certificates from lidar and shows why loop latency matters (18 ms versus 102 ms). We borrow ABC-LMPC's iterate-and-recollect structure to handle closed-loop distribution shift.
Research Program
The perception component is a YOLOv8 detector trained with and without a P2 head. On a held-out calibration set, we bin each detection by apparent size in pixels and by the pyramid level that fired. Within each bin we compute two-step conformal quantiles on box-corner error. Separately, we fit a miss-rate curve $\beta(d)$: the fraction of ground-truth obstacles at range $d$ that go undetected, calibrated with a conformal upper bound. The reliable detection range $R_\beta$ is the largest $d$ at which this upper bound stays below a user level $\beta$.
The controller is a nonlinear MPC on a dynamic bicycle model with tire saturation. Each detected obstacle is inflated by its size-conditioned quantile and projected to the ground plane, giving a set $\mathcal{O}_i$ that the planned trajectory must avoid. Undetected obstacles are handled by a speed constraint:
$$ D_{\text{stop}}(x_t) + v_t \, \tau \;\le\; R_\beta - \delta , $$
Here $x_t$ is the vehicle state, $v_t$ its speed, and $D_{\text{stop}}(x_t)$ the stopping distance computed by forward simulation of the nonlinear model under maximum braking. The term $\tau$ is the perception-plus-control latency, which increases when the P2 head runs, and $\delta$ is a clearance margin. This constraint is where nonlinearity enters. Under a linearized model, $D_{\text{stop}}$ is quadratic in speed with a fixed deceleration. With tire saturation and load transfer, stopping distance grows faster than that at speed and depends on steering, so linearization overestimates the safe speed. The constraint also makes the P2 head's trade-off explicit: it increases $R_\beta$ but also increases $\tau$, and the net effect on allowable speed is an empirical question.
Calibration assumes that test data resemble calibration data, and closed-loop control breaks that assumption. The trajectories the controller chooses determine which sizes and ranges the detector sees. We handle this by conditioning on size and range, which are the variables the controller actually changes. We then recalibrate iteratively on the controller's own rollouts, following ABC-LMPC's iterate-and-recollect structure. Throughout, we report realized closed-loop coverage rather than assuming it.
Baselines
The naive reference is a three-head YOLOv8 whose box centers are used as point estimates by the same nonlinear MPC, with no margin and a fixed speed cap. It shows what happens when perception error is ignored. The file reports no closed-loop result on Lacuna for detector-driven obstacle avoidance in CARLA, so this reference must be measured.
The strongest perception competitor is the four-head YOLOv8n of Small Object Detection in UAV Images Based on YOLOv8n. It reports 37.6% mAP$_{50}$ on VisDrone2019 against 31.1% for the three-head baseline, on the benchmark described in VisDrone-DET2019. We retrain it on the same data with the same schedule. We expect to reproduce roughly its VisDrone gain before any closed-loop use. That serves as a sanity check on the perception component, not as the target of the paper.
The strongest uncertainty competitor is the unconditional two-step conformal method of Adaptive Bounding Box Uncertainties via Two-Step Conformal Prediction, ported to the four-head detector. It uses one margin for all sizes and the same calibration data, feeding the same MPC with a speed cap tuned by grid search to the same collision budget. It reports 90% target coverage on COCO, Cityscapes, and BDD100k. Beating it means higher mean speed or task completion at equal collision rate, together with equal-or-better realized coverage on small objects.
A Gaussian baseline runs an Extended Kalman Filter on detections with tuned noise and certainty-equivalent MPC. A linearized baseline uses the full perception stack with a linear vehicle model in both the MPC and the stopping-distance term.
Two ablations isolate the key ingredients. The first swaps size-conditioned sets for marginal ones while keeping the P2 head. The second removes the P2 head while keeping the conditional calibration. Every method gets the same training data, calibration split, GPU, and hyperparameter search budget. Speed caps are always tuned to a common collision budget, so that no method wins simply by driving slowly.
Why not just…?
Why not just inflate every detection by a single tuned margin? This is the most serious threat. If error barely depends on size, a uniform margin tuned in closed loop recovers most of the benefit. We test this first. Before any control experiment, we measure per-bin quantile ratios between the smallest and largest size bins on VisDrone and in CARLA. If these ratios are near one, we drop the conditioning and report that finding. The ablation above settles the question in closed loop.
Why not just tile the image and run a standard three-head detector? The Power of Tiling for Small Object Detection shows that tiling preserves resolution, and it may match or beat the P2 head on small-object accuracy. Its cost is several forward passes per frame, which increases $\tau$. Our speed–range constraint prices exactly this trade-off. We compare tiling and the P2 head at matched latency and at matched hardware, and report both $R_\beta$ and the resulting safe speed. If tiling wins at equal latency, we will report that the P2 head is not worth its cost in this regime.
Why not just use an EKF with Gaussian noise? Prior evidence is against it. Two-step conformal prediction documents undercoverage for Gaussian estimators, and Robust Guarantees for Perception-Based Control shows nominal estimators diverging in CARLA. More fundamentally, an EKF has no mechanism for a detection that never occurs, and missed small obstacles are the failure we care about. The EKF baseline measures how much this matters.
Why not just linearize? The stopping-distance term makes this a direct test. We run the linearized variant and measure collisions at the speeds it certifies as safe. We expect them to rise at high speed, where tire saturation invalidates the linear model.
Proposed Experiments
The perception study uses VisDrone2019 and TT100K. It measures size-binned conformal coverage and set width, and fits miss-rate-versus-size curves with and without the P2 head.
The closed-loop study uses CARLA, which is also the testbed of Robust Guarantees for Perception-Based Control. Small static hazards such as cones and debris are placed at randomized ranges on straight and curved roads, with commanded speeds that push the vehicle into the tire-saturation regime. The metrics are collision rate, mean speed, realized per-bin coverage along rollouts, and latency.
Three checks decide the proposal. First, conditional sets must be meaningfully tighter than marginal ones on large objects while keeping coverage on small ones. Second, the P2 head must increase $R_\beta$ by more than its added latency costs in the speed constraint. Third, realized closed-loop coverage must stay within a few points of nominal after two recalibration iterations. Failure of the first check reduces the work to marginal conformal prediction plus a nonlinear MPC. Failure of the second means that the high-resolution head does not help control in this regime, which is a useful negative result for the small-object literature.
References
- Robust Guarantees for Perception-Based Control
- Certainty Equivalent Perception-Based Control
- Robust, Perception Based Control with Quadrotors
- Adaptive Bounding Box Uncertainties via Two-Step Conformal Prediction
- Forking Uncertainties: Reliable Prediction and Model Predictive Control With Sequence Models via Conformal Risk Control
- Small Object Detection in UAV Images Based on YOLOv8n
- CSW-YOLO: A traffic sign small target detection algorithm based on YOLOv8
- PCPE-YOLO with a lightweight dynamically reconfigurable backbone for small object detection
- HyperNet: Towards Accurate Region Proposal Generation and Joint Object Detection
- Adaptive Economic Model Predictive Control: Performance Guarantees for Nonlinear Systems
- ABC-LMPC: Safe Sample-Based Learning MPC for Stochastic Nonlinear Dynamical Systems with Adjustable Boundary Conditions
- Learning Safe, Generalizable Perception-Based Hybrid Control With Certificates
- VisDrone-DET2019: The Vision Meets Drone Object Detection in Image Challenge Results
- The Power of Tiling for Small Object Detection