Privately Clipping Heavy-Tailed Data

Matthew Joseph, Alex Kulesza

In the world of Differential Privacy (DP), summing up data vectors is a bread-and-butter operation. Whether you're building a private histogram of movie ratings or training a machine learning model via DP-SGD, you eventually need to calculate a sum. But there’s a catch: to protect individual privacy, you must limit how much any single person can influence the result. This is usually done by clipping—forcing every data vector to fit within a maximum "norm" (length) $C$.

Choosing $C$ is a classic "Goldilocks" problem. If $C$ is too small, you throw away too much data (high bias). If $C$ is too large, you have to add massive amounts of noise to maintain privacy (high variance). In a new paper, researchers Matthew Joseph and Alex Kulesza from Google Research introduce OptimizeRC, a method that uses the geometric alignment of data to find the perfect clipping bound automatically.

TL;DR

OptimizeRC is a fully differentially private algorithm that selects an optimal clipping bound by analyzing the directional alignment of "outlier" vectors—a metric the authors call residual coherence. Unlike traditional heuristics that rely on fixed quantiles, OptimizeRC adapts to the underlying geometry of heavy-tailed data, significantly reducing error across diverse real-world datasets.

What Problem Does This Paper Address?

Standard DP algorithms often assume the person running the analysis has enough domain knowledge to pick a good clipping bound $C$ without looking at the data. For example, if you're summing human heights, you know a reasonable upper bound.

However, real-world data—especially internet activity like Reddit comments or Steam play hours—is often heavy-tailed. In these datasets, a tiny minority of users might contribute vectors that are orders of magnitude larger than the average. Heuristics like "clip at the 99th percentile" fail here because the 99th percentile might be 10x or 100x larger than the 95th, and there’s no principled reason to prefer one over the other. Furthermore, in high-dimensional spaces, magnitude isn't the only thing that matters; the direction of those outliers determines whether they represent a meaningful signal or just random noise.

Methods

The authors introduce a novel metric called Residual Coherence (RC).

  • The Concept: RC measures the norm of the sum of unit directions of all vectors that exceed a candidate clipping bound $C$.
  • The Intuition: If many large vectors point in the same direction, they have high "coherence," suggesting they contain a strong signal that would be lost if clipped too aggressively. If they point in random directions, they cancel each other out, and clipping them won't hurt the final sum much.

OptimizeRC works by:

  1. Defining a sequence of candidate clipping bounds (e.g., $1, 1.001, 1.002, \dots$).
  2. Using a standard DP tool called AboveThreshold to privately check the RC at each bound.
  3. Stopping at the bound where the RC falls below a specific threshold—the point where the "bias" from clipping is roughly balanced by the "variance" of the added noise.

The key technical breakthrough is proving that RC is a low-sensitivity proxy for the bias derivative, making it much easier to estimate privately than the actual bias.

Datasets

The authors evaluated their method on 10 heavy-tailed datasets representing various internet-scale interactions:

  • User-Item Interactions: Steam (games), LastFM (music), MovieLens (movies), Pantry (Amazon items), Twitch (streams), Foursquare (venues).
  • Social/Text Data: Reddit (token usage), Hacker News (story comments), Slashdot (user tags).
  • Ratings: Jester (joke ratings).

They also tested on 4 light-tailed datasets (like US Army body measurements and NFL combine scores) to ensure the method doesn't fail when the data is "well-behaved."

Key Insights and Ideas

  • Geometry over Magnitude: The most important "aha moment" is that we shouldn't just care about how big outliers are, but where they are pointing. If outliers are well-aligned, they are "signal"; if they are poorly aligned, they are "noise."
  • The Power of Residual Coherence: RC is "effectively parameter-free." While previous methods required tuning quantiles (like 0.9 vs 0.99), OptimizeRC uses a threshold derived directly from the privacy budget and the data's dimensionality.
  • Efficiency: By using a clever pre-computation trick (Algorithm 3 in the paper), the authors show that you can calculate RC for thousands of candidate bounds in a single pass over the data, making the algorithm extremely fast.

Key Results

  • Superior Accuracy: OptimizeRC achieved the lowest error (MSE) on 6 out of 10 heavy-tailed datasets and was a close second on the other 4.
  • Robustness: On datasets where traditional quantile-based methods failed catastrophically (sometimes by a factor of 10x or more), OptimizeRC remained stable.
  • Speed: Despite being more complex than simple quantile estimation, the implementation consistently runs in under 1 second, even for datasets with hundreds of thousands of vectors.

Limitations and Future Work

The authors note a few areas for improvement:

  • Theoretical Gap: While they prove that RC works well under certain assumptions (like the "excess magnitude" of a vector being uncorrelated with its direction), these are sufficient but not necessarily required conditions.
  • DP-SGD Integration: The paper focuses on simple vector sums. Applying this to gradient clipping in Deep Learning (DP-SGD) is the "holy grail," but it's tricky because clipping in SGD affects convergence stability in ways that aren't purely about minimizing MSE.
  • Negative Data: While the method works for general vectors, the authors note that RC is most intuitive (and has lower sensitivity) for non-negative data.

For engineers and researchers tired of manually tuning clipping bounds, OptimizeRC offers a principled, automated path forward for private data analysis.

Summary updated

Abstract

Summing vectors is a basic task in differentially private data analysis. Standard private sum algorithms clip vectors to some bound, sum them, and add noise scaled to the bound. The differential privacy literature has developed a deep library of noise addition mechanisms, but it offers few tools for privately choosing a clipping bound based on the data. We introduce a method that privately chooses a clipping bound by optimizing residual coherence, the directional alignment of vectors exceeding the bound, against the variance cost of additional noise. We prove a close relationship between residual coherence and bias for a general class of heavy-tailed data regimes and show empirically that, across several datasets, our method outperforms existing baselines.
BibTeX
@inproceedings{joseph2026privately,
  author = {Matthew Joseph and Alex Kulesza},
  title = {{Privately Clipping Heavy-Tailed Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=F3Hoi9uC0q},
}
Figure