Papers › Stabilizing Deep Q-Learning with ConvNets and Vision Transformers under Data Augmentation

Stabilizing Deep Q-Learning with ConvNets and Vision Transformers under Data Augmentation

1 Jul 2021NeurIPS 2021 12arXiv:2107.00644archive 2025-07-28

Nicklas Hansen, Hao Su, Xiaolong Wang

While agents trained by Reinforcement Learning (RL) can solve increasingly challenging tasks directly from visual observations, generalizing learned skills to novel environments remains very challenging. Extensive use of data augmentation is a promising technique for improving generalization in RL, but it is often found to decrease sample efficiency and can even lead to divergence. In this paper, we investigate causes of instability when using data augmentation in common off-policy RL algorithms. We identify two problems, both rooted in high-variance Q-targets. Based on our findings, we propose a simple yet effective technique for stabilizing this class of algorithms under augmentation. We perform extensive empirical evaluation of image-based RL using both ConvNets and Vision Transformers (ViT) on a family of benchmarks based on DeepMind Control Suite, as well as in robotic manipulation tasks. Our method greatly improves stability and sample efficiency of ConvNets under augmentation, and achieves generalization results competitive with state-of-the-art methods for image-based RL in environments with unseen visuals. We further show that our method scales to RL with ViT-based architectures, and that data augmentation may be especially important in this setting.

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="2107.00644")

Code

Syntology Ran 8 of 20 code samples harvested from 3 repositories linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 6 ran with no contract checked.

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

nicklashansen/dmcontrol-generalization-benchmark officialmentioned in papermentioned on GitHubtfMIT report
nicklashansen/svea-vit mentioned on GitHubpytorchMIT 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

20 samples harvested; 8 ran; 0 honoured the contract we drafted; 12 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.

1ran · our draft was wrong
1ran · fixture could not drive it
6ran
12unverified

Licence: 0 of the 20 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 3 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.

gaussian_logprob nicklashansen/dmcontrol-generalization-benchmark/src/algorithms/modules.py official repository ran fingerprinted MIT (permissive) · 2df17488b927be0b · report
squash nicklashansen/dmcontrol-generalization-benchmark/src/algorithms/modules.py official repository ran fingerprinted MIT (permissive) · 121cb336a1e1278a · report
trunc_normal_ nicklashansen/dmcontrol-generalization-benchmark/src/algorithms/modules.py official repository ran MIT (permissive) · 1387f0bafec9b149 · report
batch_from_obs nicklashansen/dmcontrol-generalization-benchmark/src/augmentations.py official repository unverified MIT (permissive) · b25eb65554d61412 · report
load_config nicklashansen/dmcontrol-generalization-benchmark/src/utils.py official repository unverified MIT (permissive) · 5912a589c21e0e7f · report
random_conv nicklashansen/dmcontrol-generalization-benchmark/src/augmentations.py official repository unverified MIT (permissive) · 0604211861b8f1e9 · report
cat SVJayanthi/dmcontrol-generalization-benchmark/src/utils.py community (archive-listed) ran fingerprinted MIT (permissive) · 6c2c84b4ccb7f17b · report
drop_path nicklashansen/svea-vit/src/algorithms/layers/drop.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 39eace7e2822504f · report
gaussian_logprob nicklashansen/svea-vit/src/algorithms/modules.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · daa7b3a0355eb7c3 · report
make_dir nicklashansen/svea-vit/src/utils.py community (archive-listed) ran fingerprinted MIT (permissive) · 1ac4e5bffc3dbbd3 · report
make_divisible nicklashansen/svea-vit/src/algorithms/layers/helpers.py community (archive-listed) ran MIT (permissive) · 5b2c72c30130d62a · report
do_green_screen nicklashansen/svea-vit/src/env/wrappers.py community (archive-listed) unverified MIT (permissive) · 09be0f6d9a709601 · report
drop_block_2d nicklashansen/svea-vit/src/algorithms/layers/drop.py community (archive-listed) unverified MIT (permissive) · 653d5a3aa2c473be · report
drop_block_fast_2d nicklashansen/svea-vit/src/algorithms/layers/drop.py community (archive-listed) unverified MIT (permissive) · 97aa7c942cfb7d3d · report
listdir nicklashansen/svea-vit/src/utils.py community (archive-listed) unverified MIT (permissive) · 4cd7bffb72ec1909 · report
random_conv nicklashansen/svea-vit/src/augmentations.py community (archive-listed) unverified MIT (permissive) · e944e6e5e6f2648b · report
rgb_to_hsv nicklashansen/svea-vit/src/env/wrappers.py community (archive-listed) unverified MIT (permissive) · 3fa399e318655bf7 · report
squash nicklashansen/svea-vit/src/algorithms/modules.py community (archive-listed) unverified MIT (permissive) · adedb876e87c2947 · report
transform_batch_obs SVJayanthi/dmcontrol-generalization-benchmark/src/utils.py community (archive-listed) unverified MIT (permissive) · c5bfdbe07ab3b06d · report
vit_crop nicklashansen/svea-vit/src/augmentations.py community (archive-listed) unverified MIT (permissive) · 847b6ac61bd69609 · report

Tasks

Data AugmentationQ-LearningReinforcement Learning (RL)

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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