TL;DR
This paper introduces a data-driven, reinforcement learning-based keyframe selection method tailored for 3D vision foundation models like VGGT. By adaptively filtering redundant frames based on latent representations rather than hand-crafted geometric rules, it significantly improves the accuracy and efficiency of feed-forward visual odometry across diverse real-world environments.
What Problem Does This Paper Address?
Visual foundation models (such as DUSt3R and VGGT) have recently revolutionized Visual Odometry (VO) and Simultaneous Localization and Mapping (SLAM). They allow for dense 3D reconstruction and camera pose estimation directly from raw images using a single feed-forward network pass.
However, unlike traditional pipelines, these foundation models typically process every single frame in an image sequence indiscriminately. This creates massive computational and memory redundancy. Furthermore, when consecutive frames are too similar (low inter-frame parallax), they provide very little useful stereo context, which actually degrades the model's estimation accuracy.
Traditional VO systems solve this using hand-crafted keyframe selection rules based on explicit geometric metrics like optical flow or pixel displacement. But because deep foundation models operate as "black boxes" relying on high-dimensional latent spaces, traditional geometric heuristics do not align well with their internal mechanics. This paper bridges that gap by introducing an adaptive, data-driven keyframe management system.
Methods
The authors propose a keyframe-based feed-forward VO framework that uses VGGT as its backbone and manages frame selection via Reinforcement Learning (RL).
Instead of relying on manual thresholds, the system formulates keyframe selection as a sequential decision-making problem:
- Sliding Window: The system maintains a fixed-size sliding window of input frames. The first frame acts as an "anchor," and relative poses for all other frames in the window are computed relative to it.
- RL Agent: A three-layer Multi-Layer Perceptron (MLP) trained via Proximal Policy Optimization (PPO) acts as the decision agent.
- Observation Space: To help the agent understand the foundation model's internal state without overwhelming it with data, the authors feed it a combination of normalized relative poses and mean-pooled
CLStokens extracted from a DINOv2 encoder. This provides a compact global semantic representation of the scene. - Action & Reward: For every new frame, the agent makes a binary choice: retain it as a keyframe (shifting the window forward) or discard it. The reward function is primarily driven by the translation error ($e_{tran}$) against ground truth, calculated using the Umeyama alignment algorithm. It also includes a minor keyframe penalty ($\alpha_{keyframe}$) to prevent the agent from collapsing into a strategy of always keeping or always discarding frames.
Datasets
- Training: The RL agent was trained entirely on the synthetic TartanAir dataset, which provides diverse simulated environments with challenging illumination and weather effects.
- Evaluation: To test real-world generalization, the authors evaluated their method on three standard benchmarks:
- EuRoC: Indoor micro aerial vehicle sequences.
- TUM-RGBD: Indoor handheld camera sequences.
- KITTI: Large-scale outdoor driving sequences.
Key Insights and Ideas
- Latent over Geometric: Traditional geometric metrics (like Lucas-Kanade optical flow thresholds) underperform when paired with deep foundation models. Learning a policy directly from the model's latent features (
CLStokens) ensures the frame selection matches the model's internal strengths. - Short-Term Context is Critical: The results show that feed-forward VO performance isn't just bottlenecked by a lack of long-term global memory; effectively preserving and managing the short-term temporal context within a local window is equally vital to preventing tracking drift.
- Simulation-to-Reality Generalization: Despite being trained solely on synthetic data (TartanAir), the RL policy successfully generalized to highly distinct real-world indoor and outdoor datasets without any fine-tuning.
Key Results
The proposed method consistently outperformed state-of-the-art feed-forward VO baselines (such as FastVGGT, StreamVGGT, and InfiniteVGGT) in Absolute Trajectory Error (ATE):
- EuRoC: Achieved an average ATE of 2.44 m, outperforming InfiniteVGGT (2.97 m) and matching the accuracy of VGGT-Long (2.45 m), which requires heavy post-processing.
- TUM-RGBD: Logged an average ATE of 0.186 m, significantly better than other feed-forward methods without post-processing (e.g., InfiniteVGGT at 0.446 m).
- KITTI: In large-scale outdoor environments, the method achieved an average ATE of 87.0 m, vastly superior to VGGT-Long (135.2 m) and VGGT-SLAM (234.5 m), demonstrating excellent stability where geometric post-processing often fails.
- Efficiency: The RL decision block is incredibly lightweight, adding just 0.74 ms of overhead to the total 380.2 ms per-frame processing time.
Limitations and Future Work
While the keyframe selection mechanism drastically reduces short-term drift and computational redundancy, the system currently operates purely as a Visual Odometry pipeline. It lacks long-term memory mechanisms, such as global loop closure. The authors note that their next step is to integrate loop-closing modules to expand this framework into a fully feed-forward, keyframe-managed SLAM system.
Summary updated