Privacy-Preserving Feature Selection with Secure Multiparty Computation

Xiling Li, Rafael Dowsley, Martine De Cock

Abstract

Existing work on privacy-preserving machine learning with Secure Multiparty Computation (MPC) is almost exclusively focused on model training and on inference with trained models, thereby overlooking the important data pre-processing stage. In this work, we propose the first MPC based protocol for private feature selection based on the filter method, which is independent of model training, and can be used in combination with any MPC protocol to rank features. We propose an efficient feature scoring protocol based on Gini impurity to this end. To demonstrate the feasibility of our approach for practical data science, we perform experiments with the proposed MPC protocols for feature selection in a commonly used machine-learning-as-a-service configuration where computations are outsourced to multiple servers, with semi-honest and with malicious adversaries. Regarding effectiveness, we show that secure feature selection with the proposed protocols improves the accuracy of classifiers on a variety of real-world data sets, without leaking information about the feature values or even which features were selected. Regarding efficiency, we document runtimes ranging from several seconds to an hour for our protocols to finish, depending on the size of the data set and the security settings.

In the field of Privacy-Preserving Machine Learning (PPML), significant progress has been made in training models on data that remains hidden from the model builder. Using Secure Multiparty Computation (MPC), organizations can collaborate to train a model without ever revealing their raw records to one another. However, a glaring gap remains: data scientists typically spend up to 80% of their time on data preparation—cleaning, wrangling, and selecting features—yet almost all PPML research focuses solely on the training and inference phases.

If raw data must be leaked just to decide which columns are worth keeping, the privacy of the subsequent training phase is effectively compromised. This research addresses this gap by introducing the first MPC-based protocol for private feature selection, ensuring the entire pipeline remains secure.

The Challenge of Feature Selection in MPC

Feature selection is the process of picking a subset of relevant features (columns) to use in model construction, which is vital for improving accuracy and reducing computational load. In a "Machine Learning as a Service" (MLaaS) setup, multiple data owners outsource their encrypted data to a set of servers to perform this selection.

Standard feature selection methods often require sorting data to find optimal split points for scores like Gini impurity. In the world of MPC, sorting is notoriously expensive, requiring massive communication between servers. Consequently, most existing PPML work assumes data is already "clean" and "pre-selected," which does not reflect real-world data science workflows.

Proposed Methodology

The framework utilizes MPC in 3-party (3PC) and 4-party (4PC) configurations. In these setups, data is "secret-shared" across servers; no single server can see the actual values, but they can mathematically operate on the shares to produce a result.

Workflow of the proposed privacy-preserving feature selection and training pipeline.

The core innovations include:

  1. MS-GINI (Mean-Split Gini): Instead of sorting every feature value to find the best split point, the protocol uses the mean of the feature values as a threshold. This drastically reduces the number of secure comparisons needed while providing feature rankings that are statistically on par with more complex methods like Pearson Correlation or Mutual Information.
  2. $\pi_{FILTER-FS}$ Protocol: This "filter-based" selection protocol ranks features based on their MS-GINI score. Crucially, this protocol is oblivious—the servers performing the computation do not learn which features were the "winners." They simply output a reduced data matrix ready for training.
  3. Security Models: The protocol was tested against both "semi-honest" adversaries (who follow rules but try to learn extra info) and "malicious" adversaries (who might actively deviate from the protocol).

Experimental Evaluation

The protocols were evaluated on three real-world binary classification datasets: Cognitive Load Detection (CogLoad), Lee Silverman Voice Treatment (LSVT), and Speed Dating (SPEED).

Accuracy and runtime results for different datasets and security configurations.

Key Results

  • Accuracy Improvements: Feature selection using MS-GINI improved classifier accuracy compared to using raw, unselected data. For example, on the LSVT dataset, accuracy increased from approximately 80.09% (raw) to 86.15% (MS-GINI).
  • Computational Efficiency: For the CogLoad dataset (632 rows, 120 features), the protocol finished in 50 seconds in a passive 3PC setting. Even for the largest dataset, SPEED (8,378 rows), the protocol completed in about 15 minutes (949 seconds) under passive 3PC.
  • 4PC Speedup: The research highlights that moving from 3 servers to 4 (4PC) can make malicious-security protocols faster. By adding a fourth server, more efficient "honest majority" protocols can be used to mitigate the overhead of defending against active attackers.

Conclusion and Future Work

This work demonstrates that privacy-preserving pre-processing is feasible for mid-sized datasets without sacrificing accuracy or leaking feature identities. However, several areas for further exploration remain. The current protocol requires a pre-specified number of features ($k$), which is typically found via trial and error in non-private settings. Future work is also needed to address other "janitor work" tasks, such as private outlier detection and handling missing values, as well as further optimizations to scale these methods to high-dimensional big data.

Summary updated

BibTeX
@inproceedings{li2021privacy,
  author = {Xiling Li and Rafael Dowsley and Martine De Cock},
  title = {{Privacy-Preserving Feature Selection with Secure Multiparty Computation}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure