TL;DR
This paper introduces "patch-level differential privacy" for computer vision models, leveraging random cropping as a free privacy amplification mechanism. By considering privacy at the level of localized image patches rather than entire images, they achieve stronger privacy guarantees with no additional computational cost, leading to improved privacy-utility trade-offs.
What Problem Does This Paper Address?
Training machine learning models with differential privacy (DP) is crucial for protecting sensitive data. The standard approach, DP-SGD, relies on adding noise to gradients and subsampling data through minibatches. However, this can lead to a significant drop in model utility (accuracy, performance) for a given privacy budget. The authors argue that existing DP methods are often overly conservative, especially in domains like computer vision where sensitive information (e.g., faces, license plates) is often spatially localized within an image. Treating the entire image as sensitive is inefficient. They aim to develop a more refined DP approach that exploits this spatial structure to achieve better privacy-utility trade-offs.
Methods
The core innovation is the introduction of patch-level differential privacy. Instead of defining privacy based on changing an entire image record, they define a "patch-level substitution relation" where two datasets are considered neighbors if they differ only within a specific, localized rectangular region (a patch) of a single image.
They then formalize random cropping (a common data augmentation technique) as a privacy amplification mechanism. When a private patch is localized, random cropping can probabilistically exclude it from the input to the model. This exclusion acts as an additional source of randomness, similar to minibatch sampling, which amplifies the overall privacy guarantee.
The authors derive theoretical bounds on the privacy loss by quantifying the "patch inclusion probability" – the likelihood that a random crop contains the sensitive patch. They show how this probability combines with minibatch subsampling to create an "effective sampling rate" that leads to stronger privacy guarantees than standard DP-SGD. Crucially, this approach requires no changes to the DP-SGD algorithm itself, only to how privacy is accounted for.
Datasets
The paper evaluates their method on the following datasets:
- Cityscapes: A dataset for semantic urban scene understanding.
- A2D2: A dataset for driving scene understanding.
- DTD (Describable Textures Dataset): A dataset for texture classification.
- MNIST: A dataset of handwritten digits.
Key Insights and Ideas
- Spatial structure matters for DP: Sensitive information's localization in images can be exploited to achieve better DP guarantees than treating the whole image as sensitive.
- Random cropping is a "free" privacy amplifier: A standard data augmentation technique can be repurposed to enhance DP without extra computational cost or algorithmic changes.
- Patch-level DP is a finer-grained notion: It offers tighter privacy bounds when applicable, leading to improved utility for a given privacy budget.
- Composition of randomness: The paper demonstrates how different sources of randomness (gradient noise, minibatch sampling, and random cropping) interact and can be combined for stronger privacy.
Key Results
- Improved Privacy-Utility Trade-off: Patch-level subsampling consistently achieved higher model utility (measured by mIoU for segmentation and accuracy for classification) compared to standard minibatch subsampling for the same privacy budget (ɛ). For example, on Cityscapes with DeepLabV3+, they observed an average mIoU improvement of over 40% across tested ɛ values.
- Generalization: The benefits were observed across multiple segmentation architectures (DeepLabV3+, PSPNet) and datasets (Cityscapes, A2D2), and also extended to image classification tasks.
- Robustness: The effectiveness of patch-level amplification was shown to be robust to variations in noise levels, crop sizes, and patch sizes, although extreme values could diminish the advantage.
- Comparison to Data-Level Noise: Adding Gaussian noise directly to input pixels was found to be less effective and required impractically high noise levels for comparable privacy guarantees.
Limitations and Future Work
- Assumption of Fixed Patch Size: The analysis assumes a known or conservatively estimated private patch size. If the assumed size is too small, guarantees might be optimistic. Practitioners need to choose a conservative upper bound.
- Binary Intersection: The current model treats patch inclusion as binary (either fully in or out), which might be conservative if partial overlap leaks less information. However, this aligns with DP-SGD's limitations regarding gradient functions.
- Applicability: The method is most effective when sensitive content is localized and random cropping is a natural part of the pipeline. It's unsuitable for tasks requiring holistic image understanding where cropping destroys semantic content (e.g., MNIST).
- Future Work: The authors suggest exploring overlap-aware accounting, adaptive private regions, and extending the framework to other domains or more complex privacy definitions. Developing adaptive strategies for patch size estimation is also an open question.
Summary updated