arXiv(opens in a new tab)cs.CRSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.02393

CAPTCHAs in the Agentic Era: Solvers That Learn from Every Encounter

Oguzhan Salman, Kemal Bicakci

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

Oguzhan Salman

Istanbul Technical University

salmano21@itu.edu.tr

Kemal Bicakci

Istanbul Technical University

kemalbicakci@itu.edu.tr

Abstract—Vision-language models (VLMs) can solve visual CAPTCHAs without task-specific training, but the agents built on them approach every challenge from scratch. For such an agent, the hundredth instance of a familiar puzzle costs as much time and compute as the first. Specialized detectors invert the trade-off, answering in milliseconds but only for categories they were trained on. Neither improves with exposure.

We study what changes when a solver improves with use. Our system pairs a fine-tuned YOLOv8 detector with an open-weight VLM behind a confidence-based router, and runs entirely from screenshots and operating-system input events, with no browser automation or DOM access. It reaches 85.4% overall and 84.2% macro accuracy across 16 classes, exceeding either component alone. Every answer VLM produces also serves as a training label, so the detector absorbs categories it was never trained for, typically after one or two encounters and without human annotation. The same loop also repairs it. A CAPTCHA operator can perturb images against the publicly released detector and drive its accuracy to 0%, but the perturbations leave VLM untouched, and its labels let the detector recover. Under a year-long simulated arms race in which the CAPTCHA operator re-crafts its perturbations each month, the solver recovers every round, and a cheap ~70%-accurate open-weight teacher hardens it as effectively as a perfect oracle. Visual CAPTCHA defenses that assume a failing bot stays failing therefore understate how quickly an adaptive solver returns.

I. INTRODUCTION

CAPTCHAs (Completely Automated Public Turing tests to tell Computers and Humans Apart) [1] remain a primary defense against automated bot activity on the web. Among modern image-based systems, Google's reCAPTCHA v2 [2] is still widely deployed despite the introduction of the implicit behavioral v3 variant of reCAPTCHA [3]. Sites continue to prefer v2 due to its explicit user verification and ease of integration into their products where visible challenge-response mechanisms are desirable. By presenting users with semantic image labeling tasks, these challenges are intended to exploit the gap between human visual perception and current machine-vision capabilities to distinguish legitimate users from automation. However, rapid advancements in computer vision are closing this gap, challenging the security assumptions of CAPTCHAs.

Early automated solvers relied on traditional optical character recognition techniques for text-based CAPTCHAs [4], [5]. As the CAPTCHA ecosystem shifted toward image-based from text-based challenges, deep learning approaches emerged, initially using convolutional neural networks trained on specific object categories and later YOLO-family detectors [6] that can achieve high accuracy on trained classes much faster than earlier approaches. Specialized YOLO models have been shown to solve all visual reCAPTCHA types — classification (3×3 grids), segmentation (4×4 grids), and dynamic puzzles — effectively [7], [8] but these systems use browser automation frameworks such as Selenium, Playwright, Puppeteer, or Cypress to access the Document Object Model (DOM) to locate and interact with UI elements [9], [10], [11], [12].

Concurrently, vision-language models (VLMs) have emerged as powerful general-purpose systems capable of understanding and reasoning over diverse visual and language tasks. Building on the transformer architecture [13] that revolutionized sequence modeling through self-attention mechanisms, large language models [14] demonstrated zero-shot task completion. Today, multimodal models like GPT-4V, Claude 3, and Qwen-VL drive GUI agents such as OpenAI Operator, ChatGPT Atlas, Anthropic Computer Use, WebVoyager, and Perplexity Comet [15], [16], [17], [18], [19] and can interact with computers in diverse tasks through user commands. Unlike specialized YOLO models, these VLM systems are capable of understanding and navigating interfaces, interpret screenshots and execute complex workflows without task specific training, which makes them primary candidate for automation. Despite this potential, recent benchmarks identify CAPTCHAs as a primary obstacle that frequently blocks these agents from completing end-to-end workflows [20]. These challenges persist mainly because VLMs face fundamental difficulties with visual grounding and spatial localization without careful prompt engineering [21]. Just as prompting strategies significantly influence model performance on reasoning tasks [22], visual interactions similarly require grounding strategies. Without grounding techniques that supply localized crops and structured annotations, LLMs still struggle to identify and interact with small UI elements [23]. Equipping VLMs with explicit grounding methods such as Set-of-Mark prompting bridges much of this gap, enabling strong performance in visual interaction tasks, including CAPTCHA solving [24].

From the current landscape of automated solvers, we identify three critical observations that motivate a paradigm shift in modern CAPTCHA solving. First, specialized classifiers rely heavily on browser automation frameworks (e.g., Selenium) for element localization. This both prevents integration with fully visual GUI agents and exposes the solver to detection because such frameworks leave fingerprints in the browser that anti-bot systems routinely check for. Second, while VLMs demonstrate superior reasoning capabilities and can decompose visual puzzles into step-by-step solutions [25], their computational overhead prevents deployment as real-time solvers, with inference costs orders of magnitude higher than discriminative alternatives. Third, CAPTCHA challenges represent deterministic recognition problems once the underlying visual pattern is understood, creating an opportunity to distill expensive semantic reasoning into lightweight, specialized detectors through supervised learning. This opportunity extends beyond any single CAPTCHA system—Halligan [24] demonstrates that VLMs can already solve 26 distinct CAPTCHA families without task-specific training, suggesting that a distillation paradigm proven on one family could generalize broadly.

In this work, we present a hybrid solver that improves itself with use, mirroring human dual-process cognition. YOLO serves as the fast, reflexive pathway for familiar patterns, while an open-weight Qwen-7B-VL model [26] fine-tuned for web interactions [27] provides the slow, deliberate reasoning for novel or ambiguous challenges. A confidence-based cascade resolves 70% of challenges at YOLO's reflex speed (4 ms per cell), invoking VLM reasoning (225 ms) only when YOLO's confidence is insufficient, reducing average latency by 3 times compared to VLM-only inference. A separately fine-tuned YOLOv8 detector localizes the CAPTCHA area, grid cells, and buttons from the screenshot, with a finite-state controller coordinating detection, solving, verification, and recovery.

We make the following contributions.

  • A DOM-free hybrid solver. The system reads screenshots and acts through OS-level mouse and keyboard events, so it neither depends on browser automation nor leaves the fingerprints such frameworks expose.

  • A reasoning-to-reflex cascade. YOLO answers familiar cells at reflex speed and VLM is invoked only when YOLO is uncertain, reaching 85.4% overall and 84.2% macro accuracy, higher than either model alone.

  • Autonomous self-extension and recovery. Because every challenge VLM solves becomes training data, the solver absorbs object classes it was never shipped with, often from one or two puzzle encounters, and recovers on its own when a PGD attack collapses YOLO from 83% to 0%, in both cases without human annotation.

  • Adaptive-robustness findings. Under a year-long arms race in which the CAPTCHA operator re-crafts its perturbations each month, the solver re-hardens every round, and a cheap ~70%-accurate teacher proves as effective for this hardening as a perfect oracle, since its labeling errors make the solver harder to replicate.

References (34)