Belfort Labs Unveils Bel-0 AI Chatbot With Full Encryption

Belfort Labs’ public Bel-0 chatbot demo processes prompts while they stay encrypted. Anyone can recreate the shared key from published details and read any encrypted demo prompt or reply they obtain.

TL;DR
  • Encrypted Prompts: Belfort Labs opened a public preview of Bel-0, a chatbot that answers prompts while they stay encrypted on Belfort’s servers.
  • Shared Key: Anyone with the demo’s encrypted prompts or replies can use its shared key to read them, so Belfort advises using test data.
  • Chat History: Bel-0 handles one short prompt per conversation, so a follow-up starts without the earlier exchange.

Belfort Labs opened Bel-0 to public testing on November 30, letting people try an AI chatbot that answers while prompts stay encrypted on Belfort’s servers. The three-day preview uses a shared key anyone can recreate from information Belfort published. Anyone who obtains an encrypted prompt or reply from the demo can use the key to read it.

The shared key also lets Belfort store one set of the material its servers need to compute on encrypted prompts. Belfort says it has tested Bel-0 with individual decryption keys held on users’ devices. Each individual key requires about 45 GB of that computing material on the server.

How Bel-0 Answers Encrypted Prompts

In a conventional cloud chatbot, encryption can protect the prompt on its way to the server. The model works with readable text. Bel-0 uses fully homomorphic encryption, a technique that lets a computer work on encrypted data. Belfort uses it to run an entire large language model.

The browser breaks the prompt into tokens, the pieces of text a language model reads, and encrypts them before they leave the device. On the server, Meta’s Llama 3.1 8B Instruct runs all its layers on the encrypted tokens. Each time the model picks the next token, it feeds the encrypted result back into its own calculations and sends a copy to the browser to decrypt and display. That lets the server keep generating the reply without a new round trip to the browser for each token.

During a request, Bel-0 holds encrypted working data from the tokens it has already processed. A follow-up would need to include the earlier exchange as encrypted input, which would take up more memory on the graphics processors. The preview starts fresh each time and limits the prompt and answer to 513 tokens combined.

Microsoft Research had already applied homomorphic encryption to deep learning in its CryptoNets work.

 

Belfort measured 4.8 seconds to the first token and 1.7 tokens per second after that. The average came from five requests at the preview’s 128-token prompt limit on eight Nvidia B200 graphics processors, excluding about 50 milliseconds of encryption and decryption on the device per request. At that pace, a reply of around 100 tokens takes about a minute.

The Sylph research team reported 12 seconds per generated token on encrypted prompts of the same length. It used four B200 processors and Meta’s earlier Llama 3 8B. Bel-0 generated tokens faster in a test with twice as many B200s and a newer version of the model.

Belfort also tested whether encrypted computation changed the model’s choices. Given 1,000 prompts and asked to pick the most likely token at each step, Bel-0 differed from the same model on readable text in 85 of 304,061 choices. The two versions can agree on which token to pick and still give a poor answer. 

Where a Chatbot Can Read a Prompt

Another hosted chatbot, Confer, works on readable text inside a protected part of the server’s Nvidia hardware. The protected space, called a trusted execution environment, is designed to isolate the computation from the rest of the server. A local AI model can keep the prompt and the computing on the user’s own device, with the device’s hardware setting the limits on what it can run.

Johns Hopkins cryptographer Matthew Green told WIRED that Belfort’s work represents a substantial technical advance. He sees fully homomorphic encryption as another approach worth pursuing alongside local AI and hardware-isolated cloud computing.

Markus Kasanmascheff
Markus Kasanmascheff
Markus has been covering the tech industry for more than 15 years. He is holding a Master´s degree in International Economics and is the founder and managing editor of Winbuzzer.com.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted