Privacy-preserving collaborative machine learning on genomic data using TensorFlow

Cheng Hong, Zhicong Huang, Wen-jie Lu, Hunter Qu, Li Ma, Morten Dahl, Jason Mancuso

Abstract

Genomic data is a cornerstone of personalized medicine, yet its sensitivity often leads to data siloing that hinders collaborative research. This paper presents a high-performance, privacy-preserving machine learning framework that allows multiple parties to train models on sensitive genomic data without sharing raw information. By integrating the ABY3 cryptographic protocol into the TF Encrypted (TFE) library, the authors achieved a 1.1–1.8x speedup over previous implementations and secured first place in the iDASH 2019 secure genome analysis competition.

Introduction

Genomic data presents a unique challenge: it is highly valuable for disease classification but extremely sensitive. Currently, this data is siloed across institutions due to privacy regulations and security concerns. Secure Multi-party Computation (MPC) offers a solution by allowing computation over private inputs, but it is traditionally computationally expensive and difficult to implement. Genomic datasets further complicate this with "high-dimensional, low-sample" characteristics and class imbalances, making standard encrypted machine learning prone to failure or overfitting.

Methods

The authors developed a solution combining advanced cryptography with modern machine learning engineering through the following components:

The ABY3 Protocol and TF Encrypted

The framework implements the ABY3 protocol, a 3-party "honest majority" model where data is split into secret shares across three servers. By building on TF Encrypted (TFE), the system leverages TensorFlow’s graph optimization to automatically parallelize cryptographic operations, addressing the primary bottleneck in MPC.

MPC-Friendly Primitives

To improve performance and accuracy, the authors introduced several optimizations:

  • 5-Piece Sigmoid Approximation: Standard sigmoid functions are computationally expensive in MPC due to exponential operations. The authors developed a 5-piece linear approximation that significantly improves model accuracy compared to the standard 3-piece version used in earlier work.
  • Class Weight Adjustment: To handle imbalanced genomic data, the loss function was modified to weight the minority class directly within the encrypted domain, avoiding the need for complex resampling of private data.
Comparison of the original sigmoid function with the 3-piece ABY3 approximation and the proposed 5-piece approximation.

Datasets

The framework was evaluated on two genomic datasets from the iDASH 2019 competition: GSE2034 (12,634 features, 225 samples) and BC-TCGA (17,814 features, 470 samples). These datasets exemplify the challenge of high dimensionality relative to sample size.

Results and Discussion

The implementation demonstrated significant improvements in both speed and accuracy.

Performance Gains

The TFE-ABY3 implementation was 1.1–1.8x faster than the original C++ ABY3 implementation. TensorFlow’s graph optimizations proved highly effective for MPC, managing complex networking and parallel execution automatically without requiring manual thread management.

Accuracy Improvements

The 5-piece sigmoid approximation was a critical factor in achieving high performance. It reached a balanced accuracy of approximately 70%, nearly matching "cleartext" performance, whereas the 3-piece approximation was significantly less accurate (~58-63%).

Performance comparison between the 3-piece and 5-piece sigmoid approximations in terms of training speed and accuracy.

Domain Expertise

The authors found that incorporating "gene signatures" from bioinformatics literature was more effective than automated feature selection, highlighting the continued importance of human expertise in privacy-preserving ML.

Conclusion

This work demonstrates that high-performance MPC is achievable by leveraging modern ML frameworks like TensorFlow. While the system successfully won the iDASH 2019 competition, future work remains in addressing overfitting on small datasets and integrating Differential Privacy to prevent information leakage from the final trained models.

Summary updated

BibTeX
@inproceedings{hong2020privacy,
  author = {Cheng Hong and Zhicong Huang and Wen-jie Lu and Hunter Qu and Li Ma and Morten Dahl and Jason Mancuso},
  title = {{Privacy-preserving collaborative machine learning on genomic data using TensorFlow}},
  booktitle = {ACM TUR-C},
  year = {2020},
  doi = {10.1145/3393527.3393535},
}
Figure