Skip to content
Robotics.world

Research

Learning Vision-Based Agile Gap Traversal: Differentiable Simulation with a Warm-Started Critic

Flying a quadrotor through a gap much narrower than the drone itself requires precise attitude control, and doing so from onboard camera images is harder still because the policy must infer gap…

The paper’s first page · arXiv:2609.30696
arXiv
2609.30696 · Preprint · not peer-reviewed
Published
2026-09-25
Authors
Nuthasith Gerdpratoom, Tianchen Sun, Yichao Gao, Lin Zhao

In plain words

Flying a quadrotor through a gap much narrower than the drone itself requires precise attitude control, and doing so from onboard camera images is harder still because the policy must infer gap geometry from high-dimensional pixels while moving fast.

AI summary

Overview

Research area: Robotics — learning-based control for autonomous quadrotors, specifically ego-centric visuomotor policy learning via differentiable simulation and reinforcement learning.

Technical level: Advanced. The paper assumes familiarity with reinforcement learning, actor-critic architectures, differentiable physics simulators, backpropagation through time, and quadrotor dynamics.

Scope: A two-stage reinforcement learning framework that first trains a privileged expert actor-critic with quasi-analytical policy gradients (QPG), then warm-starts the critic to train a vision-based policy that flies a quadrotor through narrow gaps using binary gate masks from two ego-centric cameras.

What This Paper Is About

Flying a quadrotor through a gap much narrower than the drone itself requires precise attitude control, and doing so from onboard camera images is harder still because the policy must infer gap geometry from high-dimensional pixels while moving fast. Prior end-to-end methods either rely on behavior cloning from an expert (which caps performance and cannot adapt when the drone's dynamics change) or backpropagate through entire rollouts in a differentiable simulator (which is expensive and prone to exploding gradients). The authors aim to train a visual gap-traversal policy more efficiently and more stably by combining short-horizon quasi-analytical policy gradients with a critic that is pretrained on privileged gap geometry and then reused to warm-start visual policy learning.

Key Contributions

  1. A two-stage training framework that applies short-horizon QPG with a privileged, warm-started critic to visual agile narrow-gap traversal. The authors state this is the first application of short-horizon QPG to this task, and they argue the framework is generic enough to extend to other visuomotor robot learning problems.

  2. Removal of two pipeline burdens present in the state-of-the-art reinforcement–imitation pipeline for gap traversal: expert training no longer requires resetting the agent along optimized reference trajectories, and no action supervision (distillation) is needed.

  3. Plant-change generalization without retraining the expert: when quadrotor parameters change, only the second stage is rerun using the previously pretrained critic, so the expert actor and critic do not need to be retrained for a new platform.

  4. Empirical demonstrations that the learned visual policy generalizes to gap shapes unseen during training (elliptical, trapezoidal, triangular) and that real-world narrow-gap traversal works using binary masks rendered online.

Main Findings

  • Privileged pretraining speed: QPG reaches a success rate of 0.8 in 12 minutes and saturates near 1.0, while full-episode BPTT reaches a success rate close to QPG but requires 16,000 epochs.

  • Value gradient is essential: Detaching the terminal value (QPG without V-gradient, equivalent to h-step BPTT at fixed horizon) rises earlier but saturates at 0.38, isolating the critic's contribution to long-horizon credit assignment.

  • PPO fails in this setting: The PPO curve remains at zero for the first 19,500 epochs, consistent with the result reported in prior work during first-stage RL training without informed resets.

  • Visual policy performance: The warm-started visual policy reaches a peak success rate of 0.893. Full-episode BPTT grows steadily but needs more samples because it cannot exploit privileged critic information.

  • Cold-start vs. warm-start critic: A cold-started critic with QPG outperforms BPTT (it implicitly uses privileged information through the asymmetric actor-critic structure and trains more stably) but still cannot match the two-stage approach.

  • Freezing the critic fails: Keeping the pretrained critic fixed provides useful initial guidance but the success rate stays below 0.25, because its value function is tied to the expert's state distribution and cannot adapt to the visual policy's.

  • Two cameras help slightly: A single forward-facing camera performs slightly worse than two outward-splayed cameras, whose wider field of view keeps the gate in view as the agent passes it.

  • Flight speed: The trained policy traverses the rectangular gap and hovers at the goal with a maximum speed of up to 5.0 m/s.

  • Unseen gap shapes: The same policy, trained only on the rectangular gap, completes traversals of elliptical, trapezoidal, and triangular gaps.

  • Plant revision transfer: Under a revised plant, behavior cloning via DAgger yields a strong baseline when parameters match but degrades significantly when distilling from the old teacher, whereas the two-stage approach reuses the old pretrained critic for the revised dynamics without sacrificing performance. Revised parameters include mass from 1.279 to 1.407 kg (+10%), body-rate natural frequency from 100 to 70 rad/s, damping from 1.00 to 0.80, DC gain from 0.58 to 0.75, and thrust time constant from 12.5 to 25 ms.

  • Simplified Jacobian: Backpropagating through a simplified surrogate model (instantaneous body-rate tracking, no thrust lag, semi-implicit Euler at the control interval, with stop-gradient state alignment to the accurate model) speeds up gradient computation on an NVIDIA GeForce RTX 5080 without sacrificing success rate.

  • Real-world validation: Real flight experiments are reported qualitatively as robust gap traversal with binary masks rendered online; the provided text is truncated within this section, so detailed quantitative real-world results are not available here.

Methodology in Plain English

The drone's job is to shoot through a narrow opening and then hover at a goal. The opening leaves only 6 cm of lateral clearance per side when perfectly aligned and permits only 23° of roll misalignment, so the vehicle must roll to fit.

The authors split learning into two stages.

Stage 1 — learn from privileged information. In simulation, an actor and a critic are trained together. Both see information a real drone would not have, including the four gate-corner positions, body-frame velocity, attitude, accelerometer readings, goal position, and the previous action. Training uses quasi-analytical policy gradients: the simulator is differentiable, so gradients flow through the physics, but gradients are truncated to short windows of 64 control steps and the critic supplies the estimate of reward beyond that window. Crucially, gradients are blocked (stop-gradient) at the observation, so the renderer never sits on the gradient path and the observations can be chosen for usefulness rather than differentiability. Gradients are computed through a simplified surrogate of the dynamics while the forward rollout still uses the accurate model, with a stop-gradient correction so the simulated state stays consistent.

Stage 2 — learn from vision. A new policy is trained on what the real drone actually has: binary gate masks from two ego-centric cameras (84×150 pixels each, concatenated into 84×300) plus roll, pitch, accelerometer reading, goal position in body frame, and the previous action. Only the actor is new; the critic is copied over from Stage 1 as a warm start. The actor uses a CNN, a 256-unit GRU for temporal context, and a two-layer MLP, and is trained asymmetrically — the actor sees images, the critic keeps its privileged view.

The reward combines five shaped terms: progress toward the target (gate centroid first, then the goal), attitude alignment with the gate, corner clearance from the aperture edges, hovering near the goal, and action regularization. The gate mask is generated analytically by projecting the four gate corners and rasterizing the aperture edges with a 1.5-pixel line width, with special handling for corners that fall behind the camera.

Training uses JAX, 1024 parallel environments on NVIDIA A40 GPUs, 25,000 iterations, a discount factor of 0.99, and TD-λ critic learning with λ = 0.95.

Why This Matters

The work shows that a critic trained on privileged geometry can be transferred to bootstrap a purely visual policy, cutting the sample cost and instability that plague both black-box RL and full-rollout differentiable simulation. It also decouples the expensive expert-training step from platform changes: when the drone's mass or motor response changes, only the cheap second stage is rerun. That matters because sim-to-real transfer of aggressive flight policies is usually broken by exactly such parameter mismatches.

Real-world applications:

  • Inspection in cluttered or confined spaces — flying through gaps in scaffolding, machinery, or collapsed structures where there is no room to fly around.
  • Search and rescue — entering buildings through windows or narrow openings to locate people.
  • Warehouse and inventory tasks — navigating shelving aisles and rack openings without a free detour.
  • Agriculture and greenhouse monitoring — moving between rows and through narrow structural openings under canopy.

Industry relevance: the framework targets onboard compute (the real platform uses an NVIDIA Jetson Orin NX with a Holybro Pixhawk 6X Mini flight controller), uses a simple, texture-independent binary mask representation, and avoids retraining from scratch when hardware is swapped — all properties that matter for deploying learned flight policies on product platforms rather than one-off research vehicles.

Future Directions

  • Closing the perception gap to RGB. The authors note that depth images provide range information the binary masks lack, and that a binary mask encoder could be deployed to obtain a visuomotor policy directly from RGB images. Whether the mask-based training transfers cleanly to real camera imagery is an open question.

  • Quantifying real-world performance. The real-flight section is presented largely qualitatively in the available text; systematic real-world success rates, robustness to lighting, wind, and motion blur remain to be reported.

  • Testing the "generic framework" claim. The authors assert the two-stage warm-started QPG recipe extends beyond gap traversal to other visuomotor robot learning tasks; demonstrating this on other tasks is a natural next step.

  • Broader plant and morphology variation. The plant revision experiment covers one revised parameter set. Whether a single pretrained critic warm-starts well across a wider family of platforms, payloads, and actuator models is untested here.

Target Audience

Robotics researchers and graduate students working on learning-based control, differentiable simulation, and sim-to-real transfer for aerial robots. It is also relevant to engineers building autonomous drone products who need policies that survive hardware changes, and to readers interested in asymmetric actor-critic designs where privileged information is available only during training. Readers without a background in reinforcement learning or quadrotor dynamics will find the technical sections dense.

Authors’ abstract

Traversing narrow gaps is challenging for autonomous quadrotors, especially when control commands come directly from high-dimensional visual observations. Existing end-to-end methods often rely on behavior cloning or full-rollout backpropagation through time (BPTT) via differentiable simulation, which can limit policy performance or incur high training costs. We propose a two-stage reinforcement learning framework for more efficient ego-centric visuomotor gap-traversal…

The full abstract on arXiv
Read the original paper

Related papers