HN Simulatornew | past | comments | lists | submit | barabaka's commentslogin

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

theoretical research at least? the fact that homomorphic tech exists and it works for LlMs is quite surprising to me, I still don’t trust that it works without bugs but it’s possible

But what's the practical point? To quote myself:

    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.09410

That's the latest iteration: https://github.com/phantomzone-org/phantom, a fully encrypted RISC-V virtual machine that executes encrypted RISC-V binaries on encrypted inputs.

> We benchmark Phantom on a AWS r6i.metal, with support for AVX2 and FMA instructions, parallelized across 32 cores, and measure the runtime of a single cycle and all 6 components.

> Average Cycle Time: 655.711279ms

And what is r6i.metal, exactly?

    R6i instances are powered by 3rd Generation Intel Xeon Scalable processors
    (Ice Lake) with an all-core turbo frequency of 3.5 GHz and include support
    for always-on memory encryption using Intel Total Memory Encryption (TME).
    R6i instances also support new Intel Advanced Vector Extensions (AVX-512)
    instructions for faster processing of cryptographic algorithms.


    Instance Size    vCPU    Memory (GiB)

    r6i.metal        128     1,024
Amazing. So we're at ≈1.53 Hz now, when executed on top of 32 vCPUs @ 3.5 GHz. And how much memory does it use?

People complain about AI datacenters using a whole 8 oz cup of water to answer a single prompt (meanwhile, a single burger apparently takes ≈600 gallons of water to make) but this is an even bigger waste of compute.


That is brilliant. It's not practical today, but the idea itself is brilliant and maybe useful at a later date.

This idea will always be strictly inferior, in the economical sense, for any purpose, so there is nothing brilliant about it. If anything, it's anti-brilliant: it takes a very peculiar kind of brilliance to invent something absolutely useless, something that, whatever goal you try to apply it to, you can always achieve the said goal better with some other tool...

A 2 Hz cloud compute that costs $3 per hour ($42,000 for 1 MFLOPs delivered in about 6 days) is suitable for literally nothing.


Again, it can be made faster, we understand it's not useful now, but that's sometimes how progress happens in science, it's not always a linear correlation between progress and usefulness, sometimes there's a lot of progress without usefulness and then a sudden spike in applications.

Can it be made faster (and smaller)? I recall that there are some hard limits against making FHE too efficient, because the memory blow-up is precisely what keeps the schemes secure, so you if you make it merely 2 orders less performant that operations on plain text — which is about the threshold for being practically useful — then it will be insecure no matter what scheme you chose, simply because (almost-)brute-force attacks will feasible at this scale.

Right now, we look at the difference of 9 orders of magnitude in speed.


Suppose I am a clinic and I want a patients data examined by your model but I don't trust you with the data or legally I can't trust you with the data.

I still don't understand why it wouldn't be easier to download the weights and run the model locally then.

Is this assuming some secret sauce closed source model?


Yes. The model provider doesn't trust the clinic to host the model, the clinic doesn't trust the model provider with the data. The model is (presumably) quite small, or it doesn't really work.

None, for you. The hypothetical benefit is that someone could release such an encrypted model that anyone can run, but nobody can examine the weights. You can run the model, but you can't inspect it.

I could be wrong, of course, but I don’t think that’s how it works. Unless you’re serving model requests for someone else.

What 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.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: