arXiv:2610.08518cs.CVOct 2026

Manuscript Offprint

arXiv:2610.08518

2D Spatial Reasoning with Adaptive Neural Cellular Automata

Martin Spitznagel, Janis Keuper

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Many modern learning approaches are still struggling with spatial reasoning tasks, i.e. they lack the ability to utilize geometric information of perceived entities and their spatial relation to each other to solve problems. We introduce a novel Adaptive Neural Cellular Automata (aNCA) architecture which replaces the static and spatially invariant perception of standard NCAs by learnable, spatially variant and data-adaptive perceptive fields. We show that this conceptual change enables NCAs to iteratively reason over 2D spatial relations on grid-like data structures (e.g. images). Empirical results on public benchmarks show state of the art comprehensible results with high generalization abilities for solving image based puzzles like Sudoku or finding the shortest path in a maze.

The implementation and all experimental setups are openly accessible as an extension to the NCAtorch framework at https://github.com/mspitzna/NCAtorch.

1 Introduction

Spatial reasoning is the ability to mentally visualize, manipulate, and functionally relate 2D and 3D objects, as well as to understand the relationships between parts, positions, and movements of one or more objects in physical space. It is a key cognitive skill used for navigation, problem-solving, engineering, and designing [1, 2]. Despite its high practical impact, spatial reasoning skills are generally still underdeveloped in most current learning models [3, 1].

In contrast to the recently emerging work on “World Models” [4], which try to learn to model complex relations in a top-down fashion, we are following a bottom-up approach which tries to isolate spatial reasoning problems in controlled environments. The focus of our proposed method lies on the also open sub-problem of spatial reasoning on 2D grid structures with a fixed x, y-coordinate system, for which we introduce a novel architecture based on Neural Cellular Automata [5]. Following the DISE [2] schematic of spatial reasoning taxonomies, our proposed aNCA architecture is specifically targeting 2D Extrinsic-Static problems, that assess the relationships between multiple objects in a fixed scene (like finding the shortest path in 2D mazes [6]) and Extrinsic-Dynamic reasoning tasks, that involve reasoning about the changing spatial relationships between multiple objects (like solving Sudoku [7]).

The key contributions of this paper can be summarized as follows:

• We are the first to apply the concept of learnable CA to spatial reasoning tasks, introducing Adaptive Neural Cellular Automata (aNCA). For this purpose we move from the space- and time-invariant update rules in traditional NCA to a more powerful and flexible input-dependent, space- and time-variant regime, and show that this significantly boosts spatial reasoning performance

  • The inherent recursive nature of aNCA enables us to learn very small, yet competitive and highly generalizable models that are able to infer diverse solutions to ambiguous problems. Visualizing the learned perceptive fields allows us to make the reasoning of spatial relations interpretable.

  • aNCA results surpass current state-of-the-art 2D spatial reasoning methods on various public benchmarks, including Sudoku, image-based Sudoku and maze shortest-path finding.

References (38)