Hessian Aware Low-Rank Perturbation for Order-Robust Continual Learning

Jiaqi Li, Yuanhao Lai, Rui Wang, Changjian Shui, Sabyasachi Sahoo, Charles X. Ling, Shichun Yang, Boyu Wang, Christian Gagné, Fan Zhou

TL;DR

The Hessian Aware Low-Rank Perturbation (HALRP) algorithm tackles the "catastrophic forgetting" problem in continual learning by modeling task-specific updates as low-rank perturbations of a base model. By leveraging Hessian information, HALRP automatically determines the optimal rank for each layer, achieving state-of-the-art accuracy and task-order robustness with minimal parameter growth.

What Problem Does This Paper Address?

Continual Learning (CL) aims to enable neural networks to learn new tasks sequentially without forgetting previous ones. This is notoriously difficult due to Catastrophic Forgetting (CF), where updates for a new task overwrite the weights essential for past tasks.

Researchers typically face a stability-plasticity dilemma: how do you keep the model stable enough to remember the past while remaining plastic enough to learn the new? Existing solutions like weight regularization, memory replay, or model expansion often suffer from poor scalability, high memory overhead, or extreme sensitivity to the order in which tasks are presented. HALRP seeks a middle ground: a method that is memory-efficient, theoretically grounded, and robust to task ordering.

Methods

The core idea of HALRP is to decompose the weights of a new task ($W_t$) into a combination of shared base weights ($W_{base}$) and task-specific parameters.

  1. Weight Transformation: For a new task, the weights are represented as: $$W_t = R_t W_{base} S_t + B_t$$ Here, $R_t$ and $S_t$ are diagonal matrices that perform row-wise and column-wise scaling, while $B_t$ is a task-adaptive bias term.

    Fig. 1: Low rank decomposition between T1 and T0
  2. Low-Rank Approximation: To keep the parameter count low, $B_t$ is constrained to be a low-rank matrix. It is decomposed using Singular Value Decomposition (SVD) into $U_t^{(k)} \Sigma_t^{(k)} (V_t^{(k)})^\top$, where $k$ is the rank.

  3. Hessian-Aware Rank Selection: This is the paper's primary innovation. Instead of manually setting a rank for every layer, the authors use Hessian information (approximated by the empirical Fisher Information Matrix) to measure how sensitive the loss is to perturbations in each layer. They solve a global optimization problem to assign higher ranks to layers that contribute most to performance, ensuring the best "bang for the buck" within a parameter budget.
  4. Training Pipeline:
    • Warm-up: Train the task unconstrained for a few epochs to get a "free" weight estimate.
  5. Initialization: Use Least Squares Error (LSE) and SVD to initialize the $R, S, U, \Sigma, V$ parameters.
  6. Fine-tuning: Train the task-specific parameters with $L_1$ and $L_2$ regularization to encourage sparsity and prevent overfitting.
  7. Pruning: Remove the least important parameters to further control model growth.

Datasets

The authors evaluated HALRP on a diverse set of benchmarks:

  • CIFAR100-Split & CIFAR100-SuperClass: Standard image classification tasks split into 10 or 20 groups.
  • Permuted MNIST (P-MNIST): 10 tasks created by random pixel permutations.
  • Five-dataset: A sequence of five distinct datasets (CIFAR10, MNIST, notMNIST, FashionMNIST, SVHN).
  • Omniglot Rotation: A large-scale benchmark with 100 tasks of 12-way classification.
  • TinyImageNet: A variant of ImageNet with 200 classes, tested in 20-split and 40-split scenarios.

Key Insights and Ideas

  • Hessian as a Sensitivity Metric: The paper provides a theoretical proof (Theorem 1) showing that the change in loss due to low-rank approximation is bounded by the product of the Hessian norm and the approximation error. This allows the model to "self-diagnose" which layers need more capacity.
  • Global vs. Local Optimization: By determining ranks globally across the whole network, HALRP avoids the sub-optimal performance of methods that treat every layer identically.
  • Order Robustness: Because the method anchors updates to a stable $W_{base}$ and uses flexible low-rank perturbations, it is significantly less affected by the sequence of tasks compared to expansion-based methods like APD.

Key Results

HALRP consistently outperformed state-of-the-art baselines (like GPM, APD, and WSN) across all benchmarks.

  • Accuracy: On CIFAR100-Split, HALRP achieved 67.92% accuracy, outperforming the next best method (WSN) by over 1%. The margin was even larger in data-scarce scenarios (5% training data).
  • Task-Order Robustness: HALRP showed the lowest Order-normalized Performance Disparity (OPD), meaning its performance remains stable regardless of task sequence.

    Accuracy results on CIFAR100 variants
  • Efficiency: The model growth is highly controlled. On CIFAR100-SuperClass, HALRP's parameter increase stayed below 28% after 20 tasks, whereas competing methods like APD grew by 40% in just the first few tasks.

  • Memory: Empirical tests showed HALRP requires significantly less GPU memory during training (e.g., ~3GB for TinyImageNet vs. >40GB for APD).
Performance on P-MNIST, Five-dataset, and Omniglot

Limitations and Future Work

  • Base Task Dependency: The method relies on a well-trained $W_{base}$ from the first task. If the first task is not representative of the domain, the transferability might be limited.
  • SVD Overhead: While memory-efficient, performing SVD during the initialization phase adds some computational overhead, though the authors note this is offset by faster convergence during fine-tuning.
  • Future Directions: The authors suggest exploring how to adapt the base weights $W_{base}$ over time without forgetting, which could further improve long-term plasticity.

Summary updated

Abstract

Continual learning aims to learn a series of tasks sequentially without forgetting the knowledge acquired from the previous ones. In this work, we propose the Hessian Aware Low-Rank Perturbation algorithm for continual learning. By modeling the parameter transitions along the sequential tasks with the weight matrix transformation, we propose to apply the low-rank approximation on the task-adaptive parameters in each layer of the neural networks. Specifically, we theoretically demonstrate the quantitative relationship between the Hessian and the proposed low-rank approximation. The approximation ranks are then globally determined according to the marginal increment of the empirical loss estimated by the layer-specific gradient and low-rank approximation error. Furthermore, we control the model capacity by pruning less important parameters to diminish the parameter growth. We conduct extensive experiments on various benchmarks, including a dataset with large-scale tasks, and compare our method against some recent state-of-the-art methods to demonstrate the effectiveness and scalability of our proposed method. Empirical results show that our method performs better on different benchmarks, especially in achieving task order robustness and handling the forgetting issue. The source code is at https://github.com/lijiaqi/HALRP.
BibTeX
@article{li2024hessian,
  author = {Jiaqi Li and Yuanhao Lai and Rui Wang and Changjian Shui and Sabyasachi Sahoo and Charles X. Ling and Shichun Yang and Boyu Wang and Christian Gagné and Fan Zhou},
  title = {{Hessian Aware Low-Rank Perturbation for Order-Robust Continual Learning}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
  doi = {10.1109/tkde.2024.3419449},
}
Figure