TL;DR
This paper provides a comprehensive survey of security and privacy challenges in pre-trained models (PTMs), proposing a novel taxonomy of attacks and defenses. It highlights the unique vulnerabilities introduced by PTMs' scale and training paradigms, offering a structured understanding crucial for developing robust AI systems.
What Problem Does This Paper Address?
The rapid advancement and widespread adoption of pre-trained models (PTMs) like GPT and BERT have brought immense capabilities but also introduced significant security and privacy concerns. Traditional AI security research often falls short in addressing the unique challenges posed by PTMs, such as their vast scale, complex training processes, and diverse application scenarios. The existing literature lacks a clear, unified framework for understanding these emerging threats and defenses, hindering comprehensive analysis and development of effective countermeasures. This paper aims to bridge this gap by systematically surveying and categorizing the security landscape of PTMs.
Methods
The authors propose a novel taxonomy for classifying attacks and defenses based on the accessibility of PTMs' input and weights, and the stage of the model's lifecycle (pre-training, fine-tuning, inference).
Attack Taxonomy: * No-Change Attacks: These attacks do not modify the target PTM itself. They focus on stealing privacy information or replicating the model's functionality without altering its core. * Input-Change Attacks: These attacks involve modifying input samples to mislead the PTM. This is particularly relevant for PTMs that rely on prompts for task guidance. * Model-Change Attacks: These attacks directly alter the PTM's architecture or weights, often during the fine-tuning stage.
Defense Taxonomy: The defense taxonomy mirrors the attack taxonomy, categorizing defenses into:
- No-Change Defenses: Defenders cannot modify the model or input. Focuses on detection and filtering.
- Input-Change Defenses: Defenders modify inputs to mitigate attacks.
- Model-Change Defenses: Defenders have white-box access and can modify the model, often through adversarial training.
The paper also categorizes defenses based on their stage (Before-Attack vs. After-Attack) and goal (mitigation vs. removal of attack influence).
Datasets
The paper discusses various pre-trained models and their training datasets in general terms but does not focus on specific datasets used for evaluation in this survey. It references numerous existing models and their associated training data implicitly through the cited works.
Key Insights and Ideas
- Unique Vulnerabilities of PTMs: The sheer scale and generalized knowledge of PTMs create new attack surfaces and amplify existing ones. Attacks that were once niche are now more potent and widespread.
- Importance of the "Pre-train/Fine-tune/Inference" Paradigm: This workflow, common in PTMs, introduces new attack vectors during the fine-tuning stage, distinct from traditional "training/inference" models.
- Prompt Engineering as a New Attack Vector: The ability to guide PTMs with prompts opens up avenues for sophisticated attacks like jailbreaking and prompt injection, which aim to bypass safety mechanisms or extract sensitive information.
- Attack Transferability is Crucial: For black-box models, attackers often rely on transferring attacks from open-source surrogate models, highlighting the importance of understanding cross-modal interactions and model similarities.
- Model Hallucination is a Major Practical Challenge: PTMs can generate plausible but incorrect or harmful content, posing risks to user trust and practical applications. This is a significant area for future research.
- Defense Strategies Must Adapt: Traditional defense methods are often insufficient. New approaches are needed that can handle the scale, complexity, and dynamic nature of PTMs.
Key Results
This paper is a survey and taxonomy, not an empirical study with quantitative results. Its primary contribution is the structured classification and comprehensive review of existing research on PTM security and privacy. It summarizes the strengths and limitations of various attack and defense methods, providing a clear overview of the current landscape.
Limitations and Future Work
Limitations: * The paper acknowledges that the "white-box access" assumption for many Model-Change attacks is not always realistic for commercial, closed-source models. * The effectiveness of some attack methods on very large PTMs is still challenging due to computational costs and the difficulty of polluting massive datasets. * The subjective nature of "harmful content" makes defining and defending against it a complex task.
Future Work: * Attack Transferability: Investigating attack transferability across multimodal models (beyond text and image) and between open-source and closed-source models. * Large Pre-trained Model Hallucination: Developing methods to detect and mitigate model hallucinations, ensuring reliability and trustworthiness. * Machine Unlearning: Creating scalable and adaptable techniques for removing unwanted information (e.g., harmful content, copyrighted data) from large PTMs. * Attacks in Specific Domains: Exploring security risks in specialized fields like medicine or psychology, where PTMs are applied. * Standardized Evaluation: Establishing a standardized evaluation system for PTM security and privacy to enable more accurate risk assessments.
Summary updated