TL;DR
This paper introduces Citadel, a novel system for collaborative machine learning that simultaneously protects both the privacy of training data and the confidentiality of the trained model. It achieves this by leveraging Intel SGX enclaves and a unique separation of data and model handling code, enabling secure and scalable collaboration for organizations with data but limited ML expertise.
What Problem Does This Paper Address?
In today's data-rich world, many organizations possess valuable data but lack the machine learning (ML) expertise to build sophisticated models. Conversely, ML experts often need diverse datasets to train high-quality, generalizable models. Collaborative learning offers a solution, allowing data owners to pool their data and model owners to leverage it. However, this collaboration faces a critical dilemma: data owners need to protect their sensitive data from being exposed, while model owners must safeguard their proprietary models and training methodologies as intellectual property. Existing solutions like federated learning and split learning fail to address both privacy concerns simultaneously, either compromising model confidentiality or not being suitable for untrusted infrastructure.
Methods
Citadel tackles this challenge by employing a multi-enclave architecture within Intel SGX, a trusted execution environment. The core innovation lies in separating the ML training process into two distinct parts:
- Data Handling Code: This part, responsible for tasks like computing gradient updates, is made open-source and shared with data owners for verification, building trust.
- Model Handling Code: This part, which deals with the global model updates and training parameters, remains private to the model owner and runs in a separate aggregator enclave.
To prevent leakage between these parts and protect data privacy, Citadel introduces two key mechanisms:
- Zero-Sum Masking: This technique, inspired by secure aggregation, involves generating masks that are applied to individual data owner updates before they reach the aggregator. These masks cancel each other out during aggregation, ensuring the final model update is correct while obscuring individual contributions.
- Hierarchical Aggregation: To address the scalability bottleneck of all-to-one communication in zero-sum masking, Citadel implements a tree-structured aggregation process. This breaks down the aggregation into smaller, hierarchical steps, reducing communication overhead and improving performance for large-scale deployments.
Citadel also utilizes a Configuration and Attestation Service (CAS) for simplified attestation and secret management, and relies on SCONE for SGX-enabled Linux containers.
Datasets
The paper evaluates Citadel using four benchmark ML models:
- AlexNetS and AlexNetL: Used for a Retinopathy diabetes diagnosis model, with input images scaled to 32x32x3 and 96x96x3 respectively.
- SpamNet: A spam filtering model utilizing an LSTM network, trained on SMS messages.
- MNIST: A 12-layer CNN handwriting recognition model trained on the MNIST dataset.
These models represent a range of sizes and tasks, and the evaluation uses datasets that are partitioned and encrypted to simulate multiple data owners.
Key Insights and Ideas
- Separation is Key: The fundamental insight is that by strictly separating data handling from model handling code, and running them in distinct, attested enclaves, both data and model privacy can be achieved.
- SGX as an Enabler: Intel SGX provides the necessary trusted execution environment to enforce this separation and protect sensitive code and data, even in untrusted cloud infrastructure.
- Masking for Privacy: Zero-sum masking is a clever way to obscure individual model updates, preventing the model owner from inferring sensitive information about specific data owners' contributions.
- Hierarchical Aggregation for Scale: Recognizing the limitations of centralized aggregation, hierarchical aggregation offers a practical solution to scale collaborative learning to a larger number of participants without sacrificing privacy.
- Trade-offs in SGX: The paper highlights the inherent performance overheads of SGX due to memory constraints (EPC size) and cryptographic operations, but demonstrates that Citadel's design effectively mitigates these to achieve scalability.
Key Results
- Scalability: Citadel scales to a large number of enclaves (up to 32 tested) with a slowdown of less than 1.73X compared to native execution.
- Performance Improvement: By distributing training across multiple enclaves, Citadel can boost throughput by 4.7X to 19.6X compared to a single enclave setup.
- Hierarchical Aggregation Benefits: Hierarchical aggregation reduces overall iteration time by 11.3% to 36.1% compared to zero-sum masking alone, with the optimal configuration depending on the model and number of children in the aggregation tree.
- Privacy Guarantees: Citadel provides strong privacy for both data and model owners, outperforming existing SGX-based solutions like Chiron in terms of privacy guarantees.
- Overhead: SGX introduces a performance slowdown ranging from 1.09X to 1.73X compared to native execution, with larger models and more enclaves leading to higher slowdowns due to EPC paging.
Limitations and Future Work
- Large Models: Citadel's current design does not explicitly handle models that are too large to fit within a single enclave's memory. The authors suggest addressing this by increasing EPC size or employing model parallelism.
- GPU Support: GPUs are not currently supported for trusted computing, limiting their use within SGX enclaves. Future work could explore integrating with augmented GPU architectures.
- Side Channel Attacks: While SGX offers protection, it is still vulnerable to side-channel attacks. The authors suggest that data-oblivious ML operations could be employed by Citadel to mitigate these.
- Other TEEs: While built on SGX, Citadel's design is applicable to other Trusted Execution Environments (TEEs) like Arm TrustZone and Amazon Nitro.
- Parameter Server (PS) Style Aggregation: The authors note that Citadel could be extended to support PS-style aggregation, which might offer further performance benefits, though it would require significant engineering effort.
Summary updated