Federated Heavy Hitter Recovery under Linear Sketching

Adrià Gascón, Peter Kairouz, Ziteng Sun, Ananda Theertha Suresh · DOI

Abstract

Federated Heavy Hitter (HH) recovery is a critical task in privacy-preserving analytics, where a central server identifies frequent items across a distributed user base without accessing individual data. This paper establishes the fundamental communication-accuracy tradeoffs for this task under the constraint of linear sketching, a requirement for compatibility with secure aggregation protocols. We prove that a framework combining Invertible Bloom Lookup Tables (IBLTs) with local threshold subsampling is information-theoretically optimal. Empirically, our approach achieves a 10x communication improvement over standard sketching methods in multi-round scenarios and demonstrates superior robustness to error accumulation.

Introduction

In federated analytics, the goal is to learn global statistics—such as popular search queries or frequent system errors—while maintaining user privacy. Secure aggregation is a common defense, ensuring the server only observes the aggregate sum of user data. This requirement imposes a "linear sketching" constraint: any local data summary must be linear so that the sum of summaries equals the summary of the sums.

While heavy hitter discovery is well-understood in centralized streaming contexts, the federated multi-round setting introduces significant complexities. This paper investigates how the number of communication rounds ($R$) and the linearity constraint impact the minimum data upload required per user to maintain high accuracy.

Methodology

The authors propose a novel framework that moves beyond traditional frequency oracles like Count-Min or Count-Sketch, which are shown to be sub-optimal in multi-round federated settings.

Invertible Bloom Lookup Tables (IBLTs)

Unlike standard Bloom filters, IBLTs allow for the recovery of both keys and their exact counts from an aggregate summary. This "peeling" process is successful provided the number of unique items in the aggregate does not exceed the table's capacity.

Local Threshold Subsampling

To prevent IBLT overflow, users perform local subsampling. By retaining frequent items and discarding "light" items with high probability, the aggregate IBLT is kept sparse, containing only the heavy hitters of interest.

Adaptive Tuning

The framework includes an adaptive algorithm that allows the server to estimate data sparsity from previous rounds and adjust the subsampling threshold dynamically. This feedback loop optimizes communication efficiency in real-time.

Theoretical Insights

A key contribution of this work is the formalization of the "Linearity Tax"—the inherent increase in communication cost necessitated by the linear sketching constraint. The authors prove that the cost per user must scale linearly with the number of users in a single round ($n$).

Furthermore, the research reveals a fundamental theoretical separation between Heavy Hitter Recovery (finding the top items) and Approximate Histogram Estimation (estimating the frequency of all items).

Communication complexity bounds for Heavy Hitter recovery versus Histogram estimation.

As shown in the table above, the communication cost for histograms grows by a factor of $\sqrt{R}$ over multiple rounds, whereas the cost for heavy hitter recovery only grows by $\log(R)$. This distinction highlights why specialized algorithms for HH recovery are necessary for efficiency.

Experimental Evaluation

The proposed methods were evaluated using the StackOverflow dataset from Tensorflow Federated. Strings were truncated to create a realistic universe of approximately 97,000 values.

Key Results

  • 10x Efficiency Gain: The subsampled IBLT approach achieved an F1 score of 0.8 with ten times less communication than the Count-Sketch baseline.
  • Robustness to Rounds: While Count-Sketch performance degrades as the number of rounds ($R$) increases due to error accumulation, the IBLT-based method maintains stable performance, making it ideal for long-term federated analytics.
  • Optimality: The authors provide lower bounds proving that no interactive linear sketching protocol can surpass the complexity of their proposed method.

Conclusion

This work establishes a new state-of-the-art for federated heavy hitter recovery. Future research directions include integrating formal Differential Privacy (DP) guarantees into the IBLT framework and exploring non-linear cryptographic primitives that might bypass the "linearity tax" to achieve sublinear communication costs.

Summary updated

BibTeX
@inproceedings{gascon2023federated,
  author = {Adrià Gascón and Peter Kairouz and Ziteng Sun and Ananda Theertha Suresh},
  title = {{Federated Heavy Hitter Recovery under Linear Sketching}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=zN4oRCrlnM},
}
Figure