arXiv(opens in a new tab)cs.CLOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.31401

HERD: Harness-Evolving Recursive Distillation for Continual Learning

Xun Sun, Thanh Thi Nguyen, Thuy-Trang Vu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Continual learning requires a model to keep acquiring new skills and knowledge without compromising its existing capabilities. Parametric methods suffer from catastrophic forgetting and loss of plasticity. Non-parametric methods, such as prompts, skills, and harnesses, leverage in-context learning but are limited by context length and lossy plain-text compression. To effectively combine their complementary strengths, we propose HERD (Harness-Evolving Recursive Distillation), a hybrid continual learning framework that learns efficiently in the harness and internalizes experience into cumulative capabilities via distillation. On the harness side, HERD continually refines its skills to capture reusable patterns, while retaining high-residual examples that the skills fail to capture in a bounded memory. On the parameter side, HERD performs drift-constrained distillation with dual anchors, substantially reducing forgetting over long recursive runs. On the 25-stage task stream of TRACE+17, under fixed memory and compute budgets, HERD matches the strongest parametric baseline in new-task acquisition while exhibiting the least forgetting and the strongest retention of general capabilities.

1 Introduction

Large language models (LLMs) are highly capable, yet cannot independently carry out much of the work people need done (Mazeika et al., 2025). One pressing problem in closing this gap is continual learning: humans keep learning from experience while retaining what they know, whereas models no longer change once deployed. Continual learning (CL) seeks to enable this ability by learning from a stream of tasks without forgetting existing capabilities or retraining from scratch on earlier data (Wu et al., 2024).

Parametric methods, however, inevitably encounter catastrophic forgetting (McCloskey and Cohen, 1989; Kirkpatrick et al., 2017; Huang et al., 2024) and loss of plasticity (Dohare et al., 2024; Yang et al., 2026). They also give little control over what is internalized: raw experience carries noise, duplicates, and conflicts alongside the few samples that matter.

In-context learning (ICL) offers a non-parametric path to continual learning (Brown et al., 2020; Gutiérrez et al., 2025). New knowledge is stored in external memory and retrieved into context, so a frozen LLM learns across tasks (Shi et al., 2025). This appears to sidestep the flaws above: a frozen model forgets nothing, loses no plasticity, and keeps knowledge inspectable and editable. It is also the norm in practice: users write prompts, skills, and harnesses rather than post-train, and recent works build continual learning systems on harnesses (Zhang et al., 2026c; Kang et al., 2026). Could a harness alone, recursively compressing its context, solve continual learning once models are strong and context windows long enough? We argue that it cannot. External stores can hold unbounded data, but nothing accumulates in the model itself: whatever it acts on must pass through the context, so experience is compressed into bounded plain text, which loses information at a very high rate. The more experience accumulates, the more is lost.

The resolution lies in the weights themselves. A few hundred gigabytes of parameters recall history, law, medicine, and science (Allen-Zhu and Li, 2025; Morris et al., 2026; Roberts et al., 2020), or even reproduce entire books nearly verbatim (Cooper et al., 2026). Language models are general-purpose compressors (Delétang et al., 2024), and compression is intelligence (Hutter, 2005). Continual learning therefore still relies on weight updates, but should not apply them to every example. Each layer should store what it is best suited for: capacity in the weights, selection in the harness.

We therefore propose HERD (Harness-Evolving Recursive Distillation), a hybrid continual learning

1^{1}Monash University 2^{2}University of the Sunshine Coast. Correspondence to: Xun Sun

xsun0087@student.monash.edu, Thanh Thi Nguyen

tnguyen5@usc.edu.au, Thuy-Trang Vu

trang.vu1@monash.edu.

Figure

Figure 1: HERD overview: one recursive stage. The harness Ht=(Kt,Rt)H_t = (K_t, \mathcal{R}_t) evolves on task AtA_t and is distilled into the weights; drift budgets keep the student close to two anchors, the previous checkpoint θˉt−1\bar{\theta}_{t-1} and the base θ0\theta_0. HtH_t and θˉt\bar{\theta}_t recur, and only θˉt\bar{\theta}_t is deployed. The e.g. tiles follow one ScienceQA item, learned at t=5t = 5 and asked again at t=12t = 12: two parametric baselines fail, OPR choosing the wrong option and Seq-LoRA writing the right text without the choice letter, while HERD answers from its weights alone across three seeds.

system in which the harness is the fast, selective learning layer and the weights are the slow, persistent layer. The design mirrors the human brain: a harness resembles episodic memory formed during the day, flexible but limited in capacity, which sleep consolidates into long-term memory (McClelland et al., 1995). HERD likewise internalizes its harness into the weights after every stage, under fixed memory and compute budgets and at no added inference cost. It does not eliminate forgetting, but preserves existing capabilities as far as possible while the model keeps learning.

HERD is designed around recursion: it must run stably stage after stage, which raises two challenges. First, the context is bounded, so the harness must decide what to change and what to keep. Second, recursive training drifts, and unchecked drift ends in collapse. HERD answers each with one module (Figure 1). For the first, the harness evolves with the task stream: the model iterates on its skills to abstract reusable rules, and retains in a bounded memory the high-residual samples the skills cannot cover. For the second, HERD performs drift-constrained distillation with dual anchors. The student is the previous checkpoint trained to match itself under the harness, which shifts the model less than SFT and thus forgets less (Shenfeld et al., 2026, 2025). The previous checkpoint bounds per-stage drift and the base model bounds cumulative drift. The harness is kept, inspectable and editable, for the next stage; only the weights are deployed.

Across a 25-stage stream HERD keeps more of what it learns than any other method: its final mean over all seen tasks is 0.706, above every parametric baseline and 27 points above the non-parametric ones, while its acquisition, 0.713, is statistically indistinguishable from the plasticity floor set by SeqLoRA (Table 1). Forgetting is 0.010, about half or less that of every weight-updating baseline but SDFT, whose generation collapses (Appendix D); the general test falls 6.3 points where these other baselines lose 20.0 to 25.5. In Figure 1, the rule learned at stage 5 still holds in the weights alone at stage 12 across three seeds.

Our contributions are: (1) HERD, a hybrid continual learning system that evolves a harness of skills and high-residual memory and recursively internalizes it into the weights ( §2§2); (2) drift-constrained distillation with dual anchors, where the previous checkpoint bounds per-stage drift and the base model bounds cumulative drift ( §2.4§2.4); (3) an evaluation on TRACE+17, a 25-stage stream of eight TRACE tasks (Wang et al., 2023b) and 17 Super-NaturalInstructions tasks (Wang et al., 2022), against parametric, non-parametric, and hybrid baselines ( §3§3).

Our code and dataset are available at https://github.com/a1exsun/HERD, and the project page is at https://a1exsun.github.io/HERD.

References (50)