Privacy Enhancing Technologies (PETs) 2026  ·  arXiv:2505.13362

DynaNoise

Dynamic Probabilistic Noise Injection
for Membership Inference Defense

An adaptive inference-time defense that modulates injected noise based on per-query entropy — achieving near-chance attack success rates with only 1% overhead and zero retraining required.

Javad Forough  &  Hamed Haddadi  ·  Imperial College London
0%Attack success rate (near chance)
0%Inference overhead added
0Attack types evaluated
0Benchmark datasets
01 / Overview

The Privacy-Utility Dilemma

Machine learning models inadvertently memorize training data. Membership Inference Attacks exploit subtle output differences to determine whether a record was used in training — a critical threat in healthcare, finance, and private AI inference.

Traditional defenses like static differential privacy apply a fixed noise level to all queries. Too little noise: attacks succeed. Too much noise: accuracy collapses. DynaNoise breaks this deadlock by making noise query-adaptive — high-confidence (high-risk) predictions receive more noise; uncertain (low-risk) ones are preserved. A temperature-scaled softmax re-normalizes outputs, recovering predictive utility. We also introduce MIDPUT, a scalar metric jointly quantifying privacy gains and accuracy retention across all attack types.
DynaNoise — LIVE VISUALIZATION
Particles = model queries  ·  Red = member  ·  Gray = non-member  ·  Cyan = DynaNoise protected
Post-hoc & Model-Agnostic
No retraining, no architectural changes. Deploy on any pretrained model instantly.
Entropy-Driven Noise
Shannon entropy quantifies prediction confidence. Higher confidence = higher risk = more noise injected.
MIDPUT Benchmark
New scalar metric averaging privacy gains minus accuracy loss across all attack types.
02 / Method

The DynaNoise Pipeline

Three lightweight stages applied entirely at inference time, adding only O(ℓ) cost per query — a single noise draw and one softmax evaluation.

1
Sensitivity Analysis
Compute Shannon entropy of the model's softmax output. Low entropy (high confidence) signals high membership-leakage risk. Normalize to obtain a per-query sensitivity score R(q) ∈ [0,1].
H(p) = −Σᵢ pᵢ log pᵢ     R(q) = 1 − H(p) / log k
2
Dynamic Noise Injection
Scale Gaussian noise variance by R(q). High-risk queries receive proportionally more perturbation; low-risk queries are barely touched, preserving utility.
σ²(q) = σ₀²(1 + λ·R(q))     η ~ 𝒩(0, σ²(q)·I)
3
Probabilistic Smoothing
Re-normalise perturbed logits via temperature-scaled softmax. T > 1 controls distribution sharpness, balancing smoothing with discriminative power.
f̂(q) = softmax( f̃(q) / T )     T > 1
ENTROPY → NOISE VARIANCE — DynaNoise vs. Static DP (animated)
03 / Interactive Demo

Adjust Parameters, See the Effect

Simulate DynaNoise's adaptive noise injection. Drag sliders to explore how entropy drives noise magnitude and smoothing shapes the output distribution.

  dynanoise_demo.py — inference-time defense simulator
Input: model prediction
Confidence 90%
Shannon entropy H(p)
Sensitivity score R(q)
⚠ HIGH RISK — overconfident prediction
DynaNoise parameters
Base var σ₀²0.10
Scale λ3.0
Temperature T4.0
Noise variance σ²(q)
Output: smoothed distribution
Output entropy (after noise)
04 / Results

Benchmarks & Comparisons

Evaluated against five defenses on CIFAR-10, ImageNet-10, and SST-2 under six membership inference attack types including the state-of-the-art LiRA.

DefenseModel Acc ↑Confidence ↓Loss ↓Shadow ↓LiRA ↓
No defense0.78750.61240.61800.63870.6097
AdvReg0.75730.55160.58290.57080.5836
MemGuard0.78750.59480.61090.61220.5893
RelaxLoss0.78900.55550.58450.56650.5905
SELENA0.76740.53940.51730.53460.5164
HAMP0.74220.50000.50000.50000.5000
DynaNoiseBest MIDPUT0.78070.50140.52190.50530.5342
DefenseModel Acc ↑Confidence ↓Loss ↓Shadow ↓LiRA ↓
No defense0.79580.58240.60030.58170.5721
AdvReg0.73150.52440.53710.54260.5381
MemGuard0.79580.58000.60160.58170.5721
RelaxLoss0.76460.52030.54600.54160.5436
SELENA0.68040.49520.50100.50550.5034
HAMP0.65880.50000.50000.50000.5045
DynaNoiseBest MIDPUT0.79620.53160.59440.55490.5598
DefenseModel Acc ↑Confidence ↓Loss ↓Shadow ↓LiRA ↓
No defense0.86350.51620.53350.55710.5364
AdvReg0.70920.51260.50370.50340.5154
MemGuard0.86350.51440.53350.52660.5364
RelaxLoss0.83940.51150.51250.50000.5147
SELENA0.88050.52700.52760.55110.5234
HAMP0.89000.50000.50000.50000.5000
DynaNoise0.86120.50000.50140.50000.5023
DefenseCIFAR-10ImageNet-10SST-2
AdvReg0.0240−0.0240−0.1159
MemGuard0.00950.00100.0164
RelaxLoss0.05590.01010.0138
SELENA0.0732−0.04280.0306
HAMP0.0665−0.05110.0708
DynaNoiseBest on 2/30.10350.02520.0414
MIDPUT OVERALL — higher is better
CIFAR-10 ImageNet-10 SST-2
INFERENCE OVERHEAD — DynaNoise adds only 1% vs MemGuard's 198.8×
None
AdvReg
MemGuard
RelaxLoss
SELENA
HAMP
DynaNoise
05 / FAQ

Frequently Asked Questions

06 / Authors

Research Team

DynaNoise is developed in NetSys Lab at Imperial College London.

Javad Forough
Javad Forough
Imperial College London
j.forough@imperial.ac.uk
Hamed Haddadi
Hamed Haddadi
Imperial College London
h.haddadi@imperial.ac.uk
06 / Cite

BibTeX

@article{forough2026dynanoise,
  title     = {Dynamic Probabilistic Noise Injection
               for Membership Inference Defense},
  author    = {Forough, Javad and Haddadi, Hamed},
  journal   = {arXiv preprint arXiv:2505.13362},
  year      = {2026},
  institution = {Imperial College London},
}