# ForagerSim: Evaluating Embodied Map-Based Reasoning in Large-Scale Dynamic Worlds

Robotics.world

> Releases a simulator and tasks that explicitly require map-based reasoning in large dynamic worlds, giving embodied-AI researchers a missing benchmark for cognitive maps.

**arXiv**: 2610.26395 · Preprint · not peer-reviewed

**Published**: 2026-10-19

**Authors**: Tomáš Musil, Martin Kotík, Michal Vavrečka, Karla Štěpánová, Sebastian Scherer, Martin Saska

## In plain words

Animals build cognitive maps of huge environments and use them to search for sparse rewards and return to known locations (nests, feeding sites), but current embodied AI either relies on hand-engineered mapping pipelines that break under unmodeled dynamics, or on learned policies that rarely form map-like representations.

## AI summary

## Overview

**Research area:** Embodied AI / robot learning — specifically benchmarking whether learned agents (reinforcement learning) can build and use map-like ("cognitive map") representations for long-horizon search and navigation, compared against classical robotics autonomy stacks and human players.

**Technical level:** Intermediate. The core question is conceptual and the results are readable without deep RL background, but the benchmark design and baseline comparisons assume familiarity with RL algorithms (PPO, DreamerV3), occupancy-grid mapping, frontier exploration, and ROS 2.

**Scope (one sentence):** The paper introduces ForagerSim, an open-source Unity-based simulator and benchmark whose perception, scale, topology, dynamics, and task difficulty can be varied independently, and uses it to show that environment topology — not sensing or scale alone — is what breaks current RL baselines on map-based reasoning tasks.

## What This Paper Is About

Animals build cognitive maps of huge environments and use them to search for sparse rewards and return to known locations (nests, feeding sites), but current embodied AI either relies on hand-engineered mapping pipelines that break under unmodeled dynamics, or on learned policies that rarely form map-like representations. The problem is that few benchmarks actually *require* map-based reasoning, so it is hard to tell whether an architecture can learn it. ForagerSim is built to fill that gap: a modular simulation platform whose scenarios range from mobile-robot search and rescue to animal foraging, in mazes and in vast, potentially infinite open areas, used to benchmark learned, engineered, and human agents side by side.

## Key Contributions

1. **The environment itself.** ForagerSim is an open-source simulator (Unity core, with Gym and ROS 2 interfaces sharing the same JSON world/agent/task configs) in which perception (abstract 2D sensing up to full RGB or LiDAR), scale (room-scale to multi-km), topology (open fields to complex mazes), dynamics (movable rubble, lockable doors, moving walkers, smoke, sensorimotor failures), and task (2D coverage to foraging-style well alternation) can each be varied independently. Worlds stream only near the agent, Minecraft-style, so missions spanning tens of kilometers are feasible; the same scenario can run in a fast 2D mode (over 3000 steps per second on a standard GPU-less laptop) or a detailed 3D mode.
2. **Baseline RL scores across 8 worlds.** PPO (model-free, memoryless, Stable-Baselines3 defaults, two-layer MLP) and DreamerV3 (model-based, recurrent latent state as the only memory, official JAX implementation, 12M-parameter preset) are benchmarked on 8 configurations along 3 axes isolating topology, dynamics, and task complexity.
3. **Comparison with a classical robotics stack.** For the multi-object search worlds, a standard frontier-based exploration stack implemented in ROS 2 (2D occupancy grid, nearest-frontier selection, path planning, switching to reward objects when seen) is compared against the learned agents under identical scoring.
4. **A human reference.** One human player was recorded on the same scenarios via a robotics-inspired UI in the fast 2D mode, providing an estimated upper bound on performance.

## Main Findings

- **Topology is the dominant failure factor.** In essentially all settings, both PPO and Dreamer converged to random-walk-like behaviors that inefficiently revisit areas. These strategies do surprisingly well at large scales when the environment is bounded and highly interconnected, but fail where a wrong turn is costly (e.g., getting lost inside one of the sub-mazes of `4arm-submazes`).
- **Indoor-scale coverage may not test mapping at all.** On `memorymaze15x15` — the largest MemoryMaze topology reproduced from Pašukonis et al. (2023) — all baselines reach a near-perfect score (PPO 309 ± 39, Dreamer 320 ± 26, frontier explorer 339 ± 1, human 339 ± 1), suggesting coverage-oriented tasks in this scale need neither mapping nor planning.
- **Bottlenecks hurt learned policies but not all baselines.** On `10houses-fenced`, learned baselines struggled by repeatedly revisiting fenced plots (PPO 366 ± 303, Dreamer 2292 ± 481), the frontier explorer also fell short (1947 ± 389) because uniform coverage was infeasible within the episode length, and the human (3452 ± 134) exploited the prior that reward objects are always inside houses.
- **Maze topology separates learned from engineered agents.** On `4arm-submazes`, PPO reached 504 ± 210 and Dreamer 777 ± 160, while the frontier explorer reached 1868 ± 44 and the human 1895 ± 3 — full coverage was easy for both non-learned approaches.
- **Dynamics break the classical stack.** In `5houses-dynamic` (rubble must be pushed through) the frontier explorer scored 152 ± 0, versus Dreamer 984 ± 120 and human 1114 ± 100. In the harder `5houses-sar` (only one rubble wall is movable though both look identical, plus smoke and chaotically walking objects), the frontier explorer scored 118 ± 49 and PPO 142 ± 45, while Dreamer reached 864 ± 196 against a human 957 ± 99 — Dreamer came close to human performance on both dynamic worlds.
- **Well alternation is a stronger test of map-based reasoning.** On `ratmaze-foraging` (a near 1:1 recreation of the Widloski and Foster (2022) protocol), Dreamer reached roughly 75% of human performance (2883 ± 256 vs 3827 ± 515), which the authors attribute to the environment being small, bounded, and well connected. On `forest-foraging`, Dreamer learned a policy that mostly stays in the content area but scored 1619 ± 1370 against a human 4220 ± 639, with very high per-world variance. On `4arm-submazes-foraging` the gap was extreme: PPO 94 ± 79 and Dreamer 272 ± 131 versus human 1133 ± 119.
- **A difficulty curriculum did not close the gap.** An adaptive curriculum scaling maze scale and complexity (difficulty 0–1, rising or falling by 0.025 depending on whether 8 or more objects were found in an episode) plus memory-oriented tuning (a 256-step backpropagation window, chaining 4 consecutive 48-step windows with carried recurrent state, and the truncated BPTT variant from Pašukonis et al. (2023)) all converged between 0.4 and 0.6 difficulty. None reached the full difficulty of `4arm-submazes-foraging`.
- **The well-alternation setup required removing position input.** When the agent was given its position relative to spawn, Dreamer found a trivial solution ("if the well-direction signal is absent, navigate to position (0,0) and dodge obstacles reactively"), so the reported well-alternation runs use no position observations. The human received no position information in any experiment.

## Methodology in Plain English

The authors built a simulator in Unity that generates randomized 2D and 3D worlds from three plain-text configuration files — one for the world (generation rules, dynamics, object placement), one for the agent (sensors, actuators, noise models), and one for the task (rewards and termination). Because both the Gym and ROS 2 interfaces read the same configs, an RL policy and a classical robotics stack can be scored identically on the same world. To keep simulation fast, they designed a **2D Semantic Depth Sensor**: the observation is a 19 × (D+1) tensor where each of 19 horizontal rays returns a max-range-normalized distance plus a D-dimensional one-hot object-class embedding — an abstraction they argue is groundable, since depth sensing is standard and semantic segmentation works well at moderate range with modern foundation models.

The reward function is unified across all experiments: +50 for touching a reward object, −0.1 per collision, and +0.01 per square meter sensed (a coverage bonus that bootstraps learning when rewards are extremely sparse), computed from ground-truth pose and raycasts on a 2D occupancy grid.

Two task families are tested. In **multi-object search**, reward objects are scattered and must be found and touched. In **foraging (well alternation)**, no free objects exist; "wells" look identical from afar, must be primed by standing near them for a set number of timesteps, and then spawn pickups. The alternation pattern requires shuttling between a random well and a "home" well indefinitely, with a directional cue given for random wells but deliberately withheld for the home well — so returning home efficiently requires a map.

Agents are 1-unit-wide spheres with a discretized velocity controller (3 linear and 5 angular bins), able to push dynamic objects. Baselines were trained for scenario-specific step counts (1.5M steps in `memorymaze15x15` versus 60M in `forest-foraging`), 3 seeds per method, 4 parallel environments, Dreamer on A100 GPUs and PPO on CPU, then evaluated on 5 separately generated worlds per scenario. Episode lengths ranged from 1000 to 5000 steps and were designed to be human-solvable.

## Why This Matters

**Research impact.** The paper reframes a scattered literature: robotics evaluates mapping on realistic sensing in largely static worlds, RL evaluates memory in small abstract environments, and cognitive science evaluates animal behavior that is rarely reproduced in simulation. ForagerSim offers one platform where all three can test the same question, and its results argue that a benchmark's *topology* — not its scale or rendering fidelity — determines whether map-based reasoning is actually required. That is a concrete design lesson for anyone building embodied benchmarks, and the finding that even the largest MemoryMaze can be solved by memoryless policies is a caution about existing memory benchmarks.

**Real-world applications.**

- Search and rescue in large, dynamic disasters (wildfire, flood, earthquake), which the authors name as their primary motivating scenario and the inspiration for the rubble, smoke, and walker dynamics.
- Coverage and inspection tasks for mobile robots, where the paper shows where non-mapping strategies suffice and where they do not.
- Foraging-style logistics and environmental monitoring, where an agent must repeatedly leave a depot and return to known locations.
- Computational models of animal navigation and cognitive maps, since the simulator reproduces protocols from bat-level foraging and rat well-alternation experiments without using animal data.

**Industry relevance.** For companies deploying autonomy stacks, the results quantify the cost of hand-engineering: the frontier explorer wins on static mazes but collapses to near-zero in dynamic worlds (152 ± 0 and 118 ± 49), exactly where re-engineering per new dynamic is expensive. For teams building learned navigation, the 8-world benchmark and open ROS 2 + Gym interfaces give a drop-in testbed that is cheap to run (over 3000 steps per second on a CPU-only laptop) compared with photorealistic simulators such as UnrealZoo, which the paper notes reaches 83 FPS on an RTX 4090.

## Future Directions

- **Learnable end-to-end architectures that combine both strengths.** The paper explicitly positions ForagerSim as infrastructure for developing agents that learn map-building and planning rather than having them hand-designed, since neither existing camp solves the motivating search-and-rescue problem.
- **Closing the perception gap.** All reported RL experiments use the abstract 2D Semantic Depth Sensor; whether learned map-based reasoning survives full RGB/LiDAR sensing, noisy IMU, and sensor faults is left as an open question the platform is designed to test.
- **Stronger memory architectures.** Structural priors on spatial transformations, longer or better-chained backpropagation windows, and alternatives to recurrent latent state as sole memory are natural follow-ups, given that the three memory-tuning variants tested here all stalled between 0.4 and 0.6 curriculum difficulty.
- **Multi-agent and multi-task scaling.** The simulator supports multiple agents and a unified reward across tasks to enable multi-task learning; exploring curriculum strategies beyond the single-scalar adaptive scheme, and reproducing more animal experiments (including the bat-scale scenario shown in Figure 1), remain open.

## Target Audience

Reinforcement learning researchers working on memory, exploration, and long-horizon embodied behavior; robotics researchers who build or evaluate autonomy stacks and want a testbed that includes realistic dynamics and failure modes; cognitive scientists who want to test models of cognitive maps against quantitative agent benchmarks; and benchmark or simulator developers looking for a template of modular, independently variable difficulty axes. Readers need some familiarity with RL training and robot navigation concepts to get the most from the baseline comparisons.

## Authors’ abstract

Animals build cognitive maps of vast environments, use them to perform map-based navigation, and might even be reusing the same circuitry used in spatial reasoning for creating and using maps of arbitrary task-spaces. In contrast, current embodied AI systems either rely on hand-engineered mapping pipelines, which break in the presence of unmodeled dynamics and are restricted to metric space, or on learned policies that rarely form map-like representations at all. Developing…

[The full abstract on arXiv](https://arxiv.org/abs/2610.26395)

[Read the original paper](https://arxiv.org/abs/2610.26395)

## Related papers

- [Structured Perception Representations for Off-road Dynamics Learning](https://robotics.world/paper/structured-perception-representations-for-off-road-dynamics-learning-2610.22900) 2026-10-16 · cs.RO · Also by Sebastian Scherer
- [TravSUITE: Traversability via Self-Supervised, Uncertainty-Aware IRL and Terrain Estimation](https://robotics.world/paper/travsuite-traversability-via-self-supervised-uncertainty-aware-irl-and-2610.32130) 2026-10-23 · cs.RO · Also by Sebastian Scherer
- [ThinkWorld: World Imagination Reinforces Chain-of-Dynamics Reasoning](https://robotics.world/paper/thinkworld-world-imagination-reinforces-chain-of-dynamics-reasoning-2610.37666) 2026-10-27 · cs.RO · Key terms of the title in common
- [Continuous-Action World Models: Learning Cross-Embodiment Spatiotemporal Dynamics Priors](https://robotics.world/paper/continuous-action-world-models-learning-cross-embodiment-spatiotemporal-2610.40401) 2026-10-29 · cs.RO · Key terms of the title in common
- [Fly-by-Code: Embodied Coding Agents for Aerial Manipulation with Active Visual and Physical Feedback](https://robotics.world/paper/fly-by-code-embodied-coding-agents-for-aerial-manipulation-with-active-2610.12549) 2026-10-08 · cs.RO · Also by Sebastian Scherer

---

Canonical: https://robotics.world/paper/foragersim-evaluating-embodied-map-based-reasoning-in-large-scale-2610.26395
