Secure Federated Correlation Test and Entropy Estimation

Qi Pang, Lun Wang, Shuai Wang, Wenting Zheng, Dawn SongICML 2023

Introduction

This paper introduces FED-$\chi^2$ and FED-H, the first frameworks capable of securely computing non-linear statistics—specifically correlation tests and entropy—in a federated learning setting. By cleverly recasting these calculations as frequency moment estimations and using stable random projections, the protocols allow clients to collaboratively compute complex statistics using standard Secure Aggregation without ever exposing their sensitive joint data distributions.

The Challenge: Non-Linear Statistics in Federated Learning

Imagine a medical research company wants to study the correlation between specific genetic defects and patient race across multiple hospitals. Due to privacy regulations, hospitals cannot simply send their raw patient data to a central server.

The standard privacy-preserving approach is to use Secure Aggregation (SecAgg), a cryptographic technique that allows a server to compute the sum of clients' data without seeing the individual inputs. However, SecAgg has a major limitation: it only supports linear aggregation (simple addition).

Statistical tools like Pearson's $\chi^2$ correlation test and Shannon's Entropy require non-linear calculations (like summed $p$-th moments and logarithms). The naive workaround is to use SecAgg to sum up local "contingency tables" (frequency counts of variables) into a global table, and then run the math. But doing this leaks the joint distribution (the global table itself) to the server, which can still reveal highly sensitive correlations. This paper tackles the challenge of computing these non-linear statistics securely, revealing only the final test result and nothing else.

Methodology: Bridging the Divide

To bridge the gap between linear Secure Aggregation and non-linear statistics, the authors introduce a novel mathematical pipeline:

  1. Recasting the Math: The authors reformat the $\chi^2$ statistic and Shannon's Entropy into frequency moment estimation problems.
  2. Stable Random Projections: Instead of sending raw contingency tables, clients collaboratively generate a shared projection matrix. They use this matrix to compress their local data into a low-dimensional vector (an "encoding").
  3. Linear Aggregation: Because of the unique mathematical properties of stable distributions, these encoded vectors can be linearly added together. This is the crucial step that makes the data compatible with standard Secure Aggregation.
  4. Decoding: The server receives the securely summed global vector and uses a geometric mean estimator to decode it. This approximates the frequency moments, yielding the final correlation or entropy statistic.

This approach yields massive communication savings. In traditional federated statistics, clients upload full contingency tables of size $m$. In FED-$\chi^2$, clients only upload a tiny encoded vector of size $\ell$ (where $\ell \ll m$). This reduces the communication bottleneck by a factor of $O(m)$. Furthermore, even in a worst-case scenario where the server colludes with a malicious client to steal the projection matrix, the underlying joint distribution remains hidden within an exponentially large space of possible solutions.

Experimental Setup

The authors evaluated their frameworks on a mix of synthetic and real-world datasets:

  • Synthetic Datasets: Four datasets generated to test independent, linearly correlated, quadratically correlated, and logistically correlated variables.
  • Real-World Datasets: Sixteen datasets primarily sourced from the UCI Machine Learning Repository and Kaggle, including Adult Income, Credit Risk Classification, German Traffic Sign, Mushroom, and Lymphography.
  • Reuters-21578: A standard text categorization dataset used specifically to test the framework's utility in a real-world feature selection task.

Key Results and Performance

The proposed frameworks demonstrate high accuracy, efficiency, and robustness across various conditions.

Performance of FED-$\chi^2$ across different datasets and dropout rates.
  • High Accuracy: As shown in the performance evaluations, with a small encoding size of just $\ell=50$, FED-$\chi^2$ achieves a low multiplicative error ($\approx 0.2$). Because $\chi^2$ values are typically far from the decision threshold, this small error rarely flips the final $p$-value decision, maintaining high statistical power.
  • Robustness to Dropouts: The protocol is highly resilient to client disconnections. The evaluations demonstrate that even with client dropouts (illustrated with 5% dropout rates in the figures, and tested up to 20%), the framework maintains comparable accuracy and statistical power.
  • Real-World Utility: When used for federated feature selection on the Reuters dataset, FED-$\chi^2$ selected the exact same top features as a centralized, non-private $\chi^2$ test 95.03% of the time.
  • Blazing Fast Client Computation: The client-side encoding process is incredibly lightweight. Tested on a standard Android smartphone, encoding a $500 \times 500$ contingency table took less than 30 milliseconds.
  • Efficient Entropy Estimation: The FED-H protocol successfully estimated Shannon's Entropy with just a 4.5% error rate (using $\ell=10000$) while saving 90% of the communication cost compared to sending full tables.

Limitations and Future Work

While the framework provides strong privacy against an "honest-but-curious" server, the authors acknowledge a few theoretical vulnerabilities. If the server colludes with a client, it could extract a linear equation system of the encodings. Furthermore, if an attacker has significant prior knowledge of the clients' data, inference attacks on the aggregated encodings might be possible.

To address this, the authors suggest that future work should focus on integrating Differential Privacy (DP) techniques into the framework. By adding calibrated discrete Gaussian noise to the users' local updates before projection, the system could provide mathematically guaranteed privacy bounds against prior-knowledge inference attacks.

Summary updated

BibTeX
@inproceedings{pang2023secure,
  author = {Qi Pang and Lun Wang and Shuai Wang and Wenting Zheng and Dawn Song},
  title = {{Secure Federated Correlation Test and Entropy Estimation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=ICk7GJ1awE},
}
Figure