Batch Model Consolidation: A Multi-Task Model Consolidation Framework
Iordanis Fostiropoulos, Jiaye Zhu, Laurent Itti
Speaker: Jiaye Zhu, M.S. student in CS(AI) (jiayezhu@usc.edu)
Boehm CSSE Annual Research Review, June 5th 2023
Overview
Continual Learning (CL): train a NN on a sequence of tasks without significant performance degradation to previous tasks.
Constraint: no access to the original datasets in previous tasks.
Solutions:
Non-convex Optimization Surface
Overview
Our contributions:
Previous approaches in Continual Learning suffer significant performance degradation and unacceptable cost when faced with a large number of diverse tasks [1, 2].
BMC - The Intuition
Base Model : the NN expected to perform on all tasks in the CL task sequence.
Expert Model: a NN specializing on one task.
BMC: consolidate the knowledge (parameters) from Expert Models into the Base Model.
BMC - The Intuition
BMC - Regularization Phase
A single incremental step of BMC
Interim. Feature Knowledge Distillation
Applied between experts and base model
Stability Loss - Regularizing experts
Used on the expert device and
between the base model
After experts training: sample consolidation artifacts as Buffers
BMC - Consolidation Phase
A single incremental step of BMC
Interim. Feature Knowledge Distillation
Applied between experts and base model
Batched Distillation Loss
Apply distillation between multiple experts and a single base model on data
Task Loss and Batched Distillation Loss is applied on
Distributed CL Training Framework
Experiments - Stream Benchmark
Stream dataset: 71 image classification datasets concatenated, with 6,770,722 training images, 743,977 validation images, and 2866 classes.
BMC achieved 70.4% final mean accuracy compared to the second best Experience Replay (ER) 41.4%, a 70% improvement.
Experiments - Cost Analysis
Total Cost (TC)
= Communication Cost (buffer size)
The Pareto front of our method shows a trade-off between the Total Cost of a memory and a buffer with Mean Accuracy.
Experiments - Cost Analysis
Cost Accuracy (blue)
The ratio between final mean accuracy and Total Cost, representing the performance gained per unit cost. BMC has the highest Cost Accuracy 6.27.
Relative Time Performance (orange)
The relative time of optimizing w.r.t. training sequentially without CL (SGD/fine-tuning). BMC has the highest time efficiency of 78% and is the only one faster than fine-tuning (100%, red dotted line).
Conclusions
References
[1] Raia Hadsell, Dushyant Rao, Andrei A. Rusu, and Razvan Pascanu. Embracing change: Continual learning in deep neural networks. Trends in Cognitive Sciences, 24(12):1028–1040, 2020.
[2] Matthias De Lange, Rahaf Aljundi, Marc Masana, Sarah Parisot, Xu Jia, Ales Leonardis, Gregory G. Slabaugh, and Tinne Tuytelaars. Continual learning: A comparative study on how to defy forgetting in classification tasks. CoRR, abs/1909.08383, 2019.
[3] Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and SIMONE CALDERARA. Dark experience for general continual learning: a strong, simple baseline. Advances in Neural Information Processing Systems, volume 33, pages 15920–15930. Curran Associates, Inc., 2020.
Thank you for listening