The sleep framework: A new way for LLMs to retain knowledge in continual learning
A sleep phase for continual learning alternates LLM operation between an active (wake) phase that stores information in fast short-term memory and an offline sleep phase that consolidates it into long-term parameters. Consolidation unlocks low-rank Mixture-of-Experts memory blocks, distills in-context memory into them via on-policy Generalized Knowledge Distillation plus RL-based imitation learning rewarded by semantic and Levenshtein similarity, then resets the short-term parameters. A 'dreaming' stage generates synthetic samples with randomly routed experts, filters them by gradient-based selection, and refines the model with SFT and RL. Reported results include near-zero forgetting on continual translation for unseen languages like Manchu and Kalamang, near-perfect BABILong scaling to 10M tokens, better factual incorporation than SFT and SEAL on SQuAD, and 79.2%/69.0%/46.1% on AIME 24/25 and HMMT 25.
Related posts
- Making Knowledge Distillation Cheap Enough to Run at Scale
Hugging Face hardMasterTwo systems changes make LLM knowledge distillation far cheaper: caching the teacher's top-100 logits offline so the teacher never shares memory with the student, and a fused chunked KL loss that folds the output projection into the loss and recomputes chunks in the backward pass, so the full vocabulary × sequence logits grid is never materialized. On a single H200 at 8K context, offline top-100 distillation matches online training loss while cutting peak memory from 102.8 GB to 58.3 GB. In an isolated loss benchmark at 32K tokens, peak memory drops 15.6× (85.2 to 5.45 GiB), and distilling GPT-OSS 20B at 32K context shrank from four nodes to one with about 5× faster steps. The tradeoff is a repeated output projection that costs some speed at short contexts; the implementation is open-sourced.
- Mitigating memorization in LLMs
Jane Street Tech Blog hardMasterLLMs evaluated on historical prediction benchmarks can score well by recalling memorized outcomes from pretraining rather than reasoning, so an intern project measured and tried to mitigate this using a cricket match-preview dataset, comparing accuracy before and after the model's knowledge cutoff. Divergence decoding, which steers a large model's logits using two small auxiliary models trained on different date cutoffs, reduced pre-cutoff performance without hurting post-cutoff accuracy, while distilling that behavior back into weights failed, likely due to a poor data mix. Rewriting previews as podcast transcripts improved post-cutoff results more than pre-cutoff, and Natural Language Autoencoders revealed structure such as task vectors from fine-tuning and decisions forming in middle layers, though they gave no usable memorization signal.
- Together AI expands fine-tuning service with more models, live metrics, and finer controls
Together AI mediumAdeptTogether Fine-Tuning adds support for new open-weight models (GLM-5.3, Kimi K2.7, Qwen 3.5/3.6/3.8, Gemma 4, DeepSeek-V4-Flash), live per-step metrics via API, CLI and dashboard, and new training controls. These include LoRA on MoE expert layers, early stopping with refunds, and gradient accumulation for arbitrary batch sizes. In an invented-facts test, expert-layer LoRA recalled up to 89% of new knowledge versus 15% for attention-only adapters, and it kept routed experts from falling out of use. Data tooling adds tokenized dataset previews, per-example sample weights, pre-flight JSONL validation and packing controls, alongside price cuts of 30–70%.
- Consistency diffusion language models: Up to 14x faster inference without sacrificing quality
Together AI hardMasterConsistency diffusion language models (CDLM) speed up diffusion LLM inference by post-training a block-wise causal student that can finalize multiple tokens per step and use exact block-wise KV caching. Training distills from teacher decoding trajectories using three losses: distillation on newly unmasked tokens, a consistency loss on still-masked tokens, and an auxiliary masked-denoising loss. On Dream-7B-Instruct, refinement steps drop by about 4.1x–7.7x with minor accuracy changes, and latency improves by up to 11.2x on GSM8K-CoT and 14.5x on MBPP. Naively truncating steps without this training sharply degrades accuracy. A roofline analysis shows block-wise DLMs sit between memory-bound AR decoding and compute-bound full-attention DLMs, which makes them efficient at small batch sizes.
- Granite 4.1 LLMs: How They’re Built
Hugging Face hardMasterGranite 4.1 is IBM's family of dense decoder-only LLMs (3B, 8B, 30B) trained on ~15T tokens through five pre-training phases that shift from web-heavy data to math/code, high-quality annealing with chain-of-thought and instruction data, and staged long-context extension to 512K with model merging after each stage. SFT uses ~4.1M samples curated by an LLM-as-Judge rubric with hard-reject rules plus deterministic filtering and deduplication. A four-stage RL pipeline follows, using on-policy GRPO with DAPO loss and dynamic sampling turned off: multi-domain RL, RLHF, identity/calibration, then math RL to recover math scores lost during RLHF. Per-stage learning rates and KL coefficients are given, and the 8B instruct model matches or beats the earlier 32B-A9B MoE Granite 4.0-H-Small.