Powerful and Theoretically Guaranteed Independence Testing on Heterogeneous Federated Clients

Yixin Ren, Hongquan Liu, Juncai Zhang, Yewei Xia, Zichuan Lin, Deheng Ye, Hao Zhang, Jihong Guan, Shuigeng ZhouICML 2026

Introduction

Testing whether two variables are statistically independent is a cornerstone of scientific discovery. It forms the basis for identifying causal relationships, selecting features for machine learning models, and understanding complex systems. However, in the modern data landscape, information is rarely centralized. It is often siloed across different hospitals, financial institutions, or mobile devices.

Federated Independence Testing (FedIT) aims to solve this by checking for statistical relationships without ever sharing raw data. The primary hurdle in this domain is client heterogeneity. For instance, one hospital might measure age in years while another uses months; one region might exhibit a strong linear correlation between variables, while another shows a complex non-linear relationship.

To address this, researchers have introduced FedIT-CS (Federated Independence Testing with Copula Alignment and Stacking Aggregation), a new framework for testing statistical independence across siloed, heterogeneous data sources without compromising privacy. It provides the first federated independence test that is theoretically guaranteed to control false positives while remaining powerful enough to detect complex relationships in messy, real-world data.

The Challenge of Client Heterogeneity

Existing federated independence testing methods often fail under data distributional shifts across clients in two primary ways:

  1. Spurious Dependence: Differences in local data distributions can make entirely independent variables appear dependent when their summary statistics are naively pooled at the server level.
  2. Dependence Dilution: Strong local signals can effectively "cancel each other out" during aggregation. For example, a positive correlation in one client and a negative correlation in another might average to zero, leading the global model to miss a genuine underlying relationship.

Methodology: The FedIT-CS Framework

The FedIT-CS framework overcomes these challenges through a three-stage pipeline designed to amplify intra-client dependence while mitigating inter-client variation.

1. Copula-Based Marginal Alignment

The "secret sauce" of the framework is the use of copulas. A copula is a mathematical tool that separates a variable's individual distribution (its marginal) from its relationship with other variables. By transforming local data into a "copula space" (mapping everything to a uniform distribution $[0, 1]$), the method strips away local variations in scale and distribution. This acts as a universal translator, allowing the test to compare "apples to oranges" across different clients without losing the pure dependence structure.

2. Intra-Client Signal Distillation

Once the data is aligned, each client uses Random Fourier Features (RFF) to map the data into a high-dimensional space, effectively capturing complex non-linearities. Following this, Canonical Correlation Analysis (CCA) is applied to find the strongest possible "signal" of dependence locally. This distills the relationship down to a few highly informative summary statistics.

3. Stacking-Based Aggregation

Instead of naively averaging the local results—which the authors prove is mathematically equivalent to concatenating features and prone to failure under distribution shifts—the server uses a "stacking" strategy. It treats aggregation as an optimization problem, learning weights for each client to maximize the global test power. This is done either by selecting the best subset of clients (FedIT-CS-M) or using continuous optimization (FedIT-CS-ML).

4. Privacy via Homomorphic Encryption (HE)

To ensure strict privacy, the method employs additive Homomorphic Encryption. Because the distillation step reduces the data to simple summary statistics, the encryption overhead is remarkably low (approximately 4ms per client). Unlike Differential Privacy, which adds noise and can destroy the sensitivity of statistical tests, HE allows for exact computation. This is critical for hypothesis testing, where the slight difference in a p-value can mean the difference between a scientific discovery and a dead end.

Experimental Validation and Key Results

The authors evaluated FedIT-CS against several benchmarks, including synthetic scenarios designed to test specific failures (covariance, frequency, and functional shifts), the classic Sachs dataset for protein signaling networks, and an fMRI Hippocampus dataset characterized by strong temporal autocorrelation.

Key findings include:

  • Power Superiority: In synthetic tests where state-of-the-art methods achieved a test power of only ~0.3 (missing the relationship 70% of the time), FedIT-CS variants achieved powers near 1.0 (perfect detection) as sample sizes grew.
  • False Positive Control: All FedIT-CS variants strictly maintained the Type I error rate (false positives) below the target threshold (typically $\alpha = 0.05$), even in the presence of extreme heterogeneity.
  • Real-World Robustness: On the Sachs protein dataset, FedIT-CS provided significantly tighter error control and higher detection power than existing federated methods.
  • Scalability: The continuous optimization variant, FedIT-CS-ML, scales linearly with the number of clients, making it highly practical for large-scale federated networks.

Limitations and Future Directions

While FedIT-CS represents a major leap forward, the authors note a few limitations. First, to maintain theoretical validity, the method relies on sample splitting—dividing data into a "training" set to learn aggregation weights and a "testing" set for the final evaluation. This reduces the effective sample size, which can lower statistical power.

Second, the current framework focuses on marginal independence ($X \perp Y$). In complex causal discovery, researchers often require tests for conditional independence ($X \perp Y \mid Z$), which remains a crucial next step for future work. Finally, the method exhibits some hyperparameter sensitivity, particularly regarding the choice of bandwidth for the random features, which currently relies on manual tuning or simple heuristics.

Summary updated

BibTeX
@inproceedings{ren2026powerful,
  author = {Yixin Ren and Hongquan Liu and Juncai Zhang and Yewei Xia and Zichuan Lin and Deheng Ye and Hao Zhang and Jihong Guan and Shuigeng Zhou},
  title = {{Powerful and Theoretically Guaranteed Independence Testing on Heterogeneous Federated Clients}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=hH0EknXrgc},
}
Figure