Translating Images into Maps

Avishkar Saha, Oscar Mendez, Chris Russell, Richard Bowden

TL;DR

This paper frames the problem of converting a single image into a top-down bird's-eye-view (BEV) map as a sequence-to-sequence translation task. They introduce a novel, restricted transformer network that leverages a physically grounded assumption about image scanlines mapping to BEV rays, achieving state-of-the-art results on several large-scale datasets.

What Problem Does This Paper Address?

Autonomous driving and robotics often rely on a top-down, bird's-eye-view (BEV) representation of the environment for tasks like navigation and planning. Generating these BEV maps "on the fly" from monocular images is challenging because it requires inferring the 3D structure and semantic meaning of the scene from a 2D projection. Existing methods often rely on explicit depth or semantic segmentation maps as input, or they struggle to implicitly learn the complex relationship between image pixels and their world coordinates, especially for dynamic objects and complex scenes. This paper aims to create an end-to-end system that directly translates a single image into a semantically segmented BEV map, without requiring auxiliary inputs.

Methods

The core of the proposed method is a novel transformer network designed for image-to-BEV translation. The key innovation lies in how they frame the problem:

  • Image-to-BEV as Sequence Translation: They assume a one-to-one correspondence between vertical scanlines in an image and rays in the BEV map. This allows them to treat the mapping as a series of 1D sequence-to-sequence translations, where each image scanline is translated into a corresponding BEV ray.
  • Restricted Transformer: To make this translation efficient and physically grounded, they use a transformer that is convolutional only in the horizontal direction, while retaining spatial awareness. This means the network processes image scanlines independently but can reason about their relationships.
  • Inter-plane Attention: This mechanism allows features from an image scanline to be soft-aligned with elements along a BEV ray, effectively learning how image content contributes to depth and semantic understanding at different radial distances.
  • Polar Ray Self-Attention: After initial alignment, this module allows features along a BEV ray to reason globally about their positional assignments, helping to form coherent object shapes.
  • Monotonic Attention (MAIL): To leverage the physical property that depth often increases with image height (objects higher in the image are further away), they incorporate monotonic attention. This constrains the attention mechanism to look "down" the image column, proving more effective for depth reasoning than looking "up."
  • Axial Attention (Optional): For spatiotemporal mapping, an optional axial attention module can be added to incorporate temporal information from previous frames.
  • CNN Frontend & BEV Segmentation: A standard CNN backbone with a feature pyramid is used for multi-scale feature extraction from the input image, and a convolutional encoder-decoder network is used for the final semantic segmentation of the BEV map.

Datasets

The paper evaluates their approach on three large-scale datasets:

  • nuScenes: Used for ablation studies due to its size and variety of object categories.
  • Argoverse: Used for comparison with prior work.
  • Lyft: Used for comparison with prior work.

The authors follow established data generation processes and splits from prior work for fair comparison.

Key Insights and Ideas

  • Framing as Translation is Powerful: Treating image-to-BEV mapping as a sequence-to-sequence translation problem, grounded in the physical relationship between image scanlines and BEV rays, is a highly effective approach.
  • Monotonic Attention for Depth: The insight that context "below" a point in an image is more informative for depth reasoning than context "above" is crucial. This is supported by human intuition and leads to improved performance.
  • Restricted Transformers are Efficient: A transformer that is convolutional in only one direction (horizontal) is computationally efficient and leverages the inherent structure of the problem, allowing for better data utilization during training.
  • Global Reasoning on BEV Rays is Necessary: While inter-plane attention aligns image features to BEV rays, polar ray self-attention is needed to globally reason about these assignments and form coherent object shapes.
  • Long-Range Horizontal Context is Not Always Beneficial: Surprisingly, incorporating long-range horizontal context via axial attention on image features did not improve performance and was slightly detrimental, suggesting that the CNN frontend already captures sufficient local context.

Key Results

  • State-of-the-Art Performance: The proposed method achieves state-of-the-art results on the nuScenes, Argoverse, and Lyft datasets for instantaneous mapping.
  • Significant Gains: They report a 15% relative gain against existing best methods on nuScenes and a 30% relative gain on Argoverse.
  • Improved Dynamic Object Handling: The method shows significant improvements in detecting smaller dynamic classes like buses, trucks, and trailers.
  • Qualitative Improvements: Qualitative results show greater structural similarity to ground truths and better object shape representation compared to baselines.
  • Ablation Study Findings:
    • Looking "down" in monotonic attention is better than looking "up."
    • Looking "both ways" (combining down and up) further improves accuracy.
  • Long-range horizontal context did not help.
  • Adding polar encodings to either the image-plane or BEV-plane improves performance, with the largest gains when applied to both.

Limitations and Future Work

  • Purely Spatial Model: The primary model presented is spatial. While an optional spatiotemporal module exists, the core contribution is spatial mapping.
  • Future Work: The authors suggest that their approach is easily transferable to indoor mobile robotics applications once ground truth data becomes available. They also note that improving localization accuracy for distant objects and reducing false negatives are areas for future exploration.

Summary updated

BibTeX
@inproceedings{saha2022translating,
  author = {Avishkar Saha and Oscar Mendez and Chris Russell and Richard Bowden},
  title = {{Translating Images into Maps}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  doi = {10.1109/icra46639.2022.9811901},
}
Figure