TL;DR
Continual learning models are notoriously sensitive to the order in which they encounter tasks, often leading to highly unpredictable final performance. This paper introduces Hierarchical Taylor Series-based Continual Learning (HTCL), a model-agnostic framework that groups tasks to optimize local orderings and consolidates them using a second-order Taylor expansion. HTCL drastically reduces task-order variance by up to 68% while simultaneously boosting average accuracy and memory retention across image, text, and graph datasets.
What Problem Does This Paper Address?
In continual learning (CL), an artificial neural network trains on a sequence of tasks over time. Ideally, the final model should perform reliably well on all tasks, regardless of the order in which they were introduced. However, existing CL algorithms suffer from severe task-order sensitivity. Shuffling the sequence of identical tasks can cause the final accuracy to swing wildly by over 20%, making deployments in real-world scenarios (like medical diagnosis models encountering new diseases) unstable and risky.
Finding the absolute best sequence is an NP-hard problem because it requires an exhaustive search over all $n!$ permutations—amounting to over 3.6 million evaluations for just 10 tasks. This paper addresses this fundamental tension: task ordering profoundly impacts performance, yet optimizing it globally is computationally intractable.
Methods
The authors propose HTCL, a framework that decouples fast local adaptation (plasticity) from conservative global consolidation (stability) using three core components:
- Tractable Task Grouping: Instead of optimizing all tasks at once, HTCL partitions the task sequence into small groups of size $k$ (typically $k=2$). It exhaustively evaluates all $k!$ permutations within that tiny group to find the local sequence that yields the best adaptation. This reduces the search complexity from a crushing $O(t!)$ to a highly manageable $O(m \cdot k!)$.
- Second-Order Consolidation: To integrate these optimized local updates into the global model without wiping out past knowledge, HTCL uses a Hessian-regularized Taylor series expansion of the loss function. This mathematical formulation ensures the global model moves toward the new local model primarily along parameter directions that do not hurt performance on previous tasks (low-curvature regions).
- Multi-Level Hierarchy: HTCL extends this into an $L$-level hierarchy ($w_1, w_2, \dots, w_L$) where lower levels adapt quickly to recent tasks, and higher levels act as slow-moving buffers that accumulate stable, long-term knowledge.
Importantly, HTCL is model-agnostic—it acts as an optimization layer wrapped around any existing CL method, such as Experience Replay (ER) or Dark Experience Replay (DER).
Datasets
The framework was evaluated across four distinct domains to demonstrate its generality:
- SplitMNIST: Image classification (10 digits divided into 5 tasks).
- Split CIFAR-100: Complex image classification (100 classes divided into 10 tasks).
- Split Cora: Graph node classification.
- 20 Newsgroups: Text classification (20 categories divided into 5 tasks).
All experiments were conducted under the domain-incremental learning setting. No new benchmarks were introduced.
Key Insights and Ideas
- Divide and Conquer for Permutations: The core "aha moment" is realizing that while global sequence optimization is impossible, local sequence optimization within tiny windows is trivial, yet it provides a massive mathematical guarantee to improve expected performance over random orderings.
- Curvature as a Safe Path: By approximating the loss landscape's curvature (using scalable diagonal or low-rank Hessian approximations), the model identifies "free" directions in parameter space where it can learn new tasks without overwriting old ones.
- Hierarchical Buffering: Multi-timescale learning acts like a shock absorber. Instead of a single model trying to balance old and new instantly, a multi-layered hierarchy smooths out the disruptive impacts of sudden temporal distribution shifts.
Key Results
- Drastic Variance Reduction: HTCL narrows the final accuracy distribution significantly. On SplitMNIST, it reduced the standard deviation across task permutations by 33% to 68%.
- Substantial Accuracy Gains: When paired with Strong Experience Replay (SER), HTCL achieved a 7.1 percentage point gain in mean accuracy on SplitMNIST (95.6% vs 88.5%).
- Memory Retention: Forgetting dropped drastically from 32.0% to just 9.8% on SplitMNIST when adding HTCL to the SER baseline.
- Low-Memory Resilience: HTCL shines particularly well in low-memory regimes where the experience replay buffer size is highly constrained, compensating for a lack of data rehearsal with its curvature-aware consolidation.
Limitations and Future Work
- Computational Overhead: Even with diagonal Hessian approximations, evaluating $k!$ permutations locally adds a training time penalty (e.g., increasing SER training from 28.3 seconds to 121.6 seconds per permutation). Scaling to larger group sizes ($k \ge 5$) remains computationally prohibitive.
- Task Boundaries: The method relies on knowing when a task changes (the domain-incremental setting) to perform its grouping and consolidation steps. It is not currently designed for fully continuous, blurry-boundary continual learning.
- Future Directions: The authors suggest extending the framework to handle task-free or online continual learning settings where boundaries are completely unknown.
Summary updated