Learning in the Null Space: Small Singular Values for Continual Learning
Organizations: Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), UAE · Massachusetts Institute of Technology (MIT), USA
Abstract
Alleviating catastrophic forgetting while enabling further learning is a primary challenge in continual learning (CL). Orthogonal-based training methods have gained attention for their efficiency and strong theoretical properties, and many existing approaches enforce orthogonality through gradient projection. In this paper, we revisit orthogonality and exploit the fact that small singular values correspond to directions that are nearly orthogonal to the input space of previous tasks. Building on this principle, we introduce NESS (Null-space Estimated from Small Singular values), a CL method that applies orthogonality directly in the weight space rather than through gradient manipulation. Specifically, NESS constructs an approximate null space using the smallest singular values of each layer's input representation and parameterizes task-specific updates via a compact low-rank adaptation (LoRA-style) formulation constrained to this subspace. The subspace basis is fixed to preserve the null-space constraint, and only a single trainable matrix is learned for each task. This design ensures that the resulting updates remain approximately in the null space of previous inputs while enabling adaptation to new tasks. Our theoretical analysis and experiments on three benchmark datasets demonstrate competitive performance, low forgetting, and stable accuracy across tasks, highlighting the role of small singular values in continual learning. The code is available at https://github.com/pacman-ctm/NESS.
Figures & tables
| Method | CIFAR-100 (10 Tasks) | 5-datasets (5 Tasks) | MiniImageNet (20 Tasks) | |||
|---|---|---|---|---|---|---|
| ACC(%) | BWT(%) | ACC(%) | BWT(%) | ACC(%) | BWT(%) | |
| OWM ‡ [ 13 ] | 50.94 0.60 | -30 1 | – | – | – | – |
| EWC ‡ [ 11 ] | 68.88 0.80 | -2 1 | 88.64 0.26 | -4 1 | 52.01 2.53 | -12 3 |
| HAT ‡ [ 10 ] | 72.06 0.50 | 0 0 | 91.32 0.18 | -1 0 | 59.78 0.57 | -3 0 |
| A-GEM ‡ [ 7 ] | 63.98 1.22 | -15 2 | 84.04 0.33 | -12 1 | 57.24 0.72 | -12 1 |
| GPM [ 8 ] | 71.63 0.67 | -0.28 0.54 | 90.61 0.57 | -1.17 0.26 | 63.56 2.42 | -1.39 1.37 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | CIFAR-100 | MiniImageNet |
|---|---|---|
| Number of tasks ( ) | 10 | 20 |
| Number of classes per task | 10 | 5 |
| Training samples per task | 4750 | 2375 |
| Validation samples per task | 250 | 125 |
| Test samples per task | 1000 | 500 |
| Dataset | CIFAR10 | MNIST | SVHN | Fashion MNIST | notMNIST |
|---|---|---|---|---|---|
| Number of classes | 10 | 10 | 10 | 10 | 10 |
| Training samples | 47500 | 57000 | 69595 | 57000 | 16011 |
| Validation samples | 2500 | 3000 | 3662 | 3000 | 842 |
| Test samples | 10000 | 10000 | 26032 | 10000 | 1873 |
| Dataset | CIFAR-100 | 5-Datasets | MiniImageNet |
| Batch size ( ) | 64 | 64 | 64 |
| Learning rate decay factor | 1/2 | 1/3 | 1/2 |
| Patience | 6 | 5 | 6 |
| Number of epochs | 200 | 100 | 100 |
| Momentum (for SGD with momentum) | 0.9 | 0.9 | 0.9 |
| Setting | Seed 1 | Seed 2 | Seed 3 | Seed 4 | Seed 37 | |||||
| ACC | BWT | ACC | BWT | ACC | BWT | ACC | BWT | ACC | BWT | |
| GPM | 71.85 | -0.67 | 72.00 | -0.41 | 72.07 | -0.44 | 71.78 | 0.67 | 70.45 | -0.56 |
| SGP | 75.89 | -0.63 | 75.78 | -1.63 | 76.01 | -1.03 | 76.18 | -1.33 | 76.07 | -1.26 |
| TRGP | 75.10 | -0.01 | 75.62 | -0.09 | 74.92 | -0.06 | 75.49 | 0.32 | 74.94 | 0.15 |
| FS-DGPM | 73.95 | -3.30 | 74.16 | -3.13 | 74.14 | -2.87 | 74.09 | -2.56 | 74.16 | -3.28 |
| DFGP (lr=0.01, mixup=0.01) | 73.09 | -0.80 | 73.39 | -1.07 | 72.90 | -1.14 | 73.49 | -0.71 | 73.34 | -1.02 |
| Setting | Mean std | |
|---|---|---|
| ACC | BWT | |
| GPM | 71.63 0.67 | -0.28 0.54 |
| SGP | 75.99 0.16 | -1.18 0.37 |
| TRGP | 75.21 0.32 | 0.06 0.17 |
| FS-DGPM | 74.10 0.09 | -3.03 0.31 |
| DFGP (lr=0.01, mixup=0.01) | 73.24 0.24 | -0.95 0.18 |
| Setting | Seed 1 | Seed 2 | Seed 3 | Seed 4 | Seed 37 | |||||
| ACC | BWT | ACC | BWT | ACC | BWT | ACC | BWT | ACC | BWT | |
| GPM | 91.27 | -0.81 | 89.98 | -1.52 | 91.1 | -1.08 | 90.12 | -1.14 | 90.56 | -1.31 |
| SGP | 91.20 | -1.70 | 90.16 | -1.88 | 90.72 | -1.98 | 90.03 | -1.88 | 90.30 | -1.67 |
| TRGP | 93.59 | 0.03 | 92.24 | -0.12 | 93.32 | -0.08 | 92.12 | -0.18 | 92.61 | -0.12 |
| DFGP (lr=0.1, mixup=0.01) | 91.12 | -2.67 | 91.48 | -2.47 | 91.48 | -2.22 | 91.55 | -2.15 | 91.72 | -1.86 |
| DFGP (lr=0.1, mixup=0.05) | 89.84 | -4.54 | 90.70 | -3.28 | 89.65 | -4.30 | 90.34 | -3.72 | 90.57 | -3.50 |
| Setting | Mean std | |
|---|---|---|
| ACC | BWT | |
| GPM | 90.61 0.57 | -1.17 0.26 |
| SGP | 90.48 0.48 | -1.82 0.13 |
| TRGP | 92.78 0.65 | -0.09 0.08 |
| DFGP (lr=0.1, mixup=0.01) | 91.47 0.22 | -2.27 0.31 |
| DFGP (lr=0.1, mixup=0.05) | 90.22 0.46 | -3.87 0.53 |
| Setting | Seed 1 | Seed 2 | Seed 3 | Seed 4 | Seed 37 | |||||
| ACC | BWT | ACC | BWT | ACC | BWT | ACC | BWT | ACC | BWT | |
| GPM | 61.14 | -3.54 | 66.59 | -0.41 | 61.52 | -1.95 | 65.53 | -0.82 | 63.03 | -0.25 |
| SGP | 65.42 | -0.96 | 66.71 | -0.14 | 61.41 | -1.16 | 65.71 | 0.48 | 63.00 | -0.88 |
| TRGP | 61.70 | -1.34 | 65.06 | -0.38 | 59.59 | -1.99 | 63.74 | -0.50 | 63.61 | -1.96 |
| DFGP (lr=0.1, mixup=0.1) | 67.18 | -0.33 | 68.82 | -0.53 | 68.25 | -0.87 | 69.53 | -0.74 | 68.76 | 0.51 |
| DFGP (lr=0.1, mixup=0.05) | 68.55 | 0.58 | 70.49 | 1.56 | 66.25 | -1.79 | 68.63 | -1.20 | 68.56 | 0.28 |
| Setting | Mean std | |
|---|---|---|
| ACC | BWT | |
| GPM | 63.56 2.42 | -1.39 1.37 |
| SGP | 64.45 2.18 | -0.53 0.68 |
| TRGP | 62.74 2.13 | -1.23 0.77 |
| DFGP (lr=0.1, mixup=0.1) | 68.51 0.87 | -0.39 0.54 |
| DFGP (lr=0.1, mixup=0.05) | 68.50 1.50 | -0.11 1.36 |
Continual Learning
Continual Learning studies how models acquire knowledge from changing data streams while retaining or selectively revising what they learned before.
See all 294 papers