Papers › Unsupervised Data Augmentation for Consistency Training

Unsupervised Data Augmentation for Consistency Training

29 Apr 2019NeurIPS 2020 12arXiv:1904.12848archive 2025-07-28

Qizhe Xie, Zihang Dai, Eduard Hovy, Minh-Thang Luong, Quoc V. Le

Semi-supervised learning lately has shown much promise in improving deep learning models when labeled data is scarce. Common among recent approaches is the use of consistency training on a large amount of unlabeled data to constrain model predictions to be invariant to input noise. In this work, we present a new perspective on how to effectively noise unlabeled examples and argue that the quality of noising, specifically those produced by advanced data augmentation methods, plays a crucial role in semi-supervised learning. By substituting simple noising operations with advanced data augmentation methods such as RandAugment and back-translation, our method brings substantial improvements across six language and three vision tasks under the same consistency training framework. On the IMDb text classification dataset, with only 20 labeled examples, our method achieves an error rate of 4.20, outperforming the state-of-the-art model trained on 25,000 labeled examples. On a standard semi-supervised learning benchmark, CIFAR-10, our method outperforms all previous approaches and achieves an error rate of 5.43 with only 250 examples. Our method also combines well with transfer learning, e.g., when finetuning from BERT, and yields improvements in high-data regime, such as ImageNet, whether when there is only 10% labeled data or when a full labeled set with 1.3M extra unlabeled examples is used. Code is available at https://github.com/google-research/uda.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1904.12848")

Code

Syntology Ran 15 of 52 code samples harvested from 12 repositories linked to this paper; 37 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 4 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: official repository: 24 samples from 1 repository, 0 ran; community (archive-listed): 28 samples from 11 repositories, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

20 repositories listed; official and paper-mentioned ones first.

google-research/uda officialmentioned in papertfApache-2.0 report
A-Telfer/AugKey mentioned on GitHub report
ChingHuanChiu/sensitive mentioned on GitHubtf report
PaulEmmanuelSotir/DeepCV mentioned on GitHubpytorch report
PhamNguyen97/TSA_pytorch mentioned on GitHubpytorch report
SanghunYun/UDA_pytorch mentioned on GitHubpytorch report
SaraAmd/Semi-Supervised-Learning mentioned on GitHubpytorch report
bhacquin/UDA_pytorch mentioned on GitHubpytorch report
ildoonet/unsupervised-data-augmentation mentioned on GitHubpytorchApache-2.0 report
kekmodel/UDA-pytorch mentioned on GitHubpytorch report
leblancdaniel/paraphraser mentioned on GitHubtf report
rwbfd/OpenCompetitionV2 mentioned on GitHubpytorchGPL-3.0 report
tomgoter/nlp_finalproject mentioned on GitHubtf report
uizard-technologies/realmix mentioned on GitHubtfApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

52 samples harvested; 15 ran; 0 honoured the contract we drafted; 37 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
4ran · fixture could not drive it
7ran
37unverified

Licence: 9 of the 52 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 12 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bert_attention google-research/uda/text/bert/modeling.py official repository unverified Apache-2.0 (permissive) · 63d1e64fcc8da86a · report
bert_embedding google-research/uda/text/bert/modeling.py official repository unverified Apache-2.0 (permissive) · 4cd09bb78a67af39 · report
bert_pooler google-research/uda/text/bert/modeling.py official repository unverified Apache-2.0 (permissive) · b041de8f4abb1b10 · report
build_vocab google-research/uda/text/preprocess.py official repository unverified Apache-2.0 (permissive) · 98430a824c0f53a8 · report
construct_scalar_host_call google-research/uda/image/utils.py official repository unverified Apache-2.0 (permissive) · 914d0b8791ca87d0 · report
create_cutout_mask google-research/uda/image/randaugment/augmentation_transforms.py official repository unverified Apache-2.0 (permissive) · a7723bf702941670 · report
decay_weights google-research/uda/image/utils.py official repository unverified Apache-2.0 (permissive) · fb66342c3f664ee6 · report
divide_data_for_worker google-research/uda/back_translate/split_paragraphs.py official repository unverified Apache-2.0 (permissive) · 97c1d8a99764fb25 · report
format_sup_filename google-research/uda/image/data.py official repository unverified Apache-2.0 (permissive) · d00f20643f490779 · report
format_sup_filename google-research/uda/image/preprocess.py official repository unverified Apache-2.0 (permissive) · 5b70acc56bd3291f · report
format_unsup_filename google-research/uda/image/data.py official repository unverified Apache-2.0 (permissive) · d90af0b30176ac15 · report
get_TPU_estimator google-research/uda/image/utils.py official repository unverified Apache-2.0 (permissive) · 81e5d3b478f3469c · report
get_data_for_worker google-research/uda/text/preprocess.py official repository unverified Apache-2.0 (permissive) · d468fe223b1a25a2 · report
get_dataset google-research/uda/image/data.py official repository unverified Apache-2.0 (permissive) · b417179a5b5e0e14 · report
get_raw_data_filenames google-research/uda/image/preprocess.py official repository unverified Apache-2.0 (permissive) · 89985ecf00256155 · report
get_tsa_threshold google-research/uda/text/uda.py official repository unverified Apache-2.0 (permissive) · 6895a8402ea9ee79 · report
global_avg_pool google-research/uda/image/randaugment/custom_ops.py official repository unverified Apache-2.0 (permissive) · 17411729594afb42 · report
hidden_to_logits google-research/uda/text/uda.py official repository unverified Apache-2.0 (permissive) · 0175d515a039d4f8 · report
kl_for_log_probs google-research/uda/text/uda.py official repository unverified Apache-2.0 (permissive) · 1902057ba4826690 · report
random_flip google-research/uda/image/randaugment/augmentation_transforms.py official repository unverified Apache-2.0 (permissive) · 6e1198a9c8c47438 · report
split_sent_by_punc google-research/uda/back_translate/split_paragraphs.py official repository unverified Apache-2.0 (permissive) · c6512991cdef483b · report
variable google-research/uda/image/randaugment/custom_ops.py official repository unverified Apache-2.0 (permissive) · f6b18b79eccd8391 · report
zero_pad google-research/uda/image/randaugment/custom_ops.py official repository unverified Apache-2.0 (permissive) · 563e25e514f4a2a6 · report
zero_pad_and_crop google-research/uda/image/randaugment/augmentation_transforms.py official repository unverified Apache-2.0 (permissive) · f3f5fce61e36ad06 · report
AverageMeter lantgabor/Unsupervised-Data-Augmentation-PyTorch/UDA.py community (archive-listed) ran Apache-2.0 (permissive) · 9355efdc819d943e · report
MagnitudePolicy A-Telfer/AugKey/augkey/randaug.py community (archive-listed) ran MIT (permissive) · 36741a983d72bd68 · report
RGB2RGBA SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py community (archive-listed) ran · metamorphic tier: well formed no licence file found · pointer only · 1a1dcc06f81c3c75 · report
RandAugment A-Telfer/AugKey/augkey/randaug.py community (archive-listed) ran MIT (permissive) · 5722c1e755019115 · report
ShearX ildoonet/unsupervised-data-augmentation/augmentations.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · b92936d1f2ac3e6c · report
ShearY ildoonet/unsupervised-data-augmentation/augmentations.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 008c64b77c4ae4c9 · report
TranslateX ildoonet/unsupervised-data-augmentation/augmentations.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · ab50d5bbcf589623 · report
UDALoss peisuke/UnsupervisedDataAugmentation.pytorch/train_CIFAR10.py community (archive-listed) ran MIT (permissive) · e69c03b0ebf8765a · report
conv3x3 ildoonet/unsupervised-data-augmentation/networks/wideresnet.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 00e569acd6b45ef0 · report
convert_examplesUDA_to_features bhacquin/UDA_pytorch/run_uda.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · df213afe1b71adfd · report
float_parameter ildoonet/unsupervised-data-augmentation/archive.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 40d3c39a403ae1f7 · report
get_unsupervised_loss PhamQuocHuy1101/UDA-Image-classification/engine.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · bfec53e668f92651 · report
int_parameter ildoonet/unsupervised-data-augmentation/archive.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 7900a3a6deef908b · report
replace_with_length_check joannayu25/NLP_Project_MIDS-W266/augmentation/sent_level_augment.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 64a6c97a5657e37a · report
uda_train lantgabor/Unsupervised-Data-Augmentation-PyTorch/UDA.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · a359f54f3b9012c2 · report
Classifier SanghunYun/UDA_pytorch/models.py community (archive-listed) unverified Apache-2.0 (permissive) · e46d15e93318b254 · report
RandAugment SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py community (archive-listed) unverified no licence file found · pointer only · b9d05e119e47da9f · report
ReduceChannelwithNormalize SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py community (archive-listed) unverified no licence file found · pointer only · 41b7d839c5008446 · report
StrongAugmentation SaraAmd/Semi-Supervised-Learning/ssl_lib/augmentation/augmentation_class.py community (archive-listed) unverified no licence file found · pointer only · 3458a17eb1c6c95f · report
accuracy ildoonet/unsupervised-data-augmentation/metrics.py community (archive-listed) unverified Apache-2.0 (permissive) · 3ccb35170e45f022 · report
argsort ildoonet/unsupervised-data-augmentation/samplers/stratified_sampler.py community (archive-listed) unverified Apache-2.0 (permissive) · cbc36864ed1d2c42 · report
back_translation joannayu25/NLP_Project_MIDS-W266/augmentation/sent_level_augment.py community (archive-listed) unverified no licence file found · pointer only · 2f093dc1c7296f6c · report
cross_entropy_smooth ildoonet/unsupervised-data-augmentation/metrics.py community (archive-listed) unverified Apache-2.0 (permissive) · f018413f261238f7 · report
fisherYatesShuffle ildoonet/unsupervised-data-augmentation/samplers/stratified_sampler.py community (archive-listed) unverified Apache-2.0 (permissive) · 406265b8de6d26a2 · report
get_logger ildoonet/unsupervised-data-augmentation/common.py community (archive-listed) unverified Apache-2.0 (permissive) · 6066adc7a58afde6 · report
get_uda_classification_loss tomgoter/nlp_finalproject/utils/function_builder.py community (archive-listed) unverified no licence file found · pointer only · 83a7585173c63bc5 · report
jensen_shannon_divergence_consistency_loss PaulEmmanuelSotir/DeepCV/src/deepcv/meta/contrastive.py community (archive-listed) unverified MIT (permissive) · 36c684d7fa0846c8 · report
spotifyShuffle ildoonet/unsupervised-data-augmentation/samplers/stratified_sampler.py community (archive-listed) unverified Apache-2.0 (permissive) · 6cb91780680fb891 · report

Tasks

Data AugmentationImage AugmentationImage ClassificationSemi-Supervised Image ClassificationSentiment AnalysisText ClassificationTransfer Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet ResNet-50 (UDA) Top 1 Accuracy 79.04% #786 of 1060 Archive leaderboard report
Semi-Supervised Image Classification CIFAR-10, 4000 Labels UDA Percentage error 5.27 #25 of 49 Archive leaderboard report
Semi-Supervised Image Classification ImageNet - 10% labeled data UDA Top 5 Accuracy 88.52 #55 of 75 Archive leaderboard report
Semi-Supervised Image Classification SVHN, 1000 labels UDA Accuracy 97.54 #5 of 17 Archive leaderboard report
Sentiment Analysis Amazon Review Full BERT large Accuracy 65.83 #1 of 9 Archive leaderboard report
Sentiment Analysis Amazon Review Full BERT large finetune UDA Accuracy 62.88 #4 of 9 Archive leaderboard report
Sentiment Analysis Amazon Review Polarity BERT large Accuracy 97.37 #1 of 9 Archive leaderboard report
Sentiment Analysis Amazon Review Polarity BERT large finetune UDA Accuracy 96.5 #3 of 9 Archive leaderboard report
Sentiment Analysis IMDb BERT large finetune UDA Accuracy 95.8 #10 of 49 Archive leaderboard report
Sentiment Analysis IMDb BERT large Accuracy 95.49 #15 of 49 Archive leaderboard report
Sentiment Analysis Yelp Binary classification BERT large Error 1.89 #4 of 20 Archive leaderboard report
Sentiment Analysis Yelp Binary classification BERT large finetune UDA Error 2.05 #6 of 20 Archive leaderboard report
Sentiment Analysis Yelp Fine-grained classification BERT large Error 29.32 #3 of 17 Archive leaderboard report
Sentiment Analysis Yelp Fine-grained classification BERT large finetune UDA Error 32.08 #8 of 17 Archive leaderboard report
Text Classification Amazon-2 BERT Finetune + UDA Error 3.5 #2 of 4 Archive leaderboard report
Text Classification Amazon-5 BERT Finetune + UDA Error 37.12 #3 of 3 Archive leaderboard report
Text Classification DBpedia BERT large Error 0.68 #3 of 21 Archive leaderboard report
Text Classification DBpedia BERT large UDA Error 1.09 #14 of 21 Archive leaderboard report
Text Classification Yelp-2 BERT Finetune + UDA Accuracy 97.95% #3 of 5 Archive leaderboard report
Text Classification Yelp-5 BERT Finetune + UDA Accuracy 67.92% #6 of 7 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAdamAttentionAttention DropoutAverage PoolingBERTBatch NormalizationBottleneck Residual BlockConvolutionDense ConnectionsDropoutGlobal Average PoolingKaiming InitializationLayer NormalizationLinear LayerLinear Warmup With Linear DecayMax PoolingMulti-Head AttentionReLUResidual BlockResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections