When to Review: Spaced Repetition for Continual Pre-Training of Language Models

TL;DR

SRT, based on SuperMemo-2, dynamically schedules sample review, improving old knowledge retention by 5-37% while maintaining new learning.

cs.AI 🔴 Advanced 2026-08-18 38 views
Alankar Atreya Devesh Batra Yoages Kumar Mantri Geremy Bantug Greig A Cowan Raad Khraishi
continual learning language models memory scheduling cognitive science AI training

Key Findings

Methodology

This work formulates continual pre-training as an adaptive review scheduling problem inspired by spaced repetition principles. Each sample maintains individual review states—ease factor, success count, interval, due step—and the perplexity during training is converted into a recall quality signal. This signal guides dynamic scheduling, prioritizing difficult samples for earlier review and confident ones for longer intervals, without altering model architecture or loss functions. The approach integrates SM-2 algorithm mechanics into deep learning training, enabling effective mitigation of catastrophic forgetting while preserving model plasticity. Experiments on Wikipedia and code datasets across model scales demonstrate significant improvements in knowledge retention and overall performance.

Key Results

  • SRT recovers 5-37% of old knowledge loss across datasets, outperforming uniform replay and naive CPT. It maintains broad benchmark scores, avoiding degradation in reasoning and multitask capabilities, especially in large models like Llama-3.2-3B. In multi-modal tests, SRT's scheduling principle generalizes beyond language, showing robustness with vision and tabular data. The method achieves these gains with only ~14.7% additional computational overhead, validating its efficiency and scalability.

Significance

This research addresses a fundamental challenge in continual learning—balancing knowledge retention with acquisition—by introducing a biologically inspired, sample-level scheduling mechanism. It advances the state-of-the-art by moving beyond fixed or uniform replay strategies, offering a theoretically grounded, practical solution that enhances model stability and adaptability. The approach has broad implications for deploying large models in dynamic environments, such as real-time information updates, autonomous systems, and personalized AI, where knowledge must be continuously refreshed without catastrophic forgetting.

Technical Contribution

The core technical innovation is the integration of the SM-2 spaced repetition algorithm into deep learning training via per-sample recall signals derived from perplexity. This enables personalized, interval-based scheduling of historical samples, dynamically adjusting review timing based on model confidence. The method maintains the standard training pipeline, requiring no architectural modifications or additional loss functions, yet achieves superior retention and learning efficiency. Theoretical guarantees are supported by extensive empirical validation across multiple datasets and modalities, demonstrating broad applicability.

Novelty

This work is the first to embed a biologically inspired spaced repetition algorithm at the sample level within large-scale language model training. Unlike prior methods that rely on fixed sampling ratios or difficulty-based prioritization, SRT dynamically schedules sample reviews based on individual recall signals, providing a principled, adaptive approach to mitigate forgetting. Its cross-modal validation further establishes its novelty and potential for generalization beyond NLP tasks.

Limitations

  • The reliance on perplexity as a recall proxy may not be optimal for all tasks, especially those with ambiguous or noisy signals. The additional forward pass introduces computational overhead (~14.7%), which might be significant for extremely large models or resource-constrained settings. Parameter tuning, such as thresholds and ease factors, remains sensitive and may require domain-specific adjustments. Future work should explore more robust recall signals, reduce overhead, and extend to other continual learning scenarios.

Future Work

Future directions include integrating reinforcement learning to optimize scheduling policies, exploring alternative recall signals beyond perplexity, and applying this framework to real-world, large-scale deployment scenarios. Additionally, research can focus on reducing computational overhead, automating hyperparameter tuning, and extending the approach to other modalities and tasks, such as reinforcement learning agents or lifelong learning in robotics.

AI Executive Summary

In recent years, large language models (LLMs) have become central to AI research and applications. However, updating these models with new information without erasing prior knowledge remains a significant challenge—known as catastrophic forgetting. Traditional methods, such as uniform replay, often fail to address this issue effectively, as they treat all past data equally regardless of how quickly the model forgets specific samples.

This paper introduces Spaced Repetition Training (SRT), a novel framework inspired by cognitive science principles, particularly the spaced repetition technique used in human memory. SRT employs the SuperMemo-2 (SM-2) algorithm to dynamically schedule the review of training samples at the individual level. Each sample maintains a set of review states, including an ease factor, success count, and interval, which are updated based on the perplexity computed during training. This allows the model to revisit difficult samples more frequently while spacing out easier ones, effectively balancing the retention of old knowledge with the acquisition of new information.

Extensive experiments on Wikipedia and code datasets across different model scales demonstrate that SRT significantly reduces forgetting, recovering between 5% and 37% of lost accuracy compared to naive continual pre-training. Importantly, it maintains or improves new knowledge learning, and broad benchmark evaluations show that SRT preserves reasoning and multitask capabilities that are often degraded by traditional replay methods. The approach also generalizes well to vision and tabular data, indicating its modality-agnostic nature.

The core innovation lies in integrating a biologically inspired, per-sample scheduling mechanism into deep learning training, providing a new pathway for robust continual learning. Although introducing some additional computational overhead (~14.7%), the method offers a compelling trade-off between performance and efficiency. Looking ahead, future work will focus on optimizing recall signals, reducing overhead, and extending the framework to more complex, real-world scenarios. Overall, SRT marks a significant step toward enabling large models to learn continuously in dynamic environments, with broad implications for AI deployment and lifelong learning systems.

Deep Analysis

Background

近年来,随着大规模预训练模型的崛起,模型知识的持续更新成为研究热点。传统方法多采用全量再训练或固定比例混合采样,存在知识遗忘和效率低的问题。早期如EWC、知识蒸馏等技术试图缓解灾难性遗忘,但效果有限。近年来,重放策略成为主流,尤其在连续学习中表现出色,但多采用均匀采样,忽略样本遗忘速度差异。认知科学中的间隔重复技术已被证实能有效提升人类记忆,但尚未广泛应用于深度学习。本文结合这些背景,提出基于SM-2的个性化调度机制,旨在解决大模型持续学习中的遗忘难题,推动模型在动态环境中的应用。

Core Problem

大模型在持续学习中面临灾难性遗忘的核心难题。传统重放方法未考虑样本的遗忘速度差异,导致复习频率不合理,既不能有效巩固旧知识,也影响新知识的学习效率。在不断变化的数据分布下,如何合理安排历史样本的复习时间,成为提升模型稳定性和适应性的关键。现有方法缺乏个性化调度机制,难以兼顾旧知识保持和新知识学习,限制了模型的持续能力。

Innovation

本研究的创新点在于引入认知科学中的间隔重复原理,将每个样本的复习状态个性化管理。具体包括:

  • �� 设计基于SM-2的样本调度算法,动态调整样本复习间隔;
  • �� 将困惑度转化为回忆质量信号,实时评估样本遗忘程度;
  • �� 在训练过程中同步更新样本的复习状态,实现旧知识的巩固和新知识的快速融入;
  • �� 不改变模型架构和目标,纯粹通过调度机制提升性能。这一创新突破了传统均匀采样的局限,为持续学习提供了更智能的解决方案。

Methodology

  • �� 每个样本维护个体的复习状态,包括易因子、连续成功次数、间隔和到期时间;
  • �� 在每个训练步骤,计算样本的困惑度,将其映射为回忆质量信号;
  • �� 根据回忆质量,动态调整样本的复习间隔,难样本提前复习,易样本延长间隔;
  • �� 采用SM-2算法调节样本的复习频率,确保旧知识得到合理巩固;
  • �� 训练过程中,模型参数保持不变,仅调度样本,提升旧知识保持能力;
  • �� 在Wikipedia和代码数据集上验证,采用不同模型规模进行对比分析。

Experiments

实验设计包括在Wikipedia和GitHub代码库中构建时间分割的训练集,评估模型在旧知识保持和新知识学习上的表现。采用TinyLlama-1.1B和Llama-3.2-3B两种模型,比较SRT、均匀重放、纯持续预训练等多种策略。指标包括源问答准确率、广义能力基准(如MMLU、GSM8K)以及跨模态验证。超参数如复习比例、困惑度阈值经过调优,进行消融分析验证调度机制的有效性。

Results

SRT在Wikipedia和代码数据集上,显著提升旧知识保持,恢复了5%到37%的遗忘损失,优于均匀重放和纯持续预训练。在大模型中,SRT保持了广泛能力的性能,避免了传统方法带来的能力退化。消融实验显示,调度策略优于单纯难度排序,且在多模态任务中表现出良好的泛化能力。这些结果验证了调度机制在实际训练中的有效性和适用性。

Applications

该方法适用于需要持续知识更新的应用场景,如智能助手、自动问答系统和动态知识库维护。只需在训练中引入调度机制,无需改变模型架构,便能显著提升模型的稳定性和适应性。未来还可结合强化学习优化调度策略,进一步降低计算成本,推动在工业界的广泛应用。

Limitations & Outlook

调度机制依赖困惑度作为回忆信号,可能在某些任务中不够鲁棒。引入额外的前向计算开销,增加训练时间。参数调优(如阈值和易因子)对性能影响较大,需进一步自动调节。未来需解决在极端旧新比例下的性能波动,并探索更高效的信号源。

Plain Language Accessible to non-experts

想象你在学习一门新技能,比如弹钢琴。每天你都要复习旧的曲子,同时学习新曲子。为了记得住旧的内容,你会安排不同的复习时间:一些难记的部分会反复练习得更频繁,而一些熟悉的部分可以拉长练习间隔。这种方法帮助你既巩固了旧技能,又不断吸收新内容。类似的,SRT算法也是这样,它会根据每个“样本”的“难易程度”智能安排复习时间,确保模型在不断学习新知识的同时,不会忘记之前学过的内容。

ELI14 Explained like you're 14

你知道学习一门新技能,比如玩游戏,最怕忘记之前学到的技巧。其实,你可以用一种聪明的方法来帮自己记忆更牢:当你觉得某个技巧还不熟练时,就多练几次;而已经掌握得很好的技巧,就可以少练点。这样反复练习,既不会忘记旧的,又能学会新的。SRT算法就是用这个原理,让电脑模型在学习新内容时,自动安排什么时候复习旧资料。它会根据每个资料的难易程度,决定什么时候再看一遍,确保模型既记住了旧知识,又能快速吸收新知识,就像你用聪明的复习计划一样!

Abstract

Continual pre-training of large language models must acquire new information without erasing old knowledge. Existing replay methods often choose a global old/new mixture and sample uniformly, ignoring that examples differ in how quickly they are forgotten. We formulate continual pre-training as adaptive review scheduling: the training loop should decide not only how much history to replay, but which examples should return at each step. We introduce Spaced Repetition Training (SRT), a continual learning framework inspired by cognitive science, which schedules sample-rehearsal using the SuperMemo-2 (SM-2) algorithm. SRT maintains per-example review state, maps per-example perplexity to a recall-quality signal, and schedules historical examples for retention and new examples for consolidation while leaving the model, objective, and optimizer unchanged. On temporally separated Wikipedia and code corpora, SRT improves the stability-plasticity trade-off, recovering 5 to 37 percentage points of old-knowledge accuracy lost by naive continual pre-training across model scales while preserving or improving new-knowledge acquisition. At larger scale, SRT preserves broad benchmark performance that naive continual pre-training and uniform replay substantially degrade. Experiments with vision and tabular data further suggest that the scheduling principle extends beyond language when paired with an appropriate recall signal.

cs.AI cs.LG