Private prediction methods for large-scale synthetic text generationPrivate prediction for large-scale synthetic text generation
The paper proposes a method for generating differentially private synthetic text with large language models based on private prediction, which can scale high-quality synthetic data from fewer than 10 examples to thousands. The method prompts a pretrained LLM with source data but guarantees that next-token prediction satisfies differential privacy, requiring only that the output synthetic data satisfy the privacy guarantee. Improvements come from a better privacy analysis and a private selection mechanism that exploits the equivalence between the softmax layer of LLM token sampling and the exponential mechanism. The authors also introduce a public prediction usage based on sparse vector techniques, which incurs no privacy cost for tokens that can be predicted without sensitive data, and is especially effective on structured data.