# 增量学习（机器学习）

增量学习通过顺序处理到来的数据并持续更新参数来训练机器学习模型，而非在固定数据集上重新训练。在神经网络中，核心困难在于学习新任务而不灾难性地遗忘旧任务，文献中也将此问题称为持续学习、终身学习和顺序学习。<sup>[1](https://homes.esat.kuleuven.be/~konijn/publications/2020/DeLange2.pdf)</sup> 该领域区别于批量（离线）训练——后者一次性拟合所有数据——也区别于[在线持续学习](https://www.edgepedia.org/zh/online-continual-learning)：模型消费非平稳数据流中每个到达的数据点，通常没有任务标签或任务边界，并受限于严格的计算、内存和随时推理约束；形式上，在线持续学习算法将当前样本、前一模型以及过去数据流样本的小型回放缓冲区映射为新模型和新缓冲区。<sup>[2](https://arpi.unipi.it/retrieve/c10402cd-a975-4919-b0ba-c495ec459cad/2308.10328v3.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 训练范式 | 参数随任务或流数据到达而顺序更新，而非在固定数据集上重新拟合；术语与持续学习、终身学习和顺序学习有重叠。<sup>[1](https://homes.esat.kuleuven.be/~konijn/publications/2020/DeLange2.pdf)</sup> |
| 核心失效模式 | 灾难性遗忘：新的训练覆盖了共享参数中先前学到的知识。<sup>[3](https://doi.org/10.1016/j.tics.2020.09.004)</sup> |
| 三种场景 | 任务增量、域增量和类增量学习，其区分依据是测试时是否提供任务身份，以及在不提供时是否必须推断任务身份。<sup>[4](https://doi.org/10.1038/s42256-022-00568-3)</sup> |
| 正则化成本 | EWC以二次惩罚约束参数，其刚度由对角Fisher信息决定；运行时间与参数数量成线性关系。<sup>[5](https://arxiv.org/abs/1612.00796)</sup> |
| 最强方法族 | 回放在三种场景中都是唯一进入最优行列的策略；经调优的经验回放是非常强的基线。<sup>[4](https://doi.org/10.1038/s42256-022-00568-3)</sup> |
| 规模示例 | DER在ImageNet-1K上将ResNet18扩展至1.1689亿参数（离线模型的10倍），需要2.1317亿次反向传播更新，而离线训练仅需1.1531亿次。<sup>[6](https://openaccess.thecvf.com/content/CVPR2023W/CLVision/papers/Harun_How_Efficient_Are_Todays_Continual_Learning_Algorithms_CVPRW_2023_paper.pdf)</sup> |
| 大语言模型规模 | Llama系列模型每语言1000亿词元的持续预训练，在回放或梯度对齐下保持稳定。<sup>[7](https://proceedings.mlr.press/v330/abbes26a.html)</sup> |

## 工作原理

基于梯度的学习假设，在期望意义上所有任务都存在于每次更新中。当一个任务连续多次迭代缺席时，另一任务迅速控制所有参数，这种拔河动态解释了灾难性遗忘。<sup>[3](https://doi.org/10.1016/j.tics.2020.09.004)</sup> 保持足够可塑性以整合新信息、同时保持足够稳定性以不干扰已巩固知识之间的张力，被称为稳定性-可塑性困境，而无遗忘学习是其在分类任务中的直接体现。<sup>[1](https://homes.esat.kuleuven.be/~konijn/publications/2020/DeLange2.pdf)</sup>

已发表的比较研究根据模型在测试时所知的信息区分三种场景。<sup>[4](https://doi.org/10.1038/s42256-022-00568-3)</sup> 在任务增量学习中，学习一组清晰可分的任务，即使在测试时也可获得任务身份，这对应于多头网络，每个任务一个分类头。在域增量学习中，问题结构相同但输入分布发生偏移，任务身份未知。在类增量学习中，模型必须在没有任务身份的情况下区分数量不断增长的类别，这要求单一的共享输出层。<sup>[4](https://doi.org/10.1038/s42256-022-00568-3)</sup>

## 实现方法

**基于正则化的方法**惩罚对先前任务重要参数的更改。[弹性权重巩固](https://www.edgepedia.org/zh/elastic-weight-consolidation)（EWC）由詹姆斯·柯克帕特里克（James Kirkpatrick）及其同事于2017年提出，将其实现为二次惩罚，可想象为将参数锚定到先前解的弹簧，对先前任务最重要的参数刚度更大。<sup>[5](https://arxiv.org/abs/1612.00796)</sup> 它遵循拉普拉斯近似，将难以处理的后验近似为高斯分布，均值位于先前任务的参数\( \theta^{*}_{A} \)处，对角精度由Fisher信息矩阵\( F \)的对角线给出。<sup>[5](https://arxiv.org/abs/1612.00796)</sup> 综述将损失写为\( L = \ell(f(x), y) + \tfrac{1}{2}\lambda \sum_{k} \Omega_{k}(\theta^{b-1}_{k} - \theta_{k})^{2} \)，其中重要性矩阵\( \Omega \)由Fisher信息估计。<sup>[8](https://arxiv.org/pdf/2302.03648v2.pdf)</sup> [突触智能](https://www.edgepedia.org/zh/synaptic-intelligence)（SI）则通过每个参数对损失衰减的贡献在线估计重要性，SI和MAS都近似Fisher信息的平方根。<sup>[8](https://arxiv.org/pdf/2302.03648v2.pdf)</sup>

**回放（排练）方法**存储或生成过去样本，并将其与新数据交错。[经验回放](https://www.edgepedia.org/zh/experience-replay)在每个时间步更新动态缓冲区，并将缓冲区样本与新的流样本随机混合；即使少量缓冲区样本也能显著缓解遗忘。<sup>[9](https://link.springer.com/article/10.1007/s10489-024-05493-z)</sup> [iCaRL](https://www.edgepedia.org/zh/icarl)结合了最近样本均值分类器、基于herding的样本选择和带蒸馏的表征学习。<sup>[10](https://openaccess.thecvf.com/content_cvpr_2017/papers/Rebuffi_iCaRL_Incremental_Classifier_CVPR_2017_paper.pdf)</sup> 深度生成回放（DGR）由哈努尔·申（Hanul Shin）及其同事于2017年提出，用先前任务上训练的生成模型生成的样本替代缓冲区。<sup>[11](https://doi.org/10.48550/arxiv.1705.08690)</sup>

**梯度约束方法**作用于更新方向本身。[梯度情景记忆](https://www.edgepedia.org/zh/gradient-episodic-memory-gem)（GEM）由大卫·洛佩斯-帕斯（David Lopez-Paz）和马克·奥雷利奥·兰扎托（Marc'Aurelio Ranzato）于2017年提出，将每个新任务的梯度投影，使其不增加存储样本上的损失，形式化为对所有先前任务\( k < t \)满足\( \langle g, g_{k} \rangle \geq 0 \)，其中\( g \)是提出的当前任务梯度，\( g_{k} \)是任务\( k \)的情景记忆\( M_{k} \)上的损失梯度；若任一约束被违反，则将\( g \)投影到满足所有约束的最近梯度；A-GEM将逐任务约束放松为单一全局约束以提高效率。<sup>[12](https://ar5iv.labs.arxiv.org/html/2302.00487)</sup>

**参数隔离**将参数专用于任务。渐进神经网络由安德烈·A·鲁苏（Andrei A. Rusu）及其同事于2016年提出，阻止对先前知识上训练的网络的更改，并通过横向连接的新子网络扩展架构。<sup>[13](https://doi.org/10.48550/arxiv.1606.04671)</sup> 基于掩码的变体如[PackNet](https://www.edgepedia.org/zh/packnet)和HAT通过掩码报告零遗忘，但隔离方法在推理时需要任务选择器模型来选取相关子网络，且模型规模随任务数量增长。<sup>[1](https://homes.esat.kuleuven.be/~konijn/publications/2020/DeLange2.pdf)</sup><sup> • </sup><sup>[14](https://par.nsf.gov/biblio/10638660-class-incremental-learning-from-first-principles)</sup>

**蒸馏**约束函数而非权重。[无遗忘学习](https://www.edgepedia.org/zh/learning-without-forgetting)（LwF）由李志忠（Zhizhong Li）和德里克·霍伊姆（Derek Hoiem）于2016年在ECCV、后于2017年在IEEE TPAMI上发表，被认为是将知识蒸馏应用于类增量学习的首次成功，使用旧任务输出头对新输入的预测作为锚点。<sup>[30](https://researchr.org/publication/LiH16-18)</sup><sup> • </sup><sup>[8](https://arxiv.org/pdf/2302.03648v2.pdf)</sup><sup> • </sup><sup>[15](https://doi.org/10.1109/tpami.2017.2773081)</sup>

标准协议包括Split MNIST、Split CIFAR-100、Tiny Imagenet和ImageNet子集，以平均准确率、遗忘、后向迁移（BWT，即遗忘的相反数）和前向迁移（FWT，对未见任务的泛化）为指标。<sup>[16](http://dl.acm.org/doi/10.1145/3735633)</sup>

## 起源

该问题在联结主义文献中被命名：迈克尔·麦克洛斯基（Michael McCloskey）和尼尔·J·科恩（Neal J. Cohen）于1989年将联结主义网络中的灾难性干扰描述为顺序学习问题。<sup>[17](https://doi.org/10.1016/s0079-7421%2808%2960536-8)</sup> 安东尼·罗宾斯（Anthony Robins）于1995年证明排练和伪排练可缓解灾难性遗忘，这一思想早于深度学习，并构成当今回放缓冲区的基础。<sup>[18](https://doi.org/10.1080/09540099550039318)</sup> 现代里程碑方法接踵而至：渐进神经网络（鲁苏及其同事，2016），<sup>[13](https://doi.org/10.48550/arxiv.1606.04671)</sup> EWC（柯克帕特里克及其同事，2017，发表于PNAS），<sup>[19](https://doi.org/10.1073/pnas.1611835114)</sup> LwF（李志忠和霍伊姆，2017，IEEE TPAMI），<sup>[15](https://doi.org/10.1109/tpami.2017.2773081)</sup> GEM（洛佩斯-帕斯和兰扎托，2017），<sup>[20](https://doi.org/10.48550/arxiv.1706.08840)</sup> 以及DGR（申及其同事，2017）。<sup>[11](https://doi.org/10.48550/arxiv.1705.08690)</sup> 如今标准的场景分类法由吉多·M·范德文（Gido M. van de Ven）、蒂内·图伊特拉尔斯（Tinne Tuytelaars）和安德烈亚斯·S·托利亚斯（Andreas S. Tolias）于2022年<sup>[4](https://doi.org/10.1038/s42256-022-00568-3)</sup>以及许彦昌（Yen-Chang Hsu）及其同事于2018年<sup>[21](https://doi.org/10.48550/arxiv.1810.12488)</sup>分别独立提出。DER——一种用于类增量学习的动态可扩展表征——由严世鹏（Shipeng Yan）、谢江伟（Jiangwei Xie）和何旭明（Xuming He）于2021年提出。<sup>[22](https://doi.org/10.48550/arxiv.2103.16788)</sup>

## 变体

正则化方法有面向在线的后续工作：EWC++和RWalk由阿尔斯兰·乔杜里（Arslan Chaudhry）及其同事于2018年提出，维护单一对角Fisher矩阵并用移动平均更新，避免了EWC的逐任务Fisher存储和额外数据集遍历。<sup>[23](https://www.ecva.net/papers/eccv_2018/papers_ECCV/papers/Arslan_Chaudhry__Riemannian_Walk_ECCV_2018_paper.pdf)</sup> 回放变体用模型换取内存节省：DGR生成旧样本而非存储它们，<sup>[11](https://doi.org/10.48550/arxiv.1705.08690)</sup> SIESTA由穆罕默德·优素福·哈伦（Md Yousuf Harun）及其同事于2023年提出，将回放组织为用于在线持续学习的唤醒-睡眠算法。<sup>[24](https://doi.org/10.48550/arxiv.2303.10725)</sup> 对于语言模型，渐进提示（Progressive Prompts）由阿纳斯塔西娅·拉兹代比迪纳（Anastasia Razdaibiedina）及其同事于2023年提出，将基于提示的持续学习扩展到语言模型。<sup>[25](https://doi.org/10.48550/arxiv.2301.12314)</sup>

## 应用

一个主要动机是大语言模型：完全重新训练不可持续，近期大型模型训练超过10000 GPU天，而设备端更新面临内存、计算、带宽和隐私约束，使得从头重新训练不可行；参数高效方法如适配器、低秩更新和提示被认为更适合持续适应。<sup>[16](http://dl.acm.org/doi/10.1145/3735633)</sup> 在大语言模型规模上，Llama系列模型跨语言每语言1000亿词元的[持续预训练](https://www.edgepedia.org/zh/continual-pre-training)表明，经验回放和梯度对齐都能实现稳定的无遗忘学习。<sup>[7](https://proceedings.mlr.press/v330/abbes26a.html)</sup> 然而，一篇批判性综述指出，许多提出的大语言模型增量范式并不更新核心模型，且没有一个实时增量更新。<sup>[26](https://onlinelibrary.wiley.com/doi/full/10.1111/exsy.70127)</sup>

## 局限与替代方案

在没有资源约束的情况下，类增量学习可通过在每个任务上对所有已学数据重新训练来轻松解决，达到与非持续学习相当的性能，从而使持续方法变得不必要；因此该领域由其内存和计算预算所定义。<sup>[14](https://par.nsf.gov/biblio/10638660-class-incremental-learning-from-first-principles)</sup> 在可比预算下，基于回放的方法优于基于正则化和基于参数隔离的方法。<sup>[14](https://par.nsf.gov/biblio/10638660-class-incremental-learning-from-first-principles)</sup> 排练也有缺点：存储旧数据消耗内存，更多数据降低训练效率，且出于安全和隐私原因旧数据往往无法保留。<sup>[27](https://pmc.ncbi.nlm.nih.gov/articles/PMC7712976/)</sup>

已知的失效模式包括强任务顺序敏感性——在CIFAR-100类别顺序上性能差异很大，且最佳方法取决于顺序，<sup>[14](https://par.nsf.gov/biblio/10638660-class-incremental-learning-from-first-principles)</sup> 以及EWC中的区间遗忘——仅在每个任务结束时考虑Fisher信息。<sup>[27](https://pmc.ncbi.nlm.nih.gov/articles/PMC7712976/)</sup> 与替代方案相比，无防遗忘措施的微调作为下界，联合训练作为上界，所有方法在任务增量设置中都比类增量设置表现更好。<sup>[28](https://www.jair.org/index.php/jair/article/view/18405)</sup> 相比之下，[迁移学习](https://www.edgepedia.org/zh/transfer-learning)不考虑学习后的旧任务性能。<sup>[27](https://pmc.ncbi.nlm.nih.gov/articles/PMC7712976/)</sup> 有两个注意事项限定上述共识：标准类增量协议施加了不重复约束——类别永远不会再出现——这人为地加剧了遗忘；而环境中存在自然回放的场景可以在没有显式回放的情况下弥合与联合训练的大部分差距，表明回放优势部分是基准测试的产物。<sup>[29](https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2022.829842/full)</sup>

## References

1. [A continual learning survey: defying forgetting in classification tasks (De Lange et al.)](https://homes.esat.kuleuven.be/~konijn/publications/2020/DeLange2.pdf)
2. [A Comprehensive Empirical Evaluation on Online Continual Learning](https://arpi.unipi.it/retrieve/c10402cd-a975-4919-b0ba-c495ec459cad/2308.10328v3.pdf)
3. [Embracing Change: Continual Learning in Deep Neural Networks (Trends in Cognitive Sciences, 2020)](https://doi.org/10.1016/j.tics.2020.09.004)
4. [Gido M. van de Ven, Tinne Tuytelaars, Andreas S. Tolias (2022). Three types of incremental learning. Nature Machine Intelligence.](https://doi.org/10.1038/s42256-022-00568-3)
5. [Overcoming catastrophic forgetting in neural networks (EWC)](https://arxiv.org/abs/1612.00796)
6. [How Efficient Are Today's Continual Learning Algorithms? (CVPRW 2023)](https://openaccess.thecvf.com/content/CVPR2023W/CLVision/papers/Harun_How_Efficient_Are_Todays_Continual_Learning_Algorithms_CVPRW_2023_paper.pdf)
7. [Revisiting Replay and Gradient Alignment for Continual Pre-Training of Large Language Models (PMLR, CoLLAs 2026)](https://proceedings.mlr.press/v330/abbes26a.html)
8. [Class-Incremental Learning: A Survey (Zhou et al., IEEE TPAMI-track)](https://arxiv.org/pdf/2302.03648v2.pdf)
9. [A rehearsal framework for computational efficiency in online continual learning (Applied Intelligence, 2024)](https://link.springer.com/article/10.1007/s10489-024-05493-z)
10. [iCaRL: Incremental Classifier and Representation Learning (CVPR 2017)](https://openaccess.thecvf.com/content_cvpr_2017/papers/Rebuffi_iCaRL_Incremental_Classifier_CVPR_2017_paper.pdf)
11. [Shin, Hanul and colleagues (2017). Continual Learning with Deep Generative Replay. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1705.08690)
12. [A Comprehensive Survey of Continual Learning: Theory, Method and Application (Wang et al., 2023)](https://ar5iv.labs.arxiv.org/html/2302.00487)
13. [Rusu, Andrei A. and colleagues (2016). Progressive Neural Networks. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1606.04671)
14. [Class Incremental Learning from First Principles: A Review (TMLR, 2025)](https://par.nsf.gov/biblio/10638660-class-incremental-learning-from-first-principles)
15. [Zhizhong Li, Derek Hoiem (2017). Learning without Forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence.](https://doi.org/10.1109/tpami.2017.2773081)
16. [Continual Learning of Large Language Models: A Comprehensive Survey (ACM Computing Surveys)](http://dl.acm.org/doi/10.1145/3735633)
17. [Catastrophic Interference in Connectionist Networks: The Sequential Learning Problem (The Psychology of learning and motivation/The psychology of learning and motivation, 1989)](https://doi.org/10.1016/s0079-7421%2808%2960536-8)
18. [ANTHONY ROBINS (1995). Catastrophic Forgetting, Rehearsal and Pseudorehearsal. Connection Science.](https://doi.org/10.1080/09540099550039318)
19. [James Kirkpatrick and colleagues (2017). Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences.](https://doi.org/10.1073/pnas.1611835114)
20. [Lopez-Paz, David, Ranzato, Marc'Aurelio (2017). Gradient Episodic Memory for Continual Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1706.08840)
21. [Hsu, Yen-Chang and colleagues (2018). Re-evaluating Continual Learning Scenarios: A Categorization and Case for Strong Baselines. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1810.12488)
22. [Yan, Shipeng, Xie, Jiangwei, He, Xuming (2021). DER: Dynamically Expandable Representation for Class Incremental Learning. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2103.16788)
23. [Riemannian Walk for Incremental Learning: Understanding Forgetting and Intransigence (ECCV 2018)](https://www.ecva.net/papers/eccv_2018/papers_ECCV/papers/Arslan_Chaudhry__Riemannian_Walk_ECCV_2018_paper.pdf)
24. [Harun, Md Yousuf and colleagues (2023). SIESTA: Efficient Online Continual Learning with Sleep. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2303.10725)
25. [Razdaibiedina, Anastasia and colleagues (2023). Progressive Prompts: Continual Learning for Language Models. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2301.12314)
26. [Towards Incremental Learning in Large Language Models: A Critical Review (Expert Systems, 2025)](https://onlinelibrary.wiley.com/doi/full/10.1111/exsy.70127)
27. [An Appraisal of Incremental Learning Methods (Entropy, 2020)](https://pmc.ncbi.nlm.nih.gov/articles/PMC7712976/)
28. [Incremental Learning Methodologies for Addressing Catastrophic Forgetting: Analysis and Experimental Evaluation (JAIR, 2025)](https://www.jair.org/index.php/jair/article/view/18405)
29. [Is Class-Incremental Enough for Continual Learning? (Frontiers in AI)](https://www.frontiersin.org/journals/artificial-intelligence/articles/10.3389/frai.2022.829842/full)
30. [LiH16 18 (researchr.org)](https://researchr.org/publication/LiH16-18)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Supervised, unsupervised, and semi-supervised learning › Online and incremental learning

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/incremental-learning-machine-learning

English original: https://www.edgepedia.org/incremental-learning-machine-learning
