InferDPT: Privacy-Preserving Inference for Black-Box Large Language ModelsInferDPT: Privacy-Preserving Inference for Closed-box Large Language Model
The researchers propose InferDPT, a privacy-preserving inference framework for black-box large language models that achieves differential privacy in text generation, which the authors call the first practical framework in this direction. The framework consists of a perturbation module and an extraction module: the former uses the exponential mechanism to generate perturbed prompts and calls the black-box large model in a privacy-preserving manner; the latter draws on knowledge distillation and retrieval-augmented generation to extract coherent and consistent text from the perturbed generation results. To address the susceptibility of existing exponential mechanisms to embedding revision attacks, the paper proposes a new differential privacy mechanism, RANTEXT, which introduces the concept of "random adjacency" into prompt text perturbation. Experiments on three datasets show that the text generation quality of InferDPT is comparable to GPT-4 in a non-private setting; when the privacy parameter epsilon is 6.0, RANTEXT's average privacy protection rate against embedding revision attacks exceeds 90%, 0.58 times higher than SANTEXT+ and 3.35 times higher than CUSTEXT+, outperforming these two existing mechanisms in the privacy-utility trade-off.