Teaching Agents how to Map: Spatial Reasoning for Multi-Object Navigation

Pierre Marza, Laëtitia Matignon, Olivier Simonin, Christian Wolf

TL;DR

This paper demonstrates that introducing simple, spatial auxiliary tasks during reinforcement learning training drastically improves an agent's ability to navigate complex environments. By forcing the agent to predict the direction, distance, and visibility of previously seen targets, the authors foster the emergence of robust internal mapping capabilities, allowing standard agents to match or outperform models using ground-truth oracle maps.

What Problem Does This Paper Address?

In Multi-Object Navigation (Multi-ON), an autonomous agent must find a sequence of distinct objects in a completely unfamiliar environment. Unlike single-object navigation, Multi-ON requires a high degree of spatial reasoning and memory: if an agent spots a "blue cup" while looking for a "red chair," it needs to remember the cup's location so it can efficiently backtrack to it later in the sequence.

Standard Deep Reinforcement Learning (DRL) agents attempt to learn this behavior end-to-end from sparse rewards alone. However, extracting complex mapping and spatial reasoning strategies purely from a final success/failure reward is incredibly difficult. This paper addresses how we can encourage agents to build better internal representations of their environments without changing their underlying neural network architectures.

Methods

Instead of altering the agent's architecture, the authors augment the standard Proximal Policy Optimization (PPO) loss function with three supervised auxiliary tasks during training. These tasks are only active during training to shape the network's internal representations; they are completely discarded at inference time.

Overview of the agent architectures augmented with the proposed auxiliary classification heads (green box).

If a target object has been within the agent's field of view at any point during the current episode, the agent's recurrent memory (GRU) hidden state is passed to three small Multi-Layer Perceptrons (MLPs) to predict:

  1. Direction ($\phi_t$): The relative angle to the target, discretized into $K=12$ bins.
  2. Distance ($d_t$): The Euclidean distance to the target, discretized into $L=36$ bins.
  3. Observed Target: A binary classification indicating whether the current target has been seen yet.

The authors evaluate this approach across different network architectures with varying spatial inductive biases:

  • NoMap: A simple recurrent baseline with no explicit map structure.
  • ProjNeuralMap: An advanced baseline that uses projective geometry to map 2D image features onto a top-down egocentric grid.
  • OracleMap / OracleEgoMap: Upper-bound baselines provided with privileged, ground-truth map information.

Datasets

The models were evaluated on the Multi-ON benchmark using photo-realistic 3D environments from the Matterport3D (MP3D) dataset. The dataset consists of:

  • 61 training scenes (50,000 episodes per scene)
  • 11 validation scenes
  • 18 test scenes

The experiments specifically focused on the challenging 3-ON setup, where the agent must successfully locate a sequence of three randomly placed colored cylinders in the correct order within a time limit of 2,500 steps.

Key Insights and Ideas

  • Inductive Bias vs. Learned Mapping: One of the most striking findings is that even the unstructured NoMap baseline (which has no built-in concept of a 2D grid) benefits immensely from auxiliary supervision. With these losses, it learns to encode spatial properties directly into its flat hidden state, outperforming the more complex ProjNeuralMap when the latter is trained without auxiliary tasks.
  • Complementarity of Distance and Direction: Predicting direction alone improves performance, but combining it with distance estimation yields a massive synergistic boost. This aligns with human behavioral studies showing that a "sense of direction" and "judgment of relative distance" are the twin pillars of successful spatial navigation.
  • Explicit Spatial Encoding: Through probing experiments (using linear classifiers to decode target positions from the frozen GRU state), the authors proved that networks trained with auxiliary losses store significantly more precise and consistent spatial information than vanilla RL networks.

Key Results

The proposed method was the winning entry of the CVPR 2021 Multi-ON Challenge.

An example trajectory showing the agent successfully tracking and navigating to targets using its learned spatial reasoning.

On the Test Set, adding the auxiliary tasks yielded dramatic improvements across all primary metrics (Success rate and Success weighted by Path Length / SPL):

  • ProjNeuralMap: Success rate plummeted from 25.9% to 57.7%, and SPL jumped from 18.3% to 37.5%. This performance effectively matched the incomparable OracleMap baseline, which uses perfect ground-truth maps.
  • NoMap: Success rate surged from 16.7% to 43.0%, demonstrating that auxiliary supervision can compensate for a lack of explicit spatial architecture.

Limitations and Future Work

  • Perfect Localization Assumption: The current framework assumes the agent has access to perfect odometry (exact relative movement tracking) to compute the ground-truth labels for the auxiliary losses. In real-world robotics, sensor noise makes localization imperfect.
  • Privileged Training Data: The method relies on knowing the exact 3D coordinates of objects during training to calculate distances and angles.
  • Future Directions: A natural next step is evaluating how well these auxiliary tasks perform under noisy odometry conditions or extending the concept to broader semantic mapping tasks where objects aren't uniquely colored cylinders but realistic household items.

Summary updated

BibTeX
@inproceedings{marza2022teaching,
  author = {Pierre Marza and Laëtitia Matignon and Olivier Simonin and Christian Wolf},
  title = {{Teaching Agents how to Map: Spatial Reasoning for Multi-Object Navigation}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=857W9MeHm5},
}
Figure