cs.CVAug 18, 2026

Primitive-Driven Compositional Forensic Visual Prompting for Open-World Face Anti-Spoofing

Authors: Fangling Jiang, Qi Li, Bing Liu, Weining Wang, Quilin Huang, Zhenan Sun, Ming-Hsuan Yang

Organizations: The First Affiliated Hospital, the School of Computer Science, University of South China, Hengyang, 421001, China · New Laboratory of Pattern Recognition, MAIS, CASIA, Beijing, 100190, China · Department of Computer Science and Engineering, University of California, Merced, CA, 95340, USA

Abstract

Open-world face anti-spoofing must address both covariate and semantic shifts: source and target domains differ in imaging conditions, while target domains contain diverse attack types absent from training. Existing prompt-based approaches often express spoofing through category semantics or language guidance, which is effective for modeling high-level concepts but is less suited to explicitly capturing the evolving fine-grained and spatially heterogeneous forensic evidence of unseen attacks. Motivated by the hypothesis that many unseen attacks can be characterized by new combinations of recurring visual cues, we propose a compositional forensic visual prompt learning framework that operates entirely in the visual feature space. Built on a frozen ViT-based vision foundation model, the framework employs patch-aware attention to refine a shared set of learnable micro-forensic primitives into localized forensic evidence units derived from image patches. Class-specific global contextual prompts then provide input-dependent routing weights that adaptively select and compose these primitives into compositional forensic visual prompts for real/spoof discrimination. The primitives are not assigned predefined semantic meanings; instead, their specialization and reuse emerge from shared parameterization and joint optimization across categories. Extensive experiments on nine open-world protocols demonstrate state-of-the-art performance, strong cross-domain generalization, and robust adaptation to unseen attacks.

Figures & tables

Explore similar work

CardsList
  1. DINO-VPT: Hierarchical Visual Prompt Tuning for Joint Physical-Digital Face Anti-Spoofing

    Jul 23, 2026Pierre Gallin-Martel, Mika Feng, Koichi Ito +1Vision Foundation Model AdaptationFace Presentation Attack Detection

  2. Benchmarking Vision Foundation Models for Domain-Generalizable Face Anti-Spoofing

    Apr 21, 2026Mika Feng, Pierre Gallin-Martel, Koichi Ito +1Vision Foundation ModelsDomain Generalization