Large Language Models Can Be Strong Differentially Private Learners
Paper · 2021 · Xuechen Li, Florian Tramèr, Percy Liang et al.
Summary
When a language system learns from sensitive text, the resulting parameters can retain information about individual training examples. The paper asks whether a large pretrained system can learn a new task while formally limiting that influence and still produce useful predictions. The authors study fine-tuning, which starts from an existing checkpoint and adapts it to a specific task. Their experiments use public benchmarks to test a procedure that could also be applied to sensitive downstream data. The guarantee concerns what the fine-tuning run learns from a training record. It begins after the public pretraining stage.
The authors use differential privacy, which bounds how much adding or removing a record can change the probabilities of the training algorithm’s possible outputs. Before each parameter update, they cap the size of each example’s gradient, the vector that describes how the example’s loss changes with the parameters. They then add Gaussian noise to the combined gradients. Useful learning depends on how this procedure is configured. Batch size, learning rate, and the clipping threshold all matter. For sentence classification, the authors also turn category prediction into a missing-word exercise. This lets the classifier use the same kind of prediction it learned during pretraining. Generating text from a table or a dialogue history already offers that continuity with pretraining.
The experiments cover sentence classification, descriptions of structured data, and conversational responses, with headline privacy budgets of ε = 3 and ε = 8. On the classification tasks, updating all parameters with the missing-word objective outperforms the reported results of a method designed to perturb gradients in a smaller space. On the table-to-text benchmarks, full fine-tuning and low-rank adaptation are generally among the strongest private options. On the Persona-Chat validation split, private DialoGPT-medium at ε = 8 beats the non-private ConvAI2 winner on perplexity, a measure of how well the system predicts the reference text. Larger pretrained checkpoints also give better private results across the tested tasks, even though the total amount of noise in an update grows with the number of coordinates being perturbed.
To make those updates feasible in memory, the authors introduce ghost clipping. The optimizer needs the length of each example’s gradient to decide how much to shrink it. For a linear layer processing sequences, that length can be calculated from quantities already involved in back-propagation. A further backward pass then produces the combined, clipped gradient. In the authors’ benchmark with sequences shaped like the table-to-text inputs, this procedure brings memory use close to ordinary non-private training and improves throughput over an earlier layer-by-layer clipping method for GPT-2-large.
Deep dive: Large Language Models Can Be Strong Differentially Private Learners
The paper shows how to fine-tune large language models with differential privacy and how ghost clipping makes the training fit in memory. · about 38 minutes to read
The problem and its context
What a training run can reveal
A system trained to predict text can learn regularities that apply to many examples and details that occur in particular ones. The distinction matters when the data include something a person expected to remain private. An application could release only its trained parameters or generated responses and still reveal information about its training set. The paper points to prior demonstrations of memorization and reconstruction in language systems. It also cites research on membership inference, where the question is whether a particular example took part in training. Membership Inference Attacks against Machine Learning Models
A favorable result on a privacy test depends on the test being run. A formal guarantee instead specifies a property of the randomized training procedure, with a bound that applies to events in its output space. The authors use central differential privacy. In this setting the training procedure has access to the records and is responsible for limiting what the released result reveals. Earlier work cited by the paper also considered local differential privacy for language understanding, where the privacy setting concerns how data are handled at the level of individual inputs. The guarantee in this paper is formulated for the central training algorithm.
The earlier language applications establish the range of settings in which privacy had been studied. One federated effort trained a recurrent word predictor with 1.35 million parameters and more than 700k users under a global guarantee with ε = 4.6 and δ = 10⁻⁹. Another line of work trained production next-word prediction systems with millions of users. The paper also describes private BERT pretraining with hundreds of millions of examples and a study of private BERT adaptation on utterances whose ε was on the order of at least 100. These cases vary in how much data they have, where the privacy protection applies, and the strength of the reported guarantee. The present paper studies a different combination of those conditions. BERT
Why parameter count seemed like an obstacle
The authors build on differentially private stochastic gradient descent, or DP-SGD. The underlying problem is that an unrestricted training example could exert a large influence on the gradient. The procedure bounds the size of that example’s contribution and adds random noise to the aggregate. The same privacy operation can supply gradients to a different optimizer. In the main experiments, the update rule is Adam, which maintains running information about gradients and their squared magnitudes. It receives privatized gradients throughout the run. Deep Learning with Differential Privacy and Adam
The noise is spread across the coordinates being updated. As the number of coordinates grows, the whole noise vector gets longer even with the same noise scale in each coordinate. Previous work took this as a reason to concentrate private learning in fewer directions. A gradient can be projected into a smaller space before perturbation, or an adaptation method can restrict which parameters are learned in the first place. Both approaches reduce the dimensionality involved in the private update. The paper also cites work that used publicly estimated subspaces, as well as a different privacy technique applied to wide neural layers.
A second line of work made the private task easier by transferring features learned from public data. Earlier language experiments had given an indication that public pretraining helps downstream private learning. The authors distinguish that initial evidence from the question they pursue here, which is whether a large pretrained checkpoint can be adapted directly with the usual gradient privatization procedure. Their premise is that the checkpoint has already acquired general knowledge about language. The examples in the downstream dataset can then be used to adapt its behavior to the task at hand. The broader case for reusing large pretrained systems had also been raised in earlier work. On the Opportunities and Risks of Foundation Models
Parameter-efficient adaptation gave the authors several concrete comparisons. Some methods learn prompts or prefixes while reusing pretrained weights. Another family introduces small trainable subnetworks into the existing architecture. Low-rank adaptation represents changes using small matrices, and bias-only adaptation updates a restricted set of existing parameters. Each reduces the number of quantities to optimize by a different route. That diversity matters for interpreting the experiments. A method’s trainable parameter count describes the size of its update space, while the structure of the update determines what behavior it can change. Parameter-Efficient Transfer Learning for NLP, LoRA, and BitFit
The question about dimensionality therefore has separate experimental forms. One can vary the size of the starting checkpoint and update all its parameters. That changes both the starting system and the dimensionality of its update. One can also start from the same size of checkpoint and give different adaptation methods control over different subsets or representations of its weights. This tests how much the restriction on updates matters for that task. A large noise vector is a feature of the mechanism in either case. Its length alone leaves open how much useful adaptation remains possible.
Why clipping was a practical bottleneck
Ordinary back-propagation can deliver a batch gradient without keeping a distinct parameter-sized vector for every training example. The private update needs the length of each contribution before those contributions can be combined. The direct implementation builds all the example gradients, measures them, shrinks them as needed, and sums them. With a wide embedding matrix or a big vocabulary prediction layer, even the gradients for a small group of examples can occupy substantial memory. Splitting a batch into smaller units allows the optimizer to combine results over time, with extra processing for those units.
Earlier work by Lee and Kifer found a way to compute one layer’s contribution to each example’s gradient length, discard the layer’s temporary gradients, and move on. After computing the lengths, it used a further backward pass to obtain the weighted aggregate. The authors identify a remaining problem for the Transformer. A single large linear layer can dominate temporary storage even when the implementation processes only one layer at a time. In a sequence system, the gradient also combines contributions from many positions. Ghost clipping exploits the structure of this combination.
The research problem joins an optimization question to a systems question. For a fixed privacy requirement, the learning procedure needs to extract enough signal from the examples to adapt the checkpoint. The hardware also needs to accommodate the batch and the operations that enforce the guarantee. The authors use sentence classification and conditional generation to study both questions. Each task supplies a concrete definition of a record, a starting checkpoint, and a way to judge what the fine-tuning run learned.
The method, step by step
Start with a checkpoint and define the record
The training procedure begins with a publicly available pretrained checkpoint. For classification, the authors use the BERT and RoBERTa families. For generation, they use GPT-2 variants and also test a conversationally pretrained checkpoint. What changes across tasks is the input, the target, and the contents of the example to which the privacy guarantee applies.
A classification record contains the input sentence or sentences and their target class. In table-to-text generation it contains a structured entry together with a description. In dialogue generation it includes the previous turns, information about the respondent, and the response to predict. Wherever the same contributor appears in several examples, the record remains the unit named by the training setup. This definition is necessary before either the clipping operation or the privacy claim can be interpreted.
For text generation, the target is a sequence of tokens, the pieces of text predicted by the system. In table-to-text work, the structured entry supplies the context for predicting its description. In dialogue, the context consists of the history and the respondent’s persona. The pretrained generation system is already set up to predict text, and fine-tuning applies that operation to the new inputs and targets.
For text classification, the authors compare conventional training with a reformulation called text infilling. A conventional classifier takes the representation at the special [CLS] position and gives it to a newly initialized head that predicts class labels. In the infilling version, the input is placed in a short template containing a [MASK] position. Each class is assigned a word, and the system compares the predictions for those words at the masked position. For sentiment, the paper illustrates the choice with “awesome” and “terrible.” The label is still sentiment. The operation used to predict it is the one used in masked-word pretraining.
The templates are close to generic patterns, and the paper identifies earlier few-shot work as the source of the templates and label words it lists. The adaptation objective repurposes a capability that earlier work had used for factual probing and few-shot classification. In private fine-tuning, this choice changes what the supervised loss asks the system to do and therefore changes the gradients that are clipped and perturbed. The privacy mechanism can operate with either objective. Language Models as Knowledge Bases? and Making Pre-trained Language Models Better Few-shot Learners
A private fine-tuning update with ghost clipping
The steps in order.
Set the privacy budget before training
The authors use approximate differential privacy with add-or-remove adjacency. Imagine a dataset containing a record and a neighboring version from which that record has been removed. The training algorithm produces a probability distribution over outputs on either dataset because its sampling and noise are random. For any event concerning the output, differential privacy imposes the following bound.
Pr[ℳ(X) ∈ Y] ≤ exp(ε) · Pr[ℳ(X′) ∈ Y] + δ
Here ℳ is the randomized training algorithm, X and X′ are adjacent datasets, and Y is any set of possible outputs. The symbol ∈ means that the realized output belongs to that set, and Pr gives the probability over the algorithm’s randomness. The allowance exp(ε) is the multiplicative part, the exponential of the privacy parameter ε. The parameter δ supplies the additive allowance. Smaller values give a stronger guarantee. Since the condition applies to every adjacent pair, it also applies with X and X′ exchanged.
The formula compares probabilities of output events. It does not require neighboring runs to reach identical parameters or to generate identical responses. It limits the effect of the record across the output distribution, including events the authors never test empirically. The authors use the following general setting for the additive allowance.
δ = 1 / (2 |𝒟ₜᵣₐᵢₙ|)
In this formula 𝒟ₜᵣₐᵢₙ is the training set, vertical bars denote its number of records, and δ is the additive privacy parameter. The main ε targets are 3 and 8. The value of δ changes with dataset size under this convention. Some comparisons, including a separate optimizer experiment, explicitly use a fixed δ and report that setting with the result.
For each training run, the privacy accountant needs the sampling rate, the number of updates, and the scale of the Gaussian noise. The paper uses Poisson sampling, under which records are included independently with a common probability on each step. That probability is the sampling rate.
q = B / N
Here q is the inclusion probability for a record on a step, N is the number of training records, and B is the expected batch size. The realized number of selected examples can vary. This is why B in the calculation is an expected size rather than a count enforced on every draw.
The primary accountant uses Rényi differential privacy. It calculates privacy loss for the sequence of sampled Gaussian mechanisms and converts the result to an upper bound under approximate differential privacy. With the target ε and δ fixed, the authors numerically invert that procedure to choose the noise multiplier σ for the planned number of updates S and sampling rate q. Here S counts parameter updates. An epoch refers to a pass through the dataset, and under the sampling scheme it describes the corresponding amount of data processed in expectation. A change to batch size or training duration can therefore require recalculating σ.
The paper reports other privacy calculations for the selected noise as well. Its Gaussian differential privacy calculation uses a central limit theorem, providing an approximation when the number of composed steps is finite. The authors note that this approximation can underestimate privacy loss. They also report a calculation that numerically composes tradeoff functions using a fast Fourier transform. It gives upper and lower bounds on ε. The Rényi calculation is the one the authors invert to set the training noise, even though its upper bound can be loose.
Clip the individual gradients and perturb their sum
A gradient gives the local direction and magnitude of change in a loss as the parameters vary. For the private update, the algorithm needs a bound on what any record contributes. It imposes that bound by scaling the entire gradient vector for the example by a common factor.
Clip(v, C) = v · min(1, C / ‖v‖₂)
Here v is a gradient vector, C is the clipping threshold, and ‖v‖₂ denotes the Euclidean length of v. The function min selects the smaller of its arguments. A gradient whose length is at most C keeps its original value, including a zero vector. A longer gradient is shortened to C while retaining its direction. Thus the clipped sum can gain at most one bounded vector from adding a record to a sampled batch.
One can write the update gradient in a form that distinguishes the signal being estimated from the added noise.
g̃ = (1 / B) ∑ᵢ∈ℬ Clip(∇ℒᵢ, C)
The vector g̃ is the average clipped contribution using the expected batch size B as the denominator. The set ℬ contains the indices actually sampled on that step, i indexes a selected record, and ∑ adds over those indices. The loss for that record is ℒᵢ, and ∇ℒᵢ is its gradient with respect to the trainable parameters. The function Clip and threshold C are as defined above.
z ∼ 𝒩(0, C²σ²Iₚ)
The vector z is the noise added to the sum before normalization. The symbol ∼ means it is drawn from the Gaussian distribution 𝒩. The mean is the zero vector and the covariance is C²σ²Iₚ, where σ is the multiplier chosen by the accountant, p is the number of coordinates in the gradient, and Iₚ is the identity matrix of that dimension. The identity covariance factor gives the coordinates independent noise of equal variance. The standard deviation in each coordinate is Cσ.
ḡ = g̃ + z̄
The vector ḡ is the privatized gradient passed to the optimizer. The clipped average g̃ is the signal term and z̄ is the normalized noise, obtained by dividing z by B. Adam maintains its moment estimates and chooses parameter changes using ḡ. DP-SGD shares this gradient privatization step. The difference between the optimizers lies in how they turn the privatized gradient into a parameter update.
The clipping threshold affects both terms. A small threshold compresses the range of individual gradient magnitudes and reduces the noise scale. A threshold much larger than the gradient lengths passes the gradients through while still increasing the magnitude of the noise. The authors treat C as an optimization hyper-parameter, alongside the learning rate that governs the size of parameter changes. The privacy accounting uses σ as a multiplier relative to C, so changing the clipping threshold changes the scale of the update and its noise together.
Understand the noise after normalization
The authors use an effective noise multiplier to explain why batch size is consequential even when the privacy accountant recalculates σ for each setting.
σₑff = σ / q = σN / B
Here σₑff is the effective noise multiplier, σ is the multiplier for the Gaussian perturbation to the sum, q is the sampling rate, N is the dataset size, and B is the expected batch size. Rewriting the noise this way separates the dataset size from the batch and sampling effects.
z̄ ∼ 𝒩(0, C²σₑff²Iₚ / N²)
The random vector z̄ is the perturbation to the normalized gradient. The distribution 𝒩 has zero mean and the displayed covariance. The symbols C, σₑff, Iₚ, and N denote the clipping threshold, effective multiplier, identity matrix over gradient coordinates, and number of records. At a given C and N, the effective multiplier governs the scale of this noise.
r = ‖g̃‖₂ / ‖z̄‖₂
Here r is the signal-to-noise ratio for a step. Its numerator is the Euclidean length of the clipped average g̃. Its denominator is the Euclidean length of the normalized noise draw z̄. The authors use this ratio as a diagnostic during training. They reason that with moderately large batches the average of bounded gradients tends to concentrate, making variation in the size of the noise particularly relevant. This reasoning motivates the diagnostic. It does not turn the ratio into a prediction of final task performance for an arbitrary training run.
There is also a distinction between per-coordinate noise and the length of the whole noise vector. The scale of ‖z‖₂ is Cσ√p, where the square root is taken over the number p of perturbed coordinates. That dependence motivates reducing dimension. The utility of an update also depends on the task signal and on what the pretrained system needs to learn. Those quantities can vary with checkpoint size even under the same privacy target.
Compute the clipping coefficients without storing the gradients
The important intermediate quantity is one coefficient per example. If the optimizer has that coefficient, the clipped sum can be obtained by backpropagating through a weighted batch loss. In that backward pass each coefficient is treated as a fixed weight.
cᵢ = min(1, C / ‖∇ℒᵢ‖₂)
Here cᵢ is the weight for record i, C is the whole-gradient clipping threshold, and ‖∇ℒᵢ‖₂ is the Euclidean norm of that record’s gradient over trainable parameters. The min operation keeps the weight at unity when the gradient is within the bound. A zero gradient needs no reduction.
ℒweighted = ∑ᵢ cᵢℒᵢ
The scalar ℒweighted is the reweighted loss for the sampled examples. The sum runs over their indices i, cᵢ is the clipping coefficient, and ℒᵢ is the corresponding task loss. With the weights fixed, differentiation yields the sum of the individually scaled gradients. Differentiating through a weight would introduce additional terms, so the weight is held fixed for this calculation.
The earlier layer-by-layer method obtains the full norm by accumulating each layer’s contribution. This follows from the Euclidean norm of a concatenation.
‖u‖₂ = ‖(‖u₁‖₂, …, ‖uₖ‖₂)‖₂
Here u is the vector made by concatenating the k component vectors u₁ through uₖ. The inner norm signs take the length of each component. The outer norm takes the length of the resulting vector of lengths, and the ellipsis covers all intermediate components. For disjoint parameter blocks, the gradient for each block supplies one component. The layer-by-layer discussion uses this argument for layers without parameter sharing, so the pieces correspond to distinct coordinates of the full gradient.
The calculation at a linear layer uses the input activations and the derivative of the loss with respect to the layer’s output. Write W for the weight matrix, with p output features and d input features. Here p describes this layer’s output width, a local use of the symbol. For record i at sequence position j, the layer operation without bias is the following.
sᵢⱼ = Waᵢⱼ
The column vector aᵢⱼ is the d-dimensional input at position j of record i, W is the weight matrix with p rows and d columns, and sᵢⱼ is the p-dimensional output. Let aᵢ collect the inputs for all T positions of the record as rows. Let gᵢ collect the output derivatives in the same order, where T is the sequence length. The derivative of the example’s loss with respect to W can then be written as a matrix product.
∇ᴡℒᵢ = gᵢᵀaᵢ
Here ∇ᴡℒᵢ is the matrix of partial derivatives of ℒᵢ with respect to W, gᵢ is the T-by-p output-derivative matrix, and aᵢ is the T-by-d input matrix. Superscript ᵀ denotes transposition. The matrix product sums the contributions of the T positions and has the same shape as W. Computing this matrix for every example is the costly operation the authors avoid.
‖∇ᴡℒᵢ‖ꜰ² = vec(aᵢaᵢᵀ)ᵀ vec(gᵢgᵢᵀ)
The left side is the squared Frobenius norm of the gradient matrix, meaning the sum of the squares of its entries. The expression vec flattens a matrix into a vector using the same ordering on both sides of the product. The two matrices inside vec contain pairwise inner products over sequence positions. The entry for a pair of positions in aᵢaᵢᵀ is the inner product of their activations. The matching entry in gᵢgᵢᵀ is the inner product of their output derivatives. Transposing the first flattened vector makes the final product an inner product over those matched entries.
The appendix derives the identity by squaring the sum of position contributions to each gradient entry. Expanding that square produces terms involving pairs of positions. The sum over input coordinates can then be grouped separately from the sum over output coordinates, yielding the two pairwise products above. Contributions at different positions can reinforce or cancel each other. Computing the norm of a gradient for an entire record therefore involves those cross-position terms. When T = 1, the pairwise products each have a single entry and the expression reduces to the product of the squared input and output-derivative norms, the case addressed by the earlier Goodfellow computation.
The resulting memory comparison concerns the extra arrays used to compute gradient norms. For a batch with B examples in the layer calculation, forming the parameter gradients has memory order O(Bpd). Computing the pairwise matrices instead has order O(BT²). Here O describes the scaling of the memory requirement, B counts examples in the computation, p and d are the layer widths, and T is the sequence length. The comparison excludes the activations and output derivatives common to both calculations. The benefit is especially relevant when a layer’s weight matrix is large relative to the pairwise position matrices. An embedding lookup fits the linear-layer argument because it can be understood as applying a matrix to a one-hot vector representing the input token.
Transfer optimization settings across tasks
The main procedure uses E2E validation BLEU to choose hyper-parameters for the adaptation methods. For the remaining tasks the authors reuse most settings. SST-2 takes the E2E batch size and uses 3 epochs, following the usual non-private epoch count for that task. For the other classification datasets, they use batch sizes that retain the SST-2 sampling rate and choose epoch counts approximately proportional to dataset size.
Transferring a sampling rate preserves the fraction of records expected to enter each update. Transferring a raw batch size from a small dataset to a much larger one would reduce that fraction and could lead to a worse effective noise multiplier. Matching sampling rates alone still allows other inputs to the accountant to change, including the number of steps and the dataset-dependent δ. The transfer procedure also reduces the need to select hyper-parameters repeatedly on each target dataset. When the selection itself uses private training or validation data, it can incur additional privacy loss.
Experiments and results
Sentence classification on GLUE
The classification study uses MNLI, QQP, QNLI, and SST-2. The authors select GLUE tasks with more than 10k training examples. Their description gives 60k+ training examples for SST-2 and 100k+ for QNLI, with MNLI and QQP each below 400k. Accuracy on the development split is the outcome reported in the main comparison. It measures whether the classifier assigns the correct target category, regardless of whether that category was predicted directly or through the masked-word construction.
The paper compares full fine-tuning with reparameterized gradient perturbation, or RGP. The latter conducts privatized updates in lower-dimensional spaces and is a strong private baseline in the paper’s classification setting. For RGP, the authors use the numbers documented in the released implementation, which were higher than the numbers originally reported for that method. They explain that the earlier published numbers did not come from adaptation of the official RoBERTa checkpoints. For each ε target, the paper identifies the leading development accuracies using a two-sample test.
Full fine-tuning with text infilling beats the reported RGP comparison on every task in this set. The privacy settings also matter to the interpretation. The RGP results use ε = 3 or ε = 8 with δ = 10⁻⁵. The paper’s own classification runs use the same ε targets with the smaller, training-set-dependent δ. The authors also report an advantage for private RoBERTa-large over TextHide with BERT-base at ε = 3 for the private run. TextHide is a heuristic protection baseline, so its accuracy supplies a utility comparison under a different privacy setup.
In the reported classification comparison, RGP completes updates faster than full adaptation and requires over three times as many epochs. Overall elapsed time is comparable. That result is useful for reading the accuracy comparison alongside its computational cost. An update can be cheap while the end-to-end procedure still takes substantial time. Conversely, a method that updates the whole checkpoint can remain feasible when it needs fewer passes through the training data.
Generating text from tables
E2E supplies restaurant-domain examples with more than 40k training records. DART has more than 60k training records and uses open-domain entries from Wikipedia. The task in each case is to express structured content in a natural-language description, with DART presenting the more varied setting. The authors decode with beam search of width 5, which keeps several candidate continuations in consideration during generation. They use the official E2E evaluation pipeline and the GEM evaluation pipeline for DART.
The private comparisons include full fine-tuning, LoRA, prefix-tuning, and RGP. The paper also evaluates updating the top 2 Transformer blocks and starting from scratch. These baselines vary in what can change and how much the method relies on the pretrained starting point. Prefix-tuning learns a continuous conditioning prefix. LoRA learns a low-rank representation of a weight change. In the paper’s GPT-2 example with 125 million parameters, default prefix-tuning optimizes 10 million parameters, and LoRA with rank 4 optimizes 0.15 million parameters. The number of trainable parameters spans markedly different scales within the same task.
Full fine-tuning and LoRA are generally among the strongest methods on E2E, and the authors report a consistent pattern on DART. That comparison shows why the experiment includes choices on both sides of the trainable-parameter question. The good LoRA results give a case where a much smaller update can work. The good full fine-tuning results show that using all the coordinates can also work under the specified budget. The reported ordering does not support choosing a method by the parameter count alone.
The E2E tuning study provides an explicit comparison with an earlier sequence-to-sequence baseline. With the number of epochs fixed and ε = 3, the best settings in the private GPT-2 batch-size and learning-rate sweep reach 62 test BLEU. The earlier non-private sequence-to-sequence system reaches 65 test BLEU on E2E. BLEU measures overlap between generated text and reference text using sequences of words. Here the scores position the tuned private run relative to a published generation result on the same test split, with different training systems and conditions. BLEU score
The authors also compare DP-SGD and DP-Adam on E2E at ε = 8 and δ = 10⁻⁵. They freshly tune DP-SGD’s learning rate and clipping norm. The test BLEU scores are 63.175 for DP-SGD and 63.189 for DP-Adam. This is a more direct comparison of update rules than the comparison with the earlier non-private sequence-to-sequence system. It starts from GPT-2 on the same task with the same specified privacy parameters, and the authors characterize the results as on par.
DP-SGD and DP-Adam on E2E test BLEU
With the same privacy budget, the tuned optimizers give nearly identical scores.
The numbers
| System or setting | BLEU |
|---|---|
| DP-SGD | 63.175 |
| DP-Adam (this paper) | 63.189 |
Generating conversational responses
For dialogue, the authors use a processed version of Persona-Chat with 130k training entries. Each entry includes a dialogue history, persona descriptions of the respondent, and a target response. The paper uses the version with the original persona descriptions. The authors adapt GPT-2, GPT2-medium, and DialoGPT-medium, with both private and non-private runs. The motivation for including DialoGPT is its conversational pretraining on exchanges from Reddit comment chains. That gives it prior experience with the form of the downstream task as well as the general ability to predict tokens.
The authors use validation perplexity, validation F1, and human judgments. Lower perplexity means the system assigns higher probability to the observed text. F1 captures overlap between a generated response and the reference. The authors obtain the responses for F1 with beam search of width 5. A conversation can admit many suitable replies, and the paper cites earlier evidence that a fixed response can game the overlap measure. Human judges address a different question by rating generated replies in the context of the dialogue history.
For that human evaluation, generations are sampled with nucleus sampling at p = 0.9. Nucleus sampling draws from the high-probability portion of the next-token distribution, with p setting its cumulative probability threshold. The study asks 20 raters to judge 5 entries each on a scale of 1 to 5. They rate private and non-private DialoGPT-medium responses, responses from the non-private GPT reimplementation, and the reference reply. The dialogue table reports a 95% asymptotic confidence interval for the human ratings. The Curious Case of Neural Text Degeneration
The private DialoGPT-medium run at ε = 8 achieves lower validation perplexity than the non-private ConvAI2 winning entry. The paper describes its human rating as close to those of the non-private systems. The authors draw the winner’s numbers from the official validation leaderboard and also build a reimplementation from the released winning code. Their own training and evaluation omit the candidate-response selection component of the original competition. The dialogue experiment thus reports how well the systems generate or score responses under the chosen protocol, while the leaderboard comparison is about the particular metric they have in common.
Memory and throughput
The systems benchmark compares ghost clipping with explicit per-example gradients in Opacus, the layer-by-layer approach of Lee and Kifer, non-private PyTorch training, and a JAX implementation of ordinary private gradient computation with compilation and vectorization enabled. The benchmark uses mock sequences in E2E format at length 100, close to the upper end of the lengths in the actual E2E training set. All the timing and capacity comparisons in this benchmark use full precision. The authors also adjust the Opacus 0.14.0 implementation to remove costly tensor operations they regard as unnecessary.
They first search for the largest batch that fits for each implementation. To compare throughput, they pair each private implementation with the non-private reference and use a logical batch size that is a common multiple of their maximum batch sizes. Each comparison processes the same number of examples and takes the same number of updates, with gradient accumulation making up the larger logical batch as needed. The timed runs start after 3 warm-up updates, excluding JAX compilation time from the measurement. Throughput is then expressed relative to ordinary training.
The reported memory comparison describes ghost clipping as 3 times more memory efficient than Opacus for typical sequences and close to non-private training across the evaluated sizes. For GPT-2-large, neither Opacus nor JAX can fit even a microbatch containing one example together with gradient accumulation on the TITAN RTX with 24 GB of video memory. Ghost clipping handles that case and processes 10% more examples per unit time than the earlier layer-by-layer method. For smaller systems, its throughput gain over Opacus is minor. Its advantage in the largest case comes with a practical consequence: the comparison includes methods that can complete the update and methods that reach the device’s capacity first.
The paper separately estimates end-to-end runtimes with a single RTX 3090 and PyTorch 1.9.0. On E2E and DART, each epoch of full private GPT-2 fine-tuning takes under 10 minutes, and the authors characterize performance after 10 epochs as reasonable. For the classification tasks, a RoBERTa-base epoch takes under 10 minutes on SST-2 and under an hour on MNLI. These are estimates for those workloads and software settings. The authors release the headline experiment code as private-transformers.
What the ablations show
Batch size depends on what the experiment holds fixed
The fixed-epoch study changes batch size and learning rate together. At a fixed number of epochs, larger batches mean fewer optimizer updates for the same expected number of processed examples. The question is whether those fewer steps can move the parameters far enough while using the more informative aggregate available in a larger batch. On E2E with GPT-2 and ε = 3, the higher-performing part of the sweep pairs a large batch with a large learning rate. Pairing a small batch with a small learning rate gives substantially worse test BLEU.
The comparison matters because relatively small batches and learning rates are conventional choices for ordinary Adam fine-tuning. The result also calls into question an earlier heuristic that increasing the batch size and learning rate by the same factor should preserve quality. In the small-batch regime, the two configurations joined by that rule can behave quite differently. The appendix reports that the heuristic fails to generalize on E2E when q is below 2⁻⁸. It examines a premise behind the rule, namely that the noise multiplier approximately follows a square-root relationship with the sampling rate at fixed privacy. For small q, this relationship underestimates the multiplier computed numerically. The paper illustrates the discrepancy with ε = 3, δ = 10⁻⁵, a sample size of 50k, and 50 epochs.
A second batch-size study instead holds the number of updates fixed along with the learning rate, clipping threshold, and privacy parameters. In this comparison a larger batch means processing more examples over the full run. The authors find that larger batches nearly always yield better performance under those controls, at the cost of greater computation. Their effective noise multiplier declines as the batch size increases over the tested conditions. In E2E runs, higher batch sizes up to a threshold also correspond to higher measured signal-to-noise ratios near the beginning of training. The authors average the ratio over the first 30 updates and compare it with final performance.
The two studies identify distinct constraints. At a fixed update count, enlarging the batch can improve the gradient received on each step and costs more data processing. At a fixed epoch count, each enlargement also removes update opportunities, so the learning rate has to be considered alongside it. The early signal-to-noise ratio tracks the final outcome in the experiment and offers a plausible account of the trend. The correlation leaves room for other aspects of training to affect final BLEU.
Clipping changes the signal as well as the noise
The clipping comparison favors a low threshold that causes nearly all example gradients to be clipped across training. A high threshold makes the private perturbation large even when the actual gradients already fit well below the cap. This is one reason an implementation that mechanically carries over tuning choices can give a misleading impression about private learning. The damage can come from the size of the perturbation relative to the gradients that are actually observed.
A low threshold also discards some information about how gradient magnitudes differ among records. In the studied runs, the resulting updates work well even with that compression. The authors’ finding is about where the tradeoff falls for their private fine-tuning problems. The appropriate threshold still depends on the optimization setup, including how the loss and gradients are scaled.
Mixed precision provides a concrete example of that dependency. Training in reduced numerical precision can use an adaptive multiplier K on the loss to keep very small values representable during back-propagation. In the authors’ implementation, the clipping threshold is multiplied by K, the noise is multiplied by K, and the privatized aggregate is then divided by K. This keeps the private operation in the same units as the scaled gradients during the backward pass. The authors obtain similar E2E outcomes in mixed and full precision with this treatment.
An implementation examined by the authors instead clips the scaled gradients and adds noise using the original scales, then divides the result by K. That procedure can retain the same privacy guarantee while changing how the chosen hyper-parameters act during optimization. The authors traced poor full fine-tuning results in the earlier RGP code to this issue. With the correction, that implementation produces SST-2 full fine-tuning results similar to theirs. The comparison distinguishes the privacy validity of an update from its usefulness for learning under a given configuration.
The prediction objective helps under more than one update rule
The first classification analysis asks what happens when the training target is turned into a masked-word prediction. For SST-2, the paper reports improvements of 3~5% in private fine-tuning performance across settings using a generic template. The architecture has already learned to associate a masked position with likely continuations from its vocabulary. The revised objective makes the new label accessible through that operation. This is a change in the learning problem faced by the optimizer even when the underlying decision remains a sentiment label.
There is also variation within the infilling formulation. The authors use zero-shot performance, measured before task-specific fine-tuning, as an indication of how well different label words fit the task. Better alignment according to that diagnostic improves private SST-2 performance by 1-2% in the reported comparison. In the corresponding non-private comparison, the variation with label-word choice is not statistically significant. The fixed-prompt design therefore has consequences beyond the presence of a mask. The words assigned to the classes can change how much work the private training run has to do.
The authors conduct a further comparison within RGP. They reimplement it in full precision, tune its hyper-parameters, then fix those settings and switch the classification objective between infilling and the ordinary version. Infilling is generally beneficial across the studied tasks, with results averaged over three independent runs. That control gives evidence for the objective itself. Its usefulness carries over to a method whose updates are restricted to a low-dimensional space, even though the headline classification comparison uses full fine-tuning.
The starting checkpoint and the update space both matter
In the size experiment, the authors fully adapt four sizes of GPT-2 and three sizes among BERT and RoBERTa. They tune on the smallest checkpoint for each type and reuse those settings for the larger checkpoints of that type. They keep the privacy budget fixed in the comparisons. The paper summarizes E2E and MNLI in its opening figure and reports a similar pattern on 5 additional tasks. The dimensionality section averages results over three independent seeds.
This design avoids giving larger checkpoints their own separate, favorable tuning search. The finding is that the larger pretrained choices tend to yield better private results in spite of their higher-dimensional updates. The authors acknowledge dimension-dependent lower bounds for private convex optimization. A comparison among usable pretrained starting points addresses a different empirical question. In these tasks a larger checkpoint can begin from a better position for adaptation, which can outweigh the effect of the increased dimensionality of the update.
The update restriction comparison adds evidence from a different direction. Full fine-tuning and LoRA both work well in table-to-text generation. For dialogue, the authors report substantial difficulties when leaving the embedding layer and language prediction head unchanged, even in non-private runs. Perplexity worsens and generated responses frequently contain apparently arbitrary characters. The relevant restriction in this case is which parts of the system are allowed to change. The result gives a concrete reason why a strong smaller update on one generation task may fail to transfer to another.
Varying the guarantee and checking memorization
In a separate sensitivity analysis, the paper varies ε and δ for full fine-tuning. The authors describe a marginal effect from changing δ over the range they evaluate, with a more pronounced performance effect from changing ε when ε is below 2. Their caption reports error bars of one standard deviation around the mean over five independent runs. These are sensitivity observations under the tested configuration. The two quantities retain distinct roles in the definition of differential privacy regardless of how strongly the measured performance responds to them.
The memorization check asks whether an empirical exposure measure reflects the effect of private training. The authors insert artificial canaries into the E2E fine-tuning set. They construct prefixes in the style of table entries and generate random target suffixes from a sampled subvocabulary of V = 10 words. The suffixes average ℓ = 5 words. They vary the repetition count r across 1, 10, and 100 instances. Here repetition deliberately gives the learner more opportunities to pick up the same rare target.
log₂(V^ℓ) ≈ 17
Here log₂ is the base-2 logarithm, V is the number of words in the sampled vocabulary, and ℓ is the average suffix length used in the paper’s estimate. The expression gives the paper’s approximate exposure level at which extraction is considered likely for this construction. The authors estimate exposure through a distribution-model approximation rather than reporting a direct extraction success rate.
The paper interprets the comparison as evidence that private fine-tuning suppresses unintended memorization of these downstream canaries. The diagnostic complements the privacy accounting by looking at a particular behavior of the trained system. Its repetition conditions, random strings, and E2E format define the scope of that observation. The formal bound applies to a record’s influence on output probabilities. The exposure experiment is about how easily a chosen kind of inserted sequence stands out among possible completions.
Limitations
Limits identified by the authors
The checkpoints used for pretraining are publicly accessible, and some were trained on internet data collected permissively. The authors point out that those data can include personally identifiable information. A downstream fine-tuning guarantee starts with the checkpoint as given and bounds the influence of the downstream records. It leaves open what the checkpoint learned before that run. The authors chose widely accessible checkpoints to facilitate reproduction and identify more carefully curated public pretraining corpora as relevant to practical use.
The tuning study covers basic settings, with substantial effects from learning rate, batch size, and clipping threshold. The authors identify weight decay and schedules for learning rate, clipping, and batch size as open parts of the problem. A schedule would change a setting as training proceeds. These choices could alter the behavior observed under fixed configurations. The authors also flag that a search using private training or validation data has its own privacy cost. Tuning mainly on E2E and transferring settings helps limit repeated searches, but the transferred classification settings may be far from optimal.
The authors qualify the scaling result by the choice of pretrained systems. The comparisons show a pattern across the tested families and tasks. They leave open how pretraining helps and what properties of pretraining might make a checkpoint especially suitable for private adaptation. Non-private work on scaling laws supplies a context for this question. The paper does not fit a law predicting private quality from parameter count, data, and compute. Its comparisons support a narrower conclusion about the checkpoints and budgets tested.
The paper also limits the scope of the clipping implementation. Its ghost identity targets linear operations on sequences, and the authors study clipping by the Euclidean norm. They leave alternative clipping methods for natural language tasks to future work. Their memory result concerns the feasibility of the private gradient computation and comes with an extra backward pass. It is compatible with a substantial practical benefit even when the training procedure spends more computation per batch.
Finally, all the experiments use public datasets. The ethics statement treats them as evidence that the procedure could be useful when real downstream data are sensitive. The authors also raise the possibility that success at private learning could encourage organizations to collect more data. They identify representation bias as an example of a harm outside the protection measured by differential privacy. The guarantee addresses how much the release can depend on a training record, while the effects of data collection and the behavior of the resulting system involve further questions.
Limits visible in the experimental setup
The record-based adjacency definition is narrower than a guarantee for a person whose contributions occur in several records. A conversational turn and its accompanying context form one example in this study. A contributor could appear in multiple examples. The neighboring-dataset comparison for removing a whole contribution history would then involve multiple record changes, outside the single-record guarantee as stated. The same distinction matters for repeated canaries. Repetition is an experimental condition for exposure, and removal of every repeat differs from the neighboring operation used in the accountant.
The utility metrics cover specific task outcomes. Development accuracy tracks the classifier’s assigned labels. BLEU compares generated text with references, and perplexity reflects how probable the validation text is under the system. The human dialogue evaluation adds a contextual judgment, with uncertainty reported for the ratings. A system that does well on these measures has demonstrated useful task behavior under the tested protocol. The evaluation leaves wider questions about conversational reliability, unusual inputs, and specific disclosure behavior outside its scope. The canary experiment addresses one artificial setting for disclosure in the downstream data.
Model size is also correlated with other differences in the scaling comparisons. Increasing size changes the checkpoint available at the start, the number of coordinates in an update, and the resources used in training. Holding hyper-parameters and privacy budgets fixed makes the comparisons informative about which pretrained choices work well under a shared procedure. It does not isolate the causal effect of adding parameters to an otherwise equivalent starting point. Similarly, full fine-tuning and low-rank adaptation differ in the form of the changes they can make. Their rankings cannot be reduced to an experiment in adding noise to different numbers of interchangeable coordinates.
The memory figures depend on workload shape and implementation. The pairwise matrices in ghost clipping grow with the square of sequence length, while the explicit-gradient cost depends on the product of the layer widths. The relative advantage therefore depends on which quantities are large. The hardware result and throughput improvement concern the tested device, software implementations, and E2E-format sequences. The reported E2E examples are useful for understanding the comparison, while substantially longer sequences or different layers change the costs that need to be weighed.
Some baselines also serve different purposes. TextHide gives an accuracy comparison with a heuristic privacy approach. RGP gives a private classification comparison, with an explicitly different δ convention in the results used. The leaderboard winner on Persona-Chat provides a benchmark for common validation metrics, though the original competition also included candidate-response selection. Finally, a private system can outperform a particular non-private baseline when the systems differ in their starting checkpoint, objective, or amount of adaptation. That tells the reader what level of utility the private run reaches. An isolated effect of privacy would require otherwise matched training comparisons.
What came after
The later works that cite the paper approach language privacy from several directions. The surveys place privacy alongside security or treat it as a subject in its own right. That framing gives the fine-tuning result a specific role. It is evidence about what can be done when privacy protection is built into the training procedure, under explicit budgets and on defined downstream tasks. A survey of the larger area has questions to cover beyond those training experiments, including what kinds of privacy problems arise and where mitigation enters the system. A Survey on Large Language Model (LLM) Security and Privacy, Security and Privacy Challenges of Large Language Models, and Privacy Issues in Large Language Models
Other citing work takes assessment as its starting point. DecodingTrust addresses trustworthiness across several concerns, whereas the works on personal information focus on leakage. These questions relate to the distinction between the paper’s accountant and its canary experiment. The accountant bounds how neighboring training sets can affect the released output distribution. A leakage assessment asks what a system actually reveals under specified observations. It can investigate information in a checkpoint whose pretraining lies outside a downstream privacy guarantee. The connection is through the problem being measured, with the formal guarantee and the empirical assessment supplying different kinds of evidence. DecodingTrust, Analyzing Leakage of Personally Identifiable Information in Language Models, and Are Large Pre-Trained Language Models Leaking Your Personal Information?
The works on memorization and membership inference bring the unit of evaluation into focus. Studying memorization through training dynamics concerns how examples are retained over the course of learning. Work on sensitive information in fine-tuned systems brings that question directly to the adaptation stage, where the original paper inserted synthetic records to study unintended memorization. Neighborhood comparison addresses whether an example’s membership can be inferred, a question about evidence that it took part in training. These are related ways of investigating what an individual example leaves behind. Each examines a different observable consequence of learning from the example. Memorization Without Overfitting, Unintended Memorization of Sensitive Information in Fine-Tuned Language Models, and Membership Inference Attacks against Language Models via Neighbourhood Comparison
Data preparation offers another point of intervention. The work on deduplication addresses repeated training material, a concern that the private fine-tuning paper makes concrete by testing different canary repetition counts. The Text Anonymization Benchmark concerns how to evaluate the anonymization of text, placing the intervention on the records themselves. Both topics connect to the authors’ concern about what goes into training, including the contents of public pretraining corpora. A benchmark for anonymization evaluates work on the data, while the guarantee in private fine-tuning concerns how much a change to those data can influence the trained result. Deduplicating Training Data Mitigates Privacy Risks in Language Models and The Text Anonymization Benchmark
The unlearning papers consider what to do after a system has acquired information. The work on knowledge unlearning frames forgetting as a way to mitigate privacy risks. The other papers address efficient unlearning and unlearning in pretrained systems. This is a different intervention point from private fine-tuning, which sets a bound before the downstream run starts. Their relation is clearest when the starting checkpoint may already contain sensitive material. Bounding the influence of new records answers the training-time question, while unlearning investigates whether information already acquired can be removed. Knowledge Unlearning for Mitigating Privacy Risks in Language Models, Unlearn What You Want to Forget, and Machine Unlearning of Pre-trained Large Language Models
Cite
Cite as Xuechen Li, Florian Tramèr, Percy Liang and Tatsunori Hashimoto. 2021. Large Language Models Can Be Strong Differentially Private Learners. arXiv (Cornell University).
@misc{li2021large,
title = {{Large Language Models Can Be Strong Differentially Private Learners}},
author = {Xuechen Li, Florian Tramèr, Percy Liang and Tatsunori Hashimoto},
year = {2021},
doi = {10.48550/arxiv.2110.05679},
eprint = {2110.05679},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2110.05679}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2021-large-language-models-can-be/
References
- Martin Abadi, Andy Chu, Ian Goodfellow, H Brendan McMahan, Ilya Mironov, Kunal Talwar, and Li Zhang. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC conference on computer and communications security, pp. 308–318, 2016. our card
- Rohan Anil, Badih Ghazi, Vineet Gupta, Ravi Kumar, and Pasin Manurangsi. Large-scale differentially private bert. arXiv preprint arXiv:2108.01624, 2021. our card
- Hilal Asi, John Duchi, Alireza Fallah, Omid Javidbakht, and Kunal Talwar. Private adaptive gradient methods for convex optimization. In International Conference on Machine Learning, pp. 383–392. PMLR, 2021. OpenAlex ↗ · Scholar ↗
- Raef Bassily, Adam Smith, and Abhradeep Thakurta. Differentially private empirical risk minimization: Efficient algorithms and tight error bounds, 2014. OpenAlex ↗ · Scholar ↗
- Elad Ben Zaken, Shauli Ravfogel, and Yoav Goldberg. Bitfit: Simple parameter-efficient fine-tuning for transformer-based masked language-models. arXiv e-prints, pp. arXiv–2106, 2021. our card
- Rishi Bommasani, Steven Wu, and Xanda Schofield. Towards private synthetic text generation. In NeurIPS 2019 Machine Learning with Guarantees Workshop, 2019. OpenAlex ↗ · Scholar ↗
- Rishi Bommasani, Drew A Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, et al. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021. our card
- Zhiqi Bu, Jinshuo Dong, Qi Long, and Weijie J Su. Deep learning with gaussian differential privacy. Harvard data science review, 20200 (23), 2020. OpenAlex ↗ · Scholar ↗
- Zhiqi Bu, Sivakanth Gopi, Janardhan Kulkarni, Yin Tat Lee, Judy Hanwen Shen, and Uthaipon Tantipongpipat. Fast and memory efficient differentially private-sgd via jl projections. arXiv preprint arXiv:2102.03013, 2021. OpenAlex ↗ · Scholar ↗
- Han Cai, Chuang Gan, Ligeng Zhu, and Song Han. Tinytl: Reduce memory, not parameters for efficient on-device learning. arXiv preprint arXiv:2007.11622, 2020. OpenAlex ↗ · Scholar ↗
- Nicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos, and Dawn Song. The secret sharer: Evaluating and testing unintended memorization in neural networks. In 28th $\{$USENIX$\}$ Security Symposium ($\{$USENIX$\}$ Security 19), pp. 267–284, 2019. our card
- Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, et al. Extracting training data from large language models. arXiv preprint arXiv:2012.07805, 2020. our card
- Kamalika Chaudhuri and Staal A Vinterbo. A stability-based validation procedure for differentially private machine learning. Advances in Neural Information Processing Systems, 26:0 2652–2660, 2013. OpenAlex ↗ · Scholar ↗
- Dingfan Chen, Tribhuvanesh Orekondy, and Mario Fritz. Gs-wgan: A gradient-sanitized approach for learning differentially private generators. arXiv preprint arXiv:2006.08265, 2020. OpenAlex ↗ · Scholar ↗
- Maximin Coavoux, Shashi Narayan, and Shay B Cohen. Privacy-preserving neural representations of text. arXiv preprint arXiv:1808.09408, 2018. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. our card
- Emily Dinan, Varvara Logacheva, Valentin Malykh, Alexander Miller, Kurt Shuster, Jack Urbanek, Douwe Kiela, Arthur Szlam, Iulian Serban, Ryan Lowe, et al. The second conversational intelligence challenge (convai2). arXiv preprint arXiv:1902.00098, 2019. our card
- Jinshuo Dong, Aaron Roth, and Weijie J Su. Gaussian differential privacy. arXiv preprint arXiv:1905.02383, 2019. OpenAlex ↗ · Scholar ↗
- Christophe Dupuy, Radhika Arava, Rahul Gupta, and Anna Rumshisky. An efficient dp-sgd mechanism for large scale nlp models. arXiv preprint arXiv:2107.14586, 2021. OpenAlex ↗ · Scholar ↗
- Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, pp. 265–284. Springer, 2006. OpenAlex ↗ · Scholar ↗
- Cynthia Dwork, Aaron Roth, et al. The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science, 90 (3-4):0 211–407, 2014. OpenAlex ↗ · Scholar ↗
- Jianfeng Gao, Michel Galley, and Lihong Li. Neural approaches to conversational ai. In The 41st International ACM SIGIR Conference on Research & Development in Information Retrieval, pp. 1371–1374, 2018. OpenAlex ↗ · Scholar ↗
- Tianyu Gao, Adam Fisch, and Danqi Chen. Making pre-trained language models better few-shot learners. arXiv preprint arXiv:2012.15723, 2020. our card
- Sebastian Gehrmann, Tosin Adewumi, Karmanya Aggarwal, Pawan Sasanka Ammanamanchi, Aremu Anuoluwapo, Antoine Bosselut, Khyathi Raghavi Chandu, Miruna Clinciu, Dipanjan Das, Kaustubh D Dhole, et al. The gem benchmark: Natural language generation, its evaluation and metrics. arXiv preprint arXiv:2102.01672, 2021. our card
- Ian Goodfellow. Efficient per-example gradient computations. arXiv preprint arXiv:1510.01799, 2015. OpenAlex ↗ · Scholar ↗
- Sivakanth Gopi, Yin Tat Lee, and Lukas Wutschitz. Numerical composition of differential privacy. arXiv preprint arXiv:2106.02848, 2021. OpenAlex ↗ · Scholar ↗
- Jamie Hayes, Luca Melis, George Danezis, and Emiliano De Cristofaro. Logan: Membership inference attacks against generative models. In Proceedings on Privacy Enhancing Technologies (PoPETs), volume 2019, pp. 133–152. De Gruyter, 2019. OpenAlex ↗ · Scholar ↗
- Ari Holtzman, Jan Buys, Li Du, Maxwell Forbes, and Yejin Choi. The curious case of neural text degeneration. arXiv preprint arXiv:1904.09751, 2019. our card
- Shlomo Hoory, Amir Feder, Avichai Tendler, Alon Cohen, Sofia Erell, Itay Laish, Hootan Nakhost, Uri Stemmer, Ayelet Benjamini, Avinatan Hassidim, et al. Learning and evaluating a differentially private pre-trained language model. In Proceedings of the Third Workshop on Privacy in Natural Language Processing, pp. 21–29, 2021. OpenAlex ↗ · Scholar ↗
- Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for nlp. In International Conference on Machine Learning, pp. 2790–2799. PMLR, 2019. our card
- Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. our card
- Yangsibo Huang, Zhao Song, Danqi Chen, Kai Li, and Sanjeev Arora. Texthide: Tackling data privacy in language understanding tasks. arXiv preprint arXiv:2010.06053, 2020a. OpenAlex ↗ · Scholar ↗
- Yangsibo Huang, Zhao Song, Kai Li, and Sanjeev Arora. Instahide: Instance-hiding schemes for private distributed learning. In International Conference on Machine Learning, pp. 4507–4518. PMLR, 2020b. OpenAlex ↗ · Scholar ↗
- P Kairouz, M Ribero, K Rush, and A Thakurta. Fast dimension independent private adagrad on publicly estimated subspaces. arXiv preprint arXiv:2008.06570, 2020. OpenAlex ↗ · Scholar ↗
- Gautam Kamath. Lecture 14 — Private ML and Stats: Modern ML. http://www.gautamkamath.com/CS860notes/lec14.pdf, 2020. OpenAlex ↗ · Scholar ↗
- Jared Kaplan, Sam McCandlish, Tom Henighan, Tom B Brown, Benjamin Chess, Rewon Child, Scott Gray, Alec Radford, Jeffrey Wu, and Dario Amodei. Scaling laws for neural language models. arXiv preprint arXiv:2001.08361, 2020. our card
- Gavin Kerrigan, Dylan Slack, and Jens Tuyls. Differentially private language models benefit from public pre-training. arXiv preprint arXiv:2009.05886, 2020. OpenAlex ↗ · Scholar ↗
- Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. our card
- Antti Koskela, Joonas Jälkö, and Antti Honkela. Computing tight differential privacy guarantees using fft. In International Conference on Artificial Intelligence and Statistics, pp. 2560–2569. PMLR, 2020. OpenAlex ↗ · Scholar ↗
- Jaewoo Lee and Daniel Kifer. Scaling up differentially private deep learning with fast per-example gradient clipping. arXiv preprint arXiv:2009.03106, 2020. OpenAlex ↗ · Scholar ↗
- Brian Lester, Rami Al-Rfou, and Noah Constant. The power of scale for parameter-efficient prompt tuning. arXiv preprint arXiv:2104.08691, 2021. our card
- Jiwei Li, Michel Galley, Chris Brockett, Jianfeng Gao, and Bill Dolan. A diversity-promoting objective function for neural conversation models. arXiv preprint arXiv:1510.03055, 2015. our card
- Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190, 2021. OpenAlex ↗ · Scholar ↗
- Jingcheng Liu and Kunal Talwar. Private selection from private candidates. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, pp. 298–309, 2019. OpenAlex ↗ · Scholar ↗
- Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. Gpt understands, too. arXiv preprint arXiv:2103.10385, 2021. OpenAlex ↗ · Scholar ↗
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. our card
- Rabeeh Karimi Mahabadi, James Henderson, and Sebastian Ruder. Compacter: Efficient low-rank hypercomplex adapter layers. arXiv preprint arXiv:2106.04647, 2021. our card
- Christopher D Manning, Kevin Clark, John Hewitt, Urvashi Khandelwal, and Omer Levy. Emergent linguistic structure in artificial neural networks trained by self-supervision. Proceedings of the National Academy of Sciences, 1170 (48):0 30046–30054, 2020. OpenAlex ↗ · Scholar ↗
- H Brendan McMahan, Daniel Ramage, Kunal Talwar, and Li Zhang. Learning differentially private recurrent language models. arXiv preprint arXiv:1710.06963, 2017. OpenAlex ↗ · Scholar ↗
- Oren Melamud and Chaitanya Shivade. Towards automatic generation of shareable synthetic clinical notes using neural language models. arXiv preprint arXiv:1905.07002, 2019. OpenAlex ↗ · Scholar ↗
- Paulius Micikevicius, Sharan Narang, Jonah Alben, Gregory Diamos, Erich Elsen, David Garcia, Boris Ginsburg, Michael Houston, Oleksii Kuchaiev, Ganesh Venkatesh, et al. Mixed precision training. arXiv preprint arXiv:1710.03740, 2017. OpenAlex ↗ · Scholar ↗
- Fatemehsadat Mireshghallah, Huseyin A Inan, Marcello Hasegawa, Victor Rühle, Taylor Berg-Kirkpatrick, and Robert Sim. Privacy regularization: Joint privacy-utility optimization in language models. arXiv preprint arXiv:2103.07567, 2021. OpenAlex ↗ · Scholar ↗
- Ilya Mironov. Rényi differential privacy. In 2017 IEEE 30th Computer Security Foundations Symposium (CSF), pp. 263–275. IEEE, 2017. OpenAlex ↗ · Scholar ↗
- Ilya Mironov, Kunal Talwar, and Li Zhang. R$\backslash$'enyi differential privacy of the sampled gaussian mechanism. arXiv preprint arXiv:1908.10530, 2019. OpenAlex ↗ · Scholar ↗
- Linyong Nan, Dragomir Radev, Rui Zhang, Amrit Rau, Abhinand Sivaprasad, Chiachun Hsieh, Xiangru Tang, Aadit Vyas, Neha Verma, Pranav Krishna, et al. Dart: Open-domain structured data record to text generation. arXiv preprint arXiv:2007.02871, 2020. our card
- Marcel Neunhoeffer, Zhiwei Steven Wu, and Cynthia Dwork. Private post-gan boosting. arXiv preprint arXiv:2007.11934, 2020. OpenAlex ↗ · Scholar ↗
- Jekaterina Novikova, Ondřej Dušek, and Verena Rieser. The e2e dataset: New challenges for end-to-end generation. arXiv preprint arXiv:1706.09254, 2017. our card
- Nicolas Papernot and Thomas Steinke. Hyperparameter tuning with renyi differential privacy, 2021. OpenAlex ↗ · Scholar ↗
- Nicolas Papernot, Martín Abadi, Ulfar Erlingsson, Ian Goodfellow, and Kunal Talwar. Semi-supervised knowledge transfer for deep learning from private training data. arXiv preprint arXiv:1610.05755, 2016. OpenAlex ↗ · Scholar ↗
- Nicolas Papernot, Shuang Song, Ilya Mironov, Ananth Raghunathan, Kunal Talwar, and Úlfar Erlingsson. Scalable private learning with pate. arXiv preprint arXiv:1802.08908, 2018. OpenAlex ↗ · Scholar ↗
- Nicolas Papernot, Steve Chien, Shuang Song, Abhradeep Thakurta, and Ulfar Erlingsson. Making the shoe fit: Architectures, initializations, and tuning for learning with privacy. 2019. OpenAlex ↗ · Scholar ↗
- Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. OpenAlex ↗ · Scholar ↗
- Fabio Petroni, Tim Rocktäschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H Miller, and Sebastian Riedel. Language models as knowledge bases? arXiv preprint arXiv:1909.01066, 2019. our card
- Jonas Pfeiffer, Aishwarya Kamath, Andreas Rücklé, Kyunghyun Cho, and Iryna Gurevych. Adapterfusion: Non-destructive task composition for transfer learning. arXiv preprint arXiv:2005.00247, 2020. our card
- Venkatadheeraj Pichapati, Ananda Theertha Suresh, Felix X Yu, Sashank J Reddi, and Sanjiv Kumar. Adaclip: Adaptive clipping for private sgd. arXiv preprint arXiv:1908.07643, 2019. OpenAlex ↗ · Scholar ↗
- Chen Qu, Weize Kong, Liu Yang, Mingyang Zhang, Michael Bendersky, and Marc Najork. Privacy-adaptive bert for natural language understanding. arXiv preprint arXiv:2104.07504, 2021. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 10 (8):0 9, 2019. OpenAlex ↗ · Scholar ↗
- Swaroop Ramaswamy, Om Thakkar, Rajiv Mathews, Galen Andrew, H Brendan McMahan, and Françoise Beaufays. Training production language models without memorizing user data. arXiv preprint arXiv:2009.10031, 2020. OpenAlex ↗ · Scholar ↗
- Phillip Rogaway. The moral character of cryptographic work. Cryptology ePrint Archive, 2015. OpenAlex ↗ · Scholar ↗
- Andreas Rücklé, Gregor Geigle, Max Glockner, Tilman Beck, Jonas Pfeiffer, Nils Reimers, and Iryna Gurevych. Adapterdrop: On the efficiency of adapters in transformers. arXiv preprint arXiv:2010.11918, 2020. our card
- Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy (SP), pp. 3–18. IEEE, 2017. our card
- Daniel J Solove. A taxonomy of privacy. U. Pa. l. Rev., 154:0 477, 2005. OpenAlex ↗ · Scholar ↗
- Shuang Song, Kamalika Chaudhuri, and Anand D Sarwate. Stochastic gradient descent with differentially private updates. In 2013 IEEE Global Conference on Signal and Information Processing, pp. 245–248. IEEE, 2013. OpenAlex ↗ · Scholar ↗
- Pranav Subramani, Nicholas Vadivelu, and Gautam Kamath. Enabling fast differentially private sgd via just-in-time compilation and vectorization. arXiv preprint arXiv:2010.09063, 2020. OpenAlex ↗ · Scholar ↗
- Amirsina Torfi, Edward A Fox, and Chandan K Reddy. Differentially private synthetic medical data generation using convolutional gans. arXiv preprint arXiv:2012.11774, 2020. OpenAlex ↗ · Scholar ↗
- Reihaneh Torkzadehmahani, Peter Kairouz, and Benedict Paten. Dp-cgan: Differentially private synthetic data and label generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 0–0, 2019. OpenAlex ↗ · Scholar ↗
- Florian Tramèr and Dan Boneh. Differentially private learning needs better features (or much more data). arXiv preprint arXiv:2011.11660, 2020. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. arXiv preprint arXiv:1706.03762, 2017. our card
- Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. arXiv preprint arXiv:2109.01652, 2021. our card
- Adina Williams, Nikita Nangia, and Samuel R Bowman. The multi-genre nli corpus. 2018. OpenAlex ↗ · Scholar ↗
- Sam Wiseman, Stuart M Shieber, and Alexander M Rush. Learning neural templates for text generation. arXiv preprint arXiv:1808.10122, 2018. our card
- Zekun Xu, Abhinav Aggarwal, Oluwaseyi Feyisetan, and Nathanael Teissier. On a utilitarian approach to privacy preserving text generation. arXiv preprint arXiv:2104.11838, 2021. OpenAlex ↗ · Scholar ↗
- Ashkan Yousefpour, Igor Shilov, Alexandre Sablayrolles, Davide Testuggine, Karthik Prasad, Mani Malek, John Nguyen, Sayan Gosh, Akash Bharadwaj, Jessica Zhao, Graham Cormode, and Ilya Mironov. Opacus: User-friendly differential privacy library in pytorch, 2021. OpenAlex ↗ · Scholar ↗
- Da Yu, Saurabh Naik, Arturs Backurs, Sivakanth Gopi, Huseyin A Inan, Gautam Kamath, Janardhan Kulkarni, Yin Tat Lee, Andre Manoel, Lukas Wutschitz, et al. Differentially private fine-tuning of language models. arXiv preprint arXiv:2110.06500, 2021a. OpenAlex ↗ · Scholar ↗
- Da Yu, Huishuai Zhang, Wei Chen, and Tie-Yan Liu. Do not let privacy overbill utility: Gradient embedding perturbation for private learning. arXiv preprint arXiv:2102.12677, 2021b. OpenAlex ↗ · Scholar ↗
- Da Yu, Huishuai Zhang, Wei Chen, Jian Yin, and Tie-Yan Liu. Large scale private learning via low-rank reparametrization. arXiv preprint arXiv:2106.09352, 2021c. OpenAlex ↗ · Scholar ↗
- Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. CoRR, abs/1611.03530, 2016. URL http://arxiv.org/abs/1611.03530. OpenAlex ↗ · Scholar ↗
- Huanyu Zhang, Ilya Mironov, and Meisam Hejazinia. Wide network learning with differential privacy. arXiv preprint arXiv:2103.01294, 2021. OpenAlex ↗ · Scholar ↗
- Saizheng Zhang, Emily Dinan, Jack Urbanek, Arthur Szlam, Douwe Kiela, and Jason Weston. Personalizing dialogue agents: I have a dog, do you have pets too? arXiv preprint arXiv:1801.07243, 2018. our card
- Yizhe Zhang, Siqi Sun, Michel Galley, Yen-Chun Chen, Chris Brockett, Xiang Gao, Jianfeng Gao, Jingjing Liu, and Bill Dolan. Dialogpt: Large-scale generative pre-training for conversational response generation. arXiv preprint arXiv:1911.00536, 2019. our card
- Yingxue Zhou, Zhiwei Steven Wu, and Arindam Banerjee. Bypassing the ambient dimension: Private sgd with gradient subspace identification. arXiv preprint arXiv:2007.03813, 2020. OpenAlex ↗ · Scholar ↗