Bel-0, the first large language model to offer so-called fully homomorphic encryption, is comically slow and has limited capabilities. It also may represent a new way forward for fully private AI tools.

  • EnthusiasticVolatile@reddthat.com
    link
    fedilink
    arrow-up
    1
    ·
    52 minutes ago

    I am surprised this chatbot even exists, as I had thought homomorphic encryption is thousands of times more energy-hubgry than plaintext LLMs.

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    11 hours ago

    The type of attack this service is intended to protect against is one in which the service provider is slurping credentials off the wire server side in between https and the model.

    An attack which was shown last week to be widespread on openrouter. Yes, paying some rando bottom of the barrel fees for inference isn’t very secure.

    Another attack, less likely based on my own research, is the inference provider inadequately scrubbing tokens and pii from queries before using them to create the next training dataset. Over a year of automated testing on deepseek I have not noticed this happening.

    If you use open router or a similar service, consider switching away or at the very least choosing and auditing your providers. If you use a first party service, the tools to automate testing of their credential use are widely available and easy to implement.

  • shortsee@lemmy.ml
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    19 hours ago

    If you realy want it to be private just run local ai with ollama lm studio and if you want use hermes as an agent

    • brucethemoose@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      10 hours ago

      Well more realistically, a business would have a central server running something like sglang or vllm.

      Or a cheaper retrofitted server with a hybrid-inference engine.

      But yeah. On-prem.

  • ☂️-@lemmy.ml
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    14 hours ago

    we’re not talking to single people though, we are talking to a server. if the other end is compromised what’s the point? HTTPS is already encrypted.

    i dunno about this, dutch.

    • brucethemoose@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      11 hours ago

      In this scheme, the plaintext is never actually decoded by the server. The LLM ingests the encrypted text and spits out more encrypted text; the server operator couldn’t look at it even if they tried.

      Theoretically, a hostile server could look at the activations directly with a modified Jacobian lens or something:

      (Here you can see an LLM interpreting a ^ symbol as “nose” in its inner layers)

      But that’s difficult. It’s well beyond the scope of a hack.

    • TrollAccount69@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      11 hours ago

      Hey, this is making the rounds because of the openrouter dragos thing.

      Link: https://www.dragos.com/blog/ai-supply-chain-security-canary-tokens

      The tldr is low cost inference providers on openrouter are slurping credentials and pii up in front of the model they serve to the user.

      A model that uses homomorphic encryption makes this impossible (depending on implementation!) so developing this technology is very useful for a future where that kind of marketplace and attack exists.

  • Flying_Lynx@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    18 hours ago

    It can take in encrypted queries, compute an encrypted answer, and send that response to the user to decrypt without ever having the ability to decipher the question or even the AI’s own answer itself.

    At some point this LLM should need to have the slightest idea what it is asked and talking about? Even when it obfuscates sensitive words, then how would it answer a query like:

    Did [X1] kill [X2] with an [X3] at [X4] in room [X5]? Or was it with an [X6] in room [X7]?

    Fully homomorphic encryption would preserve not just multiplication but also addition. What’s the point of that tweak? Any computer algorithm–whether it sorts your mail or figures out whether you qualify for a tax deduction–boils down to a series of arithmetic steps. If an encryption scheme allowed any number of additions or multiplications, any computing application would be possible without decrypting data. https://www.forbes.com/forbes/2009/0713/breakthroughs-privacy-super-secret-encryption.html

    idk. When a “password checker” on the other end is capable of detecting that I just changed 1 single number then I regard this whole “service” as unsafe. Perhaps I’m wrong.

    • brucethemoose@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      10 hours ago

      You are not wrong. It is possible to look at the activations directly and figure out what the LLM is “thinking” layer by layer. Look up Jacobian Lenses.

      This would be complicated with homomorphic encryption: mapping even one individual model would be quite a project. But with enough effort, it could be done.