AirLeg: A Robust and Accurate Self-Supervised Visual-Inertial-Leg SLAM System

Kuan Xu, Tianxin Hu, Ruofei Bai, Ruimeng Liu, Yuefan Hao, Zeyu Jiang, Zitong Zhan, Shenghai Yuan, Chen Wang, Lihua XiearXiv 2026

TL;DR

Imagine walking blindfolded through deep snow—you still roughly know how far you’ve gone by feeling your legs move. AirLeg gives four-legged robots this same intuition, fusing camera vision, inertial sensors, and joint encoders so that the robot's "eyes" and "legs" continually teach and correct each other. Requiring zero expensive ground-truth equipment or LiDAR, it achieves state-of-the-art localization across brutal real-world terrains on a budget embedded computer.

Fig. 1. AirLeg on the GrandTour dataset. Top: trajectories estimated by AirLeg without loop closure and the ground truth on three sequences in snow, forest, and urban scenes. Bottom: challenging conditions in the test sequences, including snow sinkage, ice slippage, muddy terrain, loose gravel, low light, and dynamic objects. Right: runtime and resource usage on an NVIDIA Jetson AGX Orin. With its leg odometry adapted to the real robot without ground truth, AirLeg achieves accurate and robust localization in real time on an embedded computer.

What Problem Does This Paper Address?

To navigate autonomously, legged robots need Simultaneous Localization and Mapping (SLAM). While LiDAR is accurate, it is heavy and expensive. A much cheaper alternative is Visual-Inertial-Leg (VIL) estimation, which adds just a stereo camera to the robot's built-in Inertial Measurement Unit (IMU) and joint sensors.

When cameras fail—think pitch-black rooms, motion blur from heavy footsteps, or featureless walls—leg odometry (estimating motion from joint angles and foot contacts) acts as a crucial safety net. Classical leg odometry assumes feet never slip and the ground never gives way, an illusion shattered by mud or snow. Neural networks can learn around this, but they hit a "supervision dilemma":

  1. Sim-to-real gap: Networks trained purely in physics simulators stumble on real hardware because real actuator dynamics and deformable dirt are notoriously hard to simulate.
  2. Cost vs. Flawed Teachers: Training in the real world requires expensive motion-capture arenas or LiDAR. If you instead train the leg network using onboard camera estimates as a "teacher," the network simply memorizes the camera's mistakes—making it useless right when vision degrades.

Methods

AirLeg breaks this cycle by making vision and proprioception (internal body sensing) mutually improve one another across three stages:

  • Simulation Pre-training: A Transformer network ingests a short history of IMU readings, joint states, and normalized foot forces (estimated from joint torques) to predict body velocity and uncertainty. Pre-training on 80 hours of diverse simulated terrains gives it a strong foundational physics prior.
  • Imperative Sim-to-Real Adaptation (Offline): To adapt to a physical robot using unlabeled data, the authors use imperative learning—formulated as a bilevel optimization. At the lower level, a multi-sensor Bundle Adjustment (BA) uses the leg network's predictions to clean up a noisy 3D visual map. At the upper level, this refined map supervises the network via 2D image reprojection errors. Because unrolling an iterative optimizer to compute gradients is computationally painful, they link the two levels using differentiable Lie-group integration and a clever sparse adjoint solve.
  • Dual-Window Online SLAM & Adaptation: During live deployment, optimizing thousands of visual points over long trajectories is too slow. AirLeg splits the workload: a short window runs standard visual odometry, while a long window fuses proprioception with 100 top landmarks (marginalizing the rest into cheap relative-pose constraints).
  • Deformation-Aware Foot-Terrain Constraint: To stop vertical altitude drift, AirLeg reconstructs dense 3D terrain patches from stereo depth and pins loaded feet to the ground, adding a slowly varying "contact offset" variable to absorb snow or mud sinkage.
  • Online Tuning: Variance Component Estimation (VCE) dynamically re-weights sensors on the fly (e.g., trusting legs less on ice), while lightweight LoRA (Low-Rank Adaptation) adapters fine-tune 1.3k network parameters in a background process.

Datasets

  • Isaac Lab (Simulation): 80 hours of synthetic locomotion across stairs, hurdles, gravel, and compliant surfaces.
  • GrandTour Dataset: Public dataset on an industrial ANYmal D quadruped across 45 missions (alpine snow, forests, rain, night, camera dropouts). 28 sequences were used for unlabeled adaptation, and 17 for testing—notably using only the noisy built-in IMU rather than the dataset's tactical-grade IMU.
  • Unitree Go2 Dataset (New): A newly collected benchmark on a low-cost consumer quadruped with an Intel RealSense D455 camera (0.5 hours of unlabeled training data; 1.8 km of testing across thickets, steep stairs, corridors, and a crowded mall).

Key Insights and Ideas

  • Don't copy the teacher's pose; check the geometry: Supervising the leg network via 2D pixel reprojection errors rather than 3D camera poses prevents the network from blindly copying visual drift along poorly observed directions (like forward motion in a distant scene).
  • Adaptation fixes the robot, not the dirt: Surprisingly, adapting the network solely on forest trails generalized better to urban streets than adapting on urban streets themselves! Sim-to-real adaptation primarily fixes hardware-specific quirks (actuator dynamics, sensor biases) rather than terrain specifics—meaning just 30 minutes of unlabeled walking captures 88% of the total accuracy gain.
  • Legs help even when vision is crystal clear: Removing leg inputs degraded accuracy on normal, well-lit sequences nearly as much as on visually degraded ones, proving proprioception actively sharpens healthy visual SLAM rather than just serving as a backup.

Key Results

  • GrandTour: AirLeg achieved an average Absolute Trajectory Error (ATE) of 0.19 m across all 17 sequences (0.15 m normal, 0.23 m challenging), beating 18 open-source competitors. It was the only system to finish every sequence with under 0.4 m error; every competitor either failed completely or drifted over 4 m at least once (e.g., during 15-second camera blackouts).
  • Low-Cost Go2: Achieved 0.59% average position drift—less than 40% of the error of the runner-up, OKVIS2 (1.55%)—despite severe vibration noise in the budget IMU.
  • Real-Time Embedded Speed: Runs at 38 ms per stereo frame on an NVIDIA Jetson AGX Orin, using just 1.4 CPU cores and 2.6 GB of GPU memory with online learning active.

Limitations and Future Work

AirLeg still struggles when exteroceptive and proprioceptive assumptions break down simultaneously or weirdly. For example, on the ICE-1 sequence, the robot stood completely still on ice while a human pushed it for 27 meters—causing leg odometry to report zero motion—and on RIV-1, the leg-aided front end drifted on soft sand, leaving AirLeg slightly behind pure visual-inertial baselines (0.31 m vs. 0.02 m on ice). Future work is not explicitly detailed by the authors, though they are releasing their code and the new Go2 dataset to spur further research.

Summary updated

Abstract

Visual-inertial-leg (VIL) state estimation offers cost-effective localization for legged robots, adding only a camera to the onboard IMU and joint encoders. However, learning-based leg odometry is limited by its supervision: networks trained in simulation suffer from the sim-to-real gap, while real-world labels require costly sensors or inherit the errors of visual estimates. To address this, we present AirLeg, a self-supervised VIL SLAM system in which vision and leg proprioception improve each other from training to deployment. We pre-train the leg odometry network in simulation and adapt it to the robot without ground truth through imperative learning, where multi-sensor bundle adjustment uses the leg odometry to refine the visual map, which in turn supervises the network. During deployment, the fused estimates adapt the network online. To improve both localization and this supervision, a dual-window estimator fuses vision, IMU, and leg odometry, relates loaded feet to the visually reconstructed terrain through a deformation-aware constraint, and weights the constraints by variance component estimation. AirLeg completes all 17 GrandTour sequences with the lowest average error (0.19 m) among 19 methods. On a low-cost quadruped, it achieves the lowest drift (0.6%) with only 0.5 h of unlabeled data, in real time on an embedded computer.
BibTeX
@misc{xu2026airleg,
  author = {Kuan Xu and Tianxin Hu and Ruofei Bai and Ruimeng Liu and Yuefan Hao and Zeyu Jiang and Zitong Zhan and Shenghai Yuan and Chen Wang and Lihua Xie},
  title = {{AirLeg: A Robust and Accurate Self-Supervised Visual-Inertial-Leg SLAM System}},
  year = {2026},
  eprint = {2611.32523},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32523},
}
Figure