arXiv:2610.25901cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25901

Out-of-Distribution Detection in Continual Learning

Nimeshika Udayangani, Flora D. Salim, Christopher Leckie, Sarah Erfani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Out-of-distribution detection in continual learning (OOD-CL) is highly challenging, as it requires (i) learning a sequence of tasks without catastrophic forgetting, and (ii) identifying unknown samples (OOD) without access to known (in-distribution (ID)) data from past tasks, where standard confidence-based OOD scores tend to degrade. Existing methods largely rely on a rehearsal buffer of past data or assume closed-world settings, limiting their scalability and reliability in real-world scenarios. In this paper, we propose a novel OOD detection framework for rehearsal-free continual learning, inspired by Kolmogorov–Arnold Networks (KAN), which mitigate catastrophic forgetting via their inherent local neuroplasticity. To better leverage KAN in OOD-CL, we introduce a task-adaptive classifier architecture, TA-KAN, which mitigates recency bias and enhances ID–OOD separability through task-specific control of activation locality. Furthermore, we propose a geometry-guided OOD score that complements TA-KAN classifier confidence without relying on past ID data. Our method significantly improves OOD detection while maintaining strong ID classification performance, achieving state-of-the-art results in OOD-CL.

1 Introduction

Continual learning (CL) [2, 7] aims to enable AI models to mimic human-level cognitive abilities by allowing them to learn continuously from evolving data streams. Despite extensive research in this area [13, 37, 43, 44, 51, 61], most existing methods operate under the closed-world assumption, where test data are drawn from the observed training distribution (in-distribution, ID). However, in real-world deployments, models inevitably encounter unknown inputs (out-of-distribution, OOD), often leading to overconfident and potentially misleading predictions [16, 30]. This limitation underscores the importance of robust OOD detection in continual learning systems (OOD-CL) for trustworthy deployment in open-world scenarios. In particular, OOD-CL is highly challenging, as it requires (i) learning a sequence of tasks without catastrophic forgetting—i.e., a significant deterioration in performance on previously learned tasks—and (ii) identifying OOD samples without access to known (ID) data of past tasks. This necessitates the model to maintain reliable decision boundaries between inter-task classes as new classes are continuously introduced, while also preserving a clear separation between OOD samples and previously learned classes, which becomes particularly challenging for older ID classes.

To address the first challenge, widely adopted rehearsal-based CL [37, 44, 63] stores a subset of past training data in a memory buffer to mitigate catastrophic forgetting. However, such approaches have limited practical applicability due to privacy and memory constraints [60, 61]. In contrast, recent advancements in pre-trained models and large language models (LLMs) [52] have enabled prompt-based methods, which have emerged as state-of-the-art [13, 48, 51, 60, 61] and provide a rehearsal-free alternative for CL. Instead of directly modifying encoder weights on newly arriving data, these methods introduce a small set of learnable parameters (prompts) to instruct the model on sequential tasks, thereby reducing forgetting and encoding task-specific knowledge in a more succinct way. However, they are largely developed and evaluated in closed-world settings. Meanwhile, addressing OOD detection is non-trivial, as naively adopting existing methods that assume a static

Preprint.

in-distribution is challenging and insufficient in the CL setting. Standard OOD detection methods, which are largely based on the confidence scoring of the classifier (e.g., MSP [16], entropy [46], energy [33], MaxLogit [19]), can degrade in the CL setting, as they may assign low confidence to ID samples due to the objective of improving generalizability for new data [15]. Moreover, the absence of past data makes a large class of OOD detection [17, 29, 39, 45, 50, 58, 63] non-scalable, as they rely on access to full training in-distribution or require modifications to the training procedure. Nonetheless, the few works that attempt to address OOD-CL either naively couple standard OOD methods with CL models [23, 25, 30] or still assume access to past data [23, 24, 34]. In contrast, in this paper, we propose a novel method for OOD detection in rehearsal-free continual learning.

Our study is motivated by the recent success of Kolmogorov–Arnold Networks (KAN) [35] in mitigating catastrophic forgetting, owing to their distinctive architecture. Unlike traditional multi-layer perceptrons (MLP), KAN incorporates trainable activation functions instead of shared weights with fixed activations, thereby exhibiting the property of local neuroplasticity [35] (see Fig. 4 in the Appendix for an illustration). This suggests that learning a new task primarily affects only the regions of the network relevant to the current input, while leaving distant regions largely unaffected. Hence, KANs are naturally effective in mitigating catastrophic forgetting [35] and consistently outperform their linear counterparts in the closed-world [22]. However, upon closer examination of KAN's behavior in the open-world setting, we observe that OOD detection is heavily biased toward new classes (Fig. 1). In particular, KAN struggles to distinguish OOD samples from older ID classes, causing a large fraction of them to be misclassified as OOD and resulting in a high false positive rate. This suggests that the increased ID performance comes at the expense of a bias toward new tasks.

Figure

Figure 1: FPR of a trained CIL model on ImageNet-R (5-task), evaluated across task-wise ID settings. KAN-Head exhibits significantly higher FPR when older tasks are treated as ID compared to recently learned tasks, revealing a bias toward new-task classes. The proposed TA-KAN mitigates this bias, thereby reducing the average FPR.

To address this, we introduce a novel task-adaptive architecture (TA-KAN) for RBF-KAN-based classifiers [22], tailored for OOD-CL. RBF-KANs [31] replace the B-spline basis functions in original KANs [35] with radial basis functions (RBFs) [41] to better address the curse of dimensionality, and improve locality [5, 22]. Specifically, TA-KAN introduces a task-adaptive width selection for RBF bases, where each task is associated with a distinct width that defines its activation range of interest. Locality is then adaptively controlled based on task recency, improving separability between ID and OOD samples in more ambiguous regions, thereby improving overall OOD-CL performance. Importantly, the proposed adaptive RBF classifier retains the same parameterization, preserving the parsimony required for CL [59].

Furthermore, to address the degradation of confidence-based scoring in the proposed classifier, we introduce complementary geometric guidance for its classifier derived OOD scores, thereby proposing a novel OOD score tailored for CL. Since the KAN-based CL model is optimized for improving generalizability to mitigate catastrophic forgetting, this can also induce lower confidence for ID data compared to the static setting [15], leading to increased overlap between ID and OOD scores, reducing their separability. Specifically, traditional geometry-based OOD methods (e.g., KNN [50], NNGuide [40], LID [53]) require access to the full training distribution. In contrast, our proposed guidance is rehearsal-free and operates in the prompt space, which encodes higher-level task semantics compared to the lower-level embedding space used by conventional methods. Therefore, it jointly considers both class-level and task-level manifolds, thereby introducing a two-level manifold constraint for OOD-CL. The resulting OOD score further enhances the performance of the TA-KAN classifier, achieving SOTA results by a large margin.

We summarize our key contributions as follows. We propose (i) a novel OOD detection framework for rehearsal-free CL, addressing practical constraints such as memory, privacy, and reliability; (ii) a task-adaptive KAN classifier that better leverages the neuroplasticity of KAN in the open-world by mitigating recency bias and enhancing ID–OOD separability, while preserving parsimony; and (iii) a geometry-guided OOD scoring function that complements classifier confidence, thereby formulating OOD-CL as a two-level manifold constraint, without reliance on full in-distribution.

References (55)