Transferable Adversarial Face Attack with Text Controlled Attribute

Wenyun Li, Zheng Zhang, Xiangyuan Lan, Dongmei Jiang

Abstract

Face Recognition (FR) systems are increasingly deployed in security-critical domains, yet they remain vulnerable to adversarial attacks. Existing adversarial methods often suffer from a trade-off between visual stealth and cross-model transferability. This paper introduces $TCA^2$ (Text Controlled Attribute Attack), a framework that utilizes natural language prompts to generate photorealistic adversarial faces. By integrating generative models with meta-learning, $TCA^2$ achieves high transferability, successfully deceiving state-of-the-art FR models and commercial cloud APIs like Face++ and Aliyun while maintaining a natural appearance that evades human detection.

Introduction

Adversarial attacks on Face Recognition (FR) systems typically fall into two categories: norm-constrained and unrestricted. Norm-constrained attacks add small, pixel-level perturbations to an image. While mathematically sound, these often result in visible graininess or "noise" that compromises the stealth of the attack. Conversely, unrestricted attacks modify semantic features (e.g., adding digital makeup or glasses) but are often limited to a narrow set of pre-defined styles and frequently fail to transfer across different FR architectures.

Traditional noise-based adversarial attack showing visible graininess and low stealth.

The authors of $TCA^2$ address these limitations by creating an attack that is simultaneously stealthy (looks like a natural photo), flexible (controlled by arbitrary text prompts), and transferable (effective against unknown "black-box" models).

The $TCA^2$ Framework

The $TCA^2$ pipeline is a multi-stage generative process designed to find universal vulnerabilities in FR systems:

  1. Generative Foundation: The system uses StyleGAN2 to synthesize high-resolution faces. Rather than editing pixels, the attack optimizes latent codes within the GAN's style space to ensure the output remains on the manifold of natural-looking faces.
  2. Text-Guided Attribute Control: To achieve semantic flexibility, the framework incorporates CLIP (Contrastive Language-Image Pre-training). A text prompt (e.g., "a woman with red lipstick") guides the GAN to produce specific attributes, effectively "hiding" adversarial perturbations within meaningful facial changes.
  3. Impersonation Guidance: To ensure the generated face is misidentified as a specific target, the system utilizes a "category-level personal softmax vector." This provides a more precise mathematical objective for impersonation than standard feature embedding matching.
  4. Meta-Learning for Transferability: To prevent the attack from overfitting to a single local model, the authors employ a meta-learning paradigm. By simulating white-box and black-box environments during training and rotating through an ensemble of FR architectures (MobileFace, IRSE50, IR152, and FaceNet), the system learns to exploit fundamental weaknesses shared across different models.

Experimental Results

The $TCA^2$ method was evaluated on the CelebA-Identity and KID-F (K-pop Idol Dataset) high-resolution datasets.

Performance Against Academic Models

On the CelebA-Identity dataset, $TCA^2$ achieved an Attack Success Rate (ASR) of 73.10% against MobileFace in a black-box setting. This performance consistently outperformed previous state-of-the-art methods such as Adv-Diffusion and Adv-Attribute.

Commercial API Evaluation

In real-world testing against commercial cloud-based FR services, $TCA^2$ demonstrated remarkable efficacy. It achieved mean confidence scores of 63.03% on Face++ and 36.08% on Aliyun, significantly higher than traditional PGD noise attacks or other unrestricted generative attacks.

The TCA^2 attack produces a photorealistic face that is visually stealthy while maintaining high attack success.

Visual Stealth

Qualitative analysis confirms that $TCA^2$ produces images that are virtually indistinguishable from real, un-tampered photos. By leveraging the semantic power of text prompts, the adversarial changes appear as natural variations in lighting, makeup, or expression, avoiding the "uncanny valley" effects common in earlier GAN-based adversarial research.

Conclusion

$TCA^2$ represents a significant advancement in adversarial machine learning for facial recognition. By combining the flexibility of natural language with the robustness of meta-learning, the authors demonstrate that FR systems are vulnerable to highly stealthy, semantically meaningful attacks. These findings highlight a critical security gap, suggesting that current defense mechanisms—which often focus on detecting pixel-level noise—are ill-equipped to handle high-level semantic adversarial generation. Future work will focus on developing generalized defense strategies to counter these sophisticated, unrestricted attacks.

Summary updated

BibTeX
@inproceedings{li2025transferable,
  author = {Wenyun Li and Zheng Zhang and Xiangyuan Lan and Dongmei Jiang},
  title = {{Transferable Adversarial Face Attack with Text Controlled Attribute}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i5.32527},
}
Figure