Skip to content
IJK

TFHE for LLMs: Integer Weights, PBS and Table Lookups

By IJK ·

What a Hugging Face post says weights are represented with in TFHE, how nonlinear functions are implemented and what PBS does.

How weights are represented

In TFHE, model weights and activations are represented with integers. [1]

How nonlinear functions are implemented

Nonlinear functions must be implemented with a Programmable Bootstrapping (PBS) operation. [2]

needsimplemented asWeights and activations as integersthe representation in TFHENonlinear functions via PBSProgrammable BootstrappingPBS as a table lookup on encrypted dataalso refreshing ciphertexts
How does TFHE handle a model?

What PBS does

PBS implements a table lookup (TLU) operation on encrypted data while also refreshing ciphertexts to allow arbitrary computation. [3]

Sources

  1. The Hugging Face source says: In TFHE, model weights and activations are represented with integers. Towards Encrypted Large Language Models with FHE
  2. The Hugging Face source says: Nonlinear functions must be implemented with a Programmable Bootstrapping (PBS) operation. Towards Encrypted Large Language Models with FHE
  3. The Hugging Face source says: PBS implements a table lookup (TLU) operation on encrypted data while also refreshing ciphertexts to allow arbitrary computation. Towards Encrypted Large Language Models with FHE

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • fhe
  • encryption
  • llm
  • hugging face