TL;DR
This paper introduces "Entity-level Unlearning," a new challenge for Large Language Models (LLMs) that goes beyond removing single data points to erasing all knowledge about an entire entity. They found that current unlearning methods struggle with this task, and that knowledge learned during fine-tuning is more vulnerable to deletion than pre-trained knowledge.
What Problem Does This Paper Address?
The rapid growth of LLMs has brought immense capabilities, but also concerns about sensitive data, privacy, and copyright. While "instance-level unlearning" (removing specific pieces of information) has been studied, real-world scenarios often require removing all knowledge about an entire entity (e.g., a person, a product, or copyrighted material). This "entity-level unlearning" is a significant challenge because it's hard to know exactly what knowledge an LLM has about an entity, and current unlearning methods are not designed to tackle this comprehensive erasure.
Methods
The authors propose a two-stage framework for entity-level unlearning:
- Forget Set Construction: Since it's difficult to know all entity-related knowledge within a model, they developed a method to probe the LLM and generate relevant question-answer (QA) pairs to form a "forget set." This involves prompting the model to generate questions, then using greedy decoding for answers, and finally a self-verification step to ensure consistency.
- Unlearning Execution: They then apply existing unlearning algorithms to this constructed forget set to remove the target entity's knowledge.
They evaluated five popular unlearning algorithms (Gradient Ascent, Gradient Difference, KL Minimization, Preference Optimization, and Negative Preference Optimization) on this new task.
Datasets
- TOFU benchmark: Used for simulating entity-level unlearning scenarios. They fine-tuned LLMs (Llama2-7B-Chat and Phi-1.5) on this dataset, which contains synthetic biographies of fictitious authors. This fine-tuning process injects "pseudo-entity" knowledge.
- TriviaQA: Used to construct a "retain set" containing general world knowledge that should not be forgotten.
- Real Authors Set and World Facts Set (from TOFU): Used for evaluating the retention of pre-training knowledge.
Key Insights and Ideas
- Entity-level unlearning is hard: Existing unlearning algorithms, designed for instance-level removal, are not effective at completely erasing an entity's knowledge. They struggle to generalize the deletion effect to all related information.
- Forget set quality matters: The "knowledge coverage" of the forget set (how well it represents the entity's knowledge) is crucial. Simply increasing the size of the forget set can degrade the model's overall performance.
- Fine-tuned knowledge is more fragile: Entities introduced through fine-tuning are significantly more vulnerable to unlearning than entities present in the original pre-training data. This suggests a need for more robust methods for injecting knowledge if we want it to be as resilient as pre-trained knowledge.
Key Results
- Performance Gap: All tested unlearning algorithms showed limited effectiveness in removing entities when using the constructed forget sets.
- Knowledge Coverage Impact: Increasing the knowledge coverage of the forget set generally improved unlearning effectiveness, but this often came at the cost of reduced model utility.
- Fine-tuning Vulnerability: Experiments showed that fine-tuned entities were more susceptible to unlearning interventions compared to pre-trained entities, indicating a difference in how LLMs "learn" and retain information from different sources. For example, some algorithms caused more damage to fine-tuned entity knowledge than to general pre-trained knowledge.
Limitations and Future Work
- Focus on Simulation: The study primarily simulates entity-level unlearning by fine-tuning models. Future work could explore unlearning in models with naturally occurring entity knowledge.
- Single-Entity Deletion: The current work focuses on unlearning a single entity at a time, omitting batch or sequential unlearning of multiple entities.
- Evaluation Metrics: Current metrics primarily assess if the original answer is forgotten, but not necessarily the fluency or coherence of the model's responses to other queries after unlearning.
- Algorithm Development: The authors encourage the development of new unlearning algorithms specifically tailored for entity-level unlearning, rather than adapting existing instance-level methods. They also suggest exploring more precise knowledge-probing techniques for constructing better forget sets.
Summary updated