Secure Linear Regression on Vertically Partitioned Datasets

Adrià Gascón, Phillipp Schoppmann, Borja Balle, Mariana Raykova, Jack Doerner, Samee Zahur, David Evans

TL;DR

This paper introduces a highly scalable, hybrid multi-party computation (MPC) protocol for training linear regression models on vertically partitioned datasets. By combining specialized inner-product protocols with a novel Fixed-Point Conjugate Gradient Descent (FP-CGD) algorithm, the authors demonstrate the ability to solve problems with one million records and 100 features in less than an hour—a significant leap in performance for privacy-preserving machine learning.

What Problem Does This Paper Address?

In many real-world scenarios, data is "vertically partitioned": different organizations hold different attributes (features) for the same set of individuals. For example, a hospital might have medical records while a tax office holds socio-economic data. Combining these datasets could lead to much more accurate predictive models, but privacy regulations and competitive concerns often prevent raw data sharing.

While Secure Multi-Party Computation (MPC) allows parties to compute functions over private inputs without revealing them, "off-the-shelf" MPC techniques struggle to scale. Linear regression on high-dimensional data requires solving large systems of linear equations, which is computationally expensive and numerically unstable when moved from standard floating-point arithmetic to the secure, bit-level representations required by MPC.

Methods

The authors propose a two-phase hybrid protocol:

  1. Aggregation Phase: The parties compute the coefficients of the linear system (specifically $X^TX$ and $X^TY$) using specialized, efficient protocols for inner products. They offer two variants: one based on Oblivious Transfer (OT) and another supported by a Trusted Initializer (TI) who provides precomputed "triples" to speed up the process.
  2. Solving Phase: Once the aggregated (and still secret-shared) matrix is ready, the system is solved using Yao’s Garbled Circuits.

The "secret sauce" is the Fixed-Point Conjugate Gradient Descent (FP-CGD) algorithm. Standard CGD is notoriously sensitive to the precision loss inherent in fixed-point arithmetic. The authors modified the algorithm to use normalized gradients, which prevents step sizes from exploding and ensures convergence rates comparable to classical floating-point solutions.

Datasets

The system was evaluated using:

  • Synthetic Data: Used to test scalability up to 1,000,000 records and 500 features.
  • UCI Machine Learning Repository: Nine real-world datasets, including Student Performance, Communities and Crime, Blog Feedback, and Year Prediction MSD. These ranged from a few hundred to over four million records and up to 384 features.

Key Insights and Ideas

  • The Stability of Normalization: The most significant "aha" moment is that normalizing search directions in CGD makes the algorithm robust enough for fixed-point MPC. Without this, the residual errors in secure computation quickly lead to numerical instability.
  • Hybrid is Better: By splitting the task into aggregation ($O(nd^2)$) and solving ($O(d^3)$ or $O(Td^2)$), the authors could use the most efficient cryptographic tool for each sub-task rather than forcing a "one-size-fits-all" MPC approach.
  • Scaling with Dimensions: For high-dimensional data ($d > 100$), iterative solvers like FP-CGD significantly outperform exact solvers like Cholesky decomposition in an MPC setting, both in terms of speed and circuit size.
  • Data Pre-processing Matters: The paper emphasizes that local data standardization (zero mean, unit variance) and scaling by $1/\sqrt{d}$ are critical for preventing overflows in fixed-point arithmetic during the secure aggregation phase.

Key Results

  • Scalability: The protocol handled a dataset with 1 million records and 100 features in approximately 45 minutes (using the TI-based aggregation).
  • Accuracy: The models produced by the privacy-preserving system achieved Root Mean Square Error (RMSE) values nearly identical to those of "optimal" non-private models using 64-bit floating-point math.
  • Efficiency vs. Cholesky: For a 500-dimensional system, Cholesky decomposition took over 24 hours to solve, whereas FP-CGD (with 15 iterations) finished in less than 4.5 hours.
  • Communication: The OT-based aggregation phase scales well with the number of parties, as many operations can be performed in parallel.

Limitations and Future Work

  • Semi-Honest Model: The core protocol assumes parties follow the rules (semi-honest). While the authors provide a "verification phase" to check the solver's output against malicious behavior, the aggregation phase remains primarily semi-honest.
  • Hyperparameter Tuning: The regularization parameter $\lambda$ is assumed to be public or pre-decided. Automating privacy-preserving hyperparameter selection (e.g., via cross-validation) would require running the protocol multiple times, which adds overhead.
  • Fixed-Point Constraints: While FP-CGD is stable, very large datasets with high dimensionality still risk precision issues if the bit-width isn't carefully chosen, as seen in the largest UCI dataset tested.
  • Future Directions: The authors suggest extending these techniques to non-linear problems via Kernel Ridge Regression, which would involve securely evaluating kernel functions.

Summary updated

BibTeX
@article{gascon2016secure,
  author = {Adrià Gascón and Phillipp Schoppmann and Borja Balle and Mariana Raykova and Jack Doerner and Samee Zahur and David Evans},
  title = {{Secure Linear Regression on Vertically Partitioned Datasets}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2016},
  url = {https://openreview.net/forum?id=dU33v_YkCDi},
}
Figure