Abstract
Post-Training Quantization (PTQ) is a standard technique for compressing deep learning models for deployment on resource-constrained edge devices. While primarily intended for efficiency, this study reveals that PTQ serves as a potent accidental defense against Membership Inference Attacks (MIAs). By reducing model precision to extreme low-bit levels (e.g., 2-bit or 1.58-bit), privacy leakage can be reduced by up to an order of magnitude with manageable impacts on model utility.
Introduction
Deep Neural Networks (DNNs) are prone to memorizing specific training samples, a vulnerability exploited by Membership Inference Attacks (MIAs) to determine if a particular individual's data was part of the training set. Conventional defenses like Differential Privacy often come with significant computational overhead. This paper investigates Post-Training Quantization (PTQ)—the process of converting 32-bit weights into low-precision integers after training—as a practical privacy-preserving mechanism. Unlike training-time interventions, PTQ is applied to existing models, making it highly relevant for real-world AI deployment.
Methodology
The researchers evaluated three state-of-the-art PTQ algorithms: AdaRound, BRECQ, and OBC. They tested these across various precision levels, including 4-bit, 2-bit, and a novel 1.58-bit (ternary) implementation. Privacy vulnerability was assessed using the Likelihood Ratio Attack (LiRA), the current benchmark for strong membership inference. The study utilized three computer vision datasets: CIFAR-10, CIFAR-100, and TinyImageNet.
The Privacy-Utility Trade-off
The study finds that lowering bit-width creates an "information bottleneck" that filters out the fine-grained sample memorization used by attackers.
As illustrated in Figure 1, the relationship between precision and privacy is non-linear:
- 4-bit (The Neutral Zone): Standard 4-bit quantization, favored for its near-zero impact on accuracy, provides almost no privacy benefit compared to full-precision models.
- 1.58-bit (The Shield): Moving to ternary weights (1.58-bit) provides a massive privacy boost. For instance, on CIFAR-100, it reduced the attack success rate by over 99% relative to the 32-bit baseline.
Empirical Results Across Benchmarks
The effectiveness of PTQ as a privacy defense is consistent across different datasets and architectures (e.g., ResNet, DenseNet).
Key findings from the experimental results include:
- Privacy Gains: At the 1.58-bit level, the vulnerability to MIAs (measured by TPR @ 0.1% FPR) dropped significantly. For example, using AdaRound on CIFAR-100, leakage plummeted from ~0.38 to 0.0031.
- Utility Impact: While 2-bit quantization offers a balanced trade-off (minor accuracy loss of <1% with noticeable privacy gains), 1.58-bit quantization can lead to substantial accuracy drops, particularly on complex tasks like TinyImageNet.
Decoupled Quantization: Optimizing the Balance
To address the utility drop at extreme low-bits, the authors proposed Decoupled Quantization. By maintaining the final layer—which is often the most informative for attackers—at a slightly higher precision (e.g., 8-bit) while quantizing the rest of the network to 1.58-bit, they recovered significant accuracy. On TinyImageNet, this approach improved accuracy from 33% to 52% while still providing superior privacy protection compared to the original model.
Conclusion
Post-Training Quantization is a dual-purpose tool, offering both model compression and a robust, "free" privacy defense for edge-deployed AI. Future work should explore the applicability of these findings to Large Language Models (LLMs) and the combined effects of weight and activation quantization on privacy.
Summary updated