Papers
Topics
Authors
Recent
Search
2000 character limit reached

Noise-Aware Sample Injection

Updated 12 July 2026
  • Noise-aware sample injection is a method that introduces calibrated perturbations into inputs, latent states, or quantum gates to improve robustness and mitigate errors.
  • It is applied across various domains—from quantum circuits and image augmentation to language models—each using tailored noise models and injection loci.
  • Recent formulations combine noise injection with post-processing like normalization and quantization, yielding significant gains in accuracy and privacy.

Noise-aware sample injection denotes the deliberate introduction of controlled perturbations into a sample, an internal representation, or a physical execution path under an explicit noise model, with the perturbation then used to alter training dynamics, inference behavior, or both. In parameterized quantum circuits, the formulation is exemplified by QuantumNAT, which inserts quantum error gates according to realistic hardware noise models and then compensates their effect through post-measurement normalization and quantization (Wang et al., 2021). Closely related formulations appear in dephasing waveform injection for quantum hardware, image-level augmentation for convolutional networks, event-stream corruption for event cameras, diffusion-model membership inference and adversarial purification, hidden-state perturbation for hallucination detection, adaptive privacy-preserving inference, and latent-space perturbation for synthetic data generation (Murphy et al., 2021, Akbiyik, 2023, Kowalczyk et al., 4 Jun 2025, Li et al., 18 Oct 2025, Sun et al., 6 Jun 2025, Liu et al., 6 Feb 2025, Kariyappa et al., 2021, Shen et al., 19 Jun 2025).

1. Conceptual scope and formal structure

Published formulations differ chiefly in the locus of perturbation. At the input level, image augmentation uses corrupted images x~\tilde x, event-based vision superimposes synthetic shot-noise events, and adaptive privacy injects sample-dependent perturbations directly into XX (Akbiyik, 2023, Kowalczyk et al., 4 Jun 2025, Kariyappa et al., 2021). At the latent or hidden-state level, one finds latent perturbation zi′=zi+ηiz_i' = z_i + \eta_i, decoder-state perturbation a^t=ht+ϵt\hat a_t = h_t + \epsilon_t, and transformer activation perturbation h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon (Shen et al., 19 Jun 2025, Kedzie et al., 2019, Liu et al., 6 Feb 2025). In quantum settings, injection may target either discrete gate locations through Pauli insertions or continuous control phases through virtual-ZZ rotations generated from a prescribed spectrum (Wang et al., 2021, Murphy et al., 2021).

Across these settings, the perturbation law is not arbitrary. The cited work specifies Gaussian, uniform, Laplace, Poisson, salt-and-pepper, Bernoulli, Pauli-twirled, and geometry-aware manifold-constrained perturbations, and in several cases calibrates magnitude through task-specific criteria such as Structural Similarity Index (SSIM), score norms, hardware error tables, or privacy parameters (Akbiyik, 2023, Jacobsen et al., 24 Sep 2025, Sun et al., 6 Jun 2025, Kariyappa et al., 2021). This suggests that noise-aware sample injection is less a single algorithm than a design pattern in which the perturbation distribution, its insertion locus, and the downstream correction or selection mechanism are co-designed.

A second recurrent structural feature is asymmetry between training and deployment. Some methods inject during training and disable perturbations at test time, as in Noise Injection Node Regularization and several augmentation-based CNN pipelines (Levi et al., 2022, Akbiyik, 2023). Others inject during inference to expose uncertainty, preserve privacy, or purify adversarial examples (Liu et al., 6 Feb 2025, Kariyappa et al., 2021, Sun et al., 6 Jun 2025). QuantumNAT occupies an intermediate position: it injects realistic noise during training, then applies the same post-measurement normalization and quantization procedure during inference on real hardware (Wang et al., 2021).

2. QuantumNAT and the PQC-specific formulation

QuantumNAT was introduced for Parameterized Quantum Circuits (PQC) and Quantum Neural Networks (QNN), where large quantum noises on near-term hardware produce severe degradation relative to noise-free simulation. The motivating example in the paper is an accuracy gap of over 60%60\% between noise-free simulation and noisy execution on IBMQ-Yorktown for MNIST-4 classification (Wang et al., 2021). The method is explicitly PQC-specific rather than a generic mitigation layer.

Its training-time injection mechanism is built from realistic noise models published by hardware providers. For each basis gate, a Pauli-twirled gate error model is represented as

Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},

with p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z), and the training circuit is modified by sampling δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\} after each gate and inserting a Pauli-XX0 gate immediately after the ideal gate whenever XX1 (Wang et al., 2021). Readout noise is modeled separately: each qubit XX2 has a XX3 confusion matrix XX4 with

XX5

The injected readout noise remaps ideal bit-probabilities through XX6.

The mathematical rationale begins from a noisy channel XX7 acting on the ideal density matrix XX8:

XX9

For a single-qubit zi′=zi+ηiz_i' = z_i + \eta_i0-basis expectation, the ideal and noisy measurements are

zi′=zi+ηiz_i' = z_i + \eta_i1

Writing zi′=zi+ηiz_i' = z_i + \eta_i2 yields

zi′=zi+ηiz_i' = z_i + \eta_i3

with

zi′=zi+ηiz_i' = z_i + \eta_i4

and

zi′=zi+ηiz_i' = z_i + \eta_i5

In practice, for small noise, zi′=zi+ηiz_i' = z_i + \eta_i6 and zi′=zi+ηiz_i' = z_i + \eta_i7 is a small shift. QuantumNAT uses this approximately affine distortion model to motivate downstream normalization and discretization (Wang et al., 2021).

Operationally, each training iteration takes a base circuit zi′=zi+ηiz_i' = z_i + \eta_i8, inserts Pauli errors gate by gate, optionally scales non-None probabilities by a global noise factor zi′=zi+ηiz_i' = z_i + \eta_i9, executes the resulting circuits, applies readout-error sampling, normalizes the measurement outputs, quantizes them, computes a supervised loss plus a quantization regularizer, and updates a^t=ht+ϵt\hat a_t = h_t + \epsilon_t0 by back-propagation. The framework is implemented in TorchQuantum (Wang et al., 2021).

3. Post-measurement normalization, quantization, and correlated quantum injection

QuantumNAT’s post-measurement normalization is derived from the empirical relation

a^t=ht+ϵt\hat a_t = h_t + \epsilon_t1

For each qubit a^t=ht+ϵt\hat a_t = h_t + \epsilon_t2 and a batch of a^t=ht+ϵt\hat a_t = h_t + \epsilon_t3 examples, the noisy outputs a^t=ht+ϵt\hat a_t = h_t + \epsilon_t4 are summarized by

a^t=ht+ϵt\hat a_t = h_t + \epsilon_t5

The normalized output is then

a^t=ht+ϵt\hat a_t = h_t + \epsilon_t6

If a^t=ht+ϵt\hat a_t = h_t + \epsilon_t7 varies little over the batch and is approximated by a constant a^t=ht+ϵt\hat a_t = h_t + \epsilon_t8, then the normalized noisy distribution matches the normalized noiseless one exactly:

a^t=ht+ϵt\hat a_t = h_t + \epsilon_t9

The reported empirical effect is a h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon0–h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon1 increase in per-qubit SNR (Wang et al., 2021).

The subsequent post-measurement quantization clips h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon2 to h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon3 and quantizes uniformly into h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon4 levels:

h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon5

An auxiliary loss

h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon6

encourages outputs to remain near quantization bins. The intended effect is denoising by snapping small residual fluctuations to stable centroids. In combination, noise injection, post-measurement normalization, and post-measurement quantization improve accuracy by up to h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon7 across h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon8 classification tasks on h~tl=htl+ϵ\tilde h_t^l = h_t^l + \epsilon9 quantum devices, and achieve over ZZ0 ZZ1-class, ZZ2 ZZ3-class, and ZZ4 ZZ5-class classification accuracy measured on real quantum computers (Wang et al., 2021).

A distinct but related quantum formulation appears in SchWARMA-based dephasing injection, which targets temporally correlated noise rather than independent gate-local errors. There the phase noise sequence ZZ6 is generated by an ARMA recursion,

ZZ7

with transfer function

ZZ8

and then injected as virtual-ZZ9 rotations interleaved with gates,

60%60\%0

The paper validates arbitrary injected spectra, including band-pass, double band-pass, and 60%60\%1 families, by both classical PSD measurement and quantum noise spectroscopy (Murphy et al., 2021). This suggests that within quantum computing, noise-aware sample injection spans both stochastic error-gate insertion and engineered correlated control-phase modulation.

4. Input-space and manifold-aware injection

For classical vision models, one established form of noise-aware sample injection is on-the-fly input augmentation. In CNN training, five noise models are defined explicitly: additive Gaussian, multiplicative speckle, salt-and-pepper, Poisson, and occlusion. Magnitudes are calibrated not by raw variance alone but by a common perceptual scale using SSIM, computed on 60%60\%2 sampled training images and then inverted via fitted curves to obtain the parameter corresponding to a target MSSIM level (Akbiyik, 2023). The reported heuristic is to target an SSIM of about 60%60\%3 when injecting noise into training images; at MSSIM 60%60\%4 the method gives the best trade-off between robustness and clean accuracy, while below 60%60\%5 denoising may be required instead. In the reported experiments, ResNet-18 V2 was trained for 60%60\%6 epochs with Adam, learning rate 60%60\%7, no weight decay, and batch-norm as in the original architecture (Akbiyik, 2023).

Event-based vision uses a different stochastic substrate. There the raw signal is a set of events 60%60\%8, and noise is injected as shot-noise events drawn from a spatially uniform Poisson process of rate 60%60\%9 Hz/px, approximated by Bernoulli trials at time resolution

Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},0

with event probability

Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},1

Noise events are merged with the original sample, or equivalently

Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},2

in representation space. During training, Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},3 is sampled per sample from the uniform grid Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},4 Hz/px, with no architectural changes and no auxiliary denoising losses (Kowalczyk et al., 4 Jun 2025). The reported effect is stable performance over a range of noise intensities and the highest average classification accuracy across CNNs, ViTs, SNNs, and GCNs, with the main trade-off being a Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},5 drop at Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},6 in exchange for stable performance up to Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},7 Hz/px (Kowalczyk et al., 4 Jun 2025).

A more structured alternative is geometry-aware injection on a Riemannian data manifold Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},8. Instead of adding ambient Gaussian noise, one may project noise onto the tangent space,

Eg={X:px,  Y:py,  Z:pz,  None:p0},E_g = \{X:p_x,\;Y:p_y,\;Z:p_z,\;\mathrm{None}:p_0\},9

and then either use p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)0, map back to the manifold through the exponential map p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)1, or simulate intrinsic Brownian motion in local coordinates (Jacobsen et al., 24 Sep 2025). The theoretical regularizer becomes

p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)2

which penalizes tangential derivatives rather than all ambient directions. Empirically, geodesic and Brownian-motion noise improve test MSE by p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)3–p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)4 on highly curved manifolds and exhibit much flatter loss curves as a function of p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)5 (Jacobsen et al., 24 Sep 2025).

Adaptive Noise Injection for inference privacy adds a further input-space variant in which the perturbation is sample-specific:

p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)6

The optimization objective balances a primary-task loss with a privacy loss weighted by p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)7, and the reported trade-off reaches up to p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)8 degradation in sensitive-task accuracy with p0≃1−(px+py+pz)p_0 \simeq 1-(p_x+p_y+p_z)9 degradation in primary accuracy (Kariyappa et al., 2021). Relative to static noise, this formulation treats per-sample customization as part of the perturbation model itself.

5. Hidden-state, latent-space, and node-level injection

Noise-aware sample injection also appears as a modification of internal model states rather than observable inputs. Noise Injection Node Regularization introduces external scalar noise nodes into feed-forward DNNs by augmenting a chosen layer pre-activation,

δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}0

where δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}1 has zero mean and variance δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}2 and δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}3 is learned (Levi et al., 2022). The series expansion of the batch loss yields a leading second-order term

δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}4

which acts as a data-dependent Hessian penalty. The training dynamics exhibit four phases—decoupled, decay, catapult, and divergent—as δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}5 increases, and evaluation is performed with δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}6 (Levi et al., 2022). Reported gains include improved robustness to random corruption, domain shift, and PGD-style adversarial attacks, while clean-data performance is largely maintained in the decay regime.

In LLMs, hidden-state perturbation has been used to expose epistemic uncertainty for hallucination detection. The method perturbs upper-layer MLP outputs by additive uniform noise,

δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}7

generates δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}8 noisy samples, and computes dispersion statistics such as predictive entropy, length-normalized entropy, or answer entropy (Liu et al., 6 Feb 2025). In the main GSM8K result with answer entropy and δ∈{X,Y,Z,None}\delta \in \{X,Y,Z,\mathrm{None}\}9 runs, AUROC improves from XX00 to XX01, and accuracy from XX02 to XX03; the preferred perturbation range is moderate, with too much noise XX04 degrading performance (Liu et al., 6 Feb 2025).

A related but older internal-state formulation is noise injection sampling for neural language generation, where Gaussian noise is added to the decoder hidden state with annealed variance,

XX05

The method generates XX06 noisy candidates per meaning representation, keeps the top XX07 by likelihood, parses them back into candidate meaning representations, filters them, and retrains on the augmented corpus (Kedzie et al., 2019). On the E2E dataset, the retrained system attains zero slot errors with greedy decoding, showing that hidden-state injection can function as a data-generation mechanism rather than only as a regularizer.

Latent Noise Injection in Masked Autoregressive Flows perturbs invertible latent codes instead of visible inputs:

XX08

Because the perturbation occurs in latent space and the final release is a post-processing of the Gaussian mechanism, the procedure satisfies local XX09-differential privacy for suitable XX10 (Shen et al., 19 Jun 2025). The same paper reports membership-inference AUC XX11 at XX12 and argues that meta-analytic aggregation across XX13 studies restores classical efficiency even when single-study synthetic estimators converge slowly (Shen et al., 19 Jun 2025).

Text denoising for paraphrase generation provides yet another internalized variant. SCANING samples from contextual and syntactic noising banks, trains a denoiser STEAD with reconstruction loss

XX14

and then uses denoised outputs to construct a weakly supervised paraphrase corpus for a second model (Gupta et al., 2023). Here noise-aware injection serves controlled diversity rather than robustness in the usual sense.

6. Diffusion-model scheduling, sample specificity, and technical limits

Diffusion models have produced two sharply different uses of noise-aware sample injection. For black-box membership inference, a one-step, low-intensity forward perturbation is used to amplify the consistency gap between member and non-member samples:

XX15

with XX16 and an aggregation score

XX17

The reported method uses exactly XX18 model queries per example, with typical settings XX19 and XX20, and reaches ASR XX21 and AUC XX22 with XX23 queries, compared with ASR XX24 and AUC XX25 for SecMI at XX26 queries (Li et al., 18 Oct 2025). Table VIII in that paper reports a peak around XX27 on CIFAR-10; both too small and too large perturbations degrade separation.

For diffusion-based adversarial purification, the key issue is not query efficiency but heterogeneity across samples. Sample-specific Score-aware Noise Injection replaces a global forward-diffusion level XX28 by a sample-dependent choice

XX29

where XX30 is derived from the norm of an Expected Perturbation Score computed by a pre-trained score network (Sun et al., 6 Jun 2025). The paper gives both linear and non-linear reweighting functions and reports that non-linear reweighting with XX31 gives the best robust gains with minimal clean cost. On CIFAR-10 with WideResNet-28-10 under adaptive white-box PGD+EOT attacks, DiffPure improves from XX32 clean / XX33 robust to XX34 clean / XX35 robust when augmented with SSNI-N; GDMP improves from XX36 / XX37 to XX38 / XX39 (Sun et al., 6 Jun 2025). The same framework improves ImageNet-1K results as well.

These diffusion results reinforce a broader technical point: performance depends less on the mere presence of perturbation than on whether its magnitude is calibrated to the local task geometry. Related evidence appears in other domains. In CNN augmentation, robustness saturates after MSSIM XX40 and an MSSIM near XX41 is preferred (Akbiyik, 2023). In hallucination detection, moderate XX42 improves AUROC, whereas too much noise degrades it (Liu et al., 6 Feb 2025). In NINR, the catapult regime yields maximal robustness but slower convergence, while the divergent regime fails altogether (Levi et al., 2022). In SchWARMA, high ARMA orders may suffer numerical ill-conditioning (Murphy et al., 2021). This suggests that noise-aware sample injection is best understood as a calibrated perturbation methodology: when the perturbation law, its insertion locus, and the downstream correction criterion are jointly specified, the injected noise acts as a probe, regularizer, purifier, or privacy mechanism; when they are mismatched, it becomes ordinary corruption.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Noise-Aware Sample Injection.