NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Privacy-preserving logistic regression with secret sharing

Ali Reza Ghavamipour, Fatih Turkmen, Xiaoqian JiangBMC Medical Informatics Decis. Mak 2022

TL;DR

This paper introduces two novel privacy-preserving algorithms for training logistic regression models using secret sharing and multi-party computation (MPC). These methods allow multiple data holders to collaboratively train a model without revealing their sensitive individual data, achieving high accuracy and efficiency, even with large datasets.

What Problem Does This Paper Address?

In fields like medical research, combining data from various institutions is crucial for boosting statistical power and improving machine learning model performance. However, sharing sensitive patient data across different custodians and jurisdictions raises significant privacy concerns due to institutional policies and legal restrictions. This paper tackles the challenge of enabling collaborative logistic regression model training while strictly preserving the privacy of the individual data contributors. The focus is on horizontally partitioned data, where each institution has the same variables but different records.

Methods

The core of this work lies in developing two privacy-preserving protocols for logistic regression using the Newton-Raphson optimization method. These protocols are built upon secure Multi-Party Computation (MPC) techniques, specifically secret sharing, and are designed to work under two distinct security assumptions:

  • Honest Majority: In this setting, the majority of computation parties are assumed to be honest and follow the protocol. The paper proposes a three-party protocol for this scenario, leveraging a classical approach for secure multiplication.
  • Dishonest Majority: Here, adversaries might control a majority of computation parties. The paper uses the more efficient Beaver triples technique for secure multiplication in this two-party setting.

Key algorithmic components include:

  • Secret Sharing: Data is split into shares distributed among computation parties, allowing operations on the data without revealing individual shares. The paper uses an n-out-of-n additive secret sharing scheme.
  • Secure Addition and Multiplication: Protocols for performing these fundamental operations on secret-shared data are adapted for both honest and dishonest majority settings.
  • Matrix Inversion: To implement the Newton-Raphson method efficiently, the paper employs an approximation technique that converts matrix inversion into an iterative process of matrix multiplication and addition.
  • Sigmoid Function Approximation: For efficiency, especially in the approximation-based algorithm, the paper utilizes least-squares polynomial approximations of the sigmoid function.
  • Fixed Hessian Matrix: To further optimize the iterative process, the Hessian matrix is approximated by a fixed matrix, avoiding recomputation in each iteration.

The paper presents two algorithms: "Accurate Logistic Regression Training" (Algorithm 1) which prioritizes accuracy with minimal approximations, and "Approximation-based Logistic Regression Training" (Algorithm 2) which focuses on efficiency by employing more approximations.

Datasets

The authors evaluated their proposed protocols using both synthetic and real-world datasets:

  • Real-world datasets:
    • Pima Indians Diabetes Dataset (PIMA)
    • Low Birth Weight Study (LBW)
    • Prostate Cancer Study (PCS)
    • Umaru Impact Study datasets (UIS)
  • Synthetic datasets: These were generated with varying sizes, up to 1 million records and 3000 features, to simulate large-scale studies.

Key Insights and Ideas

  • Balancing Accuracy and Efficiency: The paper demonstrates that it's possible to achieve a good balance between privacy, accuracy, and computational efficiency in distributed logistic regression. The two proposed algorithms cater to different needs, with one prioritizing accuracy and the other efficiency.
  • The Power of MPC for Sensitive Data: The work highlights how MPC, particularly with secret sharing, can unlock the potential of collaborative data analysis in privacy-sensitive domains like healthcare, enabling insights that would otherwise be inaccessible.
  • Approximation Strategies are Key for Efficiency: For large-scale problems, approximations for the sigmoid function and matrix inversion are crucial for making the MPC-based logistic regression computationally feasible.
  • Honest vs. Dishonest Majority Trade-offs: The choice of security setting (honest vs. dishonest majority) significantly impacts the efficiency of the protocols, with the dishonest majority setting generally offering better performance due to techniques like Beaver triples.

Key Results

  • Efficiency:
    • The proposed protocols (Accurate BMPC and Accurate CMPC) are significantly faster than Ordinary Logistic Regression (OLR) as the number of records increases. For example, training on 50,000 records and 500 features took less than 15 seconds with Accurate BMPC, compared to 70 seconds for OLR.
  • The approximation-based algorithm (BMPC and CMPC) showed even better performance, especially when dealing with a large number of features.
  • Memory consumption was also substantially lower for the MPC-based protocols compared to OLR, with BMPC and Accurate BMPC requiring around 8 GB versus 30 GB for OLR on a large dataset.
  • Accuracy:
    • The "Accurate" versions of the protocols (Accurate BMPC and Accurate CMPC) achieved model parameters that were almost identical to those obtained by OLR.
  • The approximation-based protocols also demonstrated acceptable levels of accuracy, with variations in sigmoid approximation degrees having minimal impact on the final prediction accuracy across tested datasets.
  • Communication Cost:
    • While MPC protocols incur communication costs, the paper shows that the dishonest majority setting (using Beaver triples) has lower communication overhead than the honest majority setting.
  • For a full logistic regression protocol with 10 iterations, the communication cost was estimated to be around 420 Kb for the honest majority setting and 125 Kb for the dishonest majority setting.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the approximation-based algorithms, while efficient, might have slightly lower accuracy compared to the exact methods.
  • The study primarily focused on computation cost due to experiments being conducted on a single PC. While communication cost was discussed, a more in-depth analysis across distributed systems could be beneficial.
  • The current work focuses on binary classification.
  • Future Work:
    • The authors plan to extend their approach to support secure and efficient multi-class logistic regression.
  • Further research could explore more advanced approximation techniques or optimizations for communication efficiency in distributed settings.

Summary updated

Abstract

Logistic regression (LR) is a widely used classification method for modeling binary outcomes in many medical data classification tasks. Researchers that collect and combine datasets from various data custodians and jurisdictions can greatly benefit from the increased statistical power to support their analysis goals. However, combining data from different sources creates serious privacy concerns that need to be addressed. In this paper, we propose two privacy-preserving protocols for performing logistic regression with the Newton–Raphson method in the estimation of parameters. Our proposals are based on secure Multi-Party Computation (MPC) and tailored to the honest majority and dishonest majority security settings. The proposed protocols are evaluated against both synthetic and real-world datasets in terms of efficiency and accuracy, and a comparison is made with the ordinary logistic regression. The experimental results demonstrate that the proposed protocols are highly efficient and accurate. Our work introduces two iterative algorithms to enable the distributed training of a logistic regression model in a privacy-preserving manner. The implementation results show that our algorithms can handle large datasets from multiple sources.
BibTeX
@inproceedings{ghavamipour2022privacy,
  author = {Ali Reza Ghavamipour and Fatih Turkmen and Xiaoqian Jiang},
  title = {{Privacy-preserving logistic regression with secret sharing}},
  booktitle = {BMC Medical Informatics Decis. Mak},
  year = {2022},
  url = {https://openreview.net/forum?id=ZYGmHGF6So},
}
Figure