Online robust locally differentially private learning for nonparametric regression

Chenfei Gu, Qiangqiang Zhang, Ting Li, Jinhan Xie, Niansheng TangNeurIPS 2025

This paper, recently accepted to NeurIPS 2025, introduces a robust and privacy-preserving framework for learning complex, non-linear relationships from streaming data.

The Challenge: Streaming, Messy, and Private Data

Traditional nonparametric regression—which models data without assuming a fixed functional form (like a straight line)—usually requires the entire dataset to be stored in memory. This "batch" approach fails in two modern scenarios:

  1. Streaming Data: Data from sensors or autonomous vehicles arrives continuously and is too vast to store.
  2. Privacy & Robustness: Users are increasingly unwilling to share raw data with a central server, necessitating Local Differential Privacy (LDP). Furthermore, real-world data is often "messy," containing outliers or heavy-tailed noise that breaks standard squared-loss methods.

Existing solutions often struggle with the privacy-robustness-utility trilemma: adding privacy noise usually destroys statistical utility, and making a model robust often makes it harder to privatize.

Comparison of the proposed method against existing literature

As shown in the comparison above, prior methods force a compromise. The proposed approach is the first to simultaneously achieve online, one-pass processing with robustness, optimal convergence rates, and privacy guarantees.

The Solution: H-FSGD and PH-FSGD

To tackle these issues, the researchers propose two main algorithms based on Functional Stochastic Gradient Descent (FSGD) in a Reproducing Kernel Hilbert Space (RKHS).

Flowchart of the proposed online learning framework

The framework processes data one by one, updating a functional estimator. Depending on privacy requirements, it routes through one of two algorithms:

  • H-FSGD (Huber FSGD): Instead of the standard squared error loss, this algorithm uses the Huber loss. The Huber loss is quadratic for small errors but linear for large ones. This naturally "clips" the influence of outliers and ensures that the gradients are always bounded.
  • PH-FSGD (Private H-FSGD): This extends H-FSGD to the privacy-aware setting. Because the Huber gradients are naturally bounded, the authors can add calibrated Gaussian process noise to each update. This ensures $(\epsilon, \delta)$-Local Differential Privacy, meaning the data is privatized at the source before any aggregator ever sees it.

The algorithm is one-pass, meaning it processes each data point exactly once and then discards it, maintaining $O(1)$ time and space complexity per iteration. They also use Polyak averaging (averaging the estimates over time) to ensure the path to the solution is stable.

Key Insights

  • Huber Loss as a Privacy Enabler: The most elegant insight is that the Huber loss isn't just for robustness; its bounded gradient is the perfect property for Differential Privacy. It removes the need for ad-hoc gradient clipping, which often destroys the statistical properties of other private learners.
  • Optimal Convergence: The paper provides a rigorous non-asymptotic analysis. They prove that even with the added "noise" of privacy and the "bias" of the Huber loss, the algorithm can still achieve the minimax optimal convergence rate (the best possible rate any algorithm could achieve for this problem).
  • The Trilemma Balance: They show that while stronger privacy (lower $\epsilon$) increases variance, and a smaller Huber parameter ($\tau$) increases bias, there is a "sweet spot" where you can maintain high utility without sacrificing either.

Experimental Validation

The authors validated their approach using both synthetic simulations (sine waves and complex Beta densities) and real-world data (a Kaggle Health and Fitness Dataset with ~40,000 samples).

  • Robustness: In tests with heavy-tailed noise ($t$-distribution), H-FSGD significantly outperformed standard least-squares methods, which often failed to converge or produced highly unstable estimates.
  • Efficiency: PH-FSGD demonstrated linear computational complexity $O(n)$ relative to the number of samples. In contrast, traditional "offline" kernel methods showed cubic complexity $O(n^3)$, making them unusable for large-scale streaming datasets.
  • Privacy at Scale: Even under "strong" privacy constraints ($\epsilon=2$), the PH-FSGD algorithm successfully recovered the underlying functional shapes of the data as the sample size increased, effectively "averaging out" the privacy noise.

Limitations and Future Work

While highly effective, the current implementation relies on grid discretization, which suffers from the curse of dimensionality in high-dimensional settings ($d \ge 3$). The authors suggest additive kernel models as a potential fix. Additionally, future work could explore alternative privacy mechanisms (like Laplace or Exponential) and extend the theory to handle non-IID data with concept drift.

Summary updated

BibTeX
@inproceedings{gu2025online,
  author = {Chenfei Gu and Qiangqiang Zhang and Ting Li and Jinhan Xie and Niansheng Tang},
  title = {{Online robust locally differentially private learning for nonparametric regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=prm9Y3jM0R},
}
Figure