Abstract Pencil is a novel framework for private collaborative machine learning designed to protect both training data and model weights without relying on non-colluding third-party assumptions. By transitioning from complex multi-party architectures to a streamlined two-party server/client paradigm, Pencil utilizes hybrid cryptography and GPU acceleration to achieve significant performance gains. Experimental results demonstrate that Pencil offers up to 260× higher throughput and 100× less communication overhead than previous state-of-the-art methods while maintaining near-plaintext accuracy.
Introduction
Collaborative learning involves Data Owners (DOes) providing training data and a Model Owner (MO) providing the model. Current solutions often force trade-offs between privacy and efficiency. Federated Learning (FL) protects data but exposes model weights, while Multi-Party Computation (MPC) typically relies on a "non-colluding assumption"—the risky premise that external computing servers will not share information. Homomorphic Encryption (HE) solutions, while private, are often too slow for practical use.
Pencil addresses these gaps by providing a framework that is extensible to many data providers without assuming non-collusion between parties. As shown in the comparison below, Pencil is uniquely positioned to provide data privacy, model privacy, and collusion resistance in an extensible manner.
The Pencil Framework
Pencil's core innovation is its 2-party server/client paradigm. It employs a hybrid cryptographic approach to balance security and speed:
- Hybrid Cryptography: The system combines Homomorphic Encryption (HE) for linear operations (like convolutions and matrix multiplications) with Secret Sharing (SS) for non-linear operations (like ReLU).
- Efficient Backpropagation: The authors designed novel protocols to compute weight gradients that avoid expensive "ciphertext-ciphertext" multiplications. By exploiting linearity, they keep the majority of computations in the much faster "ciphertext-plaintext" domain.
- Preprocessing and Hardware Acceleration: Heavy cryptographic workloads are moved to an offline phase. Furthermore, the team developed a custom GPU implementation of the BFV homomorphic encryption scheme, achieving a 10× speedup over standard CPU-based libraries.
- Differential Privacy (DP): To provide a formal guarantee against "gradient matching" attacks, Pencil allows DOes to add controlled noise to gradients, preventing adversaries from reconstructing raw data from model updates.
Evaluation and Results
The authors evaluated Pencil across three diverse benchmarks: MNIST (handwritten digits), CIFAR10 (object categories), and AGNews (text classification). They tested both training from scratch and transfer learning using complex models like AlexNet and ResNet-50.
Key findings include:
- High Accuracy: Models trained with Pencil achieved test accuracy nearly identical to those trained in plaintext, typically within a 0.7% margin.
- Superior Throughput: In LAN settings, Pencil achieved 10× to 260× higher throughput than prior MPC frameworks like QUOTIENT.
- Reduced Communication: Pencil reduced communication overhead by two orders of magnitude compared to previous extensible frameworks.
- Scalability: The system successfully fine-tuned a ResNet-50 model (23 million parameters) on CIFAR10 in under 8 hours—a task previously considered computationally prohibitive for private training systems.
- Security Resilience: Pencil proved resilient against state-of-the-art "white-box" attacks, ensuring that even with full gradient access, attackers cannot reconstruct original training images when DP noise is applied.
Conclusion and Future Work
Pencil represents a significant advancement in private collaborative learning by breaking the non-collusion trap and providing a high-performance, extensible architecture. Future work will focus on improving gradient clipping estimation, optimizing precision for deeper networks to reduce computational load, and hardening the system against malicious actors beyond the current semi-honest security model.
Summary updated