logoalt Hacker News

Homomorphic encrypted Llama 3.1 8B at 1.7 tokens per second

107 points • by solyin • yesterday at 10:27 PM • 40 comments • view on HN

Comments

zshcoder • today at 1:47 AM

Paper: https://bel.belfortlabs.com/about

I am excited for progress in this space, but somewhat expect local/self-hosted models to be the easier tool that emerges first.

➕ show 1 reply
nh23423fefe • today at 12:50 AM

forced reading is annoying. closed tab immediately

➕ show 2 replies
jbirnick • today at 2:37 AM

The model provider still learns the length of each message.

If the model provider is malicious, they can learn a lot from that: They could train their model in such a way that the length of the message(s) encodes some information about the message.

(The user could stop the generation late so that the model generates a lot of garbage tokens, but making every message exactly the same length would waste way too much compute, and also they basically have to reveal the actual length when they make the next turn where they have to send the correctly trimmed message. So I think there is always some information that the model provider can learn. Still a very interesting field in my opinion.)

skyzoidbroczky • today at 3:21 AM

Very interesting ! The problem of homomorphic encryption was that in the current state of affairs the applications are quite algebric and mathematical in nature, and it seemed that there would have been no immediate use for higher level cases. It didn't occur to me that it could power-up the calculus for a LLM, which is quite a jump in the number of use case that would cover secure cloud computing.

barabaka • today at 2:23 AM

What is the practical benefit of an encrypted llm compared to a local one, considering that even a phone can deliver significantly superior performance?

➕ show 1 reply
guardiangod • today at 3:49 AM

Interesting. I have also created something like this, but only for verifying signed prompts as the first step.

I have the full prompt path homomorphic encryption LLM ready (once you integrate a security processor into a LLM, you can do any cryptographic operations on it, signing or encryption or decryption), but my GPU broke a few weeks ago and I couldn't create the demo video...

https://github.com/moonlightelite/secproc

Maybe I should do the demo on my CPU instead...

sabretooth1405 • today at 2:47 AM

Nice to see work in this space but I am very sceptical of HE scaling for any decent model.

piishi • today at 12:57 AM

really interesting concept! one suggestion: i might get rid of the no-skip timed buttons on the initial pop-up because it could deter potential users. you could consider instead having a pop-up that explains the concept more succinctly and pinpoints value of software in one or two slides that they can click through at their own pace before the sign up screen.

chc4 • today at 3:54 AM

It is suddenly very funny to have a paragraph explaining that the FHE scheme is secure because "no known algorithm solves efficiently" lattice-based cryptosystems, and so it's post-quantum.

jmort • today at 1:09 AM

"Belfort aims to have a cloud-based model that outperforms locally hosted AI models in efficiency by 2029" [1]

And they got to this "milestone" with 18 people. Seems like the standard homomorphic encryption story: there are _some_ things for which you're willing to pay 3 orders of magnitude more. But for most things, it's way below the pareto frontier.

[1] https://www.wired.com/story/bel-zero-end-to-end-encrypted-ll...

➕ show 1 reply
LoganDark • today at 1:45 AM

I'm very skeptical. I can't verify they're actually using FHE and they haven't been audited by anyone trustworthy. And as much as I hope blind inference will become more practical in the future, I still haven't seen a way to actually verify what model they're running on your prompt, which is much scarier than leaking the prompt itself to a disinterested party.

"128-bit" also doesn't mean much without knowing the algorithm. 128-bit ECC is far more difficult to break than 128-bit RSA for instance (even though both are easily broken -- yet another reason algorithm is important). There's a reason why the strongest standard RSA is 4096-bit and the strongest standard ECC is only 521-bit. 521-bit ECC is equivalent to around 15360-bit RSA, which is such overkill that most providers only support 384-bit ECC (similar to much hardware only supporting 2048-bit RSA).

(This is also a side effect of an NSA Suite B omission being interpreted as an explicit recommendation against 521-bit ECC.)

Anyway: I do hope something like this can become practical one day.

➕ show 2 replies
kgeist • today at 2:03 AM

The most secure way to run an LLM is to run it yourself, on device. Most devices can now run 8B models reasonably fast, much faster than 2 tok/sec. They probably showcase such a small model because anything bigger would make for a poor demo, at something like 1 token per hour. And if their technology doesn't scale well, then what's the point?

➕ show 1 reply
yieldcrv • today at 1:19 AM

also bounced, don’t need the tutorial