FuseFSS: Efficient Secure LLM Inference with Function Secret Sharing
FuseFSS is a compiler that streamlines secure LLM inference by replacing bespoke per-operator protocols with a unified pipeline for fixed-point nonlinearities, achieving significant speedups and reduced communication and preprocessing overhead while maintaining accuracy.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you want to ask a super-smart AI (a Large Language Model) a secret question, like a private medical diagnosis or a confidential business strategy. You don't want the AI's owner to see your question, and you don't want the AI to reveal its "brain" (the model) to you.
To solve this, researchers use a "Two-Server" trick. They split the secret between two servers that don't talk to each other. Neither server knows the full picture, but together they can compute the answer. This is like two chefs working in separate kitchens; they can't see each other's ingredients, but they can combine their work to bake a cake without ever revealing the recipe or the secret ingredient.
However, there's a problem. While the "easy" math parts (like adding numbers) are fast in this secret mode, the "hard" parts (like deciding if a number is positive or negative, or rounding decimals) are slow and clunky. Currently, engineers have to build a custom, one-of-a-kind machine for every single one of these hard math steps. It's like having a different, custom-made wrench for every single screw in a car. It's expensive, slow, and easy to break.
Enter FuseFSS.
The authors of this paper built a compiler (a translator) called FuseFSS. Instead of building a custom wrench for every screw, FuseFSS says, "Let's just use two universal tools for all the hard math steps."
Here is how it works, using a simple analogy:
The "Masked Envelope" Analogy
Imagine you have a secret number, but you can't show it directly. So, you put it in an envelope with a random piece of paper (a "mask") and hand it to the servers. The servers can see the total weight of the envelope (the "masked value"), but they don't know your secret number or the random paper inside.
In the old way (the "Sigma" system), every time the servers needed to do a complex math trick (like "is this number greater than 5?"), they had to open a specific, custom-built protocol box just for that one question.
FuseFSS changes the game:
- One Specification: The authors created a standard "instruction manual" for any math trick. They describe the trick as a set of zones (intervals) and simple formulas.
- Two Magic Tools: Instead of building new boxes, FuseFSS uses just two standard tools for every trick:
- Tool A (The Comparator): This checks all the "Is it bigger than X?" questions at once and gives the servers a list of "Yes/No" answers (secretly shared).
- Tool B (The Lookup): This acts like a vending machine. Based on the answers from Tool A, it instantly hands over the correct numbers and formulas needed to finish the calculation.
- The Result: The servers do the math, and then they subtract the random paper (the mask) to reveal the final answer.
Why is this a big deal?
The paper claims that by switching from "custom wrenches" to these "two universal tools," they made the process significantly faster and lighter.
- Speed: They made the whole process 1.24 to 1.5 times faster. If a calculation used to take 10 seconds, it now takes about 7 seconds.
- Less Talking: The two servers have to send less data back and forth (about 9% to 16% less).
- Less Setup: Before they even start, they have to generate some "keys" (like setting up the locks on the envelopes). FuseFSS makes this setup 14% to 23% faster and the keys themselves are 20% to 24% smaller.
The Bottom Line
The paper doesn't claim to invent a new type of AI or a new way to predict the stock market. It simply claims to have built a better "engine" for running existing AI models securely.
They tested this on popular AI models (like BERT and GPT) and found that it works just as accurately as the old methods but runs much smoother. It's like upgrading a car engine: the car goes the same speed and carries the same passengers, but it gets better gas mileage and accelerates faster because the engine is designed more efficiently.
In short: FuseFSS is a compiler that turns a messy, custom-built process for secret AI math into a clean, standardized, and much faster routine using just two powerful, reusable tools.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.