Skip to main content
QUICK REVIEW

[Paper Review] Towards Quantifying the Carbon Emissions of Differentially Private Machine Learning

Rakshit Naidu, Harshita Diddee|arXiv (Cornell University)|Jul 14, 2021
Privacy-Preserving Technologies in DataComputer Science13 references12 citations
TL;DR

This paper quantifies the carbon emissions of differentially private machine learning models across NLP, computer vision, and reinforcement learning by measuring CO2 emissions during training with varying privacy budgets (ε). It demonstrates that stricter privacy (lower ε) significantly increases training time and carbon footprint, with models requiring up to 15× more emissions than non-private baselines, highlighting a critical trade-off between privacy and environmental cost.

ABSTRACT

In recent years, machine learning techniques utilizing large-scale datasets have achieved remarkable performance. Differential privacy, by means of adding noise, provides strong privacy guarantees for such learning algorithms. The cost of differential privacy is often a reduced model accuracy and a lowered convergence speed. This paper investigates the impact of differential privacy on learning algorithms in terms of their carbon footprint due to either longer run-times or failed experiments. Through extensive experiments, further guidance is provided on choosing the noise levels which can strike a balance between desired privacy levels and reduced carbon emissions.

Motivation & Objective

  • To quantify the environmental impact of differential privacy in machine learning, particularly its carbon footprint.
  • To analyze how varying privacy budgets (ε) affect training duration and CO2 emissions across diverse ML tasks.
  • To identify the trade-off between privacy strength, model performance, and computational resource usage in privacy-preserving training.
  • To provide empirical guidance for selecting noise levels that balance privacy, accuracy, and carbon emissions.
  • To establish the first benchmark for measuring carbon emissions in differentially private machine learning models.

Proposed method

  • Implemented DP-SGD with Gaussian noise addition to gradients during training across three domains: NLP (BERT on news classification), CV (MNIST and CIFAR-10 with MLP and ResNet18), and RL (CartPole with DQN).
  • Varied the privacy budget ε across values of 0.5, 2, 5, 15, and ∞ (non-private baseline), measuring training time and energy consumption.
  • Tracked model accuracy and CO2 emissions (in grams) and energy consumption (in watt-hours) over epochs to assess performance and environmental cost.
  • Used a fixed clipping norm and noise multiplier to isolate the effect of ε on training dynamics and emissions.
  • Measured emissions using a carbon intensity model based on energy consumption and regional electricity mix.
  • Conducted experiments with a target accuracy threshold (T) for each task to compare convergence behavior and emissions across ε levels.

Experimental results

Research questions

  • RQ1How does increasing the privacy budget (lower ε) affect the carbon emissions of differentially private machine learning models?
  • RQ2What is the relationship between model convergence speed and CO2 emissions under varying levels of differential privacy?
  • RQ3To what extent do stricter privacy requirements (lower ε) lead to longer training times and higher energy consumption?
  • RQ4Can a balance be struck between privacy, model accuracy, and carbon emissions through optimal noise level selection?
  • RQ5How do the carbon footprints of differentially private models compare to their non-private counterparts across diverse ML tasks?

Key findings

  • Lower privacy budgets (e.g., ε = 0.5) led to significantly higher carbon emissions—up to 15× more than non-private models—due to extended training times.
  • For MNIST, achieving 70% accuracy required 10.53g CO2 at ε = 0.5, compared to only 0.08g at ε = ∞ (non-private), with emissions decreasing as ε increased.
  • On CIFAR-10, CO2 emissions dropped from 15.34g at ε = 0.5 to 0.36g at ε = ∞, with models at ε = 0.5 failing to reach 55% accuracy within 30 epochs.
  • The non-private baseline (ε = ∞) had the lowest emissions (0.38 Wh, 0.08g CO2), while ε = 0.5 models consumed up to 70.216 Wh and released 15.34g CO2 on CIFAR-10.
  • In NLP (BERT), the non-private model reached the threshold accuracy (52%) with minimal emissions, while DP variants required more epochs and incurred substantially higher carbon footprints.
  • The results show a clear inverse relationship between privacy strength (lower ε) and environmental cost, with stronger privacy leading to longer training and higher emissions.

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.