Papers › Self-Supervised Policy Adaptation during Deployment

Self-Supervised Policy Adaptation during Deployment

8 Jul 2020ICLR 2021 1arXiv:2007.04309archive 2025-07-28

Nicklas Hansen, Rishabh Jangir, Yu Sun, Guillem Alenyà, Pieter Abbeel, Alexei A. Efros, Lerrel Pinto, Xiaolong Wang

In most real world scenarios, a policy trained by reinforcement learning in one environment needs to be deployed in another, potentially quite different environment. However, generalization across different environments is known to be hard. A natural solution would be to keep training after deployment in the new environment, but this cannot be done if the new environment offers no reward signal. Our work explores the use of self-supervision to allow the policy to continue training after deployment without using any rewards. While previous methods explicitly anticipate changes in the new environment, we assume no prior knowledge of those changes yet still obtain significant improvements. Empirical evaluations are performed on diverse simulation environments from DeepMind Control suite and ViZDoom, as well as real robotic manipulation tasks in continuously changing environments, taking observations from an uncalibrated camera. Our method improves generalization in 31 out of 36 environments across various tasks and outperforms domain randomization on a majority of environments.

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

Code

Syntology Ran 16 of 21 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 2 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: community (archive-listed): 19 samples from 2 repositories, 14 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

joshnroy/contrastive-pad mentioned on GitHubpytorch 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

21 samples harvested; 16 ran; 0 honoured the contract we drafted; 5 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
2ran · fixture could not drive it
10ran
5unverified

Licence: 21 of the 21 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 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

Actor nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · d526a377580646ff · report
BarlowFunction joshnroy/contrastive-pad/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 554f154e05c8c199 · report
CURL nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 75b91cb1cba4f86b · report
CenterCrop nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 16eb246116ba494b · report
Critic nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · e70accfa4161d131 · report
InvFunction nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · fb1526043e3ddf0f · report
NormalizeImg nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · 21c9f18b03dc202c · report
PixelEncoder nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 77cffce9f453998c · report
QFunction nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 5447123791608219 · report
RotFunction nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 1e6ff078220508ca · report
_rotate_single_with_label nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 1a680b614b0ffdb5 · report
aug joshnroy/contrastive-pad/src/agent/agent.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · e432c8c8eddcb3b7 · report
make_encoder nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 6dcb9b4b8ec4aabd · report
rotate nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 638f9c8f01f54ad1 · report
SacSSAgent nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) unverified no licence file found · pointer only · 6563fe457e0a49ef · report
SacSSAgent joshnroy/contrastive-pad/src/agent/agent.py community (archive-listed) unverified no licence file found · pointer only · b79c90b2fd9d2a85 · report
soft_update_params nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) unverified no licence file found · pointer only · bc0768cc0f4f49c7 · report
tie_weights nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) unverified no licence file found · pointer only · fc88ef6a629962e5 · report
weight_init nicklashansen/policy-adaptation-during-deployment/src/agent/agent.py community (archive-listed) unverified no licence file found · pointer only · 48b3228cfe8d98ae · report
gaussian_logprob identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · daa7b3a0355eb7c3 · report
squash identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · e4f442d1770eacd1 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamDense ConnectionsExperience ReplayReLUSoft Actor-Critic (Autotuned Temperature)

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