Skip to main content
QUICK REVIEW

[Paper Review] Understanding Unintended Memorization in Federated Learning

Om Thakkar, Swaroop Ramaswamy|arXiv (Cornell University)|Jun 12, 2020
Privacy-Preserving Technologies in DataComputer Science23 references20 citations
TL;DR

This paper investigates unintended memorization in federated learning (FL) by adapting the secret-sharer framework to measure how FL components reduce memorization of sensitive data. It finds that user-level data clustering, Federated Averaging, and user-level differential privacy (DP) collectively reduce memorization, with DP providing the strongest protection while maintaining model utility.

ABSTRACT

Recent works have shown that generative sequence models (e.g., language models) have a tendency to memorize rare or unique sequences in the training data. Since useful models are often trained on sensitive data, to ensure the privacy of the training data it is critical to identify and mitigate such unintended memorization. Federated Learning (FL) has emerged as a novel framework for large-scale distributed learning tasks. However, it differs in many aspects from the well-studied central learning setting where all the data is stored at the central server. In this paper, we initiate a formal study to understand the effect of different components of canonical FL on unintended memorization in trained models, comparing with the central learning setting. Our results show that several differing components of FL play an important role in reducing unintended memorization. Specifically, we observe that the clustering of data according to users---which happens by design in FL---has a significant effect in reducing such memorization, and using the method of Federated Averaging for training causes a further reduction. We also show that training with a strong user-level differential privacy guarantee results in models that exhibit the least amount of unintended memorization.

Motivation & Objective

  • To understand how federated learning (FL) components reduce unintended memorization of sensitive data compared to central learning.
  • To evaluate the impact of data heterogeneity, optimization methods, and differential privacy (DP) on memorization in FL.
  • To measure the resilience of FL models against memorization attacks using a modified secret-sharer framework.
  • To compare model utility and privacy trade-offs across different FL configurations with and without DP.
  • To provide empirical evidence on the synergy of FL design choices in mitigating memorization risks.

Proposed method

  • Adapted the secret-sharer framework to FL by introducing two parameters: user selection probability $p_u$ and example replacement probability $p_e$ to embed canaries into user data.
  • Used two evaluation methods—record-level and batch-level classification—to detect memorized canaries in model outputs.
  • Trained models using Federated Averaging (FedAvg) and stochastic gradient descent (SGD), comparing memorization across IID and Non-IID data splits.
  • Applied user-level differential privacy (DP) with noise injection during model aggregation to achieve formal privacy guarantees.
  • Measured model utility via perplexity and evaluated memorization via detection rates of inserted canaries.
  • Conducted experiments across varying minibatch sizes, user data distributions, and DP parameters to isolate effects.

Experimental results

Research questions

  • RQ1How does data clustering by users in FL affect unintended memorization compared to central learning?
  • RQ2What is the impact of using Federated Averaging versus SGD on memorization in FL?
  • RQ3To what extent does applying user-level differential privacy reduce memorization in FL models?
  • RQ4How do model utility and memorization trade-offs vary across different training configurations in FL?
  • RQ5Can FL’s inherent design features synergistically reduce memorization, even without explicit DP?

Key findings

  • User-based data clustering in FL significantly reduces unintended memorization, even without additional privacy mechanisms.
  • Switching from SGD to Federated Averaging further reduces memorization, especially with larger effective minibatch sizes.
  • Models trained with user-level DP exhibit the least amount of memorization, achieving $(18.8, 10^{-7})$-DP with no detectable memorization of canaries after 100 epochs.
  • Even in Non-IID settings, DP-FedAvg models showed no memorization of canaries in 10-epoch training, outperforming non-DP baselines.
  • The secret-sharer method detected no canaries in DP-FedAvg models under the lowest canary configuration, indicating strong resilience.
  • Model utility remained comparable across all configurations, including DP-FedAvg, demonstrating that privacy and performance are not mutually exclusive.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.