Recursive Language Models (RLMs) - Let's build the coolest agents ever! (Theory & Code)

Neural Breakdown with AVB · Intermediate ·📄 Research Papers Explained ·2mo ago
In this video, we explain how Recursive Language Models or RLMs work, look at actual trajectories on real problems, see how to implement it from scratch using Deno and Pyodide, and discuss what their key features and benefits are. RLMs are an inference technique where a LLM interacts with arbitrarily long prompts through an external REPL. The LLM can write code to explore, decompose and transform the prompt. It can recursively invoke sub-agents to complete smaller subtasks too! Crucially, the subagent responses do not get automatically loaded into the parent agent's context, it gets returned as symbols or variables inside the parent's REPL. --- Follow me on Twitter to get next video updates: https://x.com/neural_avb To join our Patreon and support this channel financially, visit: https://www.patreon.com/NeuralBreakdownwithAVB Members get access to everything behind-the-scenes that goes into producing my videos - including code. Plus, it supports the channel in a big way and helps to pay my bills. --- You can read the RLM paper here on Paper Breakdown: https://paperbreakdown.com/abs/2512.24601 Arxiv: https://arxiv.org/abs/2512.24601 --- Paper Breakdown makes it way easier to discover Computer Science research, get personalized paper recommendations to study every day, and access a premium collection of tools to study interactively with context-aware AI agents. Get 50% off using code - RLM50 --- Git repo: https://github.com/avbiswas/fast-rlm Pypi: https://pypi.org/project/fast-rlm/ —- Timestamp: 0:00 - Intro 4:36 - What are RLMs 11:13 - RLM trajectories 29:30 - Implementation 45:00 - When to use RLMs and why
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

The ABCs of reading medical research and review papers these days
Learn to critically evaluate medical research papers by accepting nothing at face value, believing no one blindly, and checking everything
Medium · LLM
#1 DevLog Meta-research: I Got Tired of Tab Chaos While Reading Research Papers.
Learn to manage research paper tabs efficiently and apply meta-research techniques to improve productivity
Dev.to AI
How to Set Up a Karpathy-Style Wiki for Your Research Field
Learn to set up a Karpathy-style wiki for your research field to organize and share knowledge effectively
Medium · AI
The Non-Optimality of Scientific Knowledge: Path Dependence, Lock-In, and The Local Minimum Trap
Scientific knowledge may be stuck in a local minimum, hindering optimal progress, and understanding this concept is crucial for advancing research
ArXiv cs.AI

Chapters (5)

Intro
4:36 What are RLMs
11:13 RLM trajectories
29:30 Implementation
45:00 When to use RLMs and why
Up next
Microsoft Research Forum | Season 2, Episode 4
Microsoft Research
Watch →