用外部学习器辅助提示学习,实现无遗忘的高效持续学习
In-context Continual Learning Assisted by an External Continual Learner
- 引入外部持续学习器预选候选类别,减少提示中冗余内容
- 在多个任务上显著优于现有方法,避免灾难性遗忘
- 适合需要长期增量学习且资源受限的场景
现有持续学习方法主要依赖微调或适应大语言模型,仍面临灾难性遗忘问题。很少有工作利用提示学习(ICL)在不更新参数的情况下调动大语言模型中的丰富知识。然而,在ICL中逐个增量学习新任务需将每类样本加入提示,导致提示过长,超出大语言模型输入长度限制并降低性能。为此,我们提出InCA,将外部持续学习器(ECL)与ICL结合,实现可扩展的持续学习且无遗忘。ECL逐步构建,为每个测试实例预选一小部分可能类别,仅将这些类别纳入ICL提示,有效控制提示长度,同时保持高性能。实验表明,InCA显著优于现有持续学习基线,取得明显性能提升。
原文摘要 · Abstract (English)
Existing continual learning (CL) methods mainly rely on fine-tuning or adapting large language models (LLMs). They still suffer from catastrophic forgetting (CF). Little work has been done to exploit in-context learning (ICL) to leverage the extensive knowledge within LLMs for CL without updating any parameters. However, incrementally learning each new task in ICL necessitates adding training examples from each class of the task to the prompt, which hampers scalability as the prompt length increases. This issue not only leads to excessively long prompts that exceed the input token limit of the underlying LLM but also degrades the model's performance due to the overextended context. To address this, we introduce InCA, a novel approach that integrates an external continual learner (ECL) with ICL to enable scalable CL without CF. The ECL is built incrementally to pre-select a small subset of likely classes for each test instance. By restricting the ICL prompt to only these selected classes, InCA prevents prompt lengths from becoming excessively long, while maintaining high performance. Experimental results demonstrate that InCA significantly outperforms existing CL baselines, achieving substantial performance gains.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。