Bel-0: a research preview of a chat assistant that computes on encrypted data.

256 points•solyin•1 day ago•99 comments•

99 comments

zshcoder1 day ago
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.

sambejkabout 22 hours ago
Good to have another tool in the box in addition to local inference. I think my doctor is unlikely to set this up, but I would like them to use encrypted models with my medical data
tempayabout 21 hours ago
While I agree in some contexts, wouldn't you also want them to use the strongest models that are reasonably available? Realistically is this any better than contractual requirements to legally keep your data protected, as would already be needed with HIPPA and the like?
punnerudabout 21 hours ago
Do they need encrypted models locally? But this enables running on more expensive hardware in the cloud and keep your data encrypted all the way
gr_norm1 day ago
Indeed; this is super cool, but I trust my own computers a lot more than I trust the security of a new FHE scheme.
sambejkabout 22 hours ago
It’s based on CKKS which is an old scheme that was released 10 years ago
larrygates1 day ago
Agree local feels easier to trust. But crypto has shown that securing your own machine is harder than it sounds. And local caps you at models that fit on it. I think there's room for both!
DonsDiscountGasabout 17 hours ago
Also TEEs or other secure computing tools. Still, pretty neat.
Foobar8568about 23 hours ago
You only need 8 B200 to run that. After playing with FHE, and not being in the field, I really fail to see the real purpose. Anything it targets is defeated in practice by a different attack channel. Here the client output is not really protected if I understood well, just a shared key.
tuditiabout 22 hours ago
This is the classic: get it working first and then optimize later. There are multiple techniques we omitted in favor of getting it out there. Of course the shared key is not acceptable, but we need to compress key sizes further before we can do that.

You have a valid point that there are different channels possible and FHE is only a part of making it E2E secure.

jimbobbamabout 17 hours ago
FHE has some really wonderful use cases when it comes to Federated learning. If you want to see what fhe is doing lately check out what zama.ai is doing with private chain records.
sambejkabout 22 hours ago
You’re right to be skeptic. I think (1) FHE is just another tool in the toolbox and has become a lot more practical. (2) If you can LLMs relatively slow, imagine how fast smaller, purposely chosen ML models would be (3) Things naturally will go faster with better algorithms and hardware
Joker_vDabout 15 hours ago
> You only need 8 B200 to run that.

If I have eight B200, not only can I run something much better than Llama 3.1 8B, I can also run it much faster without bothering with encryption at all. And if I don't have eight B200, but I am okay with Llama 3.1 8B at about 2 tokens/s, then I can just run it locally, maybe even just on CPU only? I've just tried it with 12 threads on Ryzen 9 7900X @ 4.7 GHz, for the Q6_K version, and it gave me the speed of slightly above 7 tokens/s, so... what was the point of using FHE, again?

I mean, I guess if the user wants to use this model from their smartphone, and they want iron-clad privacy, and they're willing to bear the very slow speeds, but they don't want to drain their battery, and they're willing to pay for it as if they were paying for a much better model at much better speeds... yeah, this trade-off makes sense in this use case. Is this a realistic use case?

devttyeuabout 22 hours ago
Was following the space for a good while now, expected the perf to be a bit better to be honest, but still something.

Not sure there is a good story how to get FHE to be efficient with larger MoE models, or if this just stays usable for dense models.

Meanwhile confidential computing provides reasonably comparable confidentiality, assuming providers give you good attestation trail - those exist, and it seems most of the confidential AI providers aren't doing that great.

sambejkabout 22 hours ago
MoE is not very likely in FHE, but this is anyway a trick that works best for plaintext models inference performance. Confidential computing is a valid approach though attacks are a thing
jbirnick1 day ago
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.)

mungoman2about 24 hours ago
The model provider would need to be trusted here, but their delivery to the model hoster could be a large encrypted blob. That way the hoster has no way of peeking at what’s going on.
m3kw9about 14 hours ago
Apple likely
sambejkabout 22 hours ago
You could also batch multiple tokens together in a single ciphertext obfuscation this I believe
nadavwrabout 18 hours ago
padding
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.
sambejkabout 22 hours ago
Indeed! It shows the power of the tech and also how it would run for simpler use cases like small machine learning
rep_movsdabout 21 hours ago
For anything where you need plain language and reasoning this is a killer!

But also the paranoia will start - because governements want to police what you say, what you learn, what information you get.

nh23423fefe1 day ago
forced reading is annoying. closed tab immediately
laksjd1 day ago
Thanks for the feedback, we removed the forced reading bit!
Groxx1 day ago
... yeah that's particularly atrocious, isn't it. forced extremely slow, no skip or even skip-ahead.
morganf1 day ago
I had no idea what you two were talking about, and I thought, "how can they force you to read, it will be fine" but then I clicked to read it and wow it was unbearable, I left after seconds and one click

Read the full thread on Hacker News →

Related stories