Learning, Fast and Slow: Towards LLMs That Adapt Continually
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: Today's paper: "Learning, Fast and Slow: Towards LLMs That Adapt Continually".
Jane: The gist Large language models (LLMs) can be adapted continually by introducing a fast-slow learning framework that separates task-specific information into fast weights and persistent general behaviors into slow weights…
Tom: First, who's behind it and why it matters.
Title and authors: Tom: So, we're looking at this paper today, titled "Learning, Fast and Slow: Towards LLMs That Adapt Continually." It basically tackles the problem that when you train an AI model to do a new task using reinforcement learning, those parameters get permanently changed to absorb that task-specific information.
Jane: That's the core issue we've been talking about—parameter updates force them to absorb things, which leads to forgetting what they knew before and losing their general ability to learn new things. So this paper proposes separating those weights into two parts: slow weights and fast weights.
Lu: Exactly. They treat the model parameters as "slow" weights that are expensive to update, but they treat the context or prompts as "fast" weights that you can change cheaply and frequently without permanently altering the main model structure.
Meng: So if I understand correctly, this means we keep the core brain of the AI stable and general, but we have a separate mechanism to handle all the quick task-specific tweaks? That sounds like it could be useful for deployment where we don't want constant retraining of massive models.
Lalam: It seems they're suggesting that instead of just updating everything, we can distribute the learning signal across both types of weights so the model stays flexible.
The paper's summary: Tom: The paper introduces a fast-slow learning framework called Fast-Slow Training or FST, which jointly optimizes those slow weights through reinforcement learning and fast weights through something called reflective prompt evolution. It’s like they have two different training loops running at the same time.
Jane: They set up a system where the slow parametric component, which is the model weights denoted by theta, represents that expensive part of the model that usually encodes long-lived behavior and persists across tasks.
Lu: And then there's this fast textual component represented by phi, which are prompts and context. These can be changed cheaply and frequently to capture task-level adaptation without permanently modifying the model itself.
Meng: So the training mechanism involves cycles of slow-weight updates where they use reinforcement learning, while simultaneously optimizing the fast weights using this reflective optimization process on a pool of prompts. That sounds like a lot of coordination for what is supposed to be efficient.
Lalam: It’s structured in interleaved updates where the slow loop updates theta from just the scalar reward, and then the fast loop updates phi using that rollout's full text, including thoughts and errors. This allows both components to co-evolve during training.
The paper's improvements: Tom: Now for what they claim is better. They show that this approach is more sample efficient than just training with slow weights alone across reasoning tasks, reaching performance with substantially fewer samples and consistently hitting a higher performance ceiling.
Jane: That's a big deal because it means you get better results without needing massive amounts of data to force the slow weights to learn everything they need. They reach RL’s peak accuracy with fewer training samples.
Lu: And they also found that this method induces smaller slow-weight displacement, which means the model stays much closer to its original base policy, with up to seventy percent lower KL divergence compared to parameter-only trained models at the same reward level.
Meng: Smaller displacement sounds good for stability on production. Less drift away from the general knowledge base is definitely something you want when you're trying to maintain a stable model in use.
Lalam: The paper also shows that this fast-slow training preserves plasticity, meaning it adapts more effectively to subsequent tasks than models trained with only parameters, which prevents catastrophic forgetting.
Conclusion: Tom: So to wrap up on "Learning, Fast and Slow: Towards LLMs That Adapt Continually," FST suggests that post-training should be viewed as optimizing these two different adaptation channels together to get rapid task-specific gains while keeping the model general.
Jane: It essentially gives us a path toward methods that are more data efficient, less destructive, and better suited for continual learning because it lets the fast textual weights handle the immediate changes while the slow parametric weights maintain generality.
Lu: The mechanism is interesting because they show that the fast channel can extract task structure from just a handful of rollouts and inject it immediately through phi without needing many slow weight updates to start moving signal.
Meng: From an engineering standpoint, I'm interested in how this distributes the adaptation. They found that sometimes the fast weights dominate on some tasks, like HoVer-hard and CodeIO, but the slow weights carry most of the gain on math problems like Polaris.
Lalam: Overall, Fast-Slow Training is a way to get rapid task-specific improvements while preserving what we already have in terms of generality and plasticity. It's a way to handle adaptation that I think makes a lot more sense for real-world use cases.
Rishabh Tiwari, Kusha Sareen, Lakshya A Agrawal
UC Berkeley · Mila Montreal University · UT Austin
cs.LG, cs.AI
Submitted: 2026-05-12
Updated: 2026-10-14
Comments: 39 pages, 23 figures, including appendix; Blog post: https://gepa-ai.github.io/gepa/blog/2026/05/11/learning-fast-and-slow/
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 92/100
The gist: The gist Large language models (LLMs) can be adapted continually by introducing a fast-slow learning framework that separates task-specific information into fast weights and persistent general
Key concepts
- Slow Weights ($ heta$)
- These are the core parameters of the LLM that are expensive to update. They represent long-lived behaviors and general reasoning capabilities. In FST, these weights remain relatively stable, ensuring the model doesn't forget its foundational knowledge when adapting to new tasks.
- Fast Weights ($ ext{context/prompts}$ $\phi$)
- These are the lightweight components, such as prompts or context, that can be changed cheaply and rapidly. They absorb task-specific information and feedback immediately, allowing the model to adapt quickly without permanently altering the main model parameters.
- Fast-Slow Training (FST)
- This is a joint optimization method where slow weights are updated via reinforcement learning, while fast weights are optimized through reflective prompt evolution. This interleaving allows for rapid task adaptation while keeping the core model stable and preserving its general performance.
Terminology
Summary
The gist Large language models (LLMs) can be adapted continually by introducing a fast-slow learning framework that separates task-specific information into fast weights and persistent general behaviors into slow weights This framework, Fast-Slow Training (FST), is shown to be more sample efficient, preserves plasticity, and enables continual learning in LLMs compared to parameter-only training methods.
The Fast-Slow Learning Framework
The paper introduces a fast-slow learning framework for LLMs where model parameters are treated as “slow” weights and optimized context is treated as “fast” weights The slow parametric component, denoted by θ, represents the model weights which are expensive to update, persist across tasks, and encode long-lived behavior. The fast textual component, denoted by ϕ, represents prompts and context which can be changed cheaply and frequently to capture task-level adaptation without permanently modifying the model. This division of labor allows the fast weights to learn from textual feedback to absorb task-specific information while allowing slow weights to stay closer to the base model and persist general reasoning behaviors.
Training Mechanism: Fast-Slow Training (FST)
Fast-Slow Training (FST) jointly optimizes slow weights θ through reinforcement learning and fast weights ϕ through reflective prompt evolution The method maintains a population of K textual prompts, Φ = ϕ(1),..., ϕ(K), and optimizes the joint objective J(θ, ϕ) = Ex∼D, ϕ∼U(Φ), y∼πθ(·x,ϕ)[r(x, y)]. Training proceeds in cycles of T slow-weight updates where GEPA optimizes the fast weights Φc+1 using the current policy πθc as the rollout model. For the next T steps, θ is updated on minibatches from Lc while holding Φc+1 fixed. During this slow-weight update phase, rollouts are computed by sampling each prompt ϕ(k) ∈ Φc+1 exactly G/K times for each problem p, and rewards are normalized by per-problem statistics.
Key Advantages of FST
The fast-slow distinction yields several consequences across reasoning tasks
-
Fast textual adaptation improves data efficiency, as fast weights incorporate task-level signal rapidly, matching RL reward with up to 3× fewer rollouts and consistently reaching a higher performance ceiling.
-
Fast-slow training induces smaller slow-weight displacement, resulting in up to 70% lower KL divergence to the base policy at matched reward compared to RL-only baselines.
-
Fast-slow training preserves plasticity, as FST trained models adapt more effectively to subsequent tasks than parameter-only trained models, preventing catastrophic forgetting.
-
Fast-slow training enables continual learning where tasks change on the fly, allowing the model to adapt more quickly to changing objectives than parameter-only RL stalls.
Empirical Results and Mechanisms
The framework's benefits stem from several observations regarding the interaction between channels
Observation 1:
The fast channel does not have this latency: GEPA can extract task structure from a handful of rollouts and inject it through Φ immediately
. This is because slow weights are slow in how many updates they require to begin moving signal at all, while the fast channel provides immediate gradient signal.
Observation 2:
FST does not assume a fixed division of labor between the two channels, and lets each task draw on whichever channel pays off while still combining them when both contribute
. The in-distribution gain is decomposed into slow- and fast-weight contributions, showing that the joint cell (FST weights + FST prompt) dominates on HoVer-hard and CodeIO, while the slow weights carry most of the gain on Math (Polaris).
Observation 3:
FST escapes the zero-reward regime by step ∼50, an order of magnitude before RL begins to move signal at ∼250
. This demonstrates that the fast channel provides enough gradient signal for FST to climb rewards quickly.
Conclusion
The paper concludes that effective post-training should be viewed as optimization over multiple adaptation channels, where fast textual weights and slow parametric weights are trained together to achieve rapid and task-specific improvements while preserving the generality and plasticity of the base model. FST offers a path toward post-training methods that are more data-efficient, less destructive, and more amenable to continual learning.
Limitations and Future Work
The authors note that while the study focuses on CISPO and GEPA as optimizers, studying the impact of changing the prompt or weight optimizer is an interesting avenue for future work. There is also potential to make the method more compute efficient and better reuse trajectories across prompt and weight optimization. Finally, a more comprehensive study of applying this paradigm to distillation-based approaches is considered an exciting avenue for future work.
Related Work
The paper situates FST within related fields by noting that the fast/slow decomposition predates deep learning, with roots in the neuroscience of complementary learning systems. It also discusses modern fast–slow methods for LLM RL, such as BetterTogether and LANPO, which interleave language and numerical feedback via per-instance reflections. The framework is related to other LLM-as-optimizer methods that use natural-language reflection or self-feedback.
Algorithm Details
The pseudocode for FST shows the interleaved nature of the optimization, where GEPA returns the top-K candidates from its Pareto frontier to seed the next RL phase. The training involves cycling through T slow-weight updates, with each cycle involving a GEPA phase to generate fast weights Φc+1. The rollout group for the RL update is formed by sampling from the current population of prompts Φc+1, mixing prompt and sampling variation within the same advantage computation.
Star-Graph Dataset Construction
The paper describes a synthetic dataset construction method called Star-graph search, which is used for planning tasks. Each instance is parameterized by a triple (d, p, n): source degree d, path length p, and node-pool size n. This construction creates hard exploration problems where the first hop is the only real branching decision.
Hyperparameters and Compute
The appendix lists detailed hyperparameters for reproducing results, including settings for GRPO, cispo surrogate loss, and GEPA configurations. The headline runs in the main paper utilize single-node configurations with 8× H100 GPUs. The computation time for a single RL+FST run is on the order of 25–40 H100-GPU-hours, with GEPA cycles adding a sizable fraction to this cost.
Final Summary
Fast-Slow Training (FST) is a fast and slow learning framework for LLMs that jointly optimizes slow model parameters via RL and fast textual context via reflective prompt evolution. This approach reaches matched performance with 1.4–3× fewer optimizer steps, attains a higher asymptote, and incurs lower KL displacement than RL alone, which in turn translates into preserved plasticity and stronger continual-learning behavior on new tasks. The results suggest that effective post-training should not ask model parameters to absorb all forms of adaptation <ref:2605.
Improvements for AI systems
- Bold Header: Fast-Slow Training (FST) for Data Efficiency
FST is up to 3× more sample-efficient than only slow learning (RL) across reasoning tasks
while consistently reaching a higher performance asymptote.
This allows LLMs to reach peak performance with substantially fewer samples
by leveraging the fast textual channel, which incorporates task-level signal rapidly.
- Bold Header: Increased Performance Asymptote
FST induces a higher ceiling for model performance compared to parameter-only methods, as evidenced by FST’s fitted asymptote exceeds RL’s
across all tested tasks on CodeIO, Math (Polaris), and HoVer-hard. This suggests that Pushing part of the task adaptation into the textual fast-weight channel Φ in addition to the slow weights θ helps the overall method converge to a higher accuracy ceiling.
- Bold Header: Reduced Catastrophic Forgetting
FST leads to smaller slow-weight displacement,
resulting in models that remain closer to the base LLM (up to 70% less KL divergence).
This reduced drift preserves plasticity
and ensures that after training on one task, FST trained models adapt more effectively to a subsequent task than parameter-only trained models.
- Bold Header: Enhanced Continual Learning Capability
FST enables continual learning by allowing the model to continue to acquire each new task while parameter-only RL stalls.
This is demonstrated in multi-task training where FST reaches near-peak in every stage,
mirroring the data efficiency gap of Section 4 Advantage 1.
- Bold Header: Data Efficiency via Contextual Learning
The framework allows for data efficient learning
because the fast weights incorporate task-level signal rapidly, enabling systems to improve without waiting for slow parameter updates.
This overcomes the widely accepted 1-bit-per-episode information limit of binary RLVR.
- Bold Header: Joint Optimization of Adaptation Channels
FST jointly optimizes slow weights through RL and fast weights through GEPA, allowing them to co-evolve. This is formalized by the objective function maximizing J(θ, ϕ) = Ex∼D, ϕ∼U(Φ), y∼πθ(·x,ϕ)[r(x, y)],
meaning adaptation is distributed appropriately across both elements.
- Bold Header: Adaptive Prompt Engineering
The fast weights are optimized via GEPA, which uses a reflective evolutionary procedure
to maintain a Pareto frontier of complementary prompts.
This allows the system to use different prompts perform best on different subsets of D,
providing the policy access to multiple conditioning behaviors simultaneously.
Abstract
Large language models (LLMs) are trained for downstream tasks by updating their parameters (e.g., via RL). However, updating model parameters forces them to absorb task-specific information, which can result in catastrophic forgetting and loss of plasticity. In contrast, in-context learning with fixed LLM parameters can cheaply and rapidly adapt to task-specific requirements (e.g., prompt optimization), but cannot by itself typically match the performance gains available through updating LLM parameters. Inspired by how human learning works at multiple time scales (e.g., System 1 vs 2), we propose a fast-slow learning framework for LLMs, instantiated with model parameters as "slow" weights and optimized context as "fast" weights. These fast "weights" can learn from textual feedback to absorb the task-specific information, while allowing slow weights to stay closer to the base model and persist general reasoning behaviors. Fast-Slow Training (FST) is up to 3x more sample-efficient than only slow learning (RL) across reasoning tasks, while consistently reaching a higher performance asymptote. Moreover, FST-trained models remain closer to the base LLM (up to 70% less KL divergence), resulting in less catastrophic forgetting than RL-training. This reduced drift also preserves plasticity: after training on one task, FST trained models adapt more effectively to a subsequent task. In continual learning scenarios, where task domains change on the fly, FST continues to acquire each new task while RL stalls.
Sources
- PromptWizard: Task-Aware Prompt Optimization Framework
- GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning
- Prediction and Control in Continual Reinforcement Learning
- Using Fast Weights to Attend to the Recent Past
- Language Models are Few-Shot Learners
- Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMs
- The Entropy Mechanism of Reinforcement Learning for Reasoning Language Models
- RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learning
- Nemotron-Math: Efficient Long-Context Distillation of Mathematical Reasoning from Multi-Mode Supervision
- Scaling Laws for Reward Model Overoptimization
- EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizers
- Reinforcement Learning via Self-Distillation
- HoVer: A Dataset for Many-Hop Fact Extraction And Claim Verification
- Scaling Laws for Forgetting When Fine-Tuning Large Language Models
- The Art of Scaling Reinforcement Learning Compute for LLMs
- DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines
- Tulu 3: Pushing Frontiers in Open Language Model Post-Training
- LANPO: Bootstrapping Language and Numerical Feedback for Reinforcement Learning in LLMs
- CodeI/O: Condensing Reasoning Patterns via Code Input-Output Prediction
- Mitigating the Alignment Tax of RLHF
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks