Adversarial example detection for image captioning models via SPC-verify
Image captioning models are vulnerable to adversarial examples that can induce descriptions inconsistent with visual evidence, commonsense knowledge, or physical rules. Existing detection methods mainly rely on confidence anomalies, feature-space deviations, or reconstruction errors, making them less suitable for cross-modal generative tasks. To address this limitation, we propose SPC-Verify, a Semantic-Phenomenon Consistency Verification framework for adversarial example detection in image captioning. The framework combines Visual-Semantic Consistency Verification (VSCV), which assesses whether token-level visual evidence supports the corresponding generated concepts, with Phenomenon Plausibility Verification (PPV), which evaluates the consistency of complete captions with commonsense knowledge and physical constraints. To improve the reliability of local visual evidence, we introduce SCAR-SAT, a post-hoc heatmap refinement method for Show-Attend-and-Tell-based models that integrates semantic consistency, lightweight counterfactual support, spatial continuity, and temporal stability. We further propose Zero-Shot Cross-Model Threshold Transfer (ZS-CMTT), which learns shared decision thresholds from the joint score distributions of SAT and BLIP and transfers them to unseen captioning models without requiring target-model samples. Experiments on MSCOCO and Flickr30K across SAT and BLIP, under multiple attack settings, demonstrate the effectiveness of the proposed framework. Ablation studies show that the Grounded Category Vocabulary improves token-level verification, while PPV provides complementary sentence-level plausibility assessment. Further evaluations indicate that SCAR-SAT improves token-level visual grounding and that ZS-CMTT facilitates threshold transfer across captioning models. Overall, SPC-Verify provides an interpretable and transferable approach to adversarial example detection by jointly evaluating local visual-semantic consistency and global caption plausibility.
Authors
- Jiaqi Mao (ORCID: https://orcid.org/0009-0002-8874-9018)
- Jiajun Zhu (ORCID: https://orcid.org/0009-0006-7136-2844)
- Dehai Zhang
Institutions
- Yunnan University (CN)
Publication Details
- Journal
- Frontiers in Computer Science
- Published
- 2026-11-04
- DOI
- https://doi.org/10.3389/fcomp.2026.1897185
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00