NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Forward Learning with Differential Privacy

Mingqian Feng, Zeliang Zhang, Jinyang Jiang, Yijie Peng, Chenliang Xu

TL;DR

Traditional differentially private deep learning (DP-SGD) relies on backpropagation and manually injecting noise into gradients, which is computationally expensive and requires fully differentiable networks. This paper introduces DP-ULR (Differentially Private Unified Likelihood Ratio), a privatized forward-learning algorithm that leverages the inherent randomness of forward-pass perturbations to provide formal differential privacy guarantees without ever computing a backward pass.

What Problem Does This Paper Address?

Training deep neural networks with Differential Privacy (DP) typically relies on DP-SGD. While effective, DP-SGD has three major bottlenecks:

  1. High Computational Overhead: It requires computing and clipping gradients for each sample individually, which breaks standard batch parallelization.
  2. Backpropagation Dependency: It requires full knowledge of the computational graph, making it incompatible with black-box modules.
  3. Differentiability Requirement: It fails when networks use non-differentiable operations, such as those found in spiking neural networks.

Forward-learning algorithms estimate gradients by injecting noise during the forward pass. While this inherent randomness hints at a "free lunch" for privacy, these algorithms lack formal DP mathematical guarantees. This paper bridges that gap by formalizing DP for forward learning.

Figure 1. Compared to traditional training algorithms, forward learning adds noise during the forward pass and estimates nat- urally randomized gradients, leading to a potential free lunch of differential privacy.

Methods

The authors propose DP-ULR, which privatizes the Unified Likelihood Ratio (ULR) forward-learning framework using two novel components:

  • Batch Sampling with Rejection: Unlike standard Poisson sampling, DP-ULR rejects and resamples any batch that falls below a predefined size threshold ($N_B$). Because the variance of forward-learning gradient estimators is tied to batch size, rejecting small batches prevents catastrophic privacy degradation in extreme cases.
  • Privacy Controller: If a model's parameter dimensions exceed its layer output dimensions, the gradient covariance matrix can become rank-deficient—meaning randomness is entirely lost in certain directions. To fix this, a theoretically guided privacy controller dynamically adjusts the forward-pass noise standard deviation ($\sigma$) at each step to guarantee a minimum level of isotropic randomness.

Datasets

The algorithm was evaluated on two standard computer vision benchmarks:

  • MNIST: Used to train and evaluate a multilayer perceptron (MLP).
  • CIFAR-10: Used to train and evaluate a convolutional neural network (CNN) architecture (ResNet-5).

No new datasets or benchmarks were introduced.

Key Insights and Ideas

  • The "Free Lunch" is Real (Almost): Forward learning naturally requires noise injection to estimate gradients. DP-ULR proves that this exact same noise can simultaneously satisfy rigorous DP guarantees, minimizing the need for extra, utility-destroying noise.
  • Opposite Batch-Size Dynamics: DP-SGD performs best with small batch sizes because large batches dilute the manually added noise. Conversely, DP-ULR thrives on larger batch sizes because increased sample diversity reduces the non-isotropy of the gradient variance, leading to more accurate gradient estimation.
  • Negligible Rejection Cost: The authors mathematically demonstrate that the privacy impairment introduced by their batch-rejection strategy scales down drastically as the dataset size grows, making it virtually free for large-scale deep learning.
Figure 2. Contour plots of the ratio of the first term to the second term in Equation (10).

Key Results

  • Competitive Accuracy: On the MNIST dataset using an MLP, DP-ULR achieved a validation accuracy of 94.19% (with batch size 500, target noise $\sigma_0 = 0.5$), outperforming DP-SGD's 87.98% under identical large-batch conditions.
  • Robust Convergence: Under high noise regimes ($\sigma_0 = 8$), DP-SGD suffered from severe performance degradation and failed to converge properly, whereas DP-ULR continued to steadily converge.

Limitations and Future Work

  • Wall-Clock Time Overhead: Despite avoiding backpropagation, the current implementation of DP-ULR is slower than DP-SGD (23 seconds per epoch vs. 18 seconds on an NVIDIA A6000 GPU for MNIST). This is because it must repeat the forward pass $K$ times per sample to control gradient estimation variance.
  • Overfitting and Extreme Losses: The authors noted an unusual overfitting pattern where the model achieved high overall accuracy but suffered from extreme losses on the specific samples it failed to classify correctly.
  • Untested Frontiers: While forward learning theoretically excels in non-differentiable and black-box settings, the empirical evaluations in this paper were limited to standard, fully differentiable MLP and CNN architectures. Future work will need to validate DP-ULR on more complex, non-differentiable models like spiking neural networks.

Summary updated

BibTeX
@misc{feng2025forward,
  author = {Mingqian Feng and Zeliang Zhang and Jinyang Jiang and Yijie Peng and Chenliang Xu},
  title = {{Forward Learning with Differential Privacy}},
  year = {2025},
  eprint = {2504.00411},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.00411},
}
Figure