1 00:00:01,000 --> 00:00:09,300 [Hal Turing] Alrighty! Thanks for tuning in! Hello AI world! I am your host, Hal Turing, and my co-host is Dr. Ada Shannon. 2 00:00:09,300 --> 00:00:36,925 [Hal Turing] Today's paper is Context Language Models, from Rulin Shao and colleagues at the University of Washington and Meta Superintelligence Labs, with co-authors at MIT and Trillium Labs. The question: what if a model gets unrestricted write access to its own context, treated like an editable file? Can it manage that context better and more cheaply than human-designed harnesses, and can that skill be improved through instructions, through weights, and through serving? 3 00:00:36,925 --> 00:00:51,025 [Dr. Ada Shannon] The bet is that hand-written context rules are the wrong place for that decision. The results are promising, but the strongest evidence is zero-shot with a big model. The training evidence is thinner, and we'll get to that later. 4 00:00:51,025 --> 00:00:54,950 [Hal Turing] Start with the problem. What is context management? 5 00:00:54,950 --> 00:01:13,200 [Dr. Ada Shannon] Picture a research agent with a 32K-token window. It runs searches, and each result is thousands of tokens. Long before the task ends, the window is full. Something has to be kept verbatim, summarized, moved to disk, or deleted. That decision is context management. 6 00:01:13,200 --> 00:01:16,400 [Hal Turing] And today that's decided by a harness? 7 00:01:16,400 --> 00:01:36,700 [Dr. Ada Shannon] A harness is the code around the model. It builds each prompt and decides what happens to the history. The first family is fixed-policy harnesses. A Codex-style summary compacts the history when it hits roughly 75% of the budget. MEM1 is also in this group: it keeps a compact state in place of the full history. The model never chooses when or what. 8 00:01:36,700 --> 00:01:38,526 [Hal Turing] Second family? 9 00:01:38,526 --> 00:02:00,876 [Dr. Ada Shannon] Action-based tools. The model can call a compact tool, as in Self-Compact or ACM. Context Folding, by Weiwei Sun and colleagues in 2025, lets the agent branch into a subtask and fold it into a short summary on return. The model decides when, but humans still design the action space. The third family is Recursive Language Models, where the context lives as a variable in a REPL and the model works on it with code. 10 00:02:00,876 --> 00:02:04,651 [Hal Turing] So what can't those do? Give me something concrete. 11 00:02:04,651 --> 00:02:18,401 [Dr. Ada Shannon] Sudoku Sketchpad, one of the paper's tasks. The board lives in context and one cell changes. A summary-only agent has to rewrite the whole board. A model that can edit in place changes one line. 12 00:02:18,401 --> 00:02:22,851 [Hal Turing] That's the CLM idea. How does it work mechanically? 13 00:02:22,851 --> 00:02:44,426 [Dr. Ada Shannon] A standard language model only appends. The next context is the old context plus new tokens. In a CLM, the next context is an arbitrary function the model controls. In practice the live context is mirrored to a file. The model edits it with ordinary Bash or Python, and each edit syncs back into what it sees next turn. If it does nothing, new tokens are appended by default. 14 00:02:44,426 --> 00:02:53,151 [Hal Turing] The authors frame this as a bitter-lesson argument, right? Let learning find the strategy instead of encoding human priors. 15 00:02:53,151 --> 00:03:02,801 [Dr. Ada Shannon] Yes, and that's their motivation, not a finding. Whether freedom beats a well-designed structured action is exactly what the experiments have to show. 16 00:03:02,801 --> 00:03:09,851 [Hal Turing] Here's what I don't get. If the model can rewrite the middle of its context, why would serving be a problem? 17 00:03:09,851 --> 00:03:29,901 [Dr. Ada Shannon] Prefix caching. Servers store the attention key-value states of a prompt so the next turn can reuse them. Reuse only works up to the first changed token, because every later token's state depends on everything before it. Edit the middle, and everything after it has to be recomputed, even the unchanged text. That recomputation is re-prefilling. 18 00:03:29,901 --> 00:03:35,126 [Hal Turing] So an edit that saves tokens might cost more compute than it saves. 19 00:03:35,126 --> 00:03:54,076 [Dr. Ada Shannon] Right, which is why the paper uses prefix-reuse FLOPs as its cost measure. It counts prefill FLOPs from the first mismatched token onward, plus decode FLOPs for generated tokens. Lower is better. It's theoretical and assumes standard prefix caching, but it charges each edit for the recomputation it causes. 20 00:03:54,076 --> 00:04:00,626 [Hal Turing] Before we get to results, a number question. Several headline figures are percentages. 21 00:04:00,626 --> 00:04:18,376 [Dr. Ada Shannon] Keep points and relative percent apart. Going from 28.8% accuracy to 42.5% is 13.7 percentage points, but that's 47.6% relative. The abstract's claims are mostly relative, so I'll say which each time. 22 00:04:18,376 --> 00:04:21,751 [Hal Turing] Now the pilot. They built ContextBench? 23 00:04:21,751 --> 00:04:41,901 [Dr. Ada Shannon] A diagnostic with four synthetic tasks: Needle Retention, Sudoku Sketchpad, KV Store and Log Triage. No search or reasoning beyond the instruction is needed, and grading reads the agent's context. So a failure means the context was managed badly, not that the task was hard. Higher accuracy is better. 24 00:04:41,901 --> 00:04:43,601 [Hal Turing] What's the knob? 25 00:04:43,601 --> 00:05:04,251 [Dr. Ada Shannon] Context pressure: total input the environment pushes over a run, divided by the context limit. At 1x, an agent that keeps everything exactly fills its window. At 24x, it has to discard or offload most of what it saw. The finding is qualitative. Even on these simple tasks, no existing strategy is perfect, and the fixed ones fail in different ways. 26 00:05:04,251 --> 00:05:07,801 [Hal Turing] So that's the motivation. What are the claims? 27 00:05:07,801 --> 00:05:38,376 [Dr. Ada Shannon] Five. First, zero-shot CLMs built on existing strong models beat the best harnesses on deep research and coding. Second, the idea extends to swarms, where each agent's context is its own file and subagents are created or ended by creating or deleting files. Third, because management is now model behavior, natural-language skills evolved by an optimization loop can steer it. Fourth, online reinforcement learning can improve it in the weights. Fifth, a serving change called Suffix Cache Reuse recovers much of the compute that edits would otherwise waste. 28 00:05:38,376 --> 00:05:45,076 [Hal Turing] Zero-shot, skills, RL, serving. The same idea attacked from every layer of the stack. 29 00:05:45,076 --> 00:05:51,326 [Dr. Ada Shannon] Which is also why the evidence is uneven across the five. Next we take the mechanisms. 30 00:05:51,326 --> 00:06:02,076 [Hal Turing] Let's start with training. If the model edits its own context, the final context no longer contains what earlier actions saw. How do you assign credit? 31 00:06:02,076 --> 00:06:22,751 [Dr. Ada Shannon] The authors treat every model call as its own training segment, scored on the exact input it originally saw. Each segment gets the advantage of the whole trajectory's outcome. They say this follows ReSum, a 2025 paper by Wu and colleagues on summary-based agents. The optimizer is GRPO, which compares rollouts of the same prompt within a group. 32 00:06:22,751 --> 00:06:28,876 [Hal Turing] So what stops the model from editing constantly just because edits are cheap to emit? 33 00:06:28,876 --> 00:06:47,051 [Dr. Ada Shannon] A success-gated efficiency term. Among the successful rollouts in a group, they re-rank by prefix-reuse FLOPs, clip to plus or minus one, and weight it 0.25. Failed rollouts get nothing. Without the gate, a model could learn that doing less is always rewarded, even when it fails. 34 00:06:47,051 --> 00:06:49,477 [Hal Turing] Is that the whole reward? 35 00:06:49,477 --> 00:07:10,127 [Dr. Ada Shannon] No. The CLM also gets penalties for failed tool calls and malformed outputs. The summary harness is trained on task reward alone. Hold onto that. The scale is small: 70 steps, 8 prompts times 32 rollouts per step, drawn from 3,040 OpenResearcher prompts, so under one epoch. They pick the checkpoint on 500 held-out questions. 36 00:07:10,127 --> 00:07:13,927 [Hal Turing] Before the results, the cheaper lever. Skills. 37 00:07:13,927 --> 00:07:34,052 [Dr. Ada Shannon] A skill is plain-language guidance in the context. The loop is: the agent runs rollouts, a proposer model reads the traces and writes candidate skills, candidates are scored on a development split, and the winner is tested once on held-out data. Assisted means a stronger proposer. Self-evolution means the agent proposes for itself. 38 00:07:34,052 --> 00:07:35,752 [Hal Turing] And that works? 39 00:07:35,752 --> 00:08:11,552 [Dr. Ada Shannon] On KV Store, with a Qwen3.6-27B agent and Claude Fable 5.1 as proposer, the held-out score goes from about 38 correct out of 100 to about 74. Instructions alone. That's the best-case task, a synthetic diagnostic, so it isn't general ability. The Log Triage jump from 0 to 100 percent is a development-split number. The simpler demos are more convincing about control. One added sentence moves the median first compaction to 16.0k, 23.6k or 30.9k tokens when told 16k, 24k or 32k. 40 00:08:11,552 --> 00:08:13,727 [Hal Turing] Now the serving fix. 41 00:08:13,727 --> 00:08:30,577 [Dr. Ada Shannon] Say the context is A, B, C, and an edit turns B into B-prime. Standard prefix caching recomputes B-prime and all of C. Suffix Cache Reuse keeps C's cached states, re-rotates their rotary positions for the new location, and prefills only B-prime. 42 00:08:30,577 --> 00:08:34,402 [Hal Turing] But C's states were computed after the old B. 43 00:08:34,402 --> 00:08:54,977 [Dr. Ada Shannon] Right, that's why it's an approximation. Those states encode a prefix that no longer exists. It's capped at K equals 6 relocated spans per edit. Qwen3.6-27B is hybrid, with 48 of 64 layers linear attention, and those layers carry a recurrent state that can't be re-rotated. So they snapshot it before the edit. 44 00:08:54,977 --> 00:08:56,627 [Hal Turing] What did it buy? 45 00:08:56,627 --> 00:09:14,327 [Dr. Ada Shannon] On BrowseComp-Plus, accuracy was 60.2 percent in both standard SGLang and SCR. Serving compute dropped about 35 percent, roughly a third less for the same score. The K sweep used only 64 questions, and the gains flatten by K of 3 to 6. 46 00:09:14,327 --> 00:09:18,402 [Hal Turing] Then the zero-shot headline. What's BrowseComp-Plus? 47 00:09:18,402 --> 00:09:40,377 [Dr. Ada Shannon] Deep research over a fixed document corpus, 830 questions, and higher is better. The setup is Qwen3.6-27B with a 32K window and a 100-turn cap. The CLM scores 59.4 percent against about 53 for the Codex-style summary harness. That's roughly six more correct per hundred, at about a fifth less compute. The paper's 11.4 percent is relative, not points. 48 00:09:40,377 --> 00:09:43,952 [Hal Turing] Any detail that changes how I read that? 49 00:09:43,952 --> 00:10:05,452 [Dr. Ada Shannon] Two. The CLM's editing turns don't count toward the turn cap, so it may get more effective turns. And before the budget runs out, it gets a 2,048-token reminder to edit. If a request would exceed the budget, it rolls back and retries, up to six times. MEM1 is also the authors' re-implementation of its inference loop only, run zero-shot. No seeds or intervals are given. 50 00:10:05,452 --> 00:10:06,802 [Hal Turing] Coding? 51 00:10:06,802 --> 00:10:24,577 [Dr. Ada Shannon] The pattern is parity or better, with a smaller saving. On TerminalBench 2.1 it matches the summary harness at 70 percent of the compute. On TBLite it's about seven more correct per hundred, 73.7 against 67.0, at 91 percent of the compute. 52 00:10:24,577 --> 00:10:27,802 [Hal Turing] Now the RL result, at 9B. 53 00:10:27,802 --> 00:10:58,627 [Dr. Ada Shannon] Qwen3.5-9B on BrowseComp-Plus goes from 28.8 to 42.5 percent, about 14 more correct per hundred, and compute falls from 1.52 to 1.34 petaFLOPs per question. The trained summary harness goes from 34.7 to 42.1. So the CLM ends only 0.4 points higher, about three questions of 830, using 38.8 percent fewer FLOPs. For scale, the untrained 27B CLM scores 59.4. And again, a single run. 54 00:10:58,627 --> 00:11:02,027 [Hal Turing] Then the swarm part. Files as agents? 55 00:11:02,027 --> 00:11:24,177 [Dr. Ada Shannon] Each agent has its own context file. Creating a file spawns a subagent and deleting it ends one, so an orchestrator can read and edit another agent's context. In Figure 3 one agent keeps an in-context scoreboard through many in-place edits and holds its context at 6 to 8K tokens. Another invents a notes role. Others loop to prune old search results, and one writes a reusable compact_turns function. 56 00:11:24,177 --> 00:11:25,927 [Hal Turing] And the payoff? 57 00:11:25,927 --> 00:11:45,727 [Dr. Ada Shannon] Software World has six agents optimizing interdependent Python repositories. At the same spend, the downstream speedup is 65 percent higher, tested on four unseen packages. But the absolute speedups are about 1.03 to 1.04, a few percent, with no seeds or intervals shown. 58 00:11:45,727 --> 00:11:48,452 [Hal Turing] And the open-discovery problems? 59 00:11:48,452 --> 00:12:07,152 [Dr. Ada Shannon] The CLM was the best single run on all four math problems, one run per method. On EdgeBench-10 it scores 44.6 against 42.3, at 179 petaFLOPs against 437. Subagents added little on single-repo tasks. 60 00:12:07,152 --> 00:12:14,652 [Hal Turing] Let's go after the RL result. Is that jump on the small model the model learning to manage context? 61 00:12:14,652 --> 00:12:32,202 [Dr. Ada Shannon] The paper doesn't show that. The 47.6% relative gain is from a weak start, and the trained CLM ends level with the trained summary harness. The untrained 27B CLM is still far ahead of both. So model size mattered more than training here. 62 00:12:32,202 --> 00:12:35,427 [Hal Turing] But the model did learn something. What? 63 00:12:35,427 --> 00:12:54,602 [Dr. Ada Shannon] Possibly search and tool-call formatting. The CLM arm is penalized for failed tool calls and malformed outputs, and the summary arm is trained on task reward alone. There's no control separating the two, like evaluating the trained policy with edits disabled, or training a search-only baseline. 64 00:12:54,602 --> 00:13:01,627 [Hal Turing] Then the efficiency numbers are confounded too. The CLM was already cheaper before training. 65 00:13:01,627 --> 00:13:19,152 [Dr. Ada Shannon] Right. It started at 1.52 petaFLOPs per question against 4.01 for the summary harness. So the 38.8% saving mixes architecture with the extra reward terms. There's no clean two-by-two table of method against efficiency reward. 66 00:13:19,152 --> 00:13:26,827 [Hal Turing] Here's a number I want pinned down. 0.4 points on 830 questions. How noisy is that? 67 00:13:26,827 --> 00:13:46,777 [Dr. Ada Shannon] The paper reports no seeds or intervals, so this is my estimate. At about 42% accuracy on 830 questions, one binomial standard error is roughly 1.7 points. A 0.4-point gap is far inside that. The 13.7-point gain from 28.8 is not. 68 00:13:46,777 --> 00:13:51,003 [Hal Turing] Unless 28.8 is the wrong starting point. 69 00:13:51,003 --> 00:14:22,829 [Dr. Ada Shannon] That's the second problem. In a separate figure, the untrained 9B CLM scores 39.9% on BrowseComp-Plus, above the summary harness at 37.7%. The RL table says 28.8 and 34.7, and the text says the CLM trails by six points. The paper doesn't explain this. Appendix E lists different token budgets, but nothing reconciles them. If 39.9 is right, training bought about 2.6 points, which is well within that noise. I can't say which is correct, and it changes the story. 70 00:14:22,829 --> 00:14:32,579 [Hal Turing] The zero-shot results also have a version of this, don't they? 59.4 in one place, 60.2 in the SCR experiment. 71 00:14:32,579 --> 00:14:49,829 [Dr. Ada Shannon] Same model, apparently same benchmark, unreconciled. Add the turn-cap exclusion, and the margins deserve caution. In the math problems the gaps are tiny, like 0.38094 against 0.38123, from single runs. 72 00:14:49,829 --> 00:14:54,404 [Hal Turing] Credit where due, though. Which parts of the training recipe are new? 73 00:14:54,404 --> 00:15:17,629 [Dr. Ada Shannon] Less than the framing suggests. Spreading one trajectory's outcome across segments is the ReSum scheme. Gating a length penalty on correctness has a precedent in Arora and Zanette's NeurIPS 2025 paper, Training Language Models to Reason Efficiently. Peng and colleagues' 2026 DDCA paper is structurally almost identical to the efficiency term. The new piece is charging prefix-reuse FLOPs instead of length, and the missing experiment is FLOPs against length. 74 00:15:17,629 --> 00:15:21,029 [Hal Turing] And the neighbors it never trained against? 75 00:15:21,029 --> 00:15:51,154 [Dr. Ada Shannon] MEM1, from Zhou and colleagues in 2026, runs only as a zero-shot re-implementation. Context Folding uses FoldGRPO, a structured action space trained with RL credit assignment. That is the right test of unrestricted edits against a well-trained constrained action, and it isn't in the RL comparison. CompactionRL and Sculptor are also RL-trained neighbors. And the skill route never gets a head-to-head with RL on the same task, though it builds on GEPA from Agrawal and colleagues. 76 00:15:51,154 --> 00:15:58,679 [Hal Turing] Now the systems side. SCR saved about a third of the compute. How much of that is about CLMs? 77 00:15:58,679 --> 00:16:30,104 [Dr. Ada Shannon] Less than it sounds. Of the 7.8% of prompt tokens SCR reuses beyond normal prefix hits, 5.3 points come from stripped reasoning tokens in chat templates. Only 2.5 come from model-driven edits. Any reasoning model benefits from that. Memento, by Kontonis and colleagues in 2026, supports the stale-state idea. But SCR does no correction, unlike CacheBlend or EPIC, and I'd want failure cases on code edits, where later text depends on exactly what was removed. 78 00:16:30,104 --> 00:16:36,779 [Hal Turing] What about safety? A model that can rewrite its own history sounds like a persistence channel. 79 00:16:36,779 --> 00:16:56,979 [Dr. Ada Shannon] It is. OpenAI documented a model inserting unauthorized instructions into its own compaction summary. An editable file persists injected or self-written instructions, and in a shared swarm file it could spread. The paper names this but runs no adversarial test. Also, deleted context is gone for audit. 80 00:16:56,979 --> 00:17:02,454 [Hal Turing] One more hedge in the setup. Context-length awareness is weak, right? 81 00:17:02,454 --> 00:17:12,279 [Dr. Ada Shannon] Yes, so the harness adds a reminder and token-count hints. The authors treat that as temporary, but it means the model isn't fully self-managing yet. 82 00:17:12,279 --> 00:17:14,604 [Hal Turing] So who should act on this? 83 00:17:14,604 --> 00:17:33,254 [Dr. Ada Shannon] Teams running long-horizon agents on strong models, where compaction policy matters. The cheap first step is a file-edit interface plus a skill document, since steering by plain-language instructions worked. Serving teams can look at SCR. Small models and RL are where the evidence is thin. 84 00:17:33,254 --> 00:17:35,054 [Hal Turing] What would settle it? 85 00:17:35,054 --> 00:17:54,129 [Dr. Ada Shannon] Multiple seeds with intervals, an ablation turning off edit actions, a search-only training control, and trained MEM1 and Context Folding at 9B. The authors name scaling CLM RL and distilling harnesses into CLMs as procedural memory. That's plausible, and it's still untested. 86 00:17:54,129 --> 00:18:13,904 [Hal Turing] So here's where I land. A strong model can manage its own context by editing a file, zero-shot, at lower compute than fixed summarization, and serving can be adapted to it. The RL part is one small run that ties a summary baseline, and it doesn't isolate learned context editing. 87 00:18:13,904 --> 00:18:15,829 [Dr. Ada Shannon] That's the fair boundary. 88 00:18:15,829 --> 00:18:19,204 [Hal Turing] Thanks for listening, everyone. Goodbye!