100 points · by DanyWin · 3y ago · 42 comments
Once there's something for people to try out, or at least some substantive information about what it actually is and how it actually works, it will be possible to have a good HN thread about it.
https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...
BlindAI has been around for almost two years and is open source. We are improving on it with recent hardware and AI models, but this is not just communication stunt.
I apologize though for not providing as much as content as you would expect but we will do our best to provide something of value to the AI & privacy community ASAP.
Yes => secure.
No => not secure.
QED.
Unless you have the power to define your own information boundaries (eg. via your own security in your own cloud account, or your own network), you can't assume privacy is protected.
Any kind of privacy assurance is only as good as the word of the salesman.
Would you send your medical records to an arbitrary 3rd party? Would you send your production code base to an arbitrary 3rd party?
There are very few entities that people trust for this (eg. AWS) because they have a history, reputation and audit history to support their claims.
This is called AWS Nitro Enclave and this is one of the hardware we will cover. You can find more about it here: https://aws.amazon.com/ec2/nitro/nitro-enclaves/
This document [1] defines a Nitro Enclave as an application image that runs in a secure runtime with no external networking.
This document [2] shows how you build a secure image. You basically take an image (like [3]) and run `nitro-cli build-enclave ...`.
Ok... so explain to me:
- Given that the image you build has to contain 1) private data (mine) and 2) private models (yours).
If I build the container image, how do you protect your models? (because I did, to access the base image)
If you build the container image, how do I know you didn't access my data? (because you did, to build the image)
What am I not getting?
[1] - https://docs.aws.amazon.com/enclaves/latest/user/nitro-encla...
[2] - https://docs.aws.amazon.com/enclaves/latest/user/getting-sta...
[3] - https://github.com/aws/aws-nitro-enclaves-cli/blob/main/exam...
[1] https://huggingface.co/togethercomputer/GPT-NeoXT-Chat-Base-...
> Write a rhyming poem about ray tracing
OpenChatKit: The sun is shining
The birds are singing, and the flowers are blooming. I'm so glad that I'm alive, and I'm so glad that I'm here. I'm so glad that I'm alive, and I'm so glad that I'm here. I'm so glad that I'm alive, and I'm so glad that I'm here. [repeated several more times]
ChatGPT: In a world of graphics, sharp and bright, Where realism is the ultimate sight, There's a technique that takes the lead, It's called ray tracing, indeed!
Ray tracing is a visual art, That sets the scene right from the start, By tracing rays of light in the air, It creates an image beyond compare.
I think it's just the beginning and the open-source community will provide very competitive LLMs.
It is indeed. The way to challenge OpenAI's offerings is with open-source AI models. Even better when they achieve and surpass GPT-4 level capabilities.
They (OpenAI) cannot win the race to the bottom or $0. Stable Diffusion (and even the leaked Facebook LLaMa) is already at the finish line and more alternatives will also be there to surpass GPT-3 and 4 and will release them for free in the open.
Eventually, Open source AI models will eventually disrupt closed ones. Just like how DALLE-2 has been disrupted quickly by Stable Diffusion.
In pixeled realms where photons race,
A wondrous dance of light's embrace,
Ray tracing weaves its subtle art,
Illuminating shadows' heart.
With every bounce and each reflection,
It births a scene of pure perfection.
A cascade of color, depth, and tone,
In virtual worlds, it carves its throne,
From mirrored glass to shimmering streams,
Ray tracing paints our digital dreams.
A masterstroke in the canvas vast,
Its legacy through ages cast.I don't really understand the technical solution behind this statement. Isn't this just e2e encryption up until you decrypt the query to pass to the LLM? ML operating via homomorphic encryption is very far away and OpenChatKit is just a standard self-hosted LLM. This seems more like "self host on semi trusted azure compute that isn't owned by openai and the model performance will be far worse than gpt4"?
> You might find other AI APIs available online. Those companies might put in place encryption in transit or at rest, but the companies running those APIs end up decrypting your data to apply their model.
> This means they eventually see all data you send to them, could leverage it for their interest, or get your data compromised without your knowledge!
> BlindAI API uses cutting-edge encryption mechanisms with secure enclaves so that even our admins cannot see the data sent to our AI models, and therefore cannot compromise our users' data.
Same question, what do they mean by a secure enclave? Homomorphic encryption is the only way that I can think of to really securely do this? Unless maybe they have decryption built into the LLM somehow so it only gets decrypted in RAM? But that still seems like it shouldn't be treated as E2EE.
E2EE means something, it shouldn't be used this lightly if all they mean is that they're promising not to touch the data on a machine.
I feel like I need to see a lot more details before I get excited about this.
More to the point, given the progress happening on LLaMa right now, it's hard to get excited about even homorphic encrypted models, because I strongly suspect that on-device/on-premise models are going to end up being the better solution for data privacy. This mattered more before it was possible to run an LLM on a high-end laptop.
I have a video from a webinar here: https://youtu.be/a2nprLS6bSA?t=1882, we have some examples in our blog https://blog.mithrilsecurity.io/privacy-voice-ai-with-blinda..., and we will release a series where we show to use secure enclaves by building a KMS with secure enclaves.
I don't necessarily agree with your statement regarding deployment on laptop. Not everyone has the skill/hardware to deploy such models, and providing simple APIs to leverage those, especially if the model is complex, could bring a lot of value to users in our opinion. We have seen hospitals wanting a simple API to do speech to text for medical voice notes and they just want an app on their old phones. I hardly see them deploying a 1B Whisper model for this use case.
Using BlindAI would allow them to have state-of-the-art AI, without having to worry about showing their data to us.
I think my quibble is that (to me) the privacy terms on the homepage feel like they're suggesting something stronger than a secure enclave. My first thought when I saw it was "huh, somebody figured out homomorphic encrypted models." I'm not sure I'd have the same objections if I hadn't gotten that impression to start with.
----
My suspicion with local models is less that they'll run on a cell phone or a low-end laptop, and more that at the point they can run on high-end consumer hardware, they'll also be cheap enough to run that hosting an LLM might become a commodity service. In the same way that a hospital might not want to host its own website or data records, I'm still wondering how the companies involved in that stuff don't eventually just turn into generic hosting companies. And again, to be fair here, if the security model you're talking about holds up, maybe that's a model that can be applied to multiple products or hosting offerings. It does sort of feel like the main thing you're advertising here is the generic enclave, not the AI specifically.
And who knows, maybe I'm just completely wrong about all of it, I'm not an expert. But I sort of suspect that it's going to get progressively easier to host these kinds of models in the future.
We are not using homomorphic encryption as it would be too slow. We are working on hosting OpenChatKit inside a secure enclave that benefits from hardware isolation to protect data while it is in clear for the application of the AI model.
We have developed an attestation system that does not rely on Cloud providers, but is closer to the ones provided by hardware provider, for instance Intel. You can find more about our attestation here: https://blindai-preview.mithrilsecurity.io/en/latest/docs/ad...
The goal of our work is to provide a more transparent and privacy-friendly interface for people working in sensitive industries to leverage LLMs. With the attestation mechanism, technical proofs can be given regarding the fact that data will not be used for any other purpose than inference.
We could use enclaves to do the mixing, and while there’s be added latency, we could achieve model outputs that are (by definition) at the current state of the art for LLMs. We would not hide the contents of queries, but we’d at least hide who is making which queries.
When did English language change so much? I can't keep up as a foreigner anymore.
We have a live example of providing a GPT model inside a secure enclave here: https://huggingface.co/spaces/mithril-security/blindai
We will soon release one with OpenChatKit.
Did you check the copyright situation? I guess the Tolkien Estate could try to sue you guys if you get successful...