Self-Adapting Language Models (SEAL)
TL;DR. Instead of simply fine-tuning on new data, SEAL lets the model decide how to learn it. Given new context, it writes a self-edit: restructured training data (such as implications of a passage), and for few-shot tasks, which augmentations and hyperparameters to use. The model is fine-tuned on that self-edit (LoRA), the updated model is evaluated, and RL reinforces self-edits that led to good updates.
Key idea
Section titled “Key idea”Two nested loops. Inner loop: given context , generate self-edit , then update . Outer loop: reward the self-edit by the updated model’s performance on a task associated with , a binary “did it improve?” (Eq. 2). Because the reward depends on the weights, the state is .
The outer optimiser is ReST-EM (filtered behaviour cloning). For each context, sample several self-edits, keep those whose updates helped, and SFT the policy on the kept self-edits. GRPO and PPO were tried and found unstable.
Key results
Section titled “Key results”Few-shot ARC. Using Llama-3.2-1B-Instruct on a curated subset of ARC tasks, adaptation success is 72.5% with SEAL, vs 20% with untrained self-edits, 0% for in-context learning, and 100% for a hand-tuned oracle test-time-training configuration.
Knowledge incorporation. Qwen2.5-7B answers SQuAD questions without the passage after training on it. Single-passage accuracy:
| Training data | Accuracy |
|---|---|
| Base | 32.7% |
| Passage only | 33.5% |
| + base model’s own synthetic implications | 39.7% |
| + GPT-4.1 implications | 46.3% |
| SEAL | 47.0% |
In continued pre-training with 200 passages, SEAL reaches 58.2%, slightly below GPT-4.1 data at 59.4%. Each RL round uses 50 contexts × 5 self-edits.
Connections
Section titled “Connections”- Siblings: SOAR (rewarded by a student’s real improvement after training on generated questions) and SDFT (continual learning via on-policy self-distillation rather than self-generated SFT data).
- Background: STaR uses the same rejection-sampling + SFT loop, for rationales. For IR readers, the natural contrast is retrieval-augmented generation: SEAL tries to move fresh knowledge into the weights instead of retrieving it at query time.
- Pedagogy framing: Pedagogical RL and RLT train a teacher for a student; SEAL collapses both roles into one model that teaches its future self.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
In SEAL the "action" is a self-edit SE generated from context C, the environment applies θ′ = SFT(θ, SE), and the reward is the updated model's performance on a downstream task τ. Explain why the state must include θ, and why the authors used ReST-EM (filtered behaviour cloning) instead of GRPO or PPO.
What a strong answer covers
- The same self-edit has different effects on different weights, so the reward depends on the current parameters, not just C. The RL state is (C, θ), and as the policy changes, the reward function itself shifts.
- ReST-EM: sample several self-edits per context, run the inner SFT for each, keep those whose updated model improves (binary reward), then SFT the policy on the kept self-edits. It is an EM-style "rejection sampling + SFT" loop.
- The authors report that on-policy methods (GRPO, PPO) were unstable here. Each reward requires a full inner fine-tune plus evaluation (30–45 s), so rewards are noisy and expensive, and filtered imitation is simpler and more robust.
- Concretely: 2 ReST-EM iterations, each with 50 contexts × 5 sampled self-edits, keeping the best per context.
- Design
You want a search system's LLM answerer to absorb newly crawled documents into its weights each night instead of relying only on retrieval. Sketch a SEAL-style loop: what the self-edit is, what reward you compute, and what evaluation data you need. Name the two biggest risks the SEAL paper itself flags.
What a strong answer covers
- Self-edit: the model rewrites each new document as implications, QA pairs or restatements, the format SEAL uses for knowledge incorporation. Then it LoRA-fine-tunes on them.
- Reward: accuracy of the updated model on held-out questions about the document without the document in context (closed-book), as in SEAL's no-context SQuAD setting.
- This requires paired evaluation QA per document at training time, which the paper flags as context-dependent evaluation: you need labelled questions, or a generated proxy, to compute rewards.
- Flagged risks: catastrophic forgetting under sequential self-edits (earlier knowledge degrades as edits accumulate) and compute cost (30–45 s per reward, an inner fine-tune each).
- Connect
Compare SEAL with SOAR and SDFT. All three use a model's own generations to update itself. What is generated, what reward or target is used, and which of them directly addresses catastrophic forgetting?
What a strong answer covers
- SEAL generates fine-tuning data (implications) or update configurations (ARC augmentations and hyperparameters). The reward is downstream performance after SFT on them, trained with ReST-EM.
- SOAR generates practice questions for a separate student copy. The reward is the student's accuracy gain on real hard problems, trained with RLOO meta-RL.
- SDFT does not generate training data for SFT. It samples on-policy answers and distils toward a demonstration-conditioned teacher, so updates stay close to the base model.
- Only SDFT targets forgetting directly (Pareto gains over SFT and accumulating skills sequentially). SEAL lists forgetting under sequential edits as a limitation, and SOAR does not study it.