Spatial CAPTCHA: Generatively Benchmarking Spatial Reasoning for Human-Machine Differentiation

Arina Kharlamova, Bowei He, Chen Ma, Xue Liu

TL;DR

Spatial CAPTCHA is a novel human-verification framework that exploits the massive gap between human 3D intuition and the limited spatial reasoning of current Multi-modal Large Language Models (MLLMs). By procedurally generating puzzles involving mental rotation and perspective-taking, the system maintains a near-perfect human success rate while baffling even the best AI models, which top out at roughly 31–36% accuracy.

The Problem with Traditional CAPTCHAs

For decades, CAPTCHAs have relied on "low-level" perception—think squinting at distorted text or clicking on all the traffic lights in a grid. However, the rise of powerful MLLMs like GPT-4o and Gemini has rendered these defenses nearly obsolete. These models are now exceptionally good at OCR and 2D object detection, often matching or exceeding human performance on traditional benchmarks.

The authors argue that while AI has mastered 2D patterns, it still lacks a robust "internal 3D model" of the physical world. Humans can effortlessly imagine what an object looks like from the back or how a folded piece of paper will appear when opened. Machines, constrained by their 2D visual encoders and training data, struggle with these "high-level" spatial invariants. Spatial CAPTCHA aims to turn this cognitive weakness into a new, robust line of defense.

Methods: Procedural Puzzle Generation

Rather than relying on a static image set that AI could eventually memorize, the researchers developed an autonomous, procedural generation pipeline.

Overview of the Spatial CAPTCHA procedural generation pipeline.

The system is built on a formal framework called a Task Manifest, which defines a puzzle using several key components:

  • Scene Function: A pseudo-random generator that constructs a 3D world model (e.g., placing blocks or cylinders in a scene).
  • Interpretable Knobs: Parameters that control difficulty, such as the number of objects, the complexity of polygons, or the degree of rotation.
  • Validator Suite: An automated system that ensures every generated puzzle is solvable, unique, and lacks "near-miss" ambiguities.
  • Task Function: This binds the 3D scene to a natural language prompt and a set of candidate answers.

The pipeline is engine-agnostic, meaning it can use high-fidelity renderers like Blender for complex scenes or lightweight tools for speed.

Datasets and Core Spatial Abilities

The paper introduces Spatial-CAPTCHA-Bench, a comprehensive benchmark consisting of 1,050 instances. The tasks are categorized into four primary spatial abilities:

  1. Spatial Perception: Judging arrangements and alignments (e.g., "Which view shows these objects in a straight line?").
  2. Perspective-Taking: Mentally adopting a different viewpoint (e.g., "Imagine you are the red arrow; what do you see?").
  3. Mental Rotation: Comparing 3D shapes at different orientations.
  4. Multi-step Visualization: Predicting the outcome of sequences like folding or unfolding complex shapes.

Key Insights

  • The 3D Advantage: Spatial reasoning is a "compositional constraint satisfaction" problem. To solve these puzzles, models cannot just recognize a texture; they must chain local visual signals under global geometric rules.
  • Latency vs. Accuracy: Interestingly, slower models aren't necessarily smarter. Some high-latency models took significantly longer to respond but didn't achieve a commensurate accuracy boost compared to faster "Flash" versions.
  • Refusal Bias: Proprietary models often fail traditional reCAPTCHAs not because they can't solve them, but because their safety filters trigger a "refusal" (e.g., "I cannot assist with CAPTCHAs"). Spatial CAPTCHA avoids this by being "unbranded" and appearing as a generic geometric reasoning task.
  • Model-Limited, Not Data-Limited: Even after fine-tuning on task-specific data, model performance only improved modestly. This suggests that the failure is architectural—current transformers simply lack the mechanisms to model 3D equivariance effectively.

Key Results

The performance gap between humans and machines on this benchmark is stark.

Performance comparison of humans and state-of-the-art MLLMs on Spatial-CAPTCHA-Bench.
  • Humans: Achieved a near-perfect 99.8% accuracy.
  • State-of-the-Art MLLMs: The best-performing model (GPT-5.1) achieved only 36.1% Pass@1 accuracy. Other top-tier models like Gemini-2.5-Pro and o4-mini hovered around 29-31%.
  • Comparison to reCAPTCHA: On standard Google reCAPTCHA tasks, advanced MLLMs scored around 55.3%. The much lower scores on Spatial-CAPTCHA-Bench demonstrate that it is a significantly harder hurdle for AI while remaining intuitive for humans.

Limitations and Future Work

While highly effective, the authors note a few areas for future growth:

  • Static vs. Dynamic: Currently, the CAPTCHAs are static images. Future iterations could involve interactive GUIs where users must physically rotate or align 3D objects, which would be even harder for current bots to simulate.
  • Temporal Reasoning: The framework could be extended to video sequences, requiring models to reason about spatial changes over time.
  • The AI Arms Race: As visual encoders improve (e.g., moving toward native 3D representations), the "interpretable knobs" of the generator will need to be adjusted to maintain the difficulty gap.

By grounding human-machine differentiation in fundamental cognitive science rather than just "blurry text," Spatial CAPTCHA offers a promising, scalable path forward for web security.

Summary updated

BibTeX
@inproceedings{kharlamova2026spatial,
  author = {Arina Kharlamova and Bowei He and Chen Ma and Xue Liu},
  title = {{Spatial CAPTCHA: Generatively Benchmarking Spatial Reasoning for Human-Machine Differentiation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=8LAc5kzjhz},
}
Figure