TL;DR
This paper introduces a privacy-preserving machine learning solution that allows multiple institutions to collaboratively train models on sensitive genomic data without sharing raw information. By implementing the state-of-the-art ABY3 cryptographic protocol within the TensorFlow-backed TF Encrypted framework, the authors achieved near-cleartext accuracy and up to a 1.8× speedup over native C++ implementations for large-scale data, winning first place in the iDASH 2019 secure genome analysis competition.
What Problem Does This Paper Address?
Genomic data holds immense potential for training machine learning (ML) models to identify and classify diseases. However, this data is highly sensitive and typically distributed across siloed stakeholders like hospitals, universities, and healthcare companies.
Secure Multi-party Computation (MPC) offers a way forward, allowing multiple parties to jointly compute a function over their private inputs while keeping those inputs secret. While MPC protocols like ABY3 exist for machine learning, practical deployment faces significant hurdles:
- Lack of scalable implementations: Existing MPC frameworks often lack the graph-level optimizations common in modern ML libraries.
- Real-world ML challenges: Genomic datasets are frequently small, high-dimensional (thousands of features vs. dozens of samples), and heavily class-imbalanced. Standard techniques to handle imbalance, such as data resampling, are incredibly difficult to perform when data labels must remain private.
Methods
The authors address these challenges by integrating the ABY3 protocol (a 3-party semi-honest MPC model) directly into TF Encrypted (TFE), an open-source privacy-preserving layer built on top of TensorFlow.
They introduce two key MPC-friendly machine learning primitives:
- Private Class Weight Adjustment: To handle imbalanced data without exposing private labels, the authors avoid resampling. Instead, they mathematically inject class weights directly into the loss function gradient. Because the labels ($y_i$) are private, the weight $C_{y_i}$ is computed securely via the linear combination: $$C_{y_i} = (C_1 - C_0) \cdot y_i + C_0$$
- Parallel 5-Piece Sigmoid Approximation: Exponential functions are notoriously expensive in MPC. While the original ABY3 protocol uses a crude 3-piece linear approximation for the sigmoid function, it suffers from poor accuracy. The authors designed a more precise 5-piece approximation function.
Datasets
The solution was evaluated on two real-world genomic datasets provided by the iDASH 2019 competition:
- GSE2034: A breast cancer dataset containing 142 positive and 83 negative tumor samples, with 12,634 features each.
- BC-TCGA: Another breast cancer dataset containing 422 positive and 48 negative tumor samples, with 17,814 features each.
To prevent severe overfitting due to the massive feature-to-sample ratio, the authors leveraged domain-specific bioinformatics knowledge (specifically the 76-gene "Rotterdam Signature") to filter down the feature space before training.
Key Insights and Ideas
- The "Free" Complexity of WAN Parallelism: In a Wide Area Network (WAN), network latency dominates training time. Because TensorFlow automatically parallelizes independent operations, evaluating a 5-piece polynomial approximation takes the exact same amount of network round-trips as a simpler 3-piece approximation. This allows for a massive boost in model accuracy with zero observable time penalty in real-world network conditions.
- Graph Frameworks Outperform Native C++ at Scale: While custom C++ implementations are faster for small datasets due to lower overhead, a graph-based framework like TensorFlow shines as feature sizes grow. TensorFlow’s internal optimizations, automatic parallel processing, and faster matrix multiplications allowed the TFE ABY3 implementation to outpace native C++ code on large-scale data.
Key Results
Training Speed
When compared against the original C++ implementation of ABY3 (Rindal, 2019), the TensorFlow-backed implementation was 1.1× to 1.8× faster for large-scale data (16,384 features).
Model Accuracy
The 5-piece sigmoid approximation drastically outperformed the standard ABY3 3-piece variant, boosting balanced accuracy on the GSE2034 dataset from an unsatisfactory ~58-65% up to ~67-69%, effectively matching the performance of cleartext training.
Ultimately, this solution tied for first place in Track IV of the iDASH 2019 competition, delivering the highest accuracy and the second-fastest training speed among nine international teams.
Limitations and Future Work
Despite its success, the authors note a few limitations:
- Small-scale Overhead: For small feature sizes, the overhead introduced by the TensorFlow C++ wrappers makes the framework 1.5× to 1.8× slower than pure C++.
- Garbled Circuits Inefficiency: The authors found Yao's Garbled Circuits (Yao sharing) to be highly inefficient within TensorFlow, leading them to omit Y-shares from this implementation. Optimizing or integrating this technique remains a task for future work.
Summary updated