AIFeed

Bel-0 是首个端到端加密的大语言模型

Translation(model translation, not the source's own text)

Bel-0 是全球首个端到端加密的 LLM

Bel-0 是全球首个完全在加密数据上计算的 LLM,任何人都可以试用。数据在离开用户设备之前就已加密,并在模型处理期间始终保持加密状态。只有用户才能解密最终答案。FHE 让模型能够直接在密文上计算,因此服务器永远不会看到提示词、模型的激活值或答案。

Bel-0 在加密数据上完整运行 Llama 3.1 8B Instruct——Meta 广泛使用的开放权重语言模型,拥有 80 亿参数和 32 个 transformer 层。每个请求都要经过四个步骤(图 6)。

  • 用户在本地加密提示词。用户客户端首先对提示词进行 tokenize,将其拆分为模型所处理的小块词语。然后用服务器永远看不到的密钥加密这些 token。结果是密文,客户端将其发送给服务器。
  • 服务器在密文上运行模型。Bel-0 只接收这些密文,并直接在密文上运行 Llama 3.1 8B 的每一层,包括 attention、前馈层和归一化步骤。下一个 token 的分数(称为 logits)保持加密状态。下一个 token 以同态方式从这些分数中采样,反馈回 transformer,并在步骤 3 中返回给用户。
  • 服务器返回加密的 token。采样出的 token 以加密形式生成并发送回客户端,因此服务器永远不会知道自己生成了什么。
  • 用户解密答案。用户客户端用密钥解密这些 token,并将其转换回文本。由于密钥从不离开客户端,其他任何人都无法读取答案。

由于数据是端到端加密的,请求的机密性不依赖于云服务提供商或模型运行的硬件:即使攻击者完全控制了服务器,也只能看到密文。

Only about 711 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗