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.)
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.
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...
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...
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.
"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.
treat it more like proof of speed
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.
(I, being poor, have only my dreams; I have spread my dreams under your feet; Tread softly because you tread on my dreams.)
I am excited for progress in this space, but somewhat expect local/self-hosted models to be the easier tool that emerges first.