Today Belfort released a demo showing HE-encrypted LLM inference at nearly 2 tokens per second. You can try it here. Here’s a screencap of my session.

My sample session of Belfort’s demo, for the question ‘What is FHE?’ Take special note of the answer relating to Mormonism

My sample session of Belfort’s demo, for the question ‘What is FHE?’ Take special note of the answer relating to Mormonism

There are minor caveats I’ll discuss below, but I wanted to start by admiring the milestone, not just for Belfort but for the HE community as a whole. The capabilities of HE have been expanding on all fronts: cryptographic innovations, hardware acceleration, software tooling, and production deployments. And only a few months ago, the state of the art inference latency of an 8 billion parameter model under HE was closer to 30 seconds / token. Today, Belfort flipped the units of that fraction. Hooray!

Belfort’s improvements span a few axes (see their whitepaper website for many more details), including new GPU acceleration techniques, cryptographic techniques, and system optimizations to deal with memory pressure. I haven’t publicly seen the details of how they did it (no doubt it’s a trade secret), but I can vouch for the quality of their engineers and research scientists.

One of the amazing things they managed to do, which I have not seen before, is do multi-token sampling completely on the server in HE. Prior art would produce one set of encrypted logits, and round-trip back to the client to decrypt, compute a softmax, output the next token, re-encrypt, and then upload back to the server. This adds an impractical amount of additional latency and bandwidth costs. Somehow Belfort managed to avoid that.

The caveats to their demo are important, but they don’t undercut the accomplishment by any means. In my view, they show where the bottlenecks are shifting for the field.

The biggest caveat is that Belfort’s particular demo doesn’t have user-generated key material. The reason for that is the key material required to run this demo and achieve this latency is roughly 45 GiB in size. Generating it (even once), uploading it (even once), and loading user keys onto the GPU (for each user’s request) would take far too long and require reserving too many GPUs for a public demo.

You might object that this defeats the purpose of using HE, and you’re right for the scope of this demo. But the Belfort team was willing to give me access to the same demo where I got to use my own keys. I confirmed it worked, and when I flipped a bit of the decryption key I confirmed the result was gibberish.

Decryption fails when I flip a bit of the secret key

Decryption fails when I flip a bit of the secret key

This memory issue makes it clear that, while latency of HE still has room for improvement, the bottleneck is shifting away from latency and toward other parts of an HE-powered software project. I planning to give a few talks next year and this is basically all I’ll be talking about.

Other caveats include:

Also, of course, it’s just an 8 billion parameter model, which are only so powerful today. When I asked it about myself, it inflated my academic credentials rather humorously.

Another aspect of this launch is that it underscores just how far GPUs are getting the field of homomorphic encryption, despite the limitations of their matrix multiplication units as applied to the high-precision integer math needed for cryptography. This demo runs on 8x NVIDIA B200 GPUs, which are massive, but many of the folks at Belfort are hardware design experts, so I am excited to see what custom hardware they build to handle larger models under FHE.


Want to respond? Send me an email, post a webmention, or find me elsewhere on the internet.

This article is syndicated on: