TL;DR
This paper introduces SIFO, a novel FPGA-based infrastructure that significantly accelerates Secure Function Evaluation (SFE) by using a coarse-grained overlay architecture. SIFO achieves orders of magnitude speedup over software implementations, making complex privacy-preserving computations more practical.
What Problem Does This Paper Address?
The paper tackles the significant computational cost of Secure Function Evaluation (SFE), a cryptographic technique that allows computations on private data without revealing it. While SFE is crucial for privacy in data mining and other applications, existing software-based methods are impractically slow, especially for large datasets. This inefficiency hinders the widespread adoption of SFE. The authors aim to bridge this gap by leveraging the parallel processing capabilities of FPGAs to create a more efficient and scalable SFE infrastructure.
Methods
The core of SIFO is a coarse-grained FPGA overlay architecture. Instead of designing custom hardware for each SFE problem, SIFO uses a pre-built, reconfigurable overlay. This overlay consists of generic "garbled circuit overlay cells" (gAND and gXOR gates) that can be dynamically configured to implement various SFE tasks.
Key methodological contributions include:
- FPGA Overlay Design: A generic, reconfigurable overlay architecture that avoids the need to reprogram the FPGA for each new problem.
- Complete Workflow: A suite of host tools for generating SFE problems, parsing them, extracting layers for parallel processing, and generating host code.
- Hybrid Memory Hierarchy: A system that intelligently uses both on-chip Block RAM (BRAM) as a cache and off-chip DDR memory to manage data for large problems, addressing memory access bottlenecks.
- Optimizations: Implementation of standard SFE optimizations like "free-XOR" and "row-reduction," along with novel optimizations for PCIe communication and register usage.
Datasets
Not discussed in the paper. The paper focuses on evaluating the performance of SIFO on various computational problems (addition, Hamming Distance, multiplication, sorting, matrix multiplication) of different sizes, rather than on specific datasets.
Key Insights and Ideas
- Overlay Architecture is Key: The most significant insight is that a generic, reconfigurable FPGA overlay is crucial for making SFE practical on FPGAs. It eliminates the prohibitive time costs associated with traditional FPGA design flows for each new problem.
- Parallelism is Paramount: SIFO effectively exploits the inherent parallelism in garbled circuits by mapping them onto the FPGA overlay, leading to substantial speedups.
- Memory Hierarchy is a Bottleneck: For large problems, memory access (both on-chip and off-chip) becomes a significant bottleneck. The hybrid memory hierarchy, with its cache-like BRAM usage, is essential for performance.
- Software-FPGA Co-design is Powerful: The seamless integration of host-side software tools with the FPGA hardware is critical for user accessibility and efficient problem mapping.
Key Results
SIFO demonstrates significant performance improvements over existing software solutions.
- Speedup: The paper reports speedups ranging from 6.21x to 45.78x compared to a software implementation (FlexSC) for various problems.
- Scalability: SIFO can handle problems with up to one million garbled circuit operations, a scale not achievable with previous FPGA implementations that were limited by on-chip memory.
- Problem Switching: The overlay architecture allows for rapid switching between problems, taking minutes for software generation compared to hours for traditional FPGA hardware design.
- Optimization Impact: Various optimizations, including removing synchronization for XOR operations and implementing a hybrid memory system, contribute to the overall speedup.
Limitations and Future Work
- SHA-1 Vulnerability: The paper acknowledges that SHA-1, used in their implementation for comparison, is known to be vulnerable. However, they argue this is not a concern in their context due to new key generation for each problem. They suggest replacing SHA-1 with AES or other primitives for stronger security guarantees, though this might impact performance.
- Memory Management: While the hybrid memory hierarchy is effective, the authors note that the "most-frequently-used" policy for BRAM management is not yet fully optimized for memory reuse, and they plan to investigate this further.
- Future Work:
- Further Heterogeneous System Improvement: Exploring more tightly coupled FPGA-Intel HARP systems to alleviate PCIe bottlenecks.
- Expanding Overlay Library: Abstracting more complex computational patterns beyond AND/XOR gates.
- Distributed SFE: Breaking down large problems into smaller ones to be computed across multiple host nodes with FPGAs for even greater scalability.
- Testing on Cloud Platforms: Evaluating SIFO on cloud instances like Amazon Web Services F1.
Summary updated