HyperAIHyperAI

Command Palette

Search for a command to run...

速習と遅習:継続的に適応する大規模言語モデルへ向けて

Rishabh Tiwari Kusha Sareen Lakshya A Agrawal Joseph E. Gonzalez Matei Zaharia Kurt Keutzer Inderjit S Dhillon Rishabh Agarwal Devvrit Khatri

概要

大規模言語モデル(LLM)は、パラメータの更新(例えば強化学習(RL)を通じて)によって下流タスクのために学習される。しかし、パラメータを更新すると、モデルはタスク固有の情報を吸収せざるを得なくなり、その結果、壊滅的忘却(catastrophic forgetting)や可塑性の低下を招く可能性がある。一方、固定されたLLMパラメータにおけるコンテキスト学習は、タスク固有の要件(例えばプロンプト最適化など)に低コストかつ迅速に適応できるが、それ単体では通常、LLMパラメータの更新によって得られるパフォーマンス向上に追いつくことはできない。学習をコンテキスト内あるいは重み内(in-weights)のみに制限する合理的な理由はない。さらに、人間も異なる時間スケール(例えばシステム1とシステム2)で学習すると考えられている。これを踏まえ、私たちはLLM向けに「高速・低速学習」フレームワークを導入する。ここでは、モデルパラメータを「低速」重みとし、最適化されたコンテキストを「高速」重みとする。これらの高速「重み」はテキストフィードバックから学習してタスク固有の情報を吸収しつつ、低速重みはベースモデルに近い状態を保ち、一般的な推論振る舞いを持続させることができる。推論タスクにおいて、Fast-Slow Training(FST)は、低速学習(RL)のみを使用する場合と比べて、最大3倍の高いサンプル効率を示し、一貫して高いパフォーマンスの漸近値に到達する。さらに、FSTでトレーニングされたモデルはベースLLMにより近い状態(KL発散が最大70%少ない)を保つため、RLトレーニングよりも壊滅的忘却が軽減される。このドリフト(振る舞いの偏り)の抑制は可塑性も維持する:あるタスクのトレーニング後、FSTでトレーニングされたモデルは、パラメータのみでトレーニングされたモデルよりも、後続のタスクに対してより効果的に適応する。タスクドメインがリアルタイムで変化する継続的学習のシナリオにおいても、FSTは新しいタスクの習得を継続できるのに対し、パラメータのみを用いたRLは停滞してしまう。

One-sentence Summary

The authors propose Fast-Slow Training, a framework treating optimized context as fast weights and model parameters as slow weights for continual adaptation in large language models, achieving up to 3× more sample efficiency than reinforcement learning while reducing catastrophic forgetting and preserving plasticity across changing task domains by maintaining up to 70% less KL divergence from the base model.

Key Contributions

  • A fast-slow learning framework is introduced for large language models, treating model parameters as slow weights and optimized context as fast weights. This structure allows fast weights to absorb task-specific information from textual feedback while maintaining slow weights closer to the base model.
  • Fast-Slow Training (FST) achieves up to 3× more sample efficiency than slow learning via reinforcement learning across reasoning tasks. The method consistently reaches a higher performance asymptote compared to parameter-only updates.
  • FST-trained models remain closer to the base large language model with up to 70% less KL divergence than reinforcement learning training. This reduced drift preserves plasticity, enabling more effective adaptation to subsequent tasks in continual learning scenarios where parameter-only RL stalls.

Introduction

Large language models are typically adapted for downstream tasks by updating their parameters via methods like reinforcement learning. However, forcing all task-specific information into persistent weights often results in catastrophic forgetting and a loss of plasticity for future learning. While in-context learning with fixed parameters offers flexibility, it typically cannot match the performance gains achieved through weight updates. To address these limitations, the authors introduce Fast-Slow Training (FST), a framework that treats model parameters as slow weights and optimized context as fast weights. This approach allows the system to co-evolve both components so that task-specific signals are absorbed into the prompt while the base model remains stable. Consequently, FST achieves higher sample efficiency and performance while significantly reducing drift from the base policy and preserving the capacity to adapt to new tasks.

Dataset

  • Dataset Composition and Sources

    • The authors adopt the star-graph search planning task introduced by Prakash and Buvanesh.
    • They procedurally generate both training and test splits rather than using static collections.
  • Subset Details and Construction

    • Each graph instance is defined by a triple (d,p,n)(d, p, n)(d,p,n) representing source degree, path length, and node-pool size.
    • A unique gold path connects the source to the goal node using intermediate nodes sampled from the pool.
    • To increase difficulty, decoy branches are attached to the source using unused nodes so they do not intersect the gold path.
    • The full edge set is shuffled uniformly at random and serialized as a flat space-separated list of comma-separated pairs.
  • Training and Evaluation Splits

    • Headline experiments use parameters set to (d,p,n)=(25,20,500)(d, p, n) = (25, 20, 500)(d,p,n)=(25,20,500).
    • The training set consists of 10,000 examples while the test set contains 200 held-out examples.
    • Inputs follow a verbatim prompt template requiring step-by-step reasoning and a final answer within boxed braces.
  • Processing and Scoring

    • The system prompt instructs the model to inspect source node neighbors before committing to a branch.
    • The reward function extracts the content from the last boxed section for exact-match comparison against the gold path string.
    • Scoring is binary with a reward of 1.0 for exact matches and 0.0 for any deviation.

Method

The authors propose a dual-loop optimization framework termed Fast-Slow Training (FST), which simultaneously optimizes the model parameters and the textual context used to condition the model. The system distinguishes between slow weights, denoted as θ\thetaθ, which represent the trainable neural network parameters, and fast weights, denoted as ϕ\phiϕ, which represent textual scaffolds or prompts drawn from a discrete text space Σ\Sigma^*Σ. The overall architecture and the interaction between these components are illustrated below:

The training process begins by constructing a concatenated prompt that combines a dynamic context ϕ\phiϕ selected from a Context Pool Φ\PhiΦ with a static Task Prompt. This combined input is fed into the Model θ\thetaθ, which generates a response yyy conditioned on both the query xxx and the context ϕ\phiϕ. During the generation phase, the model produces rollouts that may include intermediate thoughts, tool calls, and error signals, ultimately yielding a response and associated feedback.

The framework operates through two distinct learning loops. The slow learning loop focuses on updating the model parameters θ\thetaθ. This process utilizes Reinforcement Learning with Verifiable Rewards (RLVR). For each query, the policy generates a group of rollouts, and group-relative advantages are computed based on scalar rewards provided by an automatic verifier (e.g., checking for code execution success or mathematical correctness). The model parameters are then updated using a truncated importance-sampling REINFORCE objective, specifically the CISPO loss, to maximize the expected reward while maintaining stability. This loop updates the weights θcθc+1\theta_c \to \theta_{c+1}θcθc+1 and relies primarily on scalar reward signals.

Concurrently, the fast learning loop optimizes the Context Pool Φ\PhiΦ using Reflective Evolutionary Prompt Optimization, specifically the GEPA algorithm. This loop treats the textual prompts as fast weights that can be rapidly adapted. Instead of updating parameters, GEPA evolves the population of prompts Φ\PhiΦ by maintaining a Pareto frontier of complementary candidates. It uses the rollouts generated by the current policy to elicit natural-language critiques from a frozen reflection language model. These critiques guide the proposal of textual mutations that improve performance on an anchor set of tasks. This process allows the system to capture task-specific improvements and rapidly evolving behaviors without the computational cost of retraining the neural network weights.

The Fast-Slow Training method interleaves these two processes in cycles. At the start of each cycle, the system pre-fetches a lookahead batch of data and runs GEPA to update the prompt population Φ\PhiΦ based on the current policy πθ\pi_{\theta}πθ. For the subsequent steps in the cycle, the model parameters θ\thetaθ are updated via RL using the newly optimized prompt population, while the prompts remain fixed. This division of labor allows the fast weights to handle rapid adaptation and task-specific conditioning, while the slow weights consolidate persistent behavioral patterns, leading to improved data efficiency and performance.

Experiment

The experiments evaluate Fast-Slow Training against standard reinforcement learning across code, math, and fact verification tasks using a Qwen3-8B base model. Results demonstrate that FST achieves higher performance ceilings and greater data efficiency by leveraging textual fast weights to capture task signals faster than parameter updates alone. Furthermore, the method maintains closer proximity to the base model to preserve plasticity for subsequent tasks, while ablation studies confirm that jointly optimizing both fast textual channels and slow parameters is necessary to maximize performance.

The authors decompose performance gains into contributions from slow weights (parameters) and fast weights (prompts) to analyze the division of labor in Fast-Slow Training. Results indicate that while slow weights drive the majority of gains on the Math task, both channels contribute significantly to performance on HoVer-hard and CodeIO. The combination of optimized weights and optimized prompts consistently reaches the highest performance asymptote across all domains. Combining FST-trained weights with FST-evolved prompts consistently yields the highest performance across all tasks. HoVer-hard and CodeIO benefit significantly from both the slow weight and fast prompt channels, which compound when combined. On the Math task, performance improvements are primarily driven by updates to the slow weights, with the fast prompt channel offering minimal additional benefit.

The the the table details the hyperparameter configurations for the Fast-Slow Training experiments across five distinct reasoning domains. While the cycle length and reflection language model remain uniform across settings, the population size and evaluation budgets are tailored to the specific requirements of each task. This standardized yet adaptable setup enables the authors to demonstrate that their method achieves higher performance ceilings and better data efficiency than standard reinforcement learning baselines. Uniform cycle lengths and reflection models are used across all domains to maintain consistent training dynamics. Evaluation budgets and population sizes vary by domain, with math tasks utilizing higher metric call limits. The configuration supports diverse reasoning tasks, ranging from code generation to multi-hop fact verification.

The the the table details the hyperparameter configurations for five reasoning domains, indicating a standard setup across most tasks with specific deviations for the Math and Star-graph experiments. While the majority of domains utilize the Qwen3-8B model in thinking mode with uniform batch settings, the Math task employs a specialized base model with increased batch capacity. Conversely, the Star-graph task utilizes a smaller model variant without thinking capabilities, yet all configurations maintain stable GPU utilization. Three domains share an identical base model and batch configuration to ensure consistent comparison. The Math task requires a specialized SFT base model and larger batch size to handle task saturation. The Star-graph experiment uses a smaller model size and disables thinking mode, distinguishing it from the primary 8B setups.

The evaluation spans five reasoning domains with tailored hyperparameters and model configurations, primarily utilizing Qwen3-8B with specific adjustments for Math and Star-graph tasks to ensure consistent comparison. Experiments decompose performance gains to analyze the division of labor between slow weights and fast prompts, revealing that combining optimized weights and prompts consistently reaches the highest performance asymptote across all tasks. While slow weights primarily drive improvements on the Math task, both channels contribute significantly to HoVer-hard and CodeIO, demonstrating that the method achieves higher performance ceilings and better data efficiency than standard reinforcement learning baselines.


AIでAIを構築

アイデアからローンチまで — 無料のAIコーディング支援、すぐに使える環境、最高のGPU価格でAI開発を加速。

AI コーディング補助
すぐに使える GPU
最適な料金体系

HyperAI Newsletters

最新情報を購読する
北京時間 毎週月曜日の午前9時 に、その週の最新情報をメールでお届けします
メール配信サービスは MailChimp によって提供されています