Papers
Topics
Authors
Recent
Search
2000 character limit reached

Random Adversarial Training (RAT)

Updated 11 July 2026
  • Random Adversarial Training (RAT) is a family of methods that introduce stochasticity into adversarial objectives via noise injection on inputs, weights, or through batch sampling and transformations.
  • RAT variants use different randomization mechanisms—such as Gaussian perturbations, Bernoulli sampling, and adversarial transformations—to influence the robustness–accuracy–cost trade-off across various norms and applications.
  • RAT methods enhance multi-norm robustness and improve generalization in tasks like image classification and NLP by dynamically balancing computational cost with defense performance.

Searching arXiv for papers on “Random Adversarial Training” and related RAT variants. First, I’ll look for papers explicitly titled with “Random Adversarial Training” or close variants. Random Adversarial Training (RAT) is not a single canonical algorithm but an overloaded label used for several randomized variants of adversarial training and adversarial regularization. Across the literature, the common motif is the deliberate insertion of stochasticity into an adversarial objective—through input noise, weight noise, random batch selection for adversarial-example generation, or random label-preserving transformations—in order to alter the robustness–accuracy–cost trade-off. The term therefore covers at least four distinct lines of work: multi-norm robust training with injected noise (Araujo et al., 2019), Taylor-expanded adversarial training with Gaussian weight perturbations (Jin et al., 2023), Bernoulli-sampled adversarial training in NLP and biomedical information extraction (Chen et al., 14 Sep 2025, Chen et al., 2 Sep 2025), and semi-supervised consistency regularization based on adversarial transformations (Suzuki et al., 2019).

1. Terminological scope and core design pattern

The central pattern underlying RAT is a minimax objective in which the adversarial component is randomized rather than applied deterministically in the same way on every update. In some papers, the randomization is inserted into the model evaluation map, as in f~θ(x)=fθ(x+η)\tilde f_\theta(x)=f_\theta(x+\eta) with η\eta sampled from a noise distribution (Araujo et al., 2019). In other papers, the randomization is placed in parameter space via w~=w+u\tilde w=w+u with uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I) (Jin et al., 2023), or at the batch level through a Bernoulli variable kBernoulli(p)k\sim\mathrm{Bernoulli}(p) that decides whether adversarial loss is included for a minibatch (Chen et al., 14 Sep 2025, Chen et al., 2 Sep 2025). A separate semi-supervised line uses randomized or adversarially optimized transformations fϕf_\phi rather than additive perturbations (Suzuki et al., 2019).

RAT variant Randomization mechanism Primary setting
Randomized adversarial training Noise injected into inputs during adversarial training Multi-norm image robustness
Randomized adversarial training via Taylor expansion Gaussian perturbation of weights Adversarial training with flat-minima emphasis
Random adversarial training Bernoulli sampling of adversarial batches BioIE and text classification
Regularization based on adversarial transformations Adversarially chosen label-preserving transforms Semi-supervised learning

This suggests that “RAT” is best treated as a family resemblance term rather than a uniquely specified method. A plausible implication is that comparisons across RAT papers are only meaningful after fixing the randomization locus, the threat model, and the optimization target.

2. Noise-injected randomized adversarial training for multi-norm robustness

A prominent early formulation appears in “Robust Neural Networks using Randomized Adversarial Training” (Araujo et al., 2019). There, standard single-norm adversarial training is written as

minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],

with separate instantiations for p=p=\infty and p=2p=2. RAT modifies the classifier by adding random noise at inference and training time,

f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),

where the noise can be Gaussianη\eta0 or Uniformη\eta1, and then performs adversarial training against η\eta2 rather than against the deterministic model (Araujo et al., 2019).

The motivating theoretical claim is a “no free lunch” result between η\eta3 and η\eta4 defenses: in high dimension, the overlap between equal-volume η\eta5 and η\eta6 balls vanishes exponentially. The paper states a theorem showing that if η\eta7 is the unit η\eta8 ball and η\eta9 is the equal-volume w~=w+u\tilde w=w+u0 ball, then

w~=w+u\tilde w=w+u1

Within that framework, the authors also study Mixed Adversarial Training (MAT), including MAT-Rand and MAT-Max, but report that these mixed schemes fail badly on C&Ww~=w+u\tilde w=w+u2 attacks, whereas RAT better balances robustness across w~=w+u\tilde w=w+u3 and w~=w+u\tilde w=w+u4 attack families (Araujo et al., 2019).

The empirical evaluation is on CIFAR-10 with Wide-ResNet 28-10, white-box attacks with EOT for noise-injecting defenses, PGD inner loops of 10 iterations at training time, and 100 epochs on w~=w+u\tilde w=w+u5V100 GPUs. The reported attack suite includes PGDw~=w+u\tilde w=w+u6 with w~=w+u\tilde w=w+u7, PGDw~=w+u\tilde w=w+u8 with w~=w+u\tilde w=w+u9 chosen so that uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)0, and C&WuN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)1 for 60 iterations. In the excerpted Table 3, RAT-uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)2 + Uniform obtains Natural uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)3, PGDuN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)4 uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)5, PGDuN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)6 uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)7, C&WuN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)8 uN(0,σ2I)u\sim\mathcal N(0,\sigma^2 I)9, and Min-Acc kBernoulli(p)k\sim\mathrm{Bernoulli}(p)0; RAT-kBernoulli(p)k\sim\mathrm{Bernoulli}(p)1 + Gaussian yields Min-Acc kBernoulli(p)k\sim\mathrm{Bernoulli}(p)2; and the worst-case robustness of RAT-kBernoulli(p)k\sim\mathrm{Bernoulli}(p)3 + Uniform exceeds the next best defense in that table (Araujo et al., 2019).

In this line of work, the role of randomization is not computational efficiency but cross-norm robustness. The method combines adversarial training with a smoothed classifier, making RAT conceptually close to randomized smoothing, but the objective remains an adversarial-training objective rather than a purely certification-oriented smoothing procedure.

3. Randomized weights and Taylor-expanded robust objectives

A distinct formulation appears in “Randomized Adversarial Training via Taylor Expansion” (Jin et al., 2023). Here the source of randomness is not input noise but Gaussian perturbation of model weights: kBernoulli(p)k\sim\mathrm{Bernoulli}(p)4 The robust objective is TRADES-like: it combines a standard clean-data classification term with a robustness regularizer defined by the worst-case shift under a small kBernoulli(p)k\sim\mathrm{Bernoulli}(p)5 attack, averaged over the weight noise. The paper writes

kBernoulli(p)k\sim\mathrm{Bernoulli}(p)6

For small kBernoulli(p)k\sim\mathrm{Bernoulli}(p)7, the method expands kBernoulli(p)k\sim\mathrm{Bernoulli}(p)8 in a Taylor series and derives a surrogate loss with zeroth-, first-, and second-order terms. The first-order term depends on kBernoulli(p)k\sim\mathrm{Bernoulli}(p)9, and the second-order term depends on fϕf_\phi0 (Jin et al., 2023).

Algorithmically, each minibatch samples one noise vector fϕf_\phi1, initializes adversarial examples with Gaussian noise fϕf_\phi2, performs fϕf_\phi3-step PGD under the perturbed model fϕf_\phi4, and then updates fϕf_\phi5 by minimizing a batch objective of the form

fϕf_\phi6

The paper states that no high-order autograd is needed, only standard Jacobians and Hessians extracted via vector-Jacobian products; it also reports that the first- plus second-order variant takes roughly fϕf_\phi7–fϕf_\phi8 longer than TRADES alone and uses about fϕf_\phi9 the memory (Jin et al., 2023).

The empirical results cover CIFAR-10, CIFAR-100, and SVHN with ResNet-18, WRN-34-10, VGG16, and MobileNetV2. On CIFAR-10 with ResNet-18 under the minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],0 threat model, the reported numbers for the first+second-order regularizer at minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],1 are Clean minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],2, PGD-20 minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],3, and AutoAttack minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],4. On WideResNet-34-10, adding RAT to AWP-TRADES raises AutoAttack on CIFAR-10 from minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],5 to minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],6 and on CIFAR-100 from minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],7 to minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],8, while also boosting clean accuracy by about minθ  E(x,y)D[maxτpϵL(fθ(x+τ),y)],\min_\theta \; \mathbb E_{(x,y)\sim D}\Big[\max_{\|\tau\|_p\le \epsilon} L(f_\theta(x+\tau),y)\Big],9 (Jin et al., 2023).

This version of RAT is explicitly motivated by loss-landscape flattening. The paper states that figures of the adversarial-loss surface show flatter landscapes in both input and weight directions compared with TRADES, and interprets the randomized-weight procedure as a mechanism for finding flat minima (Jin et al., 2023). That interpretation is specific to the Taylor-expansion formulation and should not be conflated with batch-sampling RAT variants.

4. Bernoulli-sampled adversarial loss in NLP and biomedical information extraction

In recent NLP work, “random adversarial training” refers to stochastic inclusion of adversarial loss on only a subset of minibatches. “RanAT4BIE: Random Adversarial Training for Biomedical Information Extraction” defines the batch loss as

p=p=\infty0

with p=p=\infty1 and attack generation performed only when p=p=\infty2 (Chen et al., 14 Sep 2025). The paper contrasts this with standard adversarial training using FGM, PGD, FreeLB, or SMART; uses PubMedBERT as the base encoder; adds perturbations to the input-token embeddings only; and freezes model parameters during inner maximization. Its experimental setup covers BioNER on BC5-chem, BC5-disease, BC2GM, and NCBI-disease, plus BioRE on CHEMPROT and DDI, with micro-F1 as the metric, batch size p=p=\infty3, max length p=p=\infty4, learning rate p=p=\infty5, p=p=\infty6, p=p=\infty7, p=p=\infty8, and sampling probability p=p=\infty9 (Chen et al., 14 Sep 2025).

The main quantitative claim in that paper is that adversarial training on PubMedBERT yields an average absolute F1 gain of p=2p=20 across six datasets, while RAT at p=2p=21 preserves nearly all of the improvement. In the reported table, BC5-chem is p=2p=22 baseline, p=2p=23 AT average, and p=2p=24 RAT average; DDI is p=2p=25 baseline, p=2p=26 AT average, and p=2p=27 RAT average. Computational cost is measured in xFP units, where baseline is p=2p=28, FGM AT is p=2p=29, RAT FGM is f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),0 with CRR f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),1, and RAT PGD is f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),2 with CRR f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),3; the paper states that with f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),4, multi-step RAT saves about f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),5 of adversarial overhead (Chen et al., 14 Sep 2025).

A closely related formulation appears in “Abex-rat: Synergizing Abstractive Augmentation and Adversarial Training for Classification of Occupational Accident Reports” (Chen et al., 2 Sep 2025). There the classifier f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),6 is a lightweight MLP over embeddings, the base loss is focal loss,

f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),7

with f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),8, and the adversarial perturbation is a one-step FGM perturbation under an f~θ(x)=fθ(x+η),\tilde f_\theta(x)=f_\theta(x+\eta),9 constraint,

η\eta00

using η\eta01 and a Bernoulli gate η\eta02 with η\eta03. The paper reports hyperparameters η\eta04, batch size η\eta05, and learning rate η\eta06 with Adam, and states that only half of the batches incur the extra adversarial branch on average (Chen et al., 2 Sep 2025).

The reported ablation numbers in ABEX-RAT are Macro-F1 η\eta07 for “w/o ABEX” (RAT on original data only), η\eta08 for “w/o RAT” (ABEX plus standard training), and η\eta09 for full ABEX-RAT on the OSHA dataset. The paper further reports minority-class recall improving from η\eta10 without RAT to η\eta11 in ABEX-RAT (Chen et al., 2 Sep 2025).

Within this NLP-oriented family, RAT is primarily an efficiency device. The stated motivation is that full adversarial training doubles or triples training cost, while Bernoulli-sampled adversarial updates reduce expected adversarial-sample generations by factor η\eta12 and preserve nearly all of the measured generalization gain when η\eta13 (Chen et al., 14 Sep 2025). This is operationally very different from the multi-norm and Taylor-expansion RATs.

5. Adversarial transformations in semi-supervised learning

Another established use of the acronym appears in “Adversarial Transformations for Semi-Supervised Learning,” where RAT stands for a regularization framework based on adversarial transformations rather than random adversarial example selection (Suzuki et al., 2019). The model output is η\eta14, the data are split into labeled and unlabeled subsets, and the inner maximization seeks a worst-case label-preserving transformation

η\eta15

The per-point regularizer is then

η\eta16

and the semi-supervised objective combines supervised cross-entropy with an unlabeled consistency term and, in practice, an entropy penalty (Suzuki et al., 2019).

The admissible transformation family η\eta17 includes additive noise, affine transformations, thin-plate spline transformations with a η\eta18 control grid, flow-field deformations, and color distortion. Composite transformations can be built by chaining these operations. The training procedure uses an η\eta19-rampup schedule based on the sigmoid ramp from Mean Teacher: η\eta20 so that the perturbation region grows gradually during early training (Suzuki et al., 2019).

The reported experiments use a Wide ResNet 28η\eta212 backbone trained for η\eta22K iterations with Adam. On CIFAR-10 with η\eta23 labels, the paper reports test error η\eta24 for supervised only, η\eta25 for VAT with η\eta26-rampup, η\eta27 for RAT with noise + affine and no rampup, and η\eta28 for RAT with η\eta29-rampup. On SVHN with η\eta30 labels, the corresponding errors are η\eta31, η\eta32, η\eta33, and η\eta34. The paper also states that combining noise injection with affine transformation produced the largest gain over VAT in its CIFAR-10 ablation (Suzuki et al., 2019).

This line broadens the meaning of adversarial perturbation from additive norm-bounded noise to label-invariant transformations along the data manifold. It is therefore closer to adversarial consistency regularization than to classical robust optimization against norm-bounded attacks.

6. Theoretical context, recurring trade-offs, and limitations

A major theoretical backdrop for RAT-style methods is the difficulty of achieving robust generalization under adversarial training. “The curse of overparametrization in adversarial training: Precise analysis of robust generalization for random features regression” studies adversarially trained random-features regression under an η\eta35-bounded adversary in the proportional high-dimensional limit η\eta36 with η\eta37 and η\eta38 (Hassani et al., 2022). The paper derives an asymptotically exact robust-risk formula through a five-dimensional saddle-point problem and reports that, unlike standard generalization, robust generalization can degrade as overparameterization increases. Its summarized insights include: standard risk exhibits double descent with respect to η\eta39, but for any η\eta40 the robust-risk curve loses the safe descent in the overparameterized region; the worst robust error can occur at η\eta41; and for strong adversaries or large η\eta42, the global minimum of robust risk can even occur in the underparameterized regime η\eta43 (Hassani et al., 2022).

Although this paper is not itself a RAT proposal, it sharpens the context in which RAT methods are designed. Across the surveyed RAT variants, three recurring trade-offs are explicit. First is the robustness-versus-cost trade-off: batch-sampled RAT in BioIE reduces adversarial overhead by roughly the sampling probability η\eta44 while retaining nearly all measured gains at η\eta45 (Chen et al., 14 Sep 2025), and ABEX-RAT states that random adversarial training enhances robustness without significant overhead (Chen et al., 2 Sep 2025). Second is the robustness-versus-clean-accuracy trade-off: the Taylor-expansion RAT is explicitly proposed to improve both robustness and clean accuracy by flattening the loss landscape (Jin et al., 2023). Third is the threat-model trade-off: the multi-norm RAT paper argues that a defense tailored to one norm does not automatically transfer to another, motivating noise-injected adversarial training as a way to improve the worst-case profile across attacks (Araujo et al., 2019).

Several limitations are also explicit in the source literature. RanAT4BIE notes that its randomness is currently at batch level, with no per-token or per-dimension sampling, and that a fixed η\eta46 may be suboptimal; it suggests dynamic or adaptive scheduling, stratified sampling of embedding subspaces or token positions, and combination with gradient accumulation or mixed precision as future directions (Chen et al., 14 Sep 2025). The Taylor-expansion RAT incurs additional runtime and memory relative to TRADES (Jin et al., 2023). In the semi-supervised RAT setting, effectiveness depends on the availability of transformation families that genuinely preserve class labels (Suzuki et al., 2019).

A common misconception is that “RAT” names one established benchmark method. The literature instead uses the acronym for multiple non-equivalent constructions. This suggests that any technical discussion of RAT should specify, at minimum, whether the randomization acts in input space, weight space, attack scheduling, or transformation space; whether the objective is robust optimization, consistency regularization, or efficiency-oriented approximation; and whether the target evaluation is worst-case adversarial accuracy, clean accuracy, micro-F1 or macro-F1, or semi-supervised test error.

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 Random Adversarial Training (RAT).