NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Machine Unlearning for Document Classification

Lei Kang, Mohamed Ali Souibgui, Fei Yang, Lluís Gómez, Ernest Valveny, Dimosthenis Karatzas · DOI

Introduction

As document understanding models become more sophisticated, they are increasingly trained on massive datasets containing sensitive user information, such as invoices, memos, and emails. This trend creates significant privacy challenges. Under modern regulations like the General Data Protection Regulation (GDPR), the "right to be forgotten" allows users to request that their data be removed from a system.

However, simply deleting a file from a server is insufficient; the "knowledge" of that data remains embedded within the weights of the neural network. The traditional solution—retraining the entire model from scratch without the deleted data—is computationally ruinous and prohibitively slow for modern deep learning architectures. This paper presents the first investigation into Machine Unlearning specifically for document classification, proposing a framework that allows models to "forget" specific categories of sensitive documents efficiently.

The Problem: Beyond Simple Deletion

The authors tackle the challenge of Approximate Unlearning (AU): how to update a pre-trained model so it effectively erases a specific class of data while maintaining high performance on the data it is intended to remember. A key constraint in this research is the assumption of limited data access; the server is assumed to have access to only a small subset (10%) of the original training data, reflecting real-world scenarios where full datasets may not be retained for long-term storage.

Proposed Methodology

The researchers explore several strategies for Approximate Unlearning, focusing on minor model updates rather than full retraining:

  1. Fine-tuning (FT): The model is fine-tuned exclusively on the "retain set" (the data to be kept). This relies on "catastrophic forgetting" to naturally erase the target class.
  2. Random Label (RL): This is the core strategy proposed. The "forget set" (the data to be erased) is assigned random, incorrect labels. By training the model on these scrambled pairs, the researchers actively disrupt the model's specific knowledge of that class.
  3. Subset Selection Strategies: Given the 10% data constraint, the authors tested various methods for selecting the subset:
  4. Random: A simple random slice of the data.
  5. Top/Bottom: Selecting samples based on the model's highest or lowest confidence levels.
  6. Mix: A combination of both high and low confidence samples.
  7. Label-guided Sample Generator: To address cases where even the "forget" data cannot be stored, the authors developed a projector model. This model generates synthetic, noisy images based solely on a class label and random noise. These synthetic documents serve as proxies for real private documents during the unlearning process.

Experimental Setup and Results

The study utilized the RVL-CDIP dataset, a benchmark for document classification containing 400,000 grayscale images across 16 categories (e.g., letters, forms, emails). The experiments specifically focused on unlearning the "letter" category.

Key Findings

  • Efficiency Gains: While a full retrain (Exact Unlearning) required 40 epochs, the Random Label (RL) approach achieved comparable results in just 2.56 epochs (800 iterations).
  • High Retention, Low Recall: Using the RL method with a "Mix" selection strategy, the model maintained 91.15% accuracy on retained classes while the accuracy of the "forgotten" class dropped to near zero (0.32%).
  • The Power of Synthetic Data: The Label-guided Sample Generator proved that original private data is not strictly necessary for unlearning. Using generated samples, the model maintained high retention accuracy (93.85%) while successfully forgetting the target class. This is a significant breakthrough for privacy-preserving system design.
  • Selection Strategy: The "Mix" strategy proved most effective. High-confidence (easy) samples helped the model shift decision boundaries, while low-confidence (hard) samples ensured the boundaries between remaining classes remained sharp.

Limitations and Future Work

While this research establishes a foundation for document unlearning, the authors identify several areas for future exploration:

  • Granularity: This study focuses on forgetting an entire category. Real-world requests often involve removing specific individual documents, which requires more granular unlearning techniques.
  • Modality: The current model uses a ResNet34 backbone focusing only on visual features. Modern document AI is often multi-modal (text and vision); unlearning across both modalities simultaneously remains an open challenge.
  • Task Complexity: Future research should move beyond classification toward more complex tasks, such as Document Visual Question Answering (DocVQA).

Conclusion

This paper demonstrates that effective machine unlearning for document classification is possible even with severe data constraints. By utilizing random labeling and synthetic data generation, developers can meet privacy obligations and regulatory requirements without the prohibitive costs of full model retraining.

Summary updated

BibTeX
@inproceedings{kang2024machine,
  author = {Lei Kang and Mohamed Ali Souibgui and Fei Yang and Lluís Gómez and Ernest Valveny and Dimosthenis Karatzas},
  title = {{Machine Unlearning for Document Classification}},
  booktitle = {ICDAR},
  year = {2024},
  url = {https://openreview.net/forum?id=tCPFNZa6mR},
}
Figure