Ensuring User Privacy in External LLMs with Fully Homomorphic Encryption (FHE)
I'm exploring ways to fully encrypt user prompts and responses when interacting with external Large Language Models (LLMs), ensuring that the LLM never has access to the raw user input. This approach enhances user privacy throughout the entire process while maintaining cost efficiency and better performance compared to running a local LLM. I recently discovered an article about Fully Homomorphic Encryption (FHE), which offers a promising solution. By integrating an additional encryption/decryption layer using FHE, we can further safeguard user data while leveraging the capabilities of external LLMs. Read more about FHE and its applications in this article: Towards Encrypted Large Language Models with FHE
Using Fully Homomorphic Encryption (FHE) for end-to-end encryption may not be practical at the moment, based on my recent research. Supporting FHE in large language models (LLMs) would require a lot of computational resources, which is why most LLMs today do not offer encrypted inference. However, research into encryption for LLMs is gaining momentum, and it's likely that in the future, LLMs will be able to ensure strong user privacy.