TL;DR
Vision-and-Language Navigation (VLN) agents are computationally expensive due to large transformer models. This paper introduces an "input-adaptive inference" method that intelligently skips computations based on the input's spatial and temporal characteristics, achieving significant speedups (up to 2-7.5x) with minimal performance degradation.
What Problem Does This Paper Address?
Modern Vision-and-Language Navigation (VLN) agents, which allow robots to follow natural language instructions in visual environments, rely on powerful but computationally demanding transformer models. These models process a lot of visual information (e.g., 36 views per panorama) and perform complex sequential reasoning. This high computational cost makes them impractical for deployment on resource-constrained platforms like robots. While "input-adaptive inference" techniques exist for tasks like image classification, they often fail in VLN because VLN involves sequential decision-making and spatio-temporal dependencies, making a one-size-fits-all approach ineffective. The paper aims to bridge this gap by developing an input-adaptive method specifically tailored for VLN.
Methods
The authors propose a three-pronged approach to make VLN inference more efficient:
- Harnessing Spatial Locality: Instead of processing all 36 views in a panorama equally, the method identifies "navigable views" (those the agent can move towards) and their immediate neighbors. It hypothesizes that these views are most critical for decision-making. They initially tried masking non-navigable views, but this hurt performance. Instead, they developed a "k-extension" approach, processing a limited number of views around navigable ones.
- Adaptive Thresholding for Early-Exit: Building on existing "early-exit" mechanisms (where models can stop processing layers early if confident), they introduce an adaptive thresholding strategy. This strategy dynamically adjusts the early-exit criteria based on the importance of a view (derived from its proximity to navigable views). Views further from navigable ones get more aggressive early-exit thresholds.
- Harnessing Temporal Locality: The paper observes that consecutive navigation steps often involve similar visual scenes. To exploit this, they use locality-sensitive hashing (LSH) to store and retrieve representations of previously seen views, avoiding redundant computation.
These mechanisms are combined into a unified input-adaptive inference pipeline.
Datasets
The paper evaluates its method on standard VLN datasets:
- Standard VLN: Room-to-Room (R2R), R2R-Back, R2R-Last, REVERIE, CVDN, and SOON.
- Continuous VLN: R2R-CE.
Key Insights and Ideas
- VLN's unique challenges: Unlike static image classification, VLN's sequential nature and spatio-temporal dependencies mean that simple early-exit strategies designed for other tasks don't translate well.
- Visual encoders are the bottleneck: The paper's analysis reveals that visual encoders (like ViT) consume over 99.5% of the computational budget in VLN agents, making them the primary target for efficiency improvements.
- Navigable views are key, but context matters: While focusing on navigable views is efficient, completely ignoring surrounding views can lead to missing crucial information (e.g., identifying a stairway). The k-extension approach strikes a balance.
- Adaptive early-exit is crucial: Simply applying a fixed early-exit threshold is suboptimal. Dynamically adjusting thresholds based on view importance significantly improves efficiency without substantial performance loss.
- Temporal redundancy is exploitable: Caching similar views across navigation steps offers additional computational savings.
Key Results
- Significant Computation Reduction: The proposed input-adaptive method achieves a 2-7.5x reduction in computations across various VLN agents and benchmarks.
- Minimal Performance Degradation: The method maintains competitive performance, with an average drop in Success Rate (SR) of only 11.7% in standard settings and 8% in continuous settings.
- Effectiveness across agents: The approach is shown to be effective on multiple off-the-shelf VLN agents, including HAMT, DUET, and VLN-CEBERT.
- Robustness to Visual Corruptions: While visual corruptions (like spatter or low lighting) degrade performance for both baseline and their method, their approach shows a smaller relative performance drop, suggesting its core navigation logic remains more intact.
Limitations and Future Work
- Sensitivity to Configurations: The method's effectiveness depends on tuning parameters like the k-extension value and the aggressiveness of adaptive thresholds. The paper provides guidance but acknowledges that optimal settings might vary.
- Robustness Trade-off: While the method is more robust to certain corruptions, it still experiences performance drops. Future work could focus on improving robustness further, perhaps through denoising techniques or more robust visual encoders.
- Continuous VLN Challenges: In continuous VLN, the early-exit strategy (MuE) is not directly applicable due to the nature of the visual encoders used. The paper adapts by using a scan-only SGM and LSH, but further exploration of early-exit mechanisms for continuous VLN could be beneficial.
- Object Features: For datasets with object features (REVERIE, SOON), these features are treated as a constant cost, and the proposed method only optimizes image feature extraction. Integrating object feature processing into the adaptive inference framework could yield further gains.
Summary updated