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

Differentially Private Heatmaps

Badih Ghazi, Junfeng He, Kai Kohlhoff, Ravi Kumar, Pasin Manurangsi, Vidhya Navalpakkam, Nachiappan Valliappan

Abstract

This paper introduces a novel differentially private (DP) algorithm for generating heatmaps from aggregated user data. By framing the problem as sparse aggregation under the Earth Mover's Distance (EMD) metric, the authors overcome the resolution-dependent noise limitations of standard DP methods. The approach utilizes a hierarchical pyramidal transform with level-dependent Laplace noise to achieve near-optimal theoretical error bounds. Empirical evaluations on real-world location datasets demonstrate that this method significantly outperforms existing baselines in both quantitative metrics and visual fidelity.

Introduction

Heatmaps are essential for visualizing aggregated 2D data in fields ranging from spatial analysis to bioinformatics. However, the underlying data—such as location check-ins—is often sensitive. Protecting this data using Differential Privacy (DP) is traditionally difficult because standard aggregation methods add noise to every grid bin. In high-resolution grids with sparse data, this noise frequently overwhelms the signal, rendering the visualization useless.

The authors address this by shifting the optimization target to Earth Mover's Distance (EMD). Unlike $\ell_1$ distance or KL-divergence, EMD accounts for the spatial proximity of bins, making it a more robust metric for geographic and visual data. The core research question focuses on how to privately aggregate sparse input vectors to produce a heatmap that minimizes EMD error.

Methodology

The proposed algorithm adapts compressed sensing frameworks for privacy-preserving aggregation through three key steps:

  1. Pyramidal Transform: The 2D space is hierarchically partitioned into a quad-tree-like structure. This allows the algorithm to measure data density at multiple levels of granularity simultaneously.
  2. Level-Dependent Laplace Noise: To satisfy $\varepsilon$-Differential Privacy, Laplace noise is added to the measurements. Crucially, the noise magnitude is not uniform; it is carefully scaled based on the hierarchy level to eliminate the logarithmic error penalties common in standard hierarchical DP algorithms.
  3. Reconstruction: The final heatmap is reconstructed from noisy, multi-resolution measurements. The process involves a tree-based recovery for an initial $\ell_1$ solution, followed by a linear program to optimize the final output for EMD.

Experimental Evaluation

The algorithm was evaluated using the Gowalla and Brightkite location datasets from the SNAP repository, focusing on high-density urban areas. The performance was compared against a standard Laplace baseline and a thresholded Laplace baseline across several metrics.

Quantitative Results

As shown in the performance plots, the proposed method consistently outperforms baselines across all tested privacy budgets ($\varepsilon$). Notably, while baseline performance degrades as grid resolution increases, the utility of the proposed algorithm remains nearly constant, demonstrating its robustness for high-resolution applications.

Quantitative comparison of the proposed method against baselines across Similarity, Pearson Correlation, KL Divergence, and Earth Mover Distance.

Qualitative Comparison

Visual inspection of the generated heatmaps confirms the quantitative findings. While standard DP baselines either produce excessive noise or lose significant spatial detail through thresholding, the proposed method (Quad + LAD) maintains a high degree of structural similarity to the ground truth.

Qualitative comparison of heatmap reconstruction. The proposed method (right) preserves spatial structure much more effectively than standard baselines.

Key Insights and Conclusion

The primary contribution of this work is the realization that optimizing for EMD allows the theoretical error to depend on data sparsity ($k$) rather than total grid resolution. By carefully calibrating noise across a hierarchical transform, the authors achieved an EMD error bound of $O_\varepsilon(\sqrt{k}/n)$, which they proved to be asymptotically optimal.

While the current algorithm is designed for the central DP model, future work could explore extending these EMD-optimized techniques to the local DP model, where data is noised on individual devices before aggregation.

Summary updated

BibTeX
@inproceedings{ghazi2023differentially,
  author = {Badih Ghazi and Junfeng He and Kai Kohlhoff and Ravi Kumar and Pasin Manurangsi and Vidhya Navalpakkam and Nachiappan Valliappan},
  title = {{Differentially Private Heatmaps}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i6.25933},
}
Figure