Reinforcement Learning Meets Visual Odometry
Nico Messikommer, Giovanni Cioffi, Mathias Gehrig, Davide Scaramuzza
TL;DR
This work addresses the brittleness and hyperparameter-tuning burden of Visual Odometry (VO) by reframing VO as a sequential decision problem. It introduces a neural agent with a Perceiver-based Variable Encoder that adaptively selects keyframe decisions and keypoint grid sizes based on real-time VO state, trained with Proximal Policy Optimization (PPO) and a privileged critic. The reward combines pose alignment error in a sliding window with non-differentiable metrics like runtime, enabling online trade-offs. Across EuRoC, TUM-RGBD, and KITTI, RL-enhanced VO achieves up to 19% improvements in $ATE$ and greater robustness, demonstrating generalization across VO backbones (e.g., $SVO$, $DSO$) and reducing the need for extensive offline tuning.
Abstract
Visual Odometry (VO) is essential to downstream mobile robotics and augmented/virtual reality tasks. Despite recent advances, existing VO methods still rely on heuristic design choices that require several weeks of hyperparameter tuning by human experts, hindering generalizability and robustness. We address these challenges by reframing VO as a sequential decision-making task and applying Reinforcement Learning (RL) to adapt the VO process dynamically. Our approach introduces a neural network, operating as an agent within the VO pipeline, to make decisions such as keyframe and grid-size selection based on real-time conditions. Our method minimizes reliance on heuristic choices using a reward function based on pose error, runtime, and other metrics to guide the system. Our RL framework treats the VO system and the image sequence as an environment, with the agent receiving observations from keypoints, map statistics, and prior poses. Experimental results using classical VO methods and public benchmarks demonstrate improvements in accuracy and robustness, validating the generalizability of our RL-enhanced VO approach to different scenarios. We believe this paradigm shift advances VO technology by eliminating the need for time-intensive parameter tuning of heuristics.
