Dynamic Attention-based Visual Odometry

Xin-Yu Kuo, Chien Liu, Kai-Chen Lin, Chun-Yi Lee

Introduction

Visual Odometry (VO) is a fundamental task in robotics and autonomous driving, involving the estimation of a camera's pose from a sequence of images. While deep learning has significantly advanced monocular VO, existing models often struggle with the varying reliability of semantic features. Traditional methods typically treat all semantic categories equally or use static rules to exclude dynamic objects like moving vehicles. However, the utility of a semantic category is context-dependent; for example, a parked car is a reliable landmark, while a moving one introduces noise. DAVO addresses this by dynamically weighting semantic regions based on the camera's current motion.

Methods

The DAVO framework integrates semantic information and optical flow to refine pose estimation. The architecture consists of four primary components:

  1. FlowNN & SegNN: Off-the-shelf models (FlowNet 2.0 and DeepLabv3+) generate optical flow maps and semantic segmentation masks for each frame.
  2. Attention Module: This core component uses optical flow to determine the importance of 19 semantic categories. It produces an Attention Map that highlights reliable regions for the current motion profile.
  3. PoseNN: A Deep Convolutional Neural Network (DCNN) that processes RGB frames and flow maps, masked by the attention map, to estimate 6-Degree-of-Freedom (6-DoF) motion.
  4. Atrous Convolutions: Used within PoseNN to expand the receptive field, allowing the model to capture broader scene context without increasing parameter count.
The DAVO framework architecture, showing the integration of FlowNN, SegNN, and the Attention Module into the PoseNN pipeline.

The attention weights are learned end-to-end without explicit supervision, allowing the model to autonomously discover which semantic features minimize pose error in different scenarios.

Key Insights and Results

A critical observation of this work is that the importance of specific scene regions shifts with motion. When moving straight, the system prioritizes the road and distant landmarks. During turns, the attention shifts toward the sides of the frame—such as buildings or poles—to better capture angular changes.

Visual comparison of semantic segmentation, optical flow, and the resulting attention maps for straight and turning motions.

Performance on KITTI Benchmark

DAVO was evaluated on the KITTI Visual Odometry benchmark. Key results include:

  • Accuracy: Achieved a translational error ($t_{rel}$) of 3.91% and a rotational error ($r_{rel}$) of 0.0146°/100m on test sequences.
  • Ablation Study: The dynamic attention mechanism reduced overall error by approximately 26% compared to a baseline without attention. Furthermore, dynamic weighting outperformed static weighting by 18% in translation and 29% in rotation.
  • Comparison: DAVO outperformed established learning-based baselines like DeepVO and ESP-VO, demonstrating the effectiveness of motion-aware attention even without recurrent units (LSTMs).

Limitations and Future Work

While DAVO shows strong performance, there are areas for improvement. Current state-of-the-art models that utilize spatial-temporal latent features still maintain a slight edge in translational accuracy, suggesting that integrating recurrent memory could benefit DAVO. Additionally, the computational cost of running three separate deep networks is high; future research could focus on model distillation or multi-task learning to improve efficiency. Finally, like most monocular systems, maintaining absolute scale over long distances remains a challenge that might require sensor fusion or global optimization.

Summary updated

BibTeX
@inproceedings{kuo2020dynamic,
  author = {Xin-Yu Kuo and Chien Liu and Kai-Chen Lin and Chun-Yi Lee},
  title = {{Dynamic Attention-based Visual Odometry}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00026},
}
Figure