SecureFedYJ: a safe feature Gaussianization protocol for Federated Learning

Tanguy Marchand, Boris Muzellec, Constance Béguier, Jean Du Terrail, Mathieu Andreux

Introduction

Data normalization is a critical preprocessing step for machine learning. However, applying non-linear transformations across distributed datasets in Federated Learning (FL) is notoriously difficult due to strict privacy constraints. In cross-silo FL—such as multiple hospitals collaborating to train a medical model—data cannot be centralized. Because real-world data is often highly non-Gaussian and heterogeneous across different clients, practitioners typically rely on non-linear feature Gaussianization techniques like the Yeo-Johnson (YJ) transformation to achieve optimal model performance.

Yeo-Johnson transformation applied to non-Gaussian data

The challenge arises because data distributions vary across clients. You cannot simply fit the YJ parameters on one client's local data and apply them globally; the parameters must be fit on the global dataset. Naively doing this requires sharing summary statistics at every optimization step, which leaks sensitive information about the underlying data distributions.

To solve this, researchers have introduced SecureFedYJ, a Secure Multiparty Computation (SMC) protocol that perfectly normalizes distributed data without leaking private client information.

Methods: A Three-Part Solution

The paper tackles the challenge of computing a globally accurate YJ transformation across isolated data silos through a three-step methodological breakthrough:

  1. Mathematical Proof of Convexity: The authors prove for the first time that the negative log-likelihood of the YJ transformation is strictly convex. This foundational theoretical result drastically simplifies how the transformation can be optimized.
  2. The EXPYJ Algorithm: Standard implementations of YJ (such as those in scikit-learn) use Brent minimization, which can suffer from numerical instability and division-by-zero errors. Leveraging their convexity proof, the authors propose EXPYJ, an exponential search method. By finding bounds and then performing a binary search, EXPYJ only relies on the sign of the derivative rather than complex second-order calculations.
  3. SecureFedYJ: Finally, the authors adapt EXPYJ for the federated setting using SMC. Instead of sharing raw data, clients compute local sums of intermediate values. SMC protocols (specifically Shamir Secret Sharing) securely aggregate these sums to determine the global sign of the derivative at each search step. The search bounds are updated globally, and only the final fitted parameters ($\lambda, \mu, \sigma^2$) are revealed to the server.

Key Insights

  • Convexity Unlocks Secure FL: Proving the YJ negative log-likelihood is convex is the core breakthrough. It means optimization doesn't require complex, hard-to-secure methods; a simple binary search based on the derivative's sign is sufficient.
  • SMC Compatibility: Complex math in SMC is computationally expensive. Because EXPYJ only needs to compute the sign of a derivative (cleverly reformulated to avoid division), it is incredibly friendly to SMC. Summing local values and checking a sign is highly efficient.
  • Pooled-Equivalence: SecureFedYJ is mathematically guaranteed to yield the exact same transformation parameters as if all the data were pooled on a single server. It is completely immune to data heterogeneity across clients.
  • Zero Intermediate Leakage: The protocol is designed so that the intermediate steps of the binary search reveal absolutely nothing about the data that isn't already inferable from the final, public YJ parameters.

Key Results

The researchers evaluated SecureFedYJ across real-world genomic data (TCGA), synthetic datasets, and 108 standard ML features.

Superior Numerical Stability On the 108 tested features, EXPYJ matched the accuracy of scikit-learn (relative difference $< 10^{-6}$ at 40 iterations). More importantly, it successfully optimized features where scikit-learn's Brent minimization crashed by collapsing data points to zero.

Comparison of EXPYJ and Brent minimization on the negative log-likelihood curve

Practical Communication Costs Running SecureFedYJ for 40 iterations takes about 726 communication rounds. In a standard cross-silo network (1 Gbps bandwidth, 20ms latency), this requires only ~15 seconds of overhead for $p$ features, making it highly viable for real-world use.

Improved Downstream Performance In TCGA survival analysis experiments (using a Cox Proportional Hazards model), YJ preprocessing consistently matched or outperformed standard log-normalization and whitening, yielding higher Concordance indices (C-index) with lower variance.

Limitations and Future Work

While SecureFedYJ is a significant step forward, the authors note a few limitations:

  • Linear vs. Super-linear Convergence: Because EXPYJ relies on exponential/binary search, it has linear convergence, whereas Brent minimization has super-linear convergence. If communication costs between silos are exceptionally high, the number of rounds required could become a bottleneck. Future work may explore SMC adaptations of Brent or second-order methods.
  • Not Differentially Private (DP): While intermediate steps leak no data, the final fitted parameters themselves might leak information about individual samples. Adding Laplacian or Gaussian noise could make the algorithm DP, but the impact on accuracy remains an open question.
  • Honest-but-Curious Assumption: The protocol assumes participants follow the rules and only try to passively infer data. It does not protect against malicious clients who intentionally feed garbage data to poison the model.

Summary updated

BibTeX
@inproceedings{marchand2022securefedyj,
  author = {Tanguy Marchand and Boris Muzellec and Constance Béguier and Jean Du Terrail and Mathieu Andreux},
  title = {{SecureFedYJ: a safe feature Gaussianization protocol for Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=25XIE30VHZE},
}
Figure