Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

InvisibleInk: High-Utility and Low-Cost Text Generation with Differential Privacy

About

As major progress in LLM-based long-form text generation enables paradigms such as retrieval-augmented generation (RAG) and inference-time scaling, safely incorporating private information into the generation remains a critical open question. We present InvisibleInk, a highly scalable long-form text generation framework satisfying rigorous differential privacy guarantees with respect to the sensitive reference texts. It interprets sampling from the LLM's next-token-distribution as the exponential mechanism over the LLM logits with two innovations. First, we reduce the privacy cost by isolating and clipping only the sensitive information in the model logits (relative to the public logits). Second, we improve text quality by sampling without any privacy cost from a small superset of the top-$k$ private tokens. Empirical evaluations demonstrate a consistent $8\times$ (or more) reduction in computation cost over state-of-the-art baselines to generate long-form private text of the same utility across privacy levels. InvisibleInk is able to generate, for the first time, high-quality private long-form text at less than $4$-$8\times$ times the computation cost of non-private generation, paving the way for its practical use. We open-source a pip-installable Python package (invink) for InvisibleInk at https://github.com/cerai-iitm/invisibleink.

Vishnu Vinod, Krishna Pillutla, Abhradeep Guha Thakurta• 2025

Related benchmarks

TaskDatasetResultRank
Synthetic Text GenerationMIMIC-IV (test)
MAUVE75
43
Synthetic Data GenerationIMDB (test)
MAUVE0.004
20
Synthetic Text GenerationYELP Reviews
MAUVE0.5
13
Synthetic Text GenerationBioRxiv Abstracts
MAUVE0.9
13
Synthetic Text GenerationICLR Reviews on OpenReview
MAUVE0.5
13
Sequence ClassificationYelp dataset (test)
Accuracy32.98
3
Showing 6 of 6 rows

Other info

Follow for update