In-context Continual Learning Assisted by an External Continual Learner

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Momeni, Saleh, Mazumder, Sahisnu, Ke, Zixuan, Liu, Bing
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929642220290048
author Momeni, Saleh
Mazumder, Sahisnu
Ke, Zixuan
Liu, Bing
author_facet Momeni, Saleh
Mazumder, Sahisnu
Ke, Zixuan
Liu, Bing
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_15563
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle In-context Continual Learning Assisted by an External Continual Learner
Momeni, Saleh
Mazumder, Sahisnu
Ke, Zixuan
Liu, Bing
Computation and Language
Artificial Intelligence
Machine Learning
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.
title In-context Continual Learning Assisted by an External Continual Learner
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2412.15563