TopoBench: Benchmarking LLMs on Hard Topological Reasoning

Maniparambil, Mayug, Hoehing, Nils, Kapuriya, Janak, Karuvally, Arjun, Rushe, Ellen, Ventresque, Anthony, O'Connor, Noel, Reid, Fergal

–arXiv.org Artificial Intelligence 

However, they struggle on tasks that require maintaining global spatial invariants such as topological connectivity or geometric logic through a sequence of state updates (Toshniwal et al., 2022; Chollet, 2019). Retaining a global spatial understanding through sequences of local updates arises in circuit layout, route planning, and molecular structure analysis, where a single violated constraint can invalidate an entire solution. Despite their practical importance, the ability of LLMs to reason over global constraints is under-studied in current benchmarks (Long et al., 2025; Ren et al., 2025a; Tyagi et al., 2024; Giadikiaroglou et al., 2024), and topology-focused grid puzzles provide a natural test bed to evaluate this capability while abstracting away the domainspecific details. Furthermore, current puzzle benchmarks typically only report accuracy, but rarely disentangle whether model failures arise from the reasoning process itself or from limitations in representing and manipulating spatial information. We address both gaps in this work. We introduce TopoBench, a benchmark comprising six topology-focused puzzle families. Each puzzle family is selected to test specific topological/geometric constraints such as connectivity (Flow Free, Bridges), loop closure (Loopy), symmetry (Galaxies), reflection (Undead) or contiguity (Pattern). We provide three difficulty tiers per puzzle family to study how performance degrades with task complexity. Rule-based verifiers are included to check correctness and solvers which expose intermediate steps are employed to enable fine-grained diagnosis.