261 points · by solyin · 2d ago · 101 comments
I am excited for progress in this space, but somewhat expect local/self-hosted models to be the easier tool that emerges first.
You have a valid point that there are different channels possible and FHE is only a part of making it E2E secure.
At that stage I realised that there were no use cases beside raising money to clueless VC hoping a clueless company would be interested. What sealed that vision, was to see a private bank doing a classic use case without FHE/0 trust because…Well who cares, they were still compliant with regulations without.
I put it aside, moved to something else.
I would really love to understand the math, be an expert on the gpu side etc and seeing actual use case but there are other technical challenges and interest that would leave to a better outcome.
> By default, no one. Your balance is encrypted onchain and only you can decrypt it. When compliance or regulation requires it, authorized parties such as auditors can be granted access at the protocol level, without your data becoming public.
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?
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.
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.)
But also the paranoia will start - because governements want to police what you say, what you learn, what information you get.
Is this assuming some secret sauce closed source model?
I've seen a paper [0] that ingeniously uses homomorphic encryption to implement arbitrary algorithmic
computations, totally secret, by encoding a (custom-crafted) CPU together with RAM and then running
"tick a clock" algorithm on them. And it works, so you can borrow some AWS huge instance and run you
super-important calculations there — at 1 Hz. I am not kidding, it's literally 1 virtual CPU
instruction per second. Well, if you are okay with such speed and costs, you either have very small
data — at which point just run your computation locally, or you're really, really rich — at which
point just buy your own goddamn hardware and, again, run it locally.
[0] https://arxiv.org/abs/2010.09410What this really does is a ZDR-like property that providers can’t figure out what’s being prompted and produced. Right now it’s all pinky promises and recent OpenRouter news suggests there are plenty of actors with GPUs that aren’t keeping them.
Even for onprem local-ish deployments
What does observability look like though?
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...
AMD bought them - imagine even OPUS 4.5 on a chip made by AMD, even id FHE is 1000 times slower, its still a game changer
https://lmstudio.ai/ `LM Studio Bionic` is the "agent" that does things via your shell. `LM Studio` is just a chat interface like ChatGPT from 2021. They run on the same model store by default, so you can try one and then switch to the other pretty seamlessly.
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...
"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.
The thought had crossed my mind that homomorphic encryption would really make the case for hosted LLMs more compelling, but I figured if it was even possible it would be years to become an area of research.
Of course, there is still another benefit to self-hosted, which is that you can choose the model whose safeguards are acceptable to you (or try to train the safeguards out of a model on your own)
I also worry that homomorphic encryption might one day be used by those making the case for banning open-weight models, because the providers could then comply with safeguard mandates (or might be compelled to add safeguards for legal compliance on they're own, if they're ever found liable when one of their models breaks the law) without requiring users to give up their privacy.
Like if I send you a block of text I have encrypted with my private key, you can send it to claude, gemini, qwen, wherever, and none of them can read it.
The model matters for the quality of the response, but not for the security of the transaction.
This and persistent RAM
Wait what?