Robust Machine Unlearning for Quantized Neural Networks via Adaptive Gradient Reweighting with Similar Labels

Yujia Tong, Yuze Wang, Jingling Yuan, Chuang Hu

TL;DR

This paper introduces Q-MUL, the first machine unlearning framework specifically designed for quantized neural networks (QNNs). It tackles the challenges of noise amplification and gradient imbalance in QNNs by using "Similar Labels" to reduce noise during data processing and "Adaptive Gradient Reweighting" to balance parameter updates from forgotten and retained data, significantly improving unlearning performance on quantized models.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are increasingly deployed on resource-constrained edge devices, often through model quantization, which reduces model size and computational cost. To enhance performance, these quantized models are periodically fine-tuned with user data. However, privacy regulations like GDPR grant users the right to request data deletion, necessitating "machine unlearning" (MU) – the process of removing a specific data sample's influence from a trained model. Existing MU methods, primarily designed for full-precision models, struggle with quantized networks due to two key issues:

  1. Noise Amplification: When forgetting data, existing methods often assign random labels. In quantized models, the limited parameter space amplifies the noise introduced by these inconsistent labels, leading to significant deviations in model updates and reduced robustness.
  2. Gradient Imbalance: Quantized models exhibit a more pronounced discrepancy in gradient norms between forgotten and retained data during unlearning training. This imbalance leads to uneven contributions to parameter updates, hindering effective unlearning.

This paper aims to bridge this gap by proposing a novel MU framework tailored for the unique challenges of quantized neural networks.

Methods

The proposed framework, Q-MUL, introduces two core innovations:

  1. Similar Labels (SL): Instead of assigning random labels to forgotten data samples, Q-MUL assigns the label that is semantically closest to the true label. This is achieved by inputting the forgotten data into the model, calculating the probability distribution, and then selecting the class label that minimizes the distance between its predicted probability and the true label's probability. This approach significantly reduces the noise injected during the data processing phase, aligning gradient updates more closely with the original data's intent and improving model robustness.
  2. Adaptive Gradient Reweighting (AGR): To address the gradient imbalance between forgotten and retained data, Q-MUL adaptively reweights their contributions to the loss function during unlearning training. It calculates the expected gradient norms for both forgotten and retained data and uses these norms to dynamically assign weights. Specifically, the weights are inversely proportional to the gradient norms, ensuring that data with larger gradient norms contributes less to the overall loss, thereby balancing their influence on parameter updates. This mechanism helps to prevent overemphasis on one data type and promotes a more stable and effective unlearning process.

The overall pipeline involves a data processing stage (applying SL) followed by an unlearning training stage (using AGR).

Datasets

The paper evaluates Q-MUL on the following datasets:

  • CIFAR-10
  • CIFAR-100
  • SVHN
  • Tiny-Imagenet

Key Insights and Ideas

  • Quantization amplifies MU challenges: The limited parameter space and discrete nature of quantized models make them more susceptible to noise and gradient imbalances during unlearning compared to full-precision models.
  • Random labels are detrimental for QNN unlearning: The noise introduced by random labels in the forgetting process is significantly amplified in QNNs, leading to poor unlearning performance.
  • Semantic consistency is key for forgetting: Using "Similar Labels" that are semantically close to the true labels helps maintain data logic and reduces noise, leading to more robust unlearning.
  • Gradient norm balancing is crucial: Adaptively reweighting the loss based on gradient norms is essential for balancing the contributions of forgotten and retained data, a problem exacerbated in QNNs.
  • Q-MUL is the first dedicated solution: The paper highlights that Q-MUL is the first framework specifically designed to address the unique challenges of machine unlearning in quantized neural networks.

Key Results

  • Q-MUL consistently outperforms existing MU methods (e.g., RL, SalUn, l1-sparse) on various datasets (CIFAR-10, CIFAR-100, Tiny-Imagenet) and network architectures (ResNet-18, MobileNetV2) when applied to quantized models.
  • On CIFAR-100 with 10% forgotten data, Q-MUL achieved an average gap of 3.11% from the "Retrain" baseline, significantly lower than other methods like SalUn (6.05%).
  • Ablation studies show that both Similar Labels and Adaptive Gradient Reweighting are crucial for Q-MUL's effectiveness, with removing either component leading to a noticeable degradation in performance.
  • Q-MUL also demonstrates effectiveness on full-precision models, suggesting its general applicability beyond just quantized networks.

Limitations and Future Work

  • Computational Overhead: While Q-MUL is designed for approximate unlearning and is more efficient than retraining, the process still involves training epochs. The paper doesn't explicitly detail the exact computational cost compared to baselines, but it's implied to be more efficient than exact unlearning.
  • Generalization to other QAT methods: While the paper shows Q-MUL works with other QAT methods like PACT and DSQ, further exploration across a wider range of QAT techniques could be beneficial.
  • Theoretical Guarantees: The paper establishes theoretical foundations for its mechanisms but could further explore formal guarantees for unlearning effectiveness in the context of quantization.

Future work could focus on exploring more efficient unlearning strategies for QNNs, investigating the impact of different quantization bit-widths, and extending the framework to other model architectures and tasks.

Summary updated

BibTeX
@inproceedings{tong2025robust,
  author = {Yujia Tong and Yuze Wang and Jingling Yuan and Chuang Hu},
  title = {{Robust Machine Unlearning for Quantized Neural Networks via Adaptive Gradient Reweighting with Similar Labels}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure