Trusted Hardware Acceleration for Function Secret Sharing

Pengzhi Huang, Kiwan Maeng, G. Edward SuharXiv 2026

TL;DR

Function Secret Sharing (FSS) is a powerful tool for privacy-preserving machine learning and private information retrieval (PIR), but it is severely bottlenecked by massive key-generation, storage, and communication overheads. This paper introduces the Distributed Function Accelerator (DFA), a hardware-software co-design that integrates a lightweight cryptographic accelerator directly onto the GPU die. By accelerating the core primitive of FSS and enabling on-the-fly key generation, DFA slashes end-to-end latency by 10× and reduces network communication by up to 20×.

What Problem Does This Paper Address?

As machine learning models handle increasingly sensitive data (e.g., medical records or proprietary LLM prompts), cryptographic techniques like Secure Multi-Party Computation (MPC) and Private Information Retrieval (PIR) have become essential. FSS has emerged as a favorite building block because it shifts heavy computational burdens to an "offline" phase, making the "online" phase highly efficient.

However, this efficiency comes with a hidden cost: the offline phase generates astronomical amounts of data. For instance, running a single private query on a LLaMA2-7B model requires generating and distributing over 200 GB of cryptographic keys. This creates massive network bottlenecks, strains storage, and causes intense I/O pressure when transferring keys between CPU and GPU.

The authors identify that a single primitive—the Distributed Point Function (DPF)—accounts for over 90% of these non-linear FSS overheads. This paper tackles the challenge of accelerating DPF generation and evaluation to make privacy-preserving systems practical for real-world deployment.

Methods

The authors propose a hybrid hardware-software solution called the Distributed Function Accelerator (DFA), integrated directly onto the GPU die adjacent to the L2 cache banks.

Figure 1: FSS acceleration using pure GPU solution without DFA, using DFA but untrusted, and using fully trusted DFA.

1. Hybrid Hardware Architecture

As shown in Figure 3, the DFA consists of:

  • Fixed-Function DPF Engines: Highly pipelined hardware optimized for AES-based pseudorandom number generation (PRG), which is the primary mathematical operation in DPF tree expansions.
  • Programmable Vector Processing Unit (VPU): A lightweight unit based on the open-source RISC-V Ara architecture to handle protocol-specific pre- and post-processing logic.
  • Secure Control Unit: An ARM SecurCore-based microcontroller that manages cryptographic keys and attestation.

2. Algorithmic and System Co-Design

  • Decoupled Generation: Traditional FSS tightly couples key generation with protocol inputs. The authors refactor the protocol to sample uniformly random values independently, allowing the fast DPF hardware to run continuously without waiting for slower protocol logic.
  • Generate-and-Consume Pipeline: In "Trusted Mode," the DFA acts as a local trusted third party. Instead of generating keys offline, saving them to disk, and sending them over the network, the two communicating parties use their local trusted DFAs to generate identical key distributions on-the-fly. The keys are consumed immediately by the GPU and discarded, completely eliminating the network and storage bottleneck.
Figure 3: The DFA and inside GPU (top) and DPF unit (bot).

Datasets

The system was evaluated using simulation and RTL synthesis across two primary workloads:

  1. Private Inference Models: Standard deep learning benchmarks including ResNet-50, BERT-Base, GPT-Neo, and LLaMA2-7B.
  2. Private Information Retrieval (PIR): Synthetic databases ranging in size from 16k to 4M entries, with a fixed data entry size of 128 bits.

Key Insights and Ideas

  • The DPF Bottleneck: The core realization is that FSS performance isn't bottlenecked by complex math, but by the sheer volume of data movement caused by repeated AES-based key expansions.
  • Breaking the Offline/Online Divide: By putting a tiny trusted module on the GPU, the traditional boundary between the "offline key setup" and "online evaluation" disappears. "Generate-and-consume" turns a massive data-storage problem into a transient, local computation.
  • Dual-Mode Flexibility: The architecture provides value under two different threat models. In untrusted mode, it acts as a standard hardware accelerator to speed up evaluation computation. In trusted mode, it leverages secure computing capabilities to unlock the massive communication and storage savings of local key generation.

Key Results

The authors synthesized their design using a TSMC 28nm process (scaled to 7nm for modern comparison) and evaluated it using the Accel-Sim GPU simulator.

Private Inference (Trusted Mode vs. Pure GPU)

  • Latency: Achieved a 10× reduction in end-to-end latency under LAN conditions.
  • Communication: Slashed offline network communication dramatically. For LLaMA2-7B, communication dropped from 256 GB to just 0.81 GB per query.
  • Energy: Delivered more than 5× energy savings across all tested models due to minimized data movement.

Private Information Retrieval (PIR)

  • Throughput: Improved query throughput by 5.1× to 8.4× depending on the database size.
  • Energy: Reduced energy consumption per query by roughly 10× (achieving a 0.11× ratio against the baseline GPU-only implementation).

Limitations and Future Work

  • Memory Bandwidth Bounds: As GPU architectures scale, the performance of this scheme will be bounded by internal Network-on-Chip (NoC) and memory bandwidth rather than raw compute power.
  • PIR Entry Size Sensitivity: The DFA is highly optimized for DPF evaluation. If a PIR database utilizes very large entry sizes (e.g., >16KB), the subsequent vector multiplication begins to dominate the workload, reducing the relative benefit of the DFA.
  • Physical Security Hardening: While the paper outlines the trusted boundary and attestation protocols, full physical hardening against side-channel attacks (like power analysis or fault injection) remains an area for future engineering and validation.

Summary updated

BibTeX
@misc{huang2026trusted,
  author = {Pengzhi Huang and Kiwan Maeng and G. Edward Suh},
  title = {{Trusted Hardware Acceleration for Function Secret Sharing}},
  year = {2026},
  eprint = {2608.16223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16223},
}
Figure