Prompt-Conditioned Semantic Bottleneck for Cross-Domain Face Attack Detection
Abstract
Learning visual representations that generalize across domains remains challenging when source-domain supervision is entangled with spurious dataset-specific cues. This issue is particularly pronounced in face attack detection (FAD), where attack artifacts vary substantially across capture devices, manipulation pipelines, and image quality. In this paper, we propose Prompt-Conditioned Semantic Bottleneck, an information-bottleneck-inspired representation learning framework for cross-domain FAD. Unlike prior methods that use prompts mainly for image-text alignment, our method uses label- and attack-type-conditioned prompts to extract attack-aware semantic targets from a frozen VLM. Specifically, the final multimodal token representation, obtained after contextual interactions between visual and prompt tokens, serves as a compact semantic bottleneck. This bottleneck provides offline supervision for a lightweight visual detector, promoting the learning of attack-relevant representations for cross-domain generalization. Extensive experiments on multiple face forgery detection benchmarks demonstrate consistent improvements under cross-dataset evaluation. Ablation studies further show that the gains are not simply due to stronger visual or multimodal models, but arise from attack-aware prompt-conditioned semantic supervision. Importantly, the VLM and prompts are removed during inference, enabling efficient vision-only deployment. Overall, our results demonstrate that prompt-conditioned VLM semantics provide an effective way to improve cross-domain FAD accuracy while maintaining efficient inference. The code is available at \url{https://github.com/WeihangWANG/Semantic-Bottleneck-FAD}.