arXiv(opens in a new tab)Computer ScienceDec 2022

Manuscript Offprint

arXiv:2212.14284

Resolving Task Confusion in Dynamic Expansion Architectures for Class Incremental Learning

Bin Huang, Zhineng Chen, Peng Zhou, Jiayin Chen, Zuxuan Wu

Abstract

The dynamic expansion architecture is becoming popular in class incremental learning, mainly due to its advantages in alleviating catastrophic forgetting. However, task confusion is not well assessed within this framework, e.g., the discrepancy between classes of different tasks is not well learned (i.e., inter-task confusion, ITC), and certain priority is still given to the latest class batch (i.e., old-new confusion, ONC). We empirically validate the side effects of the two types of confusion. Meanwhile, a novel solution called Task Correlated Incremental Learning (TCIL) is proposed to encourage discriminative and fair feature utilization across tasks. TCIL performs a multi-level knowledge distillation to propagate knowledge learned from old tasks to the new one. It establishes information flow paths at both feature and logit levels, enabling the learning to be aware of old classes. Besides, attention mechanism and classifier re-scoring are applied to generate more fair classification scores. We conduct extensive experiments on CIFAR100 and ImageNet100 datasets. The results demonstrate that TCIL consistently achieves state-of-the-art accuracy. It mitigates both ITC and ONC, while showing advantages in battle with catastrophic forgetting even no rehearsal memory is reserved.

1Shanghai Key Lab of Intelligent Information Processing, School of Computer Science, Fudan University

2Shanghai Collaborative Innovation Center on Intelligent Visual Computing

3University of Maryland, College Park, MD, USA

{bchuang21, jiayinchen21}@m.fudan.edu.cn, {zhinchen, zxwu}@fudan.edu.cn, pengzhou@terpmail.umd.edu

Introduction

Class incremental learning aims to develop machine learning algorithms that are capable of continuously learning new classes, while retaining the knowledge learned from old classes (Thrun 1995; Rebuffi et al. 2017). It receives increasing attention as the learning is in line with the underlying assumption in many real-world applications, e.g., the classes to be processed dynamically evolve through time (Pierre 2018), previous data are unavailable for privacy-preserving reasons (Li et al. 2017; Lange et al. 2020). Recently, deep neural networks have been applied to this field and have achieved impressive performance. However, these studies commonly suffer from the problem of catastrophic forgetting, i.e., the optimization of model parameters caused by new task learning, meanwhile, often leads to decreased performance on previously learned old classes (Goodfellow et al. 2013; Kirkpatrick et al. 2017; Lu et al. 2022).

Many studies are proposed to fight with catastrophic forgetting. They include: constraining weight changes (Kirkpatrick et al. 2017; Zenke, Poole, and Ganguli 2017; Dhar et al. 2019; Aljundi et al. 2018; Li and Hoiem 2017), retaining an extra memory that stores a certain amount of previous data (Parisi et al. 2019; De Lange et al. 2019; Castro et al. 2018; Shin et al. 2017; Aljundi et al. 2018), synthesizing training data (Yu et al. 2020; Xiang et al. 2019; Zhu et al. 2021; Zhu et al. 2022), etc. Recently, the dynamic expansion architecture (DEA) is emerging as a promising paradigm (Fernando et al. 2017; Golkar, Kagan, and Cho 2019; Hung et al. 2019; Yan, Xie, and He 2021; Li et al. 2021; Douillard et al. 2022). It dynamically expands the network as the number of tasks increases, where each task is associated with a dedicated sub-network and its weights are frozen when learning a new task. It has the advantage of keeping the knowledge of old tasks well. Currently, leaderboards of public benchmarks are dominated by DEA-based models.

Figure

(a) inter-task confusion (ITC)

Figure

(b) old-new confusion (ONC)

Figure

(c) error statistics

Figure 1: Task confusion illustration. (a) ITC: class discrepancy within every task is well learned, but it is not taught to distinguish classes from different tasks. (b) ONC: old classes have similar weight distribution while larger weights are given to new classes. (c) TCIL significantly reduces ONC errors on CIFAR100. It also suppresses the cases that ONC transforming to ITC to some extent (CR V.S. Ours), leading to remarkable overall confusion reduction.

However, DEAs are unable to process two kinds of confusion effectively due to their dynamically expandable nature. The first is inter-task confusion (ITC). An illustrative example is shown in Fig.1(a). Both tasks A and B are trained to distinguish their own classes. However, the discrepancy between classes from different tasks is not taught when the two tasks are combined, thus causing confusion. The second is old-new confusion (ONC). It is explained as the classifier would give priority to new classes rather than old classes. Since tasks share the same classification layer whose weights are lastly optimized by new classes, the weights are oftentimes dominated by new classes, as shown in Fig.1(b). We argue that both ITC and ONC caused by the correlation between tasks are barely investigated in DEAs.

Note that the correlation between tasks in class incremental learning has been explored in the literature (Masana et al. 2020; Wu et al. 2019; Hou et al. 2019), for example, in the form of knowledge distillation (Li and Hoiem 2017; Rebuffi et al. 2017; Douillard et al. 2020; Min et al. 2020). However, knowledge distillation does not always lead to improvements (Masana et al. 2020; Belouadah and Popescu 2019), and it is not trivial to establish due to the characteristic of DEA, which makes the correlation between tasks in DEAs less explored. Moreover, while ONC has been widely recognized as the task-tendency bias (Belouadah and Popescu 2019; Wu et al. 2019; Zhao et al. 2020), existing DEAs address it mainly by finetuning the classifier on a balanced training subset, which brings additional training burden and is highly dependent on the memory budget. Simple but effective solutions such as weight aligning (Zhao et al. 2020) have not yet been carefully investigated in DEAs. Besides, a majority of existing dynamic expansion methods are with certain prerequisites, e.g., requiring a task identifier at testing (Fernando et al. 2017; Hung et al. 2019; Wen, Tran, and Ba 2020), sensitive to rehearsal memory (Yan, Xie, and He 2021), or needing complex hyperparameter tuning (Yan, Xie, and He 2021).

Motivated by the aforementioned issues, we propose a novel framework termed as Task Correlated Incremental Learning (TCIL) that aims to mitigate catastrophic forgetting from the angle of resolving task confusion in the DEA framework. As shown in Fig.1(c), ONC is still the major error type in CIFAR100. To this end, a classifier re-scoring (CR) strategy is applied to rectify the heavily biased classification layer. Similar to (Zhao et al. 2020), it calculates the weight magnitude statistics according to old and new classes. Moreover, in contrast to previous DEAs that directly concatenate old and new features together, we design a feature fusion module to attend to the most relevant features by using the attention mechanism. With these modifications, ONC errors are largely reduced but it also causes an increase in ITC errors. Therefore, a novel multi-level knowledge distillation is developed to further deal with ITC, where knowledge propagation mechanisms are established at both feature and logit levels. Specifically, it builds information propagation paths from every old feature extractor to the new extractor, generating distillations from previous classifiers to the current classifier. It forms a complete supervision from old knowledge to the new classifier. As seen in Fig.1(c), it reduces the errors in both ITC and ONC (CR V.S. Ours). By combining all the upgrades, TCIL is capable of better handling task confusion and thus catastrophic forgetting, producing a more discriminative and fair classification. To validate the effectiveness of TCIL, we conduct extensive experiments on CIFAR100 and ImageNet100 datasets with variants such as different task splits, with or without rehearsal memory, etc. The results demonstrate that TCIL consistently achieves state-of-the-art accuracy. While TCIL-Lite, the lite version TCIL, is smaller but still effective. Moreover, compared with existing methods, TCIL is more robust as the increase of incremental steps and is less sensitive to the availability of rehearsal memory, e.g., showing greater accuracy gaps in case no rehearsal memory is kept.

Contributions of this paper can be summarized as follows. We analyze the classification error and task confusion within the DEA framework. It mainly consists of ITC and ONC. To this end, we propose TCIL, a novel scheme to promote a discriminative and fair feature utilization across tasks in class incremental Learning. Specifically, we integrate a classifier re-scoring strategy along with a feature fusion module to alleviate ONC. Meanwhile, a multi-level knowledge distillation is developed to further suppress ITC. As a result, TCIL greatly mitigates the two types of task confusion, it consistently performs top-tier and shows advantages in solving catastrophic forgetting even in non-rehearsal setting.

Figure

Figure 2: An illustrative framework of the proposed TCIL. It uses a dedicated feature extraction sub-network for each specific task. Lf\mathcal{L}_{\mathrm{f}} and Ll\mathcal{L}_{\mathrm{l}} are knowledge distillation loss at feature and logit levels, respectively. Lclf\mathcal{L}_{\mathrm{clf}} is the classification loss, and Ldiv\mathcal{L}_{\mathrm{div}} is the divergence loss for guiding the training of the feature extractors.

References (47)