Manuscript Offprint

arXiv:2610.33126

Inference-Time Prior Adaptation for Imbalanced Data Streams under Concept Drift

Tobias Callies, Eirini Ntoutsi, Arthur Zimek

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

Tobias Callies 1^{1}[0009-0004-5852-4103]✉, Eirini Ntoutsi 1^{1}[0000-0001-5729-1003], and Arthur Zimek 2^{2}[0000-0001-7713-4208]

1^{1} University of the Bundeswehr Munich, Munich, Germany {tobias.callies,eirini.ntoutsi}@unibw.de

2^{2} University of Southern Denmark, Odense, Denmark zimek@imada.sdu.dk

Abstract. Data stream classification under concept drift and class imbalance requires models to adapt continuously while maintaining strong minority-class performance. Many existing approaches rely on active memory management, including instance removal, memory restructuring, resampling, and synthetic data generation. We present PAI-KNN, a k-nearest neighbor classifier that adapts via inference-time prior adjustment rather than memory modification. PAI-KNN maintains a simple sliding-window buffer and dynamically adjusts its decision rule using class prior estimates derived from recent observations. Evaluated on a multitude of synthetic data streams covering various imbalance and drift scenarios, PAI-KNN achieves competitive performance with state-of-the-art methods, performing particularly well under scenarios involving dynamic class imbalance and concept drift. These findings highlight the potential of inference-time adaptation in challenging non-stationary environments and suggest that adaptation in memory-based stream classifiers need not rely exclusively on memory modification.

Keywords: data stream classification · class imbalance · concept drift · inference-time adaptation · prior adaptation · k-nearest neighbors

1 Introduction

Data stream classification [18] often requires models to operate under two simultaneous challenges: concept drift and class imbalance. As data distributions evolve over time, classifiers must continuously adapt to changing data while maintaining reliable performance on underrepresented classes. This problem arises in numerous real-world applications, including fraud detection, network monitoring, and predictive maintenance. Existing approaches address concept drift and class imbalance in different ways. Many stream classifiers are model-based, maintaining either a single evolving model [10], [20] or a pool of models that are continuously updated, reweighted, or replaced over time [5], [13], [8], [21], often combined with drift detectors like ADWIN [4]. K-nearest neighbor (KNN) classifiers, in contrast, are instance-based or lazy learners that maintain explicit memories of previously observed instances and perform prediction directly from stored observations. Several KNN-based stream classifiers have been proposed

T. Callies et al.

that address concept drift and class imbalance through increasingly sophisticated active memory management mechanisms [14, 1]. Adaptation is typically achieved through instance removal, restructuring, compression, or balancing operations. While effective, active buffer-management strategies increase algorithmic complexity and may prematurely alter or discard useful information. In this paper, we investigate whether adaptation in KNN-based stream classifiers must occur through memory modification. We propose PAI-KNN, a k-nearest neighbor classifier that maintains a simple sliding-window memory and adapts through inference-time prior adjustment. By shifting adaptation from memory management to inference, PAI-KNN responds to changing class distributions without the need for expensive memory management mechanisms. We evaluate PAI-KNN on a benchmark of synthetic data streams [2] covering diverse imbalance and drift scenarios. Despite its simplicity, PAI-KNN achieves competitive performance with state-of-the-art methods and performs particularly well under scenarios involving high class imbalance and concept drift. These findings suggest that inference-time prior adaptation can provide a simple and effective alternative to complex memory management by avoiding structural assumptions. The rest of the paper is organized as follows: Section 2 introduces the preliminaries and basic concepts. Related work is discussed in Section 3. In Section 4, we present our proposed method PAI-KNN. The experimental evaluation is detailed in Section 5. Conclusions and outlook are provided in Section 6.

References (21)