Abstract
State-of-the-art large language models (LLMs) are typically deployed as online services, requiring users to transmit detailed prompts to cloud servers. This raises significant privacy concerns. In response, we introduce ConfusionPrompt, a novel framework for private LLM inference that protects user privacy by: (i) decomposing the original prompt into smaller sub-prompts, and (ii) generating pseudo-prompts alongside the genuine sub-prompts, which are then sent to the LLM. The server responses are later recomposed by the user to reconstruct the final output. This approach offers key advantages over previous LLM privacy protection methods: (i) it integrates seamlessly with existing black-box LLMs, and (ii) it delivers a significantly improved privacy-utility trade-off compared to existing text perturbation methods. We also develop a $(\lambda, \mu, \rho)$-privacy model to formulate the requirements for a privacy-preserving group of prompts and provide a complexity analysis to justify the role of prompt decomposition. Our empirical evaluation shows that ConfusionPrompt achieves significantly higher utility than local inference methods using open-source models and perturbation-based techniques, while also reducing memory consumption compared to open-source LLMs.
Introduction
The rapid advancement of Large Language Models (LLMs) has led to their widespread deployment as cloud-based services. However, utilizing these models often necessitates the transmission of sensitive user data to third-party providers, creating a significant barrier for privacy-sensitive industries such as healthcare, law, and finance. Current privacy-preserving techniques face a trilemma: encryption-based methods (e.g., Homomorphic Encryption) are computationally prohibitive for billion-parameter models; perturbation-based methods (e.g., Local Differential Privacy) often degrade the semantic coherence of the model's output; and local deployment of open-source models requires substantial hardware resources while often trailing behind the performance of proprietary cloud models.
ConfusionPrompt addresses these challenges by introducing a "middle way" that leverages the intelligence of online LLMs while maintaining robust privacy through a client-side "confusion" strategy.
The ConfusionPrompt Framework
ConfusionPrompt operates entirely on the user's side, acting as a privacy-preserving wrapper for black-box LLM APIs. The framework follows a structured four-step pipeline:
- Decomposition: A local, lightweight "Decomposer" model breaks a complex, multi-attribute prompt into several simpler, atomic sub-prompts.
- Confusion Strategy: For each genuine sub-prompt, a "Generator" creates multiple "pseudo-prompts." These fakes mirror the grammatical structure of the original but utilize semantically irrelevant attributes to mask the user's true intent.
- Cloud Inference: The user transmits the entire batch (genuine sub-prompts plus pseudo-prompts) to the cloud LLM. The server processes all prompts and returns responses, unable to distinguish the signal from the noise.
- Recomposition: A local "Recomposer" model filters the responses, discarding those corresponding to pseudo-prompts and synthesizing the genuine sub-responses into a final, coherent output.
Theoretical Foundations: The $(\lambda, \mu, \rho)$-Privacy Model
To formalize the privacy guarantees, the authors introduce the $(\lambda, \mu, \rho)$-privacy model. This model evaluates a group of prompts based on three criteria:
- Semantic Diversity ($\lambda$): Measures the distance between the sensitive attributes of the genuine and pseudo-prompts.
- Attribute Hiding ($\mu$): Quantifies how well the genuine attributes are concealed within the "crowd" of pseudo-attributes.
- Realism ($\rho$): Assesses the indistinguishability of pseudo-prompts from genuine ones to a potential discriminator.
A critical insight of this work is the role of decomposition in overcoming the "curse of dimensionality." Hiding a prompt with $N$ sensitive attributes directly requires an exponential number of pseudo-prompts ($K^N$) to achieve a specific privacy level. By decomposing the prompt into $N$ sub-prompts, the complexity becomes linear ($N \times K$), making the strategy computationally and financially viable.
Experimental Results
The framework was evaluated on multi-hop reasoning benchmarks, including StrategyQA and MuSiQue, as well as a new dataset, PrivCP, designed to test complex sensitive attributes.
Utility and Performance
ConfusionPrompt demonstrates a superior privacy-utility trade-off compared to existing methods. On StrategyQA, it maintained an accuracy of approximately 0.74, significantly outperforming Local Differential Privacy (LDP) methods, which often saw accuracy drop to 0.53. Furthermore, it outperformed local 7B and 13B parameter models (such as Llama2 and Vicuna) by 11% on StrategyQA and 24% on MuSiQue.
Efficiency and Cost
By utilizing small local models (e.g., BART-large, T5), ConfusionPrompt is highly efficient. It requires only 61% of the memory needed to run a Llama2-7B model locally. Additionally, the decomposition module significantly reduces the number of queries required to maintain privacy, offering up to an 18.3x reduction in API calls compared to a direct confusion strategy without decomposition.
Conclusion
ConfusionPrompt provides a practical and effective framework for private LLM inference. By combining local decomposition and recomposition with a cloud-based confusion strategy, it allows users to benefit from state-of-the-art LLMs without compromising sensitive data. While the approach introduces a "privacy tax" in terms of API costs and latency, its ability to maintain high utility and operate as a black-box wrapper makes it a compelling solution for real-world private inference.
Summary updated