Abstract
Few-Shot Class-Incremental Learning (FSCIL) represents a significant challenge in computer vision, requiring models to learn new classes from minimal data without forgetting prior knowledge. While much research has focused on improving FSCIL accuracy, the security of these dynamic systems remains largely unexplored. We introduce ACraft, an automated framework that utilizes Large Language Models (LLMs) within a reinforcement learning loop to discover adversarial attacks specifically tailored for FSCIL. By evolving attack strategies through Proximal Policy Optimization (PPO), ACraft generates implementation code that significantly outperforms traditional human-designed methods, exposing critical vulnerabilities in state-of-the-art incremental learning models.
Introduction
In FSCIL, models are "moving targets"; their decision boundaries shift as they incorporate new information. Traditional adversarial attacks, such as the Fast Gradient Sign Method (FGSM) or Projected Gradient Descent (PGD), are designed for static environments and often fail to significantly degrade performance in FSCIL settings. These human-designed perturbations are frequently "washed out" during the model's incremental update phase. There is a pressing need for specialized, automated discovery of vulnerabilities that can adapt to the evolving nature of incremental learning.
The ACraft Framework
ACraft treats attack discovery as an evolutionary programming problem. Rather than relying on manual expert design, the framework employs an LLM to generate both strategic rationales and executable algorithmic code. To overcome the limitations of simple one-shot prompting, ACraft implements a closed-loop system guided by Reinforcement Learning.
The framework consists of three core modules:
- Adversarial Algorithm Generator: An LLM that creates, refines, and synthesizes attack strategies.
- Attack Efficacy Evaluator: A module that executes the generated code against target FSCIL models to calculate a "fitness score" based on accuracy degradation and computational efficiency.
- PPO-based Evolution Controller: The central controller that uses fitness scores as rewards to update prompting strategies, steering the LLM toward more lethal attack implementations.
Experimental Evaluation
ACraft was evaluated across three major benchmarks: miniImageNet, CIFAR-100, and CUB200. The framework was tested against several state-of-the-art FSCIL methods, including CLOSER, Limit, OrCo, and Tri-WE. The experiments utilized various LLMs, including GPT-4o, Claude 3.7, and Llama 3, demonstrating that the framework's effectiveness is model-agnostic.
Key Results and Insights
Quantitative analysis reveals that ACraft-generated attacks are substantially more effective than traditional methods. On the miniImageNet dataset using the CLOSER model, standard PGD only reduced accuracy from 62.78% to 58.00%. In contrast, ACraft discovered an attack that plummeted accuracy to 17.13%, representing a nearly 40-point drop.
Key findings include:
- Poisoning Prototypes: ACraft discovered that disrupting the foundation of how models represent new classes (prototypes) is far more effective than simple image noise.
- Efficiency: Using
gpt-4o-mini, ACraft identified state-of-the-art attacks in under 50 minutes. - Transferability: Attacks discovered for one specific FSCIL method often remained highly effective when transferred to different architectures, suggesting a fundamental vulnerability in the incremental learning paradigm.
Conclusion
ACraft demonstrates that LLMs, when properly guided by reinforcement learning, can autonomously identify complex security flaws that elude human experts. This automated discovery process not only exposes the fragility of current FSCIL systems but also provides a tool for researchers to build more robust and secure incremental learning models in the future.
Summary updated