Random Adversarial Training (RAT)
- 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 with sampled from a noise distribution (Araujo et al., 2019). In other papers, the randomization is placed in parameter space via with (Jin et al., 2023), or at the batch level through a Bernoulli variable 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 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
with separate instantiations for and . RAT modifies the classifier by adding random noise at inference and training time,
where the noise can be Gaussian0 or Uniform1, and then performs adversarial training against 2 rather than against the deterministic model (Araujo et al., 2019).
The motivating theoretical claim is a “no free lunch” result between 3 and 4 defenses: in high dimension, the overlap between equal-volume 5 and 6 balls vanishes exponentially. The paper states a theorem showing that if 7 is the unit 8 ball and 9 is the equal-volume 0 ball, then
1
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&W2 attacks, whereas RAT better balances robustness across 3 and 4 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 5V100 GPUs. The reported attack suite includes PGD6 with 7, PGD8 with 9 chosen so that 0, and C&W1 for 60 iterations. In the excerpted Table 3, RAT-2 + Uniform obtains Natural 3, PGD4 5, PGD6 7, C&W8 9, and Min-Acc 0; RAT-1 + Gaussian yields Min-Acc 2; and the worst-case robustness of RAT-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: 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 5 attack, averaged over the weight noise. The paper writes
6
For small 7, the method expands 8 in a Taylor series and derives a surrogate loss with zeroth-, first-, and second-order terms. The first-order term depends on 9, and the second-order term depends on 0 (Jin et al., 2023).
Algorithmically, each minibatch samples one noise vector 1, initializes adversarial examples with Gaussian noise 2, performs 3-step PGD under the perturbed model 4, and then updates 5 by minimizing a batch objective of the form
6
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 7–8 longer than TRADES alone and uses about 9 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 0 threat model, the reported numbers for the first+second-order regularizer at 1 are Clean 2, PGD-20 3, and AutoAttack 4. On WideResNet-34-10, adding RAT to AWP-TRADES raises AutoAttack on CIFAR-10 from 5 to 6 and on CIFAR-100 from 7 to 8, while also boosting clean accuracy by about 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
0
with 1 and attack generation performed only when 2 (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 3, max length 4, learning rate 5, 6, 7, 8, and sampling probability 9 (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 0 across six datasets, while RAT at 1 preserves nearly all of the improvement. In the reported table, BC5-chem is 2 baseline, 3 AT average, and 4 RAT average; DDI is 5 baseline, 6 AT average, and 7 RAT average. Computational cost is measured in xFP units, where baseline is 8, FGM AT is 9, RAT FGM is 0 with CRR 1, and RAT PGD is 2 with CRR 3; the paper states that with 4, multi-step RAT saves about 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 6 is a lightweight MLP over embeddings, the base loss is focal loss,
7
with 8, and the adversarial perturbation is a one-step FGM perturbation under an 9 constraint,
00
using 01 and a Bernoulli gate 02 with 03. The paper reports hyperparameters 04, batch size 05, and learning rate 06 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 07 for “w/o ABEX” (RAT on original data only), 08 for “w/o RAT” (ABEX plus standard training), and 09 for full ABEX-RAT on the OSHA dataset. The paper further reports minority-class recall improving from 10 without RAT to 11 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 12 and preserve nearly all of the measured generalization gain when 13 (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 14, the data are split into labeled and unlabeled subsets, and the inner maximization seeks a worst-case label-preserving transformation
15
The per-point regularizer is then
16
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 17 includes additive noise, affine transformations, thin-plate spline transformations with a 18 control grid, flow-field deformations, and color distortion. Composite transformations can be built by chaining these operations. The training procedure uses an 19-rampup schedule based on the sigmoid ramp from Mean Teacher: 20 so that the perturbation region grows gradually during early training (Suzuki et al., 2019).
The reported experiments use a Wide ResNet 28212 backbone trained for 22K iterations with Adam. On CIFAR-10 with 23 labels, the paper reports test error 24 for supervised only, 25 for VAT with 26-rampup, 27 for RAT with noise + affine and no rampup, and 28 for RAT with 29-rampup. On SVHN with 30 labels, the corresponding errors are 31, 32, 33, and 34. 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 35-bounded adversary in the proportional high-dimensional limit 36 with 37 and 38 (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 39, but for any 40 the robust-risk curve loses the safe descent in the overparameterized region; the worst robust error can occur at 41; and for strong adversaries or large 42, the global minimum of robust risk can even occur in the underparameterized regime 43 (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 44 while retaining nearly all measured gains at 45 (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 46 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.