Introduction
Federated Learning (FL) has emerged as a cornerstone for privacy-preserving machine learning, enabling models to be trained on decentralized data residing on user devices. However, a significant "privacy gap" remains: in standard FL, a central service provider still receives individual updates. If that provider is compromised or malicious, they can potentially reconstruct sensitive user data from these updates.
This paper introduces a novel system architecture for Confidential Federated Computations (CFC). By leveraging Trusted Execution Environments (TEEs), the system provides a verifiable framework for federated learning and analytics. The architecture ensures that even a malicious service provider cannot inspect individual user contributions or bypass differential privacy (DP) protections, effectively bridging the gap between high-utility central DP and the trustless nature of distributed DP.
The Privacy Gap in Federated Learning
While FL keeps raw data on-device, the aggregation process often relies on a trusted central server. This creates several vulnerabilities:
- Trust Requirements: Central Differential Privacy (DP) offers high utility but requires users to trust the server to add noise correctly. Conversely, Distributed DP (adding noise on-device) often degrades model utility to the point of being unusable.
- Scalability and Security of SMPC: Secure Multiparty Computation (SMPC) can hide individual updates, but it is notoriously difficult to scale to millions of users. Furthermore, SMPC is highly susceptible to Sybil attacks, where a provider simulates fake users to isolate and triangulate a specific user's contribution.
- The "Black Box" Problem: Most production FL systems lack transparency. Users have no technical means to verify that the server is executing the privacy-preserving protocols it claims to use.
System Architecture: The Three Pillars
The proposed CFC architecture addresses these gaps through three primary components:
1. The Ledger (The "Keymaster")
The Ledger is a long-lived service running within a TEE that manages the decryption keys for all uploaded user data. It acts as a stateful policy engine. Unlike traditional stateless systems, the Ledger tracks how data is used, only releasing keys to other TEE-hosted processing pipelines if they satisfy a pre-declared "Data Access Policy." For example, a policy might dictate that a specific dataset can only be used once for a specific DP-sum operation, preventing "denoising" attacks where repeated queries are used to average out DP noise.
2. Project Oak and Remote Attestation
To establish a "Chain of Trust," the system utilizes Project Oak. When a device prepares to upload data, it performs hardware-based remote attestation to verify the identity and integrity of the Ledger. Once this trust is established, the Ledger takes over the responsibility of verifying all downstream processing nodes, ensuring that data only flows into authorized, secure environments.
3. External Verifiability and Transparency Logs
To move beyond a "trust us" model, the architecture incorporates open-source code and Transparency Logs (such as Rekor). All TEE binaries are built reproducibly from public repositories. The digests of these binaries, along with the associated data access policies, are published to an append-only log. This allows independent auditors to verify exactly which computations are being performed on user data, making any attempt to downgrade privacy protections publicly detectable.
Key Insights and Innovations
Decoupling Policy from Processing
By separating the Ledger (policy and key management) from the Dataflow (heavy computation), the system can scale to massive datasets. The Ledger remains a lightweight coordinator, while the resource-intensive aggregation and training tasks are handled by separate TEE-based worker nodes.
Sybil Resistance via TEE Enforcement
Because the TEE performs the aggregation and noising internally, it can strictly enforce "contribution bounding" (clipping) on every input. Even if an operator injects millions of fake Sybil users, the TEE ensures the final output remains differentially private, as the malicious inputs are subjected to the same rigorous DP constraints as legitimate ones.
Support for Large-Scale Models
Moving the aggregation to server-side TEEs allows the system to handle models that are too large for on-device processing, such as Large Language Models (LLMs). Additionally, the architecture supports asynchronous processing; devices can upload encrypted data to storage at their convenience, and the TEE-based pipeline can process it later, removing the requirement for devices to be online simultaneously.
Results and Performance
The CFC architecture achieves the high utility associated with Central DP while providing the security guarantees of Distributed DP. The server never sees raw data, yet the noise levels remain low enough to maintain model accuracy. While the system is designed for general federated tasks, it is particularly suited for high-stakes applications like mobile keyboard "Heavy Hitters" (frequent word/emoji detection) and training voice assistants on sensitive audio features.
Limitations and Future Work
Despite its advantages, the system faces several challenges:
- Performance Overhead: Running code within a TEE incurs costs due to memory encryption and I/O transitions. I/O-intensive tasks, such as shuffling massive datasets, show significant performance degradation.
- Side-Channel Vulnerabilities: TEEs are not immune to timing or cache-based side-channel attacks. Future iterations may require the integration of Oblivious RAM (ORAM) to mitigate these risks.
- Hardware Trust: The security of the system is ultimately dependent on the CPU manufacturer (e.g., Intel or AMD). To provide defense-in-depth, the authors suggest a hybrid approach in the future that combines TEEs with SMPC, requiring an attacker to compromise both the hardware and the cryptographic protocol to access data.
Conclusion
Confidential Federated Computations represent a significant step toward verifiable privacy in machine learning. By combining hardware-based isolation with transparency logs and stateful policy enforcement, the architecture provides a scalable solution that protects user data against even the most privileged adversaries.
Summary updated