MetaSpace: Metamorphic Testing for Spatial Cognition in Embodied Agents
Abstract
An embodied agent is an intelligent entity that interacts with its environment through a physical body. Currently, the evaluation of embodied agents primarily relies on two paradigms: (1) manually annotated Visual Question Answering (VQA) pairs and (2) high-level task completion metrics, such as success in navigation or manipulation. The former is labor-intensive and subject to variability in annotation quality. The latter may obscure critical vulnerabilities, allowing agents to complete tasks through suboptimal means or safety violations, thereby concealing safety risks and inefficiencies. Given that spatial cognition is the cornerstone for executing embodied tasks, there is a pressing need to assess whether embodied agents possess robust spatial cognition during task execution. Inspired by metamorphic testing principles in software engineering, we propose MetaSpace, a novel framework designed to evaluate the spatial cognition of agents. By leveraging spatiotemporal multimodal states derived from real execution trajectories, MetaSpace automatically generates test cases based on predefined metamorphic relations (MRs) grounded in logical rules and physical laws. Crucially, we encode these MRs as executable rules in a logic programming language (Prolog). Violations of these relations indicate failures in spatial cognition. Our empirical evaluation across three embodied scenarios demonstrates that MetaSpace successfully detects 90,422 spatial cognition errors in state-of-the-art (SOTA) MLLM-driven agents. We introduce the Spatial Cognition (SC) score to quantify performance. Results indicate that all SOTA agents achieve average scores between 0.44 and 0.52, significantly lower than the human benchmark of 0.96.
Create a lesson
Metadata
- Categories
- cs.AI, cs.SE
- Journal
- Proceedings of the ACM on Programming Languages, 10, OOPSLA1 (April 2026), 343-372
- Comments
- 30 pages, 17 figures. Published in Proceedings of the ACM on Programming Languages (OOPSLA1)
Related papers
Towards Embodied Cognition in Robots via Spatially Grounded Synthetic Worlds
Shared title terminologycs.AIJoel Currie, Gioele Migno, Enrico Piacenti et al.
vSFT: Learning to Verbally Tune Agents at Test Time
Shared title terminologycs.AIQishuai Wen, Rui Chen, Haiwen Li et al.
From Cognitive Architectures to Language Agents: A Mechanism-Level Review of Lineage, Convergence, and Migration Gaps
Shared title terminologycs.AIHaodi Fan, Zucong Lan
Stress-testing large language model agents in a robotic chemistry laboratory
Shared title terminologycs.AILulu Guo, Yingkai Sun, Xiaobo Li et al.
REE: A Scientific Research Entrance Exam for AI Agents
Shared title terminologycs.AIZeqi Zhou, Minghao Liu, Jiarui Liu et al.
ZeroHero: Training Small Language Agents from Scratch
Shared title terminologycs.AINikita Sorokin, Zoya Volovikova, Alexey Skrynnik et al.