PAC-Private Autoregressive Generation: Calibrating Noise to Ensemble Disagreement
Abstract
Language models adapted on private text are often served through APIs, so privacy leakage occurs through generated outputs rather than exposed weights. Private prediction protects these releases. Methods such as PMixED incur privacy cost at each release and increasingly rely on the public model over long horizons. PAC privacy instead calibrates noise to output variability across possible secrets, adding less noise when predictions are stable. To our knowledge, PAC-private prediction has not previously been extended from classification to autoregressive generation. We construct overlapping worlds from the private corpus, with each record appearing in exactly worlds, and train one adapter per world over a frozen public model. The realized world is the secret. At each token, the public model defines a candidate set, the worlds vote, and their posterior-weighted disagreement determines the PAC noise; unanimity requires no calibration noise. We prove . Our contributions are extending PAC privacy to autoregressive generation, handling adaptive self-generated contexts, and introducing coupled decoding that preserves privacy accounting while avoiding greedy degeneration. On WikiText-103 with GPT-2-small, we retain 74% of the fine-tuning gain at a per-token budget of , while membership-inference success is bounded by 51.08% after tokens; posterior-entropy estimates of leakage are roughly 17% of the charged budget. Inference privacy is not content protection: even when membership advantage on a memorized canary is indistinguishable from zero, the canary is emitted at the same rate. Against PMixED under matched membership-inference bounds on the same data universe and test set, we retain 98% of non-private headroom from to tokens, versus at most 56%, with no crossover.
Figures & tables
| Component | Value |
|---|---|
| Worlds | ; each record in exactly |
| Prior | uniform over worlds; per-record membership prior exactly |
| Universe | WikiText-103 articles canaries |
| Held-out non-members | articles |
| Base model | GPT-2-small (124M), frozen, fp32 |
| Adapters | LoRA , , dropout , , M params/world |
| Regime | Decoder | Scale | Primary use |
|---|---|---|---|
| Stability census | greedy | 65,053 held-out positions | unanimity, , argmax and mass coverage, |
| Teacher-forced accuracy | both | 8,176 positions (16,352 with replication) | utility, noise sensitivity |
| Flatness diagnostic | both | 2,048 positions 8 coin draws | budget–flatness relation |
| Per-sequence sweep | greedy | 8 budgets ; 1,000 trials (100 at ) | MIA, world identification |
| Sessions | Gumbel | ; 100 sessions 4,096 tokens | direct MI, utility over long runs |
| Canary emulation | greedy and Gumbel | 2 canaries 3 budgets + no-noise reference ; 2,000 trials per cell, each decoder | membership inference on forced memorization |
| unanimity | median | p95 | argmax cov. | mass cov. | (mean) | |
|---|---|---|---|---|---|---|
| 50 | 0.835 | 1 | 2 | 0.974 | 0.799 | 0.881 |
| 200 | 0.834 | 1 | 2 | 0.986 | 0.885 | 0.878 |
| 1000 | 0.827 | 1 | 2 | 0.995 | 0.953 | 0.874 |
| greedy | coupled Gumbel | |
| public GPT-2 | 38.16 | 25.56 |
| full- (non-private) | 43.92 | 31.49 |
| (subsampled, no noise) | 42.81 | 30.68 |
| PAC at | 42.44 | 30.57 |
| fine-tuning gain | ||
| subsampling cost |
| median | max | accuracy | flip (all) | flip unanimous | flip dissent | |
|---|---|---|---|---|---|---|
| 0 | 0 | 0.3063 | 0.0000 | 0.0000 | 0.0000 | |
| 1.29 | 2.84 | 0.3058 | 0.0419 | 0.0000 | 0.2600 | |
| 5.15 | 11.3 | 0.3053 | 0.0715 | 0.0000 | 0.4442 | |
| 82.3 | 182 | 0.3051 | 0.0835 | 0.0000 | 0.5181 | |
| 0.3051 | 0.0848 | 0.0000 | 0.5262 | |||
| 0.3051 | 0.0839 | 0.0000 | 0.5206 |
| realized len. | world-ID (bound) | MIA (bound) | unanimity | ||
|---|---|---|---|---|---|
| 64 | 16 † | 0.024 (0.894) | 0.519 (1.000) | 0.827 | |
| 64 | 64 | 0.010 (0.130) | 0.508 (0.838) | 0.888 | |
| 64 | 64 | 0.007 (0.012) | 0.501 (0.522) | 0.887 | |
| 64 | 64 | 0.011 (0.008) | 0.500 (0.500) | 0.886 | |
| 256 | 256 | 0.010 (0.337) | 0.507 (1.000) | 0.961 |
| charged (nats) | measured | measured/charged | MIA (bound) | world-ID (bound) | ||
|---|---|---|---|---|---|---|
| 64 | 18.8% | 0.504 (0.522) | 0.000 (0.012) | |||
| 1024 | 17.1% | 0.503 (0.588) | 0.000 (0.028) | |||
| 4096 | 17.3% | 0.506 (0.675) | 0.030 (0.056) | |||
| 4096 | 17.2% | 0.502 (0.544) | 0.010 (0.017) | |||
| 4096 | 17.3% | 0.497 (0.511) | 0.010 (0.010) |
| variant | unanimity | dissent | p95 | PPL ratio | rep-3 / distinct-1 |
|---|---|---|---|---|---|
| greedy | 0.887 / 0.880 | 2.20 / 2.20 | 3 / 3 | 1.11 / 1.28 | 0.430 / 0.391 |
| Gumbel | 0.826 / 0.832 | 2.17 / 2.20 | 3 / 3 | 1.16 / 1.10 | 0.022 / 0.750 |
| Gumbel | 0.840 / 0.845 | 2.17 / 2.16 | 3 / 3 | 1.02 / 1.02 | 0.047 / 0.681 |
| hybrid ( ) | 0.837 / 0.834 | 4.97 / 5.71 | 28 / 36 | 1.15 / 1.14 | 0.020 / 0.756 |
| greedy | coupled Gumbel | |
|---|---|---|
| no noise | / | / |
| / | / | |
| / | / | |
| / (n.s.) | / (n.s.) |
| accuracy | perplexity | gain vs. public (95% CI) | mean | headroom | |
|---|---|---|---|---|---|
| 8 | 0.2459 | 27.19 | 0.151 | 3.7% | |
| 16 | 0.2471 | 26.68 | 0.221 | 6.9% | |
| 32 | 0.2480 | 26.20 | 0.334 | 11.8% |
| PAC-Gumbel | PMixED (rigorous) | PMixED (generous) | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| (nats) | acc. | head. (%) | acc. | head. (%) | acc. | head. (%) | |||||||||||
| 0.3089 | 98.4 | 0.25550 | 32 | 16 | 0.02 | 0.524 | 0.626 | 0.26355 | 32 | 2 | 0.05 | 0.190 | 0.927 | ||||
| 0.3086 | 98.0 | 0.25205 | 32 | 32 | 0.01 | 0.728 | 0.743 | 0.25691 | 32 | 2 | 0.03 | 0.373 | 0.887 | ||||
| 0.3086 | 98.1 | 0.24695 | 32 | 64 | 0.005 | 0.856 | 0.685 | 0.25062 | 32 | 2 | 0.02 | 0.525 | 0.767 | ||||
| 0.3086 | 98.0 | 0.24482 | 32 | 64 | 0.001 | 0.971 | 0.970 | 0.24648 | 32 | 2 | 0.01 | 0.724 | 0.649 | ||||
| 0.3086 | 98.0 | 0.24413 | 32 | 64 | 0.0005 | 0.984 | 0.773 | 0.24487 | 32 | 2 | 0.005 | 0.850 | 0.483 | ||||
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| PAC-Gumbel | PMixED (rigorous) | PMixED (generous) | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| (nats) | acc. | head. (%) | acc. | head. (%) | acc. | head. (%) | |||||||||||
| 0.3092 | 99.0 | 0.25668 | 32 | 8 | 0.03 | 0.375 | 0.649 | 0.26520 | 16 | 2 | 0.1 | 0.185 | 0.853 | ||||
| 0.3087 | 98.2 | 0.25366 | 32 | 64 | 0.02 | 0.527 | 0.514 | 0.25879 | 32 | 2 | 0.03 | 0.373 | 0.917 | ||||
| 0.3086 | 98.0 | 0.24845 | 32 | 32 | 0.005 | 0.848 | 0.870 | 0.25233 | 32 | 2 | 0.02 | 0.525 | 0.840 | ||||
| 0.3086 | 98.1 | 0.24559 | 32 | 64 | 0.002 | 0.939 | 0.880 | 0.24730 | 32 | 2 | 0.01 | 0.724 | 0.762 | ||||
| 0.3086 | 98.0 | 0.24433 | 32 | 32 | 0.0005 | 0.985 | 0.984 | 0.24526 | 32 | 2 | 0.005 | 0.850 | 0.620 | ||||
Privacy-Preserving Language Models
Privacy-preserving language models protect sensitive data during training, inference, personalization, and information sharing.
See all 177 papers