Papers › RL²: Fast Reinforcement Learning via Slow Reinforcement Learning

RL²: Fast Reinforcement Learning via Slow Reinforcement Learning

9 Nov 2016arXiv:1611.02779archive 2025-07-28

Yan Duan, John Schulman, Xi Chen, Peter L. Bartlett, Ilya Sutskever, Pieter Abbeel

Deep reinforcement learning (deep RL) has been successful in learning sophisticated behaviors automatically; however, the learning process requires a huge number of trials. In contrast, animals can learn new tasks in just a few trials, benefiting from their prior knowledge about the world. This paper seeks to bridge this gap. Rather than designing a "fast" reinforcement learning algorithm, we propose to represent it as a recurrent neural network (RNN) and learn it from data. In our proposed method, RL², the algorithm is encoded in the weights of the RNN, which are learned slowly through a general-purpose ("slow") RL algorithm. The RNN receives all information a typical RL algorithm would receive, including observations, actions, rewards, and termination flags; and it retains its state across episodes in a given Markov Decision Process (MDP). The activations of the RNN store the state of the "fast" RL algorithm on the current (previously unseen) MDP. We evaluate RL² experimentally on both small-scale and large-scale problems. On the small-scale side, we train it to solve randomly generated multi-arm bandit problems and finite MDPs. After RL² is trained, its performance on new MDPs is close to human-designed algorithms with optimality guarantees. On the large-scale side, we test RL² on a vision-based navigation task and show that it scales up to high-dimensional problems.

PaperPDFCodeCode 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="1611.02779")

Code

Syntology Ran 11 of 21 code samples harvested from 2 repositories linked to this paper; 10 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 8 ran with no contract checked.

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

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

BBDrive/Meta-SGD-RL mentioned on GitHubpytorch report
GeorgeDUT/MetaRLSAS mentioned on GitHubpytorch report
Zhiwei-Z/PrompLimitTest mentioned on GitHubtfMIT report
Zhiwei-Z/SeqPromp mentioned on GitHubtf report
Zhiwei-Z/prompzzw mentioned on GitHubtfMIT report
aliengirlliv/teachable mentioned on GitHub report
bay3s/rl-squared mentioned on GitHubpytorch report
clrrrr/promp_plus mentioned on GitHubtf report
dragen1860/MAML-Pytorch-RL mentioned on GitHubpytorch report
edlanglois/relearn mentioned on GitHubpytorchLGPL-3.0 report
gomerudo/nas-dmrl mentioned on GitHubtfMIT report
iclavera/learning_to_adapt mentioned on GitHubtf report
iclavera/meta-mb mentioned on GitHubtfMIT report
jonasrothfuss/promp mentioned on GitHubtfMIT report
shunzh/pytorch-maml-rl mentioned on GitHubpytorch report
tristandeleu/pytorch-maml-rl 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

21 samples harvested; 11 ran; 0 honoured the contract we drafted; 10 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.

3ran · our draft was wrong
8ran
10unverified

Licence: 0 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. “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.

DiagGaussianActor aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 11487404dfdc69d8 · report
DictList aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · c18fe21a87357f31 · report
FiLM aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 4b03e68ac41174cf · report
ImageEmbedding aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 5ffb9bf347805c8e · report
InstrEmbedding aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 6552221c0b64c499 · report
Logger aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran MIT (permissive) · 35fc183b2b26ff4a · report
Meta_agent_actor Octavio-Pappalardo/RL2-implementation-pytorch/agent_and_tbpttPPO.py community (archive-listed) ran MIT (permissive) · 792b0690a04ce3bc · report
Meta_agent_critic Octavio-Pappalardo/RL2-implementation-pytorch/agent_and_tbpttPPO.py community (archive-listed) ran · metamorphic tier: invariant MIT (permissive) · 0379751da7748c2a · report
layer_init Octavio-Pappalardo/RL2-implementation-pytorch/agent_and_tbpttPPO.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e01d3118f70d5b05 · report
merge_dictlists aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 2ab0cf0a97c81ba7 · report
mlp aliengirlliv/teachable/algos/ppo.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e26d482acf579f3e · report
Agent aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 0a776339f3429848 · report
ImageBOWEmbedding aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 62cdc662994fc6e1 · report
KVWriter aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 94eba517b065a1f9 · report
Outer_loop_action_agent Octavio-Pappalardo/RL2-implementation-pytorch/agent_and_tbpttPPO.py community (archive-listed) unverified MIT (permissive) · 59c573474692344b · report
PPOAgent aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 26687176ddf9ce39 · report
SeqWriter aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 75894be2cafb4f9a · report
collect_evaluation_data Octavio-Pappalardo/RL2-implementation-pytorch/evaluation.py community (archive-listed) unverified MIT (permissive) · a31c91d734c04428 · report
info aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 6665938be4c3f60c · report
log aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · d39457795cdad002 · report
weight_init aliengirlliv/teachable/algos/ppo.py community (archive-listed) unverified MIT (permissive) · 6a3b5d4c89f6aec7 · report

Tasks

Deep Reinforcement LearningReinforcement LearningReinforcement Learning (RL)reinforcement-learning

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