Replay Memory versus EWC Strength on Permuted and Split Digits: A Small Controlled CPU Study Arcturus-83W Stemma seed corpus https://github.com/mihir-chauhan/research-harness-papers/tree/main/papers/ewc-vs-replay-permuted-digits Abstract—We compare naive fine-tuning, elastic weight consol- consolidation (EWC) [2] add a quadratic penalty that anchors idation (EWC), experience replay (ER) and joint training on five- parameters judged important for earlier tasks, and related task sequences built from the 8×8 scikit-learn digits: permuted penalties include synaptic intelligence [3] and a reparametrised pixels (domain-incremental), and split classes in class-incremental and task-incremental form. All systems share one MLP, opti- variant of EWC [4]. Memory-based methods keep a few miser, epoch budget (except joint training) and evaluation, and stored examples and use them while learning new tasks [5]– we report final average accuracy and forgetting over five seeds, [8]; Chaudhry et al. report that a simple baseline that trains plus sweeps of the replay buffer size M and of the EWC strength jointly on the current data and a very small episodic memory λ on separate seeds. A 100-sample buffer (25 stored examples outperforms several specifically designed methods when each per earlier task while the last task is learned) reached higher average accuracy than the validation-selected EWC on permuted example is seen once [9]. digits (0.847 vs 0.695) and class-incremental split digits (0.896 vs How hard the problem is depends on the scenario. van 0.246), while EWC was only slightly above fine-tuning in the class- de Ven and Tolias distinguish task-, domain- and class- incremental case on the main seeds (0.246 vs 0.214, within noise); incremental learning according to whether task identity is on the separate sweep seeds the same configuration reached 0.340 given at test time and, if not, whether it must be inferred, against 0.196, and pooled over 25 seeds its gain over fine-tuning is 0.093 (interval 0.065 to 0.121), above the registered 0.05. With and find substantial differences in difficulty and in method task identity at test time all methods are close (0.946–0.990), efficiency between them, class-incremental learning being the and five seeds do not separate replay from EWC or from joint case where identity must be inferred [10]. Their benchmarks training. Accuracy rises with M in the two harder scenarios, use permuted and split MNIST. We ask the same question at a whereas on permuted digits EWC accuracy peaks at an interior much smaller scale that fits a few CPU minutes: on sequences λ and its low forgetting at large λ comes with low accuracy on the last task; on class-incremental digits the peak at λ=103 is built from the scikit-learn digits, how do fine-tuning, EWC, not a trade-off optimum, because most steps are clipped there. replay and joint training compare, and how does the single Controls added after review: when every method has its own knob of each method, the buffer size M for replay and the learning rate, clipping and strength (36 configurations each for strength λ for EWC, trade off? EWC, SI and DER++, chosen on validation data) and is scored Hypotheses. Registered in proposal.md before the runs: on a fixed outer test set, the replay buffer of 100 samples again beats EWC (0.848 vs 0.682 on permuted digits, 0.903 vs 0.220 on H1, ER with M =100 beats EWC on permuted digits; H2, class-incremental digits) and SI, and DER++ is above replay; on class-incremental split digits EWC gains at most 0.05 EWC’s failure to learn the last class pair does not depend on the over fine-tuning while ER gains more than 0.2; H3, with Fisher estimator or on summing the penalties and is carried by task identity fine-tuning is within 0.10 of joint training; H4, the penalty on the output layer; and giving fine-tuning and EWC replay accuracy increases with M and EWC accuracy is replay’s number of examples per step does not close the gap to replay. This is a small CPU study with reimplemented baselines, an inverted-U in λ; H5, joint training upper-bounds every one architecture and five seeds; it replicates known qualitative continual system. findings rather than extending them. Contribution. A controlled comparison with matched set- Index Terms—continual learning, catastrophic forgetting, elas- tings and two sensitivity sweeps; the job lists of every run tic weight consolidation, experience replay, scikit-learn digits group are in the repository (experiments/jobs.py). We propose no new algorithm, and EWC, ER, SI and DER++ are I. Introduction reimplemented here rather than taken from the original code. Neural networks trained on a sequence of tasks tend to lose Section VII adds controls requested in review: per-method performance on earlier tasks, a problem known as catastrophic tuning on an outer split with SI and DER++, a one-factor forgetting [1], [2]. Two families of remedies are widely used study of the class-incremental EWC failure, a control for the as baselines. Regularisation methods such as elastic weight examples seen per step, and more seeds for the EWC gain on split_cil. Arcturus-83W is the codename of an autonomous study, not a person. Produced by the Stemma autonomous AI research pipeline; the topic was II. Related Work chosen to cover the field. Every reported number comes from logged runs in the linked repository and every reference was checked against arXiv, Crossref, Regularisation. EWC [2] approximates the posterior over DataCite or OpenAlex. parameters of an old task by a Gaussian with diagonal Fisher precision. Synaptic intelligence [3] is a path-based alternative, TABLE I learning without forgetting [11] distils the previous model’s Learning-rate selection: validation average accuracy, mean ± std over seeds 100 and 101. outputs on new-task data, and Liu et al. use a reparametrisation that approximately diagonalises the Fisher matrix so that System lr perm_dil split_cil split_til EWC’s diagonal assumption fits better [4]. We reimplement Fine-tuning 0.01 0.489 ± 0.040 0.199 ± 0.002 0.930 ± 0.012 EWC and, for the tuned comparison of Section VII-A, SI. Fine-tuning 0.05 0.530 ± 0.005 0.200 ± 0.000 0.916 ± 0.036 Memory. Gradient episodic memory [5] introduced an Fine-tuning 0.1 0.547 ± 0.009 0.200 ± 0.000 0.911 ± 0.055 Joint training 0.01 0.802 ± 0.007 0.774 ± 0.016 0.961 ± 0.008 episodic-memory model together with metrics that include Joint training 0.05 0.944 ± 0.024 0.944 ± 0.012 0.986 ± 0.004 knowledge transfer, and A-GEM [6] is its averaged, cheaper Joint training 0.1 0.959 ± 0.007 0.951 ± 0.006 0.994 ± 0.000 variant. iCaRL [7] uses exemplars with a nearest-mean clas- sifier for class-incremental learning, and DER++ [8] replays stored logits as well as labels (we reimplement a simplified batch bt of size 32 and a buffer batch bB of size 32 sampled DER++ with an equal-share buffer, Section VII-A). Chaudhry uniformly from B, et al. [9] find that a simple baseline that trains jointly on L = ℓbt (θ) + ℓbB (θ). (3) current and stored examples outperforms specifically designed approaches when each example is seen once; our replay With M =0 ER is fine-tuning. baseline follows this plain scheme but, unlike their single-pass Joint training (upper ∪ bound). After each task t, a fresh setting, trains 30 epochs per task. network is trained on k≤t Dk with the same number of Evaluation protocol. van de Ven and Tolias [10] define epochs (hence more steps than the sequential systems). three scenarios by whether task identity is given or must be Scenarios. perm_dil: task 1 is the original digits, tasks 2– inferred and compare methods on split and permuted MNIST, 5 apply a fixed random pixel permutation; one 10-way head, finding large differences between scenarios. Our split_til, no task identity. split_cil: a random pairing of the ten classes split_cil and perm_dil tasks are the task-, class- and domain- into five two-class tasks, one 10-way head, no task identity. incremental scenarios of that taxonomy on digits instead of split_til: same data, but logits are masked to the two classes of MNIST. Our contribution relative to these papers is only the the task, in training, in the Fisher estimate and in evaluation. matched small-scale re-measurement and the direct sweep of Metrics. ∑ With A = (ai,j ) on the∑test split, ( average accuracy) i