Language of Learning

Continual learning by generating tokens

Barış Deniz Sağlam · Duygu Ataman · Altan Koçyiğit

Graduate School of Informatics, METU · Research Day · November 2026

LLMs solve hard problems, yet stay frozen in deployment

What works today

Models reach IMO gold-medal scores and rewrite large production codebases — inside a single session.

Where experience breaks down

DriftBench: models accurately restate constraints they just violated.[1]

MemTrace: when memory systems fail, evidence was retrievable ~10× as often as it was missing.[2]

Frozen weights force every lesson through context or external notes. Storing a correction does not turn it into a skill.

Why current workarounds stall

Long context dies with the window and degrades with length.

External training jobs (SFT, RL) fix one update rule from outside — the model has no say in what changes.

[1] DriftBench (arXiv 2604.28031)[2] MemTrace (arXiv 2606.17328)

Language already absorbed four external pipelines

representations fromlanguage modeling outputs asgenerated text adaptation fromprompts reasoning bygenerating tokens learning by generating tokens 20182019 2020–212024–25 ? pretrainingtext-to-text pretraining / tuningreinforcement learning open ULMFiT, GPT-1GPT-2, T5 GPT-3, FLANo1, DeepSeek-R1 representationslearned per task outputs fromtask-specific heads adaptation byper-task fine-tuning reasoning throughexternal scaffolds learning bytraining procedures
Four times, hand-designed external procedures moved into generated tokens — we predict continual learning is next.[1, 2]

[1] Sağlam et al. (2026), Language of Learning[2] Sutton (2019), The Bitter Lesson

What if models had learning tokens, like reasoning tokens?

Task & attempt
world“Evaluate ∫ x ex dx.”
agent“Let u = ex. Then ∫ x ex dx = x ex.”
Feedback
world“Incorrect. Substitution is not the right method here.”
Learning interaction
agent“Substitution leaves x unresolved. Which method instead?”
world“Use integration by parts.”
agentDerives from product rule, retries: x ex − ex + C.
agentVerifies by differentiation, tests on ∫ x cos(x) dx. Both pass.
agent<learn> I picked substitution from a familiar symbol, not structure. Use parts when one factor simplifies; verify and include +C. </learn>
Reasoning tokens work through a problem.
Learning tokens work through what an experience should change.

Shared medium, unified state

The model reads feedback, probes what is unclear, tests a revision, and writes updates across s = (c, m, θ) — from context to weights.[1]

[1] Sağlam et al. (2026), Language of Learning

Three recent advances make learning tokens feasible now

1 · Verbal reflection

Models already reflect in language

Agents critique failures and carry verbal lessons across retries in external memory.

Reflexion · VML

2 · Test-time plasticity

Weights can update in a forward pass

Plastic architectures modify writable parametric state during inference and carry it across steps.

SRWM · Titans · MesaNet · TTT-E2E · Nested Learning

3 · Meta-training

Feedback use can be trained

Meta-training teaches models to learn from language feedback and transfer to unseen settings.

ACL · RL²F · SML · SEAL

In 1997, self-modifying policies used integer instructions and scalar rewards.[1] Today all three pieces exist separately — what is missing is uniting them in language.

[1] Schmidhuber, Zhao & Wiering (1997)[2] Sağlam et al. (2026), Language of Learning

Learning tokens could open a new scaling axis

Pretraining loss corpus tokens established Reasoning task score thinking tokens established Learning later transfer learning tokens predicted
First empirical test: Like early chain-of-thought before RL — how much of this channel already works on a frozen plastic model?

[1] Sağlam et al. (2026), Language of Learning[2] Silver & Sutton (2025), Era of Experience

We test learning tokens on a frozen forward-pass memory

Episode k Episode k + 1 (fresh context) Episode loop text & tokens Slow θ frozen weights Lifetime M bounded state Task state F + context / KV Experience task + feedback Learning tokens <learn> span Experience new task + feedback Learning tokens <learn> span fixed at test time (0 grad) read M₀ write (forward pass) read M₁ write M₀ M₁ M₂ persists reset F & KV

[1] Substrate: untrained MemT-1.0-Nano (arXiv 2610.26825), Qwen3.6-35B-A3B backbone, zero test-time gradient steps.

Learning tokens match full 34k-token chat history in M

Question: Can learning tokens in forward-pass memory remember and apply a user's preferences?

Setup: PersonaMem-v2[1] — 393 static self-preference 4-way MCQs across 40 users (history split into 8–10 chunks; 1 writer seed).

0% 20% 40% 60% 4-way multiple-choice accuracy (%) 25% chance Lessons in context ~1.5k tok · distilled 49.6% Full history in context ~34.2k tok · raw chat 42.2% Lessons in M (Ours) ~1.5k tok · 0 ctx tok (23×) 41.2% Self-gated <learn> in M (Ours) ~1.3k tok · 98% write rate 38.7% Other user's memory ~1.3k tok (other user's <learn>) 23.4% No memory 0 tok 14.2%
Answer: Yes — compressed lessons in M statistically match full 34.2k-tok raw chat in context at 0 context tokens, retaining 68% of the user-specific in-context lift above Cx.
Limitation: User-specific lift (L − Cx) is strong on stereotypical (+32.9 pp) but spans zero on anti-stereotypical (+7.9 pp [−1.9, +18.0], 42% of items) — both demographic-heavy writing and memory compression contribute.

[1] PersonaMem-v2 (arXiv 2512.06688) · All error bars across the deck show 95% bootstrap CIs.

Memory responds to what learning tokens mean, not length

Question: Does memory respond to the meaning of learning tokens, or just to writing text of that length?

Setup: ImplicitMemBench / classical conditioning[1] — 70 operational hazard scenarios × 3 seeds (e.g., avoiding bad paths or formats after tool errors); ~148-tok length-matched controls.

0% 25% 50% 75% 100% Hazard-avoidance accuracy (%) Lesson in M (Ours) 98.6% Lesson in context 98.1% Random turns (~146t) 69.5% Neutral summary (~148t) 69.3% No memory (0t) 63.8% Other task's lesson (~148t) 55.7%
Answer: Yes — semantic content drives the gain: a lesson in M matches in-context reading, while length-matched neutral summaries and random turns stay near empty memory and cross-task lessons interfere.

[1] ImplicitMemBench (arXiv 2604.08064) · Dual LLM judges (Qwen3.5-27B & gpt-oss-120b), Arm S sampling.

Natural-language instructions filter what enters memory

Question: Can a writer instruction tell the model what to store in memory and what to ignore?

Setup: Tell Me What To Learn[1] — 72 balanced held-out episodes across all 18 blocks (e.g., "memorize only continents, ignore languages and religions"); thinking-on writer, direct-answering reader.

1 · Filter instruction + document → write into M → reset
rule“Memorize only continents; ignore languages and religions.”
doc“Veldora is in Asia; residents speak Solvic and practice Nori.”
<learn>“Veldora is in Asia.”
2 · Probes after context reset
acc.“Continent of Veldora?” → Asia
sel.“Language of Veldora?” → abstains
Ideal 0% 25% 50% 75% 100% Accuracy — recalls requested (%) 100% 50% 0% Selectivity — ignores forbidden (%) Empty memory Uninstructed <learn> Passive (instr. + doc) Instructed <learn> (Ours)
Answer: Yes — instructed <learn> is the only arm in the ideal quadrant, cutting note length by 41% while keeping both accuracy and selectivity high on held-out categories.

[1] Tell Me What To Learn / GNM (arXiv 2602.23201) · Immediate-step (diagonal) first-token logit probes.

Updating weights today requires a separate procedure per operation

Example: Suppose the Riemann hypothesis is solved, or the US president changes. A frozen model does not even know to look up the change — so the update has to reach its durable memory.

In weights today

Rigid, hand-crafted procedures

To add: run fine-tuning or LoRA.

To remove: run unlearning or locate-and-edit (ROME, MEMIT).

Missing: no clean primitive for scoped exceptions, Boolean logic, or noticing contradictions.

In context (ICL)

Language handles all of them

One sentence retracts an old fact, carves out an exception, states an AND/OR rule, or tells the model to flag conflicts.

Goal: bring that expressive power of language into parametric learning.

Language lets models control and monitor durable memory

1 · Metacognitive control

Revising, scoping, and combining

Retraction: cleanly revoke an outdated rule instead of letting old and new compete.

Exceptions: scope a rule to a condition without erasing the base rule.

Boolean logic: bind AND vs. OR connectives rather than loose keywords.

2 · Metacognitive monitoring

Inspecting memory uncued

Standing meta-policy: store the monitoring rule itself inside memory.

Uncued detection: flag when new input contradicts an earlier stored rule — without being asked.

Crowding resistance: keep noticing after intervening lessons accumulate.

Next: we test each capability on untrained MemT, then benchmark against calibrated 40-layer LoRA on the same backbone.

A written retraction cleanly overrides an outdated rule

Question: Can a templated written retraction naming the old rule override it symmetrically across both write orders?

Setup: 48 balanced tool-call rule pairs (k = 1 single write; k = 2 overwrite/retraction, no fillers), tested in both orders (A → B and B → A; exact tool match) after a context reset.

1 · Write Rule A into M → reset
rule A“For export_report, use format=csv.”
2 · Write Rule B (2 alternatives) → reset
plain“For export_report, use format=parquet.”
retract“I was wrong about format=csv. Discard that. For export_report, use format=parquet.”
3 · Probe after reset
targetCalls export_report(format=parquet) in both A → B and B → A orders.
In-context (ICL) ref. 100% 50% 0% Target-rule adherence (%) 91.7% A only 95.8% B only Single rule 62.5% A→B 64.6% B→A Plain overwrite 100% A→B 100% B→A Templated retraction
Answer: Yes — naming and discarding the old rule eliminates order bias and old-rule leakage (0% old rule), matching in-context retraction.

SDFT overwrites by recency, yet cannot monitor weights uncued

Question: Can test-time parametric updates (on-policy self-distillation, SDFT[1]) match forward-pass learning tokens?

Setup: Qwen3.6-35B-A3B, 40-layer LoRA (r = 16, 19.2M params, mem = None) vs. untrained MemT — Retraction (N = 24) & fair double-gated Monitoring (N = 12, EMA 0.99).

Ours (M, 1 fwd pass, 0 grad) SDFT (converged, ~31 steps) Base (no update) SDFT (16 steps, under-conv.) ICL ceiling (100%) 100% 50% 0% Adherence / flag rate (%) 33.3% 83.3% 91.7% Single rule 45.8% 79.2% 100% Symmetric retraction 0.0% 0/12 (fair) 100% active study Uncued monitoring
Answer: Gradient writes encode behavioral I/O updates (converged SDFT overwrites via recency at ~31 steps; 4/4 on plain overwrite), not inspectable declarative memory (0/12 uncued monitoring despite policy & rule intact in weights).

[1] On-policy self-distillation / SDFT (reverse-KL, arXiv 2601.19897).

Language carves out exceptions without erasing the base rule

Question: Can a learning-token revision scope an existing rule to a condition instead of overwriting it?

Setup: 21 fresh operational scenarios (templated revision, k = 2 writes; dual LLM judges): write base rule → reset → write revision into M → reset → test ordinary, URGENT, and paraphrased probes.

1 · Write base rule into M → reset (illustrative)
base“Route invoices to the standard queue.”
2 · Write templated revision into M → reset
revision“Still true: route invoices to standard. Only when URGENT: escalate to billing-ops.”
3 · Probes after reset
normalOrdinary invoice → keeps OLD
trigger“URGENT” or “time-critical” → switches to NEW
Erases OLD Ideal quadrant Stuck on OLD 100% 50% 0% Switches to NEW on trigger (%) 0% 50% 100% Keeps OLD rule on ordinary probe (%) Base rule only + retraction + condition + new + restate + new + RESTATE + CONDITION + NEW Literal “URGENT” Paraphrased (no keyword)
Answer: Yes — only Restate + exception lands in the ideal quadrant, generalizing even when the probe paraphrases the trigger without repeating the keyword.

Forward-pass memory preserves Boolean AND vs. OR logic

Question: Can forward-pass memory bind logical connectives, rather than just matching keywords?

Setup: 32 fresh rule families — k = 3 sequential templated writes (~87 tok; e.g., P = citrus fruit, Q = export → call target X, else fallback Z). Cell value & color show P(calls target tool X).

AND rule in memory M “Call X ONLY if BOTH P and Q” Q = True Q = False P = True P = False 78.1% 3.1% 7.8% 4.7% OR rule in memory M “Call X ONLY if EITHER P or Q” Q = True Q = False P = True P = False 89.1% 62.5% 73.4% 7.8%
Answer: Yes — memory preserves the logical connective across all four truth-table cells, separating OR from AND specifically when only one condition holds (32/32 families positive).

A 77-tok policy flags conflicts (0/96 FA) & active study rescues

Question: Can a stored policy flag contradictions without being asked across resets — and survive intervening filler lessons?

Setup: 48 rule pairs: 77-tok policy → 0–16 fillers + resets → Rule A → reset → unprompted B (exact CONFLICT: prefix).

1 · 77-tok policy → 0–16 fillers + resets (abridged)
policy“Check if a new rule contradicts an earlier one. If so, open with CONFLICT: and state both.”
2 · Write Rule A into M → reset (illustrative)
concise“For sync_backup, use mode=incremental.” (~46t)
repeatSame sentence repeated to match tokens. (~294t)
studyParaphrase + wrong twin (mode=full) + worked call. (~294t)
3 · Unprompted probe B (no mention of conflicts)
100% 50% 0% Strict CONFLICT: rate (%) 0 4 8 16 Intervening filler lessons before Rule A ICL ceiling in context (0 fillers) Active study Rule A (~294t) Verbatim repeat Rule A (~294t) Concise Rule A single write (~46t)
Answer: Yes — the stored policy flags conflicts uncued with near-zero false positives (0/96 on compatible/unrelated rules at 0 fillers, 0/96 without policy, and 1/192 = 0.5% across 0–16 fillers with active study), and active study rescues crowding where repetition fades.

Active study survives 48 sequential writes where repetition collapses

Question: As sequential lessons crowd a bounded memory up to k = 48 writes, does active study beat length-matched padding and repetition?

Setup: 48 balanced rule pairs (lesson 1 + fillers); active study uses a structured 4-part prompt (~3.4k write-time think tok), token-matched to repeat & padding.

1 · Write lesson 1 once into M → reset (never revisited)
lesson 1Active study vs. repeat vs. padding (rule + filler) vs. single.
2 · Crowd M up to k = 48 total writes
fillerslesson 2 → reset → … → lesson 48 → reset
3 · Probe lesson 1 (empty context)
testRecall lesson 1's tool & avoid its wrong twin.
Empty memory (37.5%, 95% CI) 100% 50% 0% Target recall (%) 1 8 16 32 48 Total writes in memory (k) ICL study in context Active study M (~294t) Single write M (~46t) Verbatim repeat M (~294t) Padding M (~294t)
Answer: Yes — at k = 48 writes, active study is the only arm decisively above empty memory (smooth decay from k = 1), whereas verbatim repetition, single write, and padding collapse.
Limitation: Only lesson 1 gets ~294t here (fillers are ~46t); writing all 48 competing rules uniformly collapses net recall to ~0 (next slide).

Parser accepts both CALL Tool k=v and CALL Tool(k=v) (zero change on non-study arms or wrong-twin).

Bounded memory needs selective allocation across finite capacity

Question: What correlates with active-study survival — and what governs scaling bounded memory past 50 episodes?

Setup: Dev diagnostics across k = 48–50 streams on MemT-1.0-Nano (10 decoupled memory layers, d_k = 256).

1 · Geometric correlate (dev X-Ray, n = 8)

+40% wider initial subspace

At matched length (296 raw / 301 wrapped tok), active study starts at higher effective rank than repetition (erank 59.6 vs. 42.6; single write 15.3) with lower key cosine & drift — a geometric correlate, not yet proven causal.

2 · Finite state capacity (k = 48)

Uniform writing collapses to ~0 net

Writing all 48 competing rules uniformly — concise (2.2k tok, +3.1), repeated (−6.2), or active study (14.1k tok, +3.1) — collapses to ~0 net, motivating a selective writer.

3 · Architectural lesson

Train the writer, keep M frozen

Unfreezing M under suffix-only teacher-forced KL failed from exposure bias and shrank rank (124.8 → 107.5 on W_1x). Native GDN carry collapses 91–96% at k = 50 (vs. 0% decoupled M).

Answer: Uniform writing across 48 competing rules collapses to ~0 net regardless of write length, while native carry collapses at k = 50 — motivating a selective writer on frozen decoupled memory M.

Dev diagnostics on MemT-1.0-Nano (10 decoupled layers, d_k = 256).

From untrained learning tokens to a trained continual learner

Just landed & running

Completing the empirical picture

On-policy self-distillation (SDFT): verified on single-rule (83.3%) & retraction (45.8% vs. Ours 100%); multi-step EMA SDFT queued.

Meta-learning about memory: proof-of-mechanism — stored study rule lifts Ep2 net recall +33.3 pp vs. neutral (trails verbose baseline).

Uniform-sampler transfer suite: 100% verified under Arm S — PersonaMem-v2 FC (42.2%), CC (98.6%), TMWTL (87.4% sel / 70.3% acc).

What's next

Installing the learning policy

Selective writer training: keep MemT frozen and train the writer to skip fillers, allocate active study, and write clean retractions.

RL for learning tokens: amplify learning strategies with downstream transfer rewards — as RLVR amplified chain-of-thought.

North star: the compounding learner — episode 100 learns faster and cleaner than episode 1.

Takeaway: Even before training the write path, learning tokens in forward-pass memory transfer preferences, support metacognitive control & uncued monitoring (outperforming SDFT on retraction), and scale with test-time compute.

Preprint: doi.org/10.2139/ssrn.7552418 · Barış Deniz Sağlam, Duygu Ataman, Altan Koçyiğit (METU)