The nonparametric variational information bottleneck (NVIB) provides the foundation for nonparametric variational differential privacy (NVDP), a framework for building privacy-preserving language models. However, the learned latent representations can drift into regions with high information content, leading to poor privacy guarantees, but also low utility due to numerical instability during training. In this work, we introduce a principled parameter clipping strategy to directly address this issue. Our method is mathematically derived from the objective of minimizing the Rényi Divergence (RD) upper bound, yielding specific, theoretically grounded constraints on the posterior mean, variance, and mixture weight parameters. We apply our technique to an NVIB based model and empirically compare it against an unconstrained baseline. Our findings demonstrate that the clipped model consistently achieves tighter RD bounds, implying stronger privacy, while simultaneously attaining higher performance on several downstream tasks. This work presents a simple yet effective method for improving the privacy-utility trade-off in variational models, making them more robust and practical.
Figures & tables
Figure 1: The Nonparametric Variational Differential Privacy (NVDP) Architecture. An input sequence is first processed by a standard pretrained Transformer encoder to produce token-wise embeddings, x∈Rn×d . These embeddings are then passed through a NVIB layer, which acts as a stochastic bottleneck by mapping them to the parameters of a posterior distribution. A sample is drawn from this distribution and processed by a Denoising Multi-Head Attention (MHA) and a Feed-Forward layer. Crucially, the standard residual skip connection around the MHA and Feed-Forward block is removed, ensuring that all information must pass through the privacy-preserving NVIB layer.
NVDP (Unconstrained)
NVDP-Clipped (Ours)
Non-Private
Dataset
Metric
Score
BDP ↓
RD (max) ↓
Score
BDP ↓
RD (max) ↓
Score
BERT-Base Backbone
MRPC
Accuracy
83.0
10.70
0.34
81.6
10.60
0.013
81.2
F1 Score
87.5
10.70
0.34
87.0
10.60
0.013
86.0
STS-B
Pearson
85.2
20.93
1.41
85.7
20.34
0.423
86.0
Spearman
84.0
20.93
1.41
84.7
20.34
0.423
84.9
Table 1: Privacy-utility trade-off on GLUE tasks for multiple Transformer backbones. We compare our proposed NVDP-Clipped model against the unconstrained NVDP baseline for BERT-Base, BERT-Large, and RoBERTa-Base. For each model, we report its best-achieved utility score alongside privacy guarantees. Privacy is measured via BDP (BDP ↓ ) and the maximum (worst-case) RD (RD (max) ↓ ). Lower privacy values are better. The best-performing model per task is bolded . The non-private BERT-Base is included as a utility upper bound
Model
F1 ↑
BDP ↓
RD (max) ↓
NVDP (Unconstrained)
83.7
10.46
4.044
NVDP-Clipped
82.6
9.90
3.567
Table 2: Privacy-utility trade-off for Speech Language Identification using a Wav2Vec2 backbone. Consistent with the NLP results, the clipped model achieves a tighter privacy profile (lower BDP and RD) with minimal impact on utility measure by F1 score.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
BERT-Base
BERT-Large
RoBERTa-Base
Learning Rate
7e-5
2e-5
2e-5
Warmup Ratio
0.06
0.1
0.06
Adam Epsilon
1e-8
1e-8
1e-8
Train Batch Size
32
32
32
Eval Batch Size
16
16
16
Max Sequence Length
512 / 128
512 / 128
512 / 128
Appendix
Table 3: General training hyperparameters for each model backbone.
Task
BERT-Base
BERT-Large
RoBERTa-Base
MRPC
(2, 0, 0.5)
(3, 0, 0.7)
(3, 0, 0.7)
QNLI
(7, 0, 1)
(7, 0, 1)
(7, 0, 1)
SST-2
(2, 0, 1)
(3, 0, 1)
(3, 0, 1)
RTE
(6, 0, 0.5)
(6, 0, 0.6)
(6, 0, 0.6)
STS-B
(10, 0, 1)
(10, 0, 1)
(10, 0, 1)
Appendix
Table 4: Task-specific clipping hyperparameters reported as the triple ( Cμ,Cα,min,Cα,max ). These constraints ensure numerical stability and minimize the RD upper bound.
Model
Metric
MRPC
STS-B
RTE
QNLI
SST-2
Acc / F1
Pearson / Spearman
Accuracy
Accuracy
Accuracy
BERT Base (Non-Private)
Utility
81.2 / 86.0
86.0 / 84.9
65.9
89.0
92.9
Privacy
-
-
-
-
-
NVDP (Unconstrained)
λ=1e−3
Utility
82.5 / 87.1
85.2 / 84.0
64.8
89.5
91.7
BDP ( ϵμ ) ↓
10.95
20.93
10.90
12.10
11.19
Appendix
Table 5: Full experimental results for BERT-Base on GLUE tasks. We compare the unconstrained and clipped NVDP models across different strengths of the KL-divergence regularization weight ( λG=λD ). For each model, we report Utility (task-specific scores) and privacy metrics BDP ( ϵμ ) and RD. The RD metric is reported as max/avg, representing the worst-case and average-case divergence across all example pairs, respectively. Lower values are better for all privacy metrics ( ↓ ).
Model
Metric
MRPC
STS-B
RTE
QNLI
SST-2
Acc / F1
Pearson / Spearman
Accuracy
Accuracy
Accuracy
BERT Large (Non-Private)
Utility
84.1 / 88.5
87.0 / 86.1
69.3
91.9
93.3
Privacy
-
-
-
-
-
NVDP (Unconstrained)
λ=1e−3
Utility
84.6 / 88.8
85.1 / 84.9
69.2
92.2
93.0
BDP ( ϵμ ) ↓
10.70
20.27
10.80
10.86
13.68
Appendix
Table 6: Full experimental results for BERT-Large on GLUE tasks, showing the complete privacy-utility trade-off across all tested KL-divergence regularization weights ( λG,λD ). For each model, we report Utility (task-specific scores) and privacy metrics BDP ( ϵμ ) and RD. The RD metric is reported as max/avg, representing the worst-case and average-case divergence across all example pairs, respectively. Lower values are better for all privacy metrics ( ↓ ).
Model
Metric
MRPC
STS-B
RTE
QNLI
SST-2
Acc / F1
Pearson / Spearman
Accuracy
Accuracy
Accuracy
RoBERTa Base (Non-Private)
Utility
86.9 / 90.3
89.2 / 88.6
73.5
91.8
94.0
Privacy
-
-
-
-
-
NVDP (Unconstrained)
λ=1e−3
Utility
86.7 / 90.5
88.2 / 87.3
70.6
92.1
95.1
BDP ( ϵμ ) ↓
10.64
19.75
10.77
10.92
10.86
Appendix
Table 7: Full experimental results for RoBERTa-Base on GLUE tasks, showing the complete privacy-utility trade-off across all tested KL-divergence regularization weights ( λG,λD ). For each model, we report Utility (task-specific scores) and privacy metrics BDP ( ϵμ ) and RD. The RD metric is reported as max/avg, representing the worst-case and average-case divergence across all example pairs, respectively. Lower values are better for all privacy metrics ( ↓ ).