CaptchaAgent: Verifiable Visual Reasoning for CAPTCHA Solving

Shangquan Sun, Ruoyu Chen, Zhirui Liu, Xiang Liu, Chenghao Qian, Wenqi Ren, Xiaochun CaoarXiv 2026

TL;DR

CaptchaAgent is a new framework that moves away from "black-box" end-to-end CAPTCHA solving by introducing a verifiable, structured reasoning process. By forcing Vision-Language Models (VLMs) to construct an explicit ASCII-based visual map and verify their actions through localized "zooming" and consistency checks, the system achieves a massive 21-25% performance boost over standard browser agents.

What Problem Does This Paper Address?

Modern CAPTCHAs have evolved far beyond simple distorted text. Today’s "reasoning CAPTCHAs" require fine-grained perception (e.g., "click the icon that appears only once"), spatial reasoning ("place a dot at the end of the path"), and multi-step interaction.

Current VLM-based agents are notoriously brittle in these settings. Because they often map pixels directly to actions or rely on unconstrained natural-language "Chain of Thought" (CoT), a single missed object or a miscounted item propagates directly to a failed action. There is no explicit, inspectable state that allows the agent—or a human developer—to verify why a specific action was chosen. The authors argue that the gap isn't just in visual recognition, but in the lack of a structured intermediate state that supports global reasoning and targeted correction.

Comparison of action-generation paradigms. CaptchaAgent introduces an explicit V-IR to commit the agent to a specific scene state.

Methods

The authors propose a three-component framework called CaptchaAgent:

  1. Visual Intermediate Representation (V-IR): Instead of just "thinking" in text, the agent must generate a symbol-only ASCII box diagram. This forces the VLM to commit to an exact object inventory, count, and spatial layout. If an object is missing from the ASCII map, it’s a clear signal that the perception stage failed.
  2. Localized Evidence Refinement (LER): If a candidate action is identified, the agent doesn't just click. It "re-observes" the specific region at a higher effective resolution using local crops. This helps resolve ambiguities in small icons or subtle rotations without losing the global context.
  3. Counterfactual Consistency Verification (CCF): To ensure the decision is robust, the agent tests its proposed action against task-preserving transformations (like flipping the image or shifting colors). If the action signature remains consistent across these "counterfactual" views, the agent proceeds; otherwise, it re-evaluates.
Fig. 2. Overall framework of CaptchaAgent. At each step, the agent extracts the puzzle image, constructs a V-IR, refines ambiguous local evidence, and applies bounded consistency voting before selecting an action.

Datasets

The framework was evaluated on two primary benchmarks:

  • Open CaptchaWorld: A comprehensive online benchmark featuring 20 interactive CAPTCHA families (e.g., Bingo, Slide Puzzle, Click Order).
  • Oedipus-data: A separate offline image-only benchmark used to compare against specialized CAPTCHA solvers.

Key Insights and Ideas

  • Commitment is Key: Forcing a model to "draw" its understanding (via ASCII) is more effective than free-form text. It prevents the model from being "vague" about how many objects it actually sees.
  • Discrete vs. Continuous: The research highlights a fascinating divide in AI capability. VLMs are becoming excellent at discrete relational tasks (e.g., "A is inside B"), but they still struggle significantly with metric geometry (exact angles/distances) and exact counting.
  • The "Trap" of Direct Mapping: Standard agents often fall for "trap" instructions (like "Don't click the center"). CaptchaAgent’s structured approach allows it to explicitly identify these distractors in the V-IR before committing to a click.
Qualitative comparison on a "misleading click" puzzle. CaptchaAgent correctly identifies the distractor text and selects a safe target.

Key Results

  • Massive Accuracy Gains: On Open CaptchaWorld, CaptchaAgent improved the Pass@1 rate by 21.3 to 25.8 percentage points over the BU-Agent baseline across different VLM backbones (GPT-4, Gemini, Claude).
  • Outperforming Specialists: On the Oedipus-data benchmark, it improved average Pass@1 by 9.2 to 12.3 points over the previous state-of-the-art Oedipus solver.
  • Ablation Success: Removing the V-IR component caused the largest performance drop (from 46.8% down to 29.2%), proving that the structured representation is the "secret sauce" of the framework.

Limitations and Future Work

Despite the progress, the authors note several persistent bottlenecks:

  • The "Counting" Problem: Tasks like DICE COUNT remain extremely difficult, as current models still struggle with exact enumeration in cluttered scenes.
  • Coarse Representation: The ASCII-based V-IR is inherently low-resolution. It cannot effectively represent subtle gradients, continuous geometry, or fine rotation angles.
  • Scalability: The current method of enumerating all pairwise relations scales quadratically ($O(N^2)$), which could become computationally expensive for very dense, complex scenes.

Future work suggests moving toward more explicit metric representations and improving sequence-level control for multi-step puzzles.

Summary updated

BibTeX
@misc{sun2026captchaagent,
  author = {Shangquan Sun and Ruoyu Chen and Zhirui Liu and Xiang Liu and Chenghao Qian and Wenqi Ren and Xiaochun Cao},
  title = {{CaptchaAgent: Verifiable Visual Reasoning for CAPTCHA Solving}},
  year = {2026},
  eprint = {2610.12866},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.12866},
}
Figure