Semantic MapNet: Building Allocentric Semantic Maps and Representations from Egocentric Views

Vincent Cartillier, Zhile Ren, Neha Jain, Stefan Lee, Irfan Essa, Dhruv Batra

Abstract

Building accurate spatial representations of unknown environments is a fundamental challenge for embodied AI. Semantic MapNet (SMNet) introduces a deep learning framework that enables agents to construct "bird's-eye view" allocentric semantic maps from a sequence of egocentric RGB-D observations. By projecting intermediate visual features into a persistent, recurrent spatial memory, SMNet creates high-fidelity representations that significantly outperform traditional mapping baselines in both accuracy and boundary definition.

Introduction

When humans enter a new space, they rapidly construct a mental map of their surroundings, identifying key objects and their relative positions. For artificial agents, however, translating first-person (egocentric) visual data into a stable, world-centered (allocentric) map remains a significant hurdle.

Existing methodologies typically follow one of two flawed paths:

  1. Project then Segment: These methods aggregate raw pixels into a top-down view before performing segmentation. This often leads to blurred representations where small but critical objects are lost.
  2. Segment then Project: These methods perform segmentation on individual egocentric frames and then project labels onto a map. This approach is prone to "label splatter," where projection errors at object boundaries create noisy, smeared maps.

SMNet addresses these challenges by proposing a middle ground: projecting high-dimensional visual features rather than raw pixels or final labels, allowing the model to learn a robust mapping that preserves detail while mitigating geometric noise.

The Semantic MapNet Framework

The SMNet architecture follows an "Encode, Project, Segment" paradigm, designed to build and maintain a persistent spatial representation over time.

Overview of the Semantic MapNet (SMNet) pipeline, showing the transition from egocentric observations to a persistent spatial memory and finally to a top-down semantic map.

The system consists of four primary components:

  • Egocentric Visual Encoder: A CNN-based module that processes RGB-D frames to extract rich feature vectors. Unlike label-based approaches, these features retain semantic nuances necessary for error correction.
  • Feature Projector: Utilizing known camera poses and depth information, this module back-projects 2D image features into their corresponding 3D world coordinates.
  • Spatial Memory Tensor: This serves as the agent's internal map—a 2D grid where each cell contains a Gated Recurrent Unit (GRU). The GRU updates its state as new observations arrive, effectively integrating information and filtering out transient noise.
  • Map Decoder: A final set of layers that decodes the spatial memory into a top-down semantic segmentation map, assigning labels like 'chair', 'table', or 'wall' to each grid cell.

Experimental Setup

The researchers evaluated SMNet across several challenging benchmarks:

  • Matterport3D: A large-scale dataset of photorealistic 3D scans of diverse indoor environments.
  • Habitat Simulator: An efficient simulation platform used to navigate agents through Matterport3D spaces to generate realistic video and depth streams.
  • Replica Dataset: Used for zero-shot transfer evaluation to test the model's ability to generalize to unseen architectural styles without further fine-tuning.

Key Insights

A central finding of the paper is that features are the optimal representation for spatial mapping. By projecting features instead of labels, the map decoder can learn to resolve ambiguities and "fill in" partially observed objects. This shift from egocentric views to an allocentric spatial memory allows the agent to understand the environment independently of its current pose. Furthermore, the resulting spatial memory is highly reusable; once a map is built, it can support downstream tasks such as object-goal navigation or visual question answering.

Results and Evaluation

SMNet demonstrated superior performance compared to state-of-the-art baselines:

  • Mapping Accuracy: On Matterport3D, SMNet achieved a mean Intersection-over-Union (mIoU) improvement of 4.01% to 16.81% over competitive methods.
  • Boundary Precision: The model improved "Boundary-F1" scores by up to 19.69%, indicating significantly sharper and more accurate object edges in the generated maps.
  • Generalization: Transfer tests on the Replica dataset confirmed that SMNet maintains its performance advantage in entirely new environments, proving its robustness.

Conclusion and Future Directions

While SMNet represents a major advancement in semantic mapping, several avenues for future research remain. The current model relies on perfect pose information; integrating SMNet with Simultaneous Localization and Mapping (SLAM) to handle noisy sensor data is a logical next step. Additionally, moving from semantic-level mapping to instance-level mapping (distinguishing between individual chairs) and expanding the object vocabulary would further enhance the utility of these representations for general-purpose robotics.

Summary updated

BibTeX
@inproceedings{cartillier2021semantic,
  author = {Vincent Cartillier and Zhile Ren and Neha Jain and Stefan Lee and Irfan Essa and Dhruv Batra},
  title = {{Semantic MapNet: Building Allocentric Semantic Maps and Representations from Egocentric Views}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16180},
}
Figure