Continual Novelty Detection

Rahaf Aljundi, Daniel Olmeda Reino, Nikolay Chumerin, Richard E. Turner

Abstract

Novelty Detection methods identify samples that are not representative of a model's training set, thereby flagging misleading predictions and bringing greater flexibility and transparency at deployment time. However, research in this area has only considered Novelty Detection in the offline setting. Recently, there has been a growing realization in the computer vision community that applications demand a more flexible framework—Continual Learning—where new batches of data representing new domains, new classes, or new tasks become available at different points in time. In this setting, Novelty Detection becomes more important, interesting, and challenging. This work identifies the crucial link between the two problems and investigates the Novelty Detection problem under the Continual Learning setting. We formulate the Continual Novelty Detection problem and present a benchmark, where we compare several Novelty Detection methods under different Continual Learning settings. We show that Continual Learning affects the behavior of novelty detection algorithms, while novelty detection can pinpoint insights into the behavior of a continual learner. We further propose baselines and discuss possible research directions.

Introduction

In real-world applications, machine learning models are rarely static. They are expected to learn new tasks over time (Continual Learning, CL) while simultaneously flagging inputs they do not recognize (Novelty Detection, ND). Despite being two sides of the same "intelligence" coin, these fields have largely evolved in isolation. Standard ND assumes a static model trained once, whereas CL requires a model's knowledge base to expand constantly. This paper, presented at CoLLA 2022, formalizes Continual Novelty Detection, addressing the major blind spot: the impact of catastrophic forgetting on a model's ability to detect novelty.

Problem Formulation and Methods

A critical challenge in the continual setting is distinguishing between what a model has never seen and what it has simply forgotten. The researchers divide test samples into three distinct categories to evaluate performance:

  1. In (In-distribution): Samples from current or previous tasks that the model still predicts correctly.
  2. Out (Novel): Samples from tasks or classes the model has never seen.
  3. Forg (Forgotten): Samples from previous tasks that the model used to know but now predicts incorrectly due to catastrophic forgetting.
Conceptual framework of Continual Novelty Detection showing the relationship between In, Forgotten, and Out samples across learning stages.

The study evaluated several standard ND strategies, including Softmax/ODIN (confidence-based), Mahalanobis Distance (feature-based), and Generative Models like VAEs (reconstruction-based). To address the limitations of these methods, the authors proposed two new baselines (B1 and B2) using similarity-based views, treating the weights of the last classification layer as "prototypes."

Experimental Setup

The framework was tested using two primary sequences:

  • TinyImageNet Sequence: 200 classes split into 10 incremental stages of 20 classes each, testing the handling of growing similar categories.
  • Eight-Task Sequence: A diverse sequence of eight distinct datasets (e.g., Flowers, Birds, SVHN), testing the impact of domain shifts.

Key Results and Insights

The research reveals that novelty detection performance (measured by AUC) consistently drops as more tasks are added. A primary driver of this decay is catastrophic forgetting. In a "FineTune" setting without anti-forgetting measures, the AUC for previous stages dropped significantly compared to settings using methods like Learning without Forgetting (LwF).

AUC performance across stages for various novelty detection methods, highlighting the significant failure of VAEs in the continual setting.

A notable finding was the failure of deep generative models. While VAEs are often preferred for novelty detection in offline settings, they failed in the continual setting because the VAE itself suffered from catastrophic forgetting, losing the ability to reconstruct even the earliest tasks. This is evidenced by the near-zero AUC for early stages in Figure 6. Conversely, the simplest method—Softmax probability—often outperformed more complex generative or distance-based methods.

Discussion and Future Work

The authors identified a "Stability/Plasticity Dilemma" for ND: stable CL methods preserve ND performance on old tasks but reduce plasticity for new ones. Furthermore, as learning progresses, the gap in feature norms between "In" and "Out" samples shrinks, making detection harder over time.

Future research directions include developing "forgetting-aware" ND methods, using novelty scores to trigger re-learning phases for forgotten data, and deepening the coupling of ND and CL beyond simple "plug-and-play" combinations. By formalizing this intersection, this work provides a roadmap for building AI systems that can grow their knowledge without losing their sense of what they don't know.

Summary updated

BibTeX
@inproceedings{aljundi2022continual,
  author = {Rahaf Aljundi and Daniel Olmeda Reino and Nikolay Chumerin and Richard E. Turner},
  title = {{Continual Novelty Detection}},
  booktitle = {CoLLAs},
  year = {2022},
  url = {https://openreview.net/forum?id=p106BCuijf},
}
Figure