TL;DR
This paper introduces a biologically-inspired framework to accelerate Vision Transformers (ViTs) for robotic navigation by mimicking how humans prioritize visual information. By combining temporal feature reuse (skipping computation for static regions) and task-driven spatial pruning (ignoring task-irrelevant areas), the authors achieved a 1.5× to 3× speedup on edge devices like the Jetson Orin and Raspberry Pi 4B without sacrificing navigation success.
What Problem Does This Paper Address?
Vision Transformers (ViTs) have revolutionized computer vision by capturing long-range dependencies that traditional Convolutional Neural Networks (CNNs) miss. This makes them ideal for robotics, where understanding the global layout of a room is crucial for navigation. However, ViTs have a "quadratic problem": their computational cost explodes as the number of image patches (tokens) increases.
For a robot running on a battery-powered edge device, this high latency is a dealbreaker. It leads to low control frequencies, which can result in jerky movements or, worse, collisions. While researchers have tried "token pruning" (throwing away less important parts of an image) to speed things up, most existing methods are task-agnostic. They might prune a small, visually "boring" obstacle that is actually critical for the robot's path, leading to a massive drop in success rates.
Methods
The authors propose a two-stage framework inspired by the human visual system, which focuses on relevant details (like road signs) while ignoring redundant background (like distant trees).
- Temporal Token Reusing (The "Blink" Module): In a video stream, much of the background remains static between frames. This module uses a cross-attention mechanism to compare current tokens with the previous frame's features. If a token has a high-confidence match, the model simply "reuses" the previously computed feature instead of running it through the entire Transformer backbone again.
- Task-Driven Token Pruning (The "Focus" Module): Not all parts of an image are relevant to a specific goal. If a robot is told to "find the sofa," the ceiling and distant walls are irrelevant. The authors use a lightweight "focus predictor" (a 2-layer MLP) that takes the robot's current state and task (e.g., the target object) to generate a semantic "perception focus" vector. Tokens that don't align with this focus are pruned.
To make this trainable, they use a Straight-Through Estimator (STE) to handle the non-differentiable step of selecting tokens and add a sparsity loss to encourage the model to prune as much as possible while still succeeding at the task.
Datasets
The researchers evaluated their method on the ObjectNav task within the Habitat Challenge 2022 framework.
- Environment: 88 Gibson scenes (realistic 3D indoor environments).
- Training Data: 77k human demonstration trajectories collected via Habitat-Web.
- Evaluation: 2,000 validation episodes involving six object categories (bed, chair, toilet, TV, sofa, plant).
Key Insights and Ideas
- Task-Awareness is Non-Negotiable: Standard pruning methods like ToME or EViT, which focus on visual saliency, fail miserably in robotics (dropping success rates from ~52% to as low as 7%). The "importance" of a pixel in robotics is defined by the goal, not just how much it stands out visually.
- Strategic Layer Placement: Through ablation studies, the authors found that temporal reuse works best in early layers (L3) to maximize computational savings, while task-driven pruning requires deeper features (L6) where the model has enough semantic understanding to know what is actually relevant to the goal.
- Dynamic Adaptation: Unlike fixed-ratio pruning, this method adapts to the scene. In the "Searching Stage," the robot keeps more tokens to explore; in the "Reaching Stage," it prunes almost everything except the target object.
Key Results
The framework was tested on two common robotic platforms: the NVIDIA Jetson Orin (high-end edge GPU) and the Raspberry Pi 4B (low-end CPU).
- Speedup: On the Jetson Orin, the model reached 56.4 FPS (a 50.8% improvement over the baseline). On the Raspberry Pi, it achieved nearly a 3× speedup, moving from 0.69 FPS to 1.95 FPS.
- Efficiency: The method reduced computational complexity to 5.00 GFLOPs, significantly lower than the baseline's 8.99 GFLOPs.
- Performance Retention: While other pruning methods saw success rates (SR) plummet, this method maintained a 50.05% SR (only a ~2% drop from the unpruned baseline), proving that the pruned tokens were truly redundant.
Limitations and Future Work
- Extreme Dynamics: The temporal reuse module relies on inter-frame consistency. In scenarios with very rapid camera motion or high sensor noise (simulated via frame-skipping and Gaussian noise), the "reuse rate" drops, meaning the speedup is less pronounced in chaotic environments.
- Absolute Latency on Low-End Hardware: While a 3× speedup on a Raspberry Pi is impressive, 2 FPS is still quite slow for high-speed autonomous flight or fast-moving ground robots.
- Future Directions: The authors suggest exploring even more adaptive pruning strategies and extending the framework to more complex, multi-stage robotic tasks beyond simple object navigation.
Summary updated