Seeing to Drive on a Single Board: Attention-Free Depth for Onboard Robot Navigation

Itai Mizlish, Boaz Ben-MoshearXiv 2026

TL;DR

Vision transformers have revolutionized monocular depth estimation, turning ordinary cameras into sharp 3D sensors—until you try to squeeze them onto a cheap, integer-only robot brain, where quantization literally dissolves obstacles into the floor. Instead of fighting 8-bit math on transformers, the authors distill a massive depth foundation model into a classic, attention-free convolutional network that runs effortlessly at 27 FPS on a Raspberry Pi 5 AI Kit. Paired with clever geometry that extracts real-world distances from camera height alone, a tiny rover can map, localize, and dodge obstacles completely onboard for pennies on the watt.

What Problem Does This Paper Address?

If you want a small ground rover to navigate a cluttered yard without expensive, power-hungry LiDAR or stereo rigs, a single RGB camera is the dream sensor. Recent "foundation models" like Depth Anything V2 predict relative depth from single images sharp enough to drive with. The catch? They are giant vision transformers built for data-center GPUs, whereas a small rover operates on a few watts and a tight budget.

Enter edge accelerators like the Raspberry Pi 5 paired with the $70 Hailo-8L NPU—a 13-TOPS chip that runs every single layer in 8-bit integer (int8) arithmetic. When you quantize a vision transformer for this chip, it breaks catastrophically: crates and people vanish into the floor. Even if the depth map survived, foundation models only output relative depth ("this pixel is closer than that one"), leaving a path planner clueless about whether a chair is 1 meter away or 10. Plus, the Pi still needs enough leftover compute to run mapping, localization (SLAM), and path planning in real time.

The Traxxas rover hardware setup running on a Raspberry Pi 5 and Hailo-8L

Methods

The authors tackle this with two pragmatic shifts: distill instead of quantize, and use geometry instead of learned metric scale.

  1. An Attention-Free Student: Rather than forcing attention mechanisms through int8 quantization, they distill Depth Anything V2-Large (335M parameters) into a purely convolutional ResNet-34 U-Net (24.5M parameters)—no attention, no LayerNorm, no softmax. They train it using scale-invariant losses on teacher labels, fine-tune on simulated ground-truth disparity, and weight pixels below the horizon 4× higher so obstacle bases stay crisp.
  2. Ground-Contact Ranging: To turn scale-free relative depth into actual meters without fragile metric training, they use simple pinhole camera geometry. Because the camera's height above the ground ($h = 0.13\text{ m}$) is known, any pixel lying on the flat floor at a given image row has an exact, known distance. The network only has to identify the row in each image column where the smooth floor ends and a vertical obstacle begins—turning relative depth into a 69°, 4-meter virtual "laser scan."
  3. Classical Onboard Autonomy: Keeping planning interpretable, the Pi’s CPU runs standard algorithms in parallel with the NPU: a 5 cm obstacle grid, Hybrid A* path planning, pure pursuit control, and visual-wheel SLAM (tracking floor features via Lucas-Kanade optical flow fused with simulated wheel encoders and a gyro).
Fig. 3. The onboard system. Red: runs on the Hailo-8L NPU; blue: runs on the Raspberry Pi 5’s CPU; grey: sensors and actuators; dashed: simulated in the evaluation. The NPU computes depth for the next frame while the CPU processes the current one (Figure 11), and the planner runs in its own process, so a slow search never stalls the frame loop. Metric range comes from the camera height, not from the depth network (Section VI).

Datasets

  • Simulated Yard (Gaussian Splatting): The authors built a photorealistic 3D Gaussian-splat reconstruction of a real yard inside NVIDIA Isaac Sim, populated with 11 collider-equipped prop types (cones, chairs, crates, people). Training used up to 13,902 simulated POV frames plus 2,024 real frames; evaluation held out three unseen scenes (400 frames for depth benchmarking, 10 frozen obstacle courses for driving).
  • Real Robot Video & Park Drive: They evaluated teacher-agreement on 100 indoor/yard robot frames, and recorded a 219-second hand-driven outdoor run through a sunlit park using an Intel RealSense D435. By cross-checking three stereo matchers on the infrared pair, they created a 1,000-point stereo-verified outdoor benchmark.

Key Insights and Ideas

  • Why int8 kills diffuse attention: A uniform 8-bit quantizer chops the $[0, 1]$ interval into steps of $1/255 \approx 0.0039$. With 449 image tokens, a transformer head spreading attention evenly assigns each token $1/449 \approx 0.0022$—smaller than a single int8 step! In practice, 91% of all softmax weights fall below one step, yet collectively carry 17–33% of the attention mass (peaking in the final block), which int8 simply rounds away.
Share of attention mass lost to int8 rounding across the 12 transformer blocks
  • Convolutions erase quantization loss: By switching to a standard U-Net of equal parameter count to Depth Anything V2-Small (~24.5M), compiling to int8 becomes lossless—achieving a 0.99993 Pearson correlation with its floating-point twin on the real chip (despite the compiler's software emulator falsely warning of a $-0.41$ correlation!).
  • Learned depth beats noisy "perfect" splats: In simulation, the rover actually drove cleaner using the student network than the simulator's own ground-truth depth buffer (6.8 vs. 5.2 clean runs), because Gaussian-splat floaters and floor speckle tricked the ground-contact scanner while the neural network smoothed them out.
  • Wheel encoders aren't optional: Pure camera-based floor visual odometry collapsed on turns and textureless patches; adding a basic wheel encoder + gyro slashed median trajectory error from 0.42 m down to 0.08 m.

Key Results

  • On-Chip Speed & Accuracy: On the Hailo-8L, the student runs at 27.1 FPS (35.1 ms NPU latency) at $288\times 512$ resolution—faster and higher-res than Hailo’s official Depth Anything V2-Small build (21.6 FPS at $224\times 224$). On simulated obstacles, it slashes error (AbsRel 0.197 vs. 0.334 for Hailo's DAv2-S).
  • Real Outdoor Depth: Across 1,000 stereo-verified park points, the live chip student hits 0.262 AbsRel, statistically tied with the vendor's DAv2-S (0.234) while beating SC-DepthV3 (0.392) and FastDepth (0.394).
Real outdoor drive showing RGB camera, onboard student depth, and reference stereo depth
  • Hardware-in-the-Loop Driving: Across 10 cluttered yard courses, an oracle with exact obstacles clears 9.2 ± 0.4 scenes without a scratch. The full stack running live on the physical Pi + Hailo-8L with its own SLAM clears 8.2 ± 0.4 scenes cleanly (7.7 ± 0.7 over 10 seeds on the timing-matched twin), vs. just 2.6 ± 0.9 with camera-only odometry.

Limitations and Future Work

The authors are refreshingly candid about what didn't work and what remains untested:

  • Hardware gaps: Closed-loop autonomous driving was only tested via hardware-in-the-loop (physical Pi + Hailo driving the simulated rover), with simulated wheel encoders and gyros; the real outdoor park test was manually driven.
  • Geometric blind spots: Ground-contact ranging assumes a flat floor and known camera tilt. Obstacle bases shorter than 5 cm are invisible, blurred floor-to-object boundaries push wall estimates 5–15 cm inward (causing corner grazes), and uncorrected camera pitch ($3.8^\circ$) degraded real-world SLAM.
  • Next steps: Improving perception of low-lying structures and adding active exploration—looking around before committing to paths outside the camera's narrow field of view.

Summary updated

Abstract

A small ground robot can carry one camera and a few watts of compute, but the depth foundation models that could turn that camera into a range sensor are vision transformers sized for GPUs. We bring one to a Raspberry Pi 5 with the Hailo-8L, an accelerator that runs every layer in integer arithmetic, attention included. Quantised for it, Depth Anything V2 loses large parts of the scene, and we measure why: at 449 tokens, 91% of softmax weights fall below one int8 step while carrying 17-33% of the attention mass. Our answer is to distil, not quantise. An attention-free ResNet-34 U-Net student of Depth Anything V2-Large (24.5M parameters) runs at 27.1 FPS on the chip, its int8 output matches its float twin (Pearson 0.99993), and on held-out scenes of its simulated yard it is the most accurate depth network on the chip (AbsRel 0.269 against 0.354-0.530). On 1,000 stereo-verified points of a real outdoor drive it is not resolvably different from the vendor's Depth Anything V2-Small build, while running faster (27.1 vs 21.6 FPS). Ranging obstacles by where they meet the floor needs only the camera height, so mapping, hybrid-A* planning and SLAM run on the Pi's own CPU. In real-time hardware-in-the-loop tests in a Gaussian-splat reconstruction of a real yard, the stack reaches the goal without contact in 7.9$\pm$1.1 of 10 scenes, against 9.2$\pm$0.4 with exact obstacles, and in 7.7$\pm$0.7 on its own pose with simulated wheel odometry (ten seeds each; 8.2$\pm$0.4 with the real Pi and Hailo-8L in the loop, five seeds). The source code, pre-trained models and data are available at https://github.com/itaim18/DANIEL.
BibTeX
@misc{mizlish2026seeing,
  author = {Itai Mizlish and Boaz Ben-Moshe},
  title = {{Seeing to Drive on a Single Board: Attention-Free Depth for Onboard Robot Navigation}},
  year = {2026},
  eprint = {2611.32718},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32718},
}
Figure