Parameter-Efficient Fine-Tuning for Continual Learning: A Neural Tangent Kernel Perspective

Jingren Liu, Zhong Ji, Yunlong Yu, Jiale Cao, Yanwei Pang, Jungong Han, Xuelong Li

Abstract

Parameter-efficient fine-tuning for continual learning (PEFT-CL) has shown promise in adapting pre-trained models to sequential tasks while mitigating catastrophic forgetting problem. However, understanding the mechanisms that dictate continual performance in this paradigm remains elusive. To tackle this complexity, we undertake a rigorous analysis of PEFT-CL dynamics to derive relevant metrics for continual scenarios using Neural Tangent Kernel (NTK) theory. With the aid of NTK as a mathematical analysis tool, we recast the challenge of test-time forgetting into the quantifiable generalization gaps during training, identifying three key factors that influence these gaps and the performance of PEFT-CL: training sample size, task-level feature orthogonality, and regularization. To address these challenges, we introduce NTK-CL, a novel framework that eliminates task-specific parameter storage while adaptively generating task-relevant features. Aligning with theoretical guidance, NTK-CL triples the feature representation of each sample, theoretically and empirically reducing the magnitude of both task-interplay and task-specific generalization gaps. Grounded in NTK analysis, our approach imposes an adaptive exponential moving average mechanism and constraints on task-level feature orthogonality, maintaining intra-task NTK forms while attenuating inter-task NTK forms. Ultimately, by fine-tuning optimizable parameters with appropriate regularization, NTK-CL achieves state-of-the-art performance on established PEFT-CL benchmarks.

Introduction

Continual Learning (CL) aims to enable artificial intelligence models to learn like humans: accumulating new skills sequentially without losing previously acquired knowledge—a phenomenon known as catastrophic forgetting. Recently, Parameter-Efficient Fine-Tuning (PEFT) has emerged as a dominant strategy, updating only a fraction of a model's weights to adapt large pre-trained models to new tasks. However, many existing PEFT-CL methods rely on empirical trial-and-error rather than a solid mathematical foundation. This work bridges that gap by applying Neural Tangent Kernel (NTK) theory to analyze and improve the dynamics of continual learning.

Theoretical Foundation: Forgetting as a Generalization Problem

A core insight of this research is the mathematical proof that test-time forgetting can be recast as a training-time generalization gap. By using NTK spectral theory to bound generalization error, the researchers identified three critical levers for minimizing forgetting: training sample size, task-level feature orthogonality, and precise regularization. This theoretical grounding suggests that if we can control these factors, we can systematically reduce the interference between sequential tasks.

The NTK-CL Framework

Based on these theoretical findings, the authors developed NTK-CL, a framework designed to optimize the generalization gaps identified in their analysis. Unlike previous methods that require massive task-specific storage, NTK-CL focuses on adaptive feature generation and shared parameter spaces.

Overview of the NTK-CL framework compared to traditional PEFT-CL approaches, highlighting the hybrid subnetwork and adaptive EMA mechanism.

Key Components of NTK-CL

  1. Representational Tripling: To effectively increase the "effective sample size" (a requirement for lower generalization error), the model employs three parallel adaptation paths for every data point:
  2. Subnetwork-1 (GS1): Generates instance-specific prompts.
  3. Subnetwork-2 (GS2): Implements a LoRA-style (Low-Rank Adaptation) approach.
  4. Hybrid Adaptation: A Multi-Head Self-Attention (MSA) module that fuses features from the first two, providing the model with three distinct "views" of the data.
Detailed architecture of the Subnetwork-1 (prompt-based) and Subnetwork-2 (LoRA-based) adaptation modules within the Transformer blocks.
  1. Adaptive EMA (Exponential Moving Average): To avoid the linear storage overhead of storing separate parameters for every task, NTK-CL uses an adaptive EMA mechanism. This allows the model to blend historical and current knowledge into a shared parameter space dynamically.
  2. Task-Level Orthogonality Constraints: The framework enforces task-level orthogonality using a combination of InfoNCE loss and Truncated SVD. This ensures that features from a new task do not "pollute" the representational space of previous tasks, maintaining the integrity of the learned features.
  3. NTK-Guided Regularization: A tailored L2 regularization scheme is applied to stabilize optimization dynamics, directly informed by the saddle-point solutions identified in the researchers' proofs.

Experimental Evaluation

NTK-CL was evaluated across a diverse suite of benchmarks, including general recognition (CIFAR-100, ImageNet-R/A), domain adaptation (DomainNet), and specialized fields like medical imaging (Kvasir) and satellite imagery (EuroSAT).

Key Results

  • State-of-the-Art Performance: NTK-CL consistently outperformed existing leaders. On ImageNet-A, it improved final accuracy by nearly 8% over the previous best method, EASE.
  • Specialized Domain Success: In the medical Kvasir dataset, the framework outperformed competitors by 19-21% in final accuracy, demonstrating its robustness in high-stakes, specialized domains.
  • Robustness: The method exhibited significantly lower standard deviation across runs, suggesting that the NTK-based constraints provide a more stable and reliable training process.

Conclusion

By providing a theoretical foundation for PEFT-CL through the lens of Neural Tangent Kernel theory, this work moves the field beyond empirical heuristics. NTK-CL demonstrates that by focusing on feature representation, task orthogonality, and mathematically-guided regularization, it is possible to create highly efficient and stable continual learning systems that scale across diverse and complex domains.

Summary updated

Abstract

Parameter-efficient fine-tuning for continual learning (PEFT-CL) has shown promise in adapting pre-trained models to sequential tasks while mitigating catastrophic forgetting problem. However, understanding the mechanisms that dictate continual performance in this paradigm remains elusive. To tackle this complexity, we undertake a rigorous analysis of PEFT-CL dynamics to derive relevant metrics for continual scenarios using Neural Tangent Kernel (NTK) theory. With the aid of NTK as a mathematical analysis tool, we recast the challenge of test-time forgetting into the quantifiable generalization gaps during training, identifying three key factors that influence these gaps and the performance of PEFT-CL: training sample size, task-level feature orthogonality, and regularization. To address these challenges, we introduce NTK-CL, a novel framework that eliminates task-specific parameter storage while adaptively generating task-relevant features. Aligning with theoretical guidance, NTK-CL triples the feature representation of each sample, theoretically and empirically reducing the magnitude of both task-interplay and task-specific generalization gaps. Grounded in NTK analysis, our approach imposes an adaptive exponential moving average mechanism and constraints on task-level feature orthogonality, maintaining intra-task NTK forms while attenuating inter-task NTK forms. Ultimately, by fine-tuning optimizable parameters with appropriate regularization, NTK-CL achieves state-of-the-art performance on established PEFT-CL benchmarks. This work provides a theoretical foundation for understanding and improving PEFT-CL models, offering insights into the interplay between feature representation, task orthogonality, and generalization, contributing to the development of more efficient continual learning systems.
BibTeX
@misc{liu2024parameter,
  author = {Jingren Liu and Zhong Ji and Yunlong Yu and Jiale Cao and Yanwei Pang and Jungong Han and Xuelong Li},
  title = {{Parameter-Efficient Fine-Tuning for Continual Learning: A Neural Tangent Kernel Perspective}},
  year = {2024},
  eprint = {2407.17120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.17120},
}
Figure