SIFO: Secure Computational Infrastructure using FPGA Overlays

Xin Fang, Stratis Ioannidis, Miriam Leeser

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

Abstract

Secure Function Evaluation (SFE) has received recent attention due to the massive collection and mining of personal data, but remains impractical due to its large computational cost. Garbled Circuits (GC) is a protocol for implementing SFE which can evaluate any function that can be expressed as a Boolean circuit and obtain the result while keeping each party's input private. Recent advances have led to a surge of garbled circuit implementations in software for a variety of different tasks. However, these implementations are inefficient and therefore GC is not widely used, especially for large problems. This research investigates, implements and evaluates secure computation generation using a heterogeneous computing platform featuring FPGAs. We have designed and implemented SIFO: Secure computational Infrastructure using FPGA Overlays. Unlike traditional FPGA design, a coarse grained overlay architecture is adopted which supports mapping SFE problems that are too large to map to a single FPGA. Host tools provided include SFE problem generator, parser and automatic host code generation. Our design allows re-purposing an FPGA to evaluate different SFE tasks without the need for reprogramming, and fully explores the parallelism for any GC problem. Our system demonstrates an order of magnitude speedup compared with an existing software platform.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
6-bit adderSIFO optimized FPGA (15 AND and 15 XOR overlay cells)FPGA runtime (Time)45 ushardware=Gidel ProceV Stratix V FPGA · local-clock=200 MHz · memory-policy=hybrid BRAM/DDR, directly-used · overlay-cells=15 AND, 15 XOR · PCIe-interface=300 MHz
Source quote
L554: 6-bit adder │ 2.06 │ 45 │ 45.78
10 × 10 8-bit m_multSIFO optimized FPGA (15 AND and 15 XOR overlay cells)FPGA runtime (Time)170895 ushardware=Gidel ProceV Stratix V FPGA · resolution=10x10 · local-clock=200 MHz · memory-policy=hybrid BRAM/DDR, directly-used · overlay-cells=15 AND, 15 XOR · PCIe-interface=300 MHz
Source quote
L566: 10 × 10 8-bit m\_mult │ 1060.63 │ 170895 │ 6.21
20 × 20 4-bit m_multSIFO optimized FPGA (15 AND and 15 XOR overlay cells)FPGA runtime (Time)340698 ushardware=Gidel ProceV Stratix V FPGA · resolution=20x20 · local-clock=200 MHz · memory-policy=hybrid BRAM/DDR, directly-used · overlay-cells=15 AND, 15 XOR · PCIe-interface=300 MHz
Source quote
L567: 20 × 20 4-bit m\_mult │ 2170.88 │ 340698 │ 6.37
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
6-bit adderFlexSC software baselinesoftware runtime (sw)2.06 msthreads=1 · software=FlexSC · processor=Intel Core i7 at 3.6 GHz
Source quote
L554: 6-bit adder │ 2.06 │ 45 │ 45.78
10 × 10 8-bit m_multFlexSC software baselinesoftware runtime (sw)1060.63 msthreads=1 · software=FlexSC · processor=Intel Core i7 at 3.6 GHz · resolution=10x10
Source quote
L566: 10 × 10 8-bit m\_mult │ 1060.63 │ 170895 │ 6.21
20 × 20 4-bit m_multFlexSC software baselinesoftware runtime (sw)2170.88 msthreads=1 · software=FlexSC · processor=Intel Core i7 at 3.6 GHz · resolution=20x20
Source quote
L567: 20 × 20 4-bit m\_mult │ 2170.88 │ 340698 │ 6.37
BibTeX
@article{fang2019sifo,
  author = {Xin Fang and Stratis Ioannidis and Miriam Leeser},
  title = {{SIFO: Secure Computational Infrastructure using FPGA Overlays}},
  journal = {Int. J. Reconfigurable Comput.},
  year = {2019},
  doi = {10.1155/2019/1439763},
}
Figure