Skip to content
Robotics.world

Research

Learning Visuomotor Quadrotor Flight Through Dynamic Narrow Gaps via Differentiable Simulation

Learns vision-only quadrotor policies that thread moving narrow gaps from scratch via differentiable simulation, removing privileged-state teachers and planners from agile-flight pipelines.

The paper’s first page · arXiv:2610.37557
arXiv
2610.37557
Published
2026-10-27
Authors
Riccardo Bianco, Yunfan Ren, Jiaxu Xing, Davide Scaramuzza

In plain words

Threading a quadrotor through a narrow gap that is itself moving is hard because success requires centimeter-level spatial alignment and precise timing — small errors in position, attitude, timing, or visual observability cause a collision. Most prior methods for narrow-gap flight depend on privileged state, a planner, a teacher policy, or distillation, and they mostly target static apertures.

AI summary

Overview

  • Research area: Robotics — agile quadrotor flight, visuomotor (vision + inertial) control policy learning, and differentiable simulation.
  • Technical level: Advanced. It assumes familiarity with reinforcement learning, gradient estimators (pathwise vs. score-function), backpropagation through time, quadrotor dynamics, and camera projection models.
  • Scope: A single paper presenting a differentiable moving-gap cost formulation plus an end-to-end visual-inertial policy that flies a real quadrotor through a moving narrow gap, evaluated in simulation, a higher-fidelity simulator, and 10 physical trials.

What This Paper Is About

Threading a quadrotor through a narrow gap that is itself moving is hard because success requires centimeter-level spatial alignment and precise timing — small errors in position, attitude, timing, or visual observability cause a collision. Most prior methods for narrow-gap flight depend on privileged state, a planner, a teacher policy, or distillation, and they mostly target static apertures. This paper asks whether moving-gap traversal can be learned directly from scratch, in one stage, using gradients computed through a differentiable simulator, with the policy consuming only onboard visual features and inertial measurements and outputting collective thrust and body-rate commands.

Key Contributions

  1. Demonstrates that precision-critical, vision-based static and moving gap traversal can be learned end-to-end through differentiable simulation without demonstrations, a teacher, a planner, or distillation.
  2. Releases an open-source differentiable-simulation framework for learning observation-to-command (collective thrust and body rate) policies under both privileged-state and onboard visual-inertial observations, converging in minutes on a single GPU.
  3. Shows, in controlled benchmarks, that pathwise gradients provide a usable learning signal on thin-manifold tasks where score-function gradients fail even with orders of magnitude more samples.
  4. Deploys the visual-inertial moving-gap policy on a real quadrotor, closing the loop from differentiable training to physical agile flight (8 of 10 verifiable flights succeeded).

Main Findings

  • Near-perfect simulated success across four task variants: State-static reached 100.0% success with 1.0 cm crossing error (500 epochs); Vision-static 98.9% with 2.4 cm (3,500 epochs); State-moving 100.0% with 2.4 cm (1,500 epochs); Vision-moving 99.3% with 2.3 cm (4,000 epochs). Vision policies needed more optimization steps and were slightly less accurate than state-based ones.
  • Training is fast: policies train in 0.4–5.6 minutes on a single NVIDIA RTX 4080 SUPER GPU and reach at least 98.9% success. Convergence is defined as the first checkpoint (evaluated every 500 epochs) starting a streak of at least three consecutive evaluations at ≥95% success.
  • BPTT beats tuned PPO on sample and time cost: on moving gaps, PPO used 19× more transitions and 45.5× more training time than BPTT when averaging its four converged seeds (PPO seed 2 was censored at 30k epochs, i.e., 4.5 B transitions). On static gaps, PPO used 2.8× more transitions and 6.4× more wall-clock time. On moving gaps, BPTT converged in 5/5 seeds versus 4/5 for PPO. The authors caution that PPO used tuned weights and a curriculum, so the whole pipeline difference cannot be attributed to the estimator alone.
  • Pathwise gradients win where score-function gradients stall: on an LQR system the pathwise estimator's gradient variance scales as O(T) versus O(T²) for score-function; at horizon T=20 the single-trajectory standard deviation was 2.38 versus 27.93, roughly a 140× variance ratio. On a neural slit-navigation task, pathwise optimization solved the problem with a single rollout per update, whereas score-function optimization failed even with up to 4,096 rollouts per update, plateauing at roughly 0.10–0.12 success.
  • The advantage is regime-dependent: a stability sweep over the open-loop pole a ∈ [0.5, 1.55], with the closed-loop pole crossing unity at a = 1.5, showed both estimators degrade near instability, but pathwise retained over a 10²× variance advantage up to the bifurcation.
  • Static training does not transfer to moving gaps: without fine-tuning, the state-static and vision-static checkpoints achieved only 31.5% and 6.6% success over 1,000 moving-gap rollouts, versus 100% and 99.3% after moving-task training. The vision policy's larger drop is attributed to losing gap feedback near crossing.
  • Performance degrades with realism: the vision-moving policy scored 99.3% over 1,000 rollouts in the training simulator, 81.0% over 100 trials in a higher-fidelity simulator, and 80.0% over 10 real-world trials — attributed to dynamics mismatch, perception noise, and discrepancies in the moving-gap mechanism.
  • Real-world failures point at vertical accuracy: both failures crossed low and hit the bottom edge, with estimated penetrations of 4.6 and 9.3 cm; the paper notes the ten scored trials are insufficient to separate initialization, perception, and dynamics/tracking effects.
  • Longer visual history helps convergence: with temporal window K = 1, 2, 4, 8, success was 99.5%, 98.8%, 99.3%, and 98.9%, while convergence epochs fell from 6,500 to 4,500, 4,000, and 3,500 respectively.

Methodology in Plain English

The team built a differentiable simulator of quadrotor flight and trained a small neural network policy by backpropagating gradients through entire closed-loop rollouts (backpropagation through time). The policy runs at 60 Hz and outputs collective thrust and desired body rates, which a 1000 Hz onboard controller tracks; commands are applied with a one-step delay to mimic real latency.

The central design idea is the cost function. Instead of rewarding the sparse event of "getting through the gap," they gate several cost terms — progress toward the gap, centering, refined centering near the gap plane, attitude alignment with the gap frame, a smooth collision penalty, stabilization, and (for vision) keeping the gap in the camera field of view — by the signed distance to a time-varying gap plane. This converts a rare success event into a dense, smooth signal that tells the policy how to adjust even on failed rollouts. For moving gaps, the plane pose changes over time, so centering, alignment, and collision terms stay coupled to the instantaneous aperture pose throughout the rollout.

Two observation settings were tested. The state-based one gets privileged information: position, orientation, velocity, angular velocity, goal point, gap pose, and a queue of past actions. The visual-feature one drops global position and uses onboard orientation and angular velocity plus normalized 2D projections of the four gap corners over a short window of frames, along with derived features (projected center, area, aspect ratio, visibility, projected axes, alignment scalar) and frame-to-frame differences.

Training used 100 parallel environments, episodes starting 2 m before the gap with random position offsets, velocity perturbations, and randomized yaw, terminating on collision or after 2.5 s; domain randomization covered gap rotation, pendulum phase/amplitude/length, perception–actuation delay, thrust scaling, and corner noise and dropouts. The networks were 2-layer MLPs (width 512 for state, 1024 for vision) trained with Adam and a warmup–cosine schedule. On real hardware, LED-illuminated gate edges were detected in onboard images and converted into the same gap-corner features the policy saw in simulation.

Why This Matters

  • For research: it isolates why differentiable simulation works for precision-critical flight — pathwise gradients carry usable spatial information before any successful trajectory is ever sampled — and backs that claim with matched comparisons against tuned PPO rather than a strawman. It also reframes moving-gap traversal as a first-class trained task rather than a byproduct of static-gap training, and shows static-only training transfers poorly.
  • Real-world applications:
    • Inspection and maintenance in cluttered industrial plants with machinery, shelves, and irregular openings.
    • Search-and-rescue or delivery flight through windows, frames, and debris in damaged buildings.
    • Warehouse and logistics drones threading shelving aisles and moving apertures.
    • Agricultural or ecological monitoring in dense vegetation and forest canopies.
  • Industry relevance: training in minutes on a single consumer-grade GPU (rather than hours of large-scale RL) lowers the compute barrier to developing agile flight controllers, and the released open-source framework gives practitioners a reusable differentiable simulation and cost-design template for other thin-manifold control problems.

Future Directions

  • Reducing sim-to-real model mismatch through learnable residual dynamics or more accurate differentiable models, motivated by the drop from 99.3% in training simulation to 81.0% in high-fidelity simulation and 80.0% on hardware.
  • Moving from engineered geometric visual features to marker-free, raw-image perception, since the current real-world pipeline depends on LED-illuminated gate edges.
  • Handling longer visual dropouts with recurrent policies; the authors explicitly note they did not compare an RNN, and that once all retained frames are invalid the policy acts only from orientation, angular velocity, and the command queue.
  • Testing broader conditions: natural openings, abrupt or non-periodic gap motion, hard contact, and long-horizon instability remain untested, and the paper suggests short-horizon pathwise methods with bootstrap values may suit longer tasks better than full-horizon BPTT.
  • Collecting more physical trials: 10 scored flights give a 95% Wilson interval of 49–94%, too wide to separate initialization, perception, and dynamics effects.

Target Audience

Robotics researchers and graduate students working on agile flight, visuomotor policy learning, or differentiable simulation; control and learning engineers who need precise, contact-adjacent maneuvers rather than time-optimal racing; and practitioners deciding between model-free RL and differentiable simulation for high-precision control tasks. Readers without a background in policy gradients, backpropagation through time, and quadrotor dynamics will find the technical core difficult, though the problem framing and results are accessible.

Authors’ abstract

Threading a quadrotor through a moving narrow gap is a demanding test of agile flight, requiring centimeter-level spatial alignment and precise temporal execution. We address this challenge using a control policy that operates directly on onboard visual and inertial measurements to output collective thrust and body-rate commands. The task is difficult because success lies on a thin feasible manifold: small errors in timing, position, attitude, or visual observability cause…

The full abstract on arXiv
Read the original paper

Related papers