Frontiers in Computer Science

Adversarial example detection for image captioning models via SPC-verify

Dehai Zhang, Jiaqi Mao, Jiajun Zhu

Key points

From the paper's conclusion
  • Overall, SPC-Verify provides an interpretable and transferable approach to adversarial example detection by jointly evaluating local visual-semantic consistency and global caption plausibility.

Abstract

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.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

Adversarial example detection for image captioning models via SPC-verify — Science Skim