AI Pulse by Inblix

This RNN learns new tasks in one shot—no fine-tuning needed

OpenAI Blog · Jul 20, 2026 · 2 min read · Read original article →

Curated by the Inblix editorial team


Featured image for article: This RNN learns new tasks in one shot—no fine-tuning needed

The brute-force approach that made DeepMind’s DQN a star—running millions of trials to master a single game—has always felt a little embarrassing when you compare it to a rat learning a maze in minutes. That gap between biological and artificial learners is exactly what researchers from OpenAI and UC Berkeley take aim at with RL², a method that embeds a fast reinforcement learning algorithm inside the weights of a recurrent neural network.

The trick is clever in its simplicity. Instead of hand-crafting an algorithm that can adapt quickly, the team lets a “slow” RL algorithm—trusty old TRPO, in this case—design one. The RNN is fed standard RL inputs: observations, actions, rewards, and termination flags. Crucially, it maintains its hidden state across entire episodes of a given MDP, effectively learning an internal representation of what kind of problem it’s dealing with. When the MDP switches, the RNN’s activations reset, forcing it to learn a general procedure for exploration and exploitation rather than memorizing a specific environment.

On randomly generated multi-armed bandits and small MDPs, the results are striking. After training, RL² performs nearly as well as theoretically optimal, human-designed algorithms like Gittins indices for bandits and UCB-VI for tabular MDPs. It’s not just mimicking them, either. The paper shows the RNN learns sensible exploration strategies—like periodically re-checking arms it hasn’t pulled in a while—without anyone coding that behavior. The system even handles a vision-based navigation task, proving it scales beyond toy problems.

I’m not ready to declare the sample-efficiency problem solved. The training process itself is still glacially slow, and the gap on harder MDPs remains significant. But reframing meta-learning as just another RL problem—one solved by a recurrent net—is the kind of conceptual shift that sticks. The real question is whether this approach can eventually train on a distribution of tasks broad enough to match the priors a rat is born with.

💡 Key Takeaways

  1. RL² trains an RNN to act as a fast RL algorithm itself, using a standard slow RL algorithm (TRPO) to learn the RNN’s weights across many MDPs.
  2. The RNN maintains its hidden state across episodes within a single MDP, allowing it to accumulate knowledge about that specific problem and adapt its exploration strategy over time.
  3. On small-scale problems like multi-armed bandits and tabular MDPs, RL² matches the performance of theoretically optimal hand-designed algorithms without any task-specific tuning.
  4. The approach scales to high-dimensional tasks, demonstrated successfully on a vision-based navigation problem requiring the agent to learn from raw pixels.

Keep reading: See related articles below for more coverage on this topic.

Get smarter about AI

The sharpest AI news, curated daily. Delivered free to your inbox.

Learn more

Glossary terms

← Back to all articles