Abstract
Open-world Continual Learning (OWCL) is essential for AI agents operating in dynamic environments, requiring both the detection of unseen classes and the incremental learning of new categories. However, existing methods often struggle when labeled data is scarce. This paper introduces OFCL (Open-world Few-shot Continual Learning), a framework that utilizes Instance-wise Token Augmentation (ITA), Margin-based Open Boundary (MOB), and an Adaptive Knowledge Space (AKS) to overcome these challenges. Experimental results on CUB200 and MiniImageNet demonstrate that OFCL significantly improves unknown detection and classification accuracy while maintaining a low memory footprint.
Introduction
Most machine learning models operate under a "closed-world" assumption, where they are only expected to classify samples from categories seen during training. In contrast, real-world applications—such as autonomous robotics or evolving social media filters—require models to operate in an "open world." This necessitates two primary capabilities: Open Detection, the ability to flag samples from unseen classes as "unknown," and Continual Learning, the ability to incorporate these new classes over time without forgetting previously learned ones.
A major hurdle in this field is the scarcity of labeled data. In many practical scenarios, only a few examples (few-shot) are available for new tasks. This scarcity often leads to severe overfitting or the "hubness" problem, where high-dimensional data points act as neighbors to many unrelated samples, causing the model to misidentify unknown classes as known.
Proposed Methodology: The OFCL Framework
To address these issues, the authors propose the OFCL framework, which decouples the learning process into three integrated modules.
1. Instance-wise Token Augmentation (ITA)
To combat data scarcity, ITA enriches sample representations by matching them with learnable "tokens" from a unified bank. This mechanism provides the model with a library of contextual clues, allowing it to build robust class representations even from as few as five examples. Furthermore, this token-based approach facilitates knowledge transfer across different tasks.
2. Margin-based Open Boundary (MOB)
Standard Euclidean distance metrics often struggle with high-dimensional "hubs." MOB addresses this by mapping embeddings onto a hypersphere. It learns a specific radius and a "margin" for each class. If a test sample falls outside all defined hyperspheres, it is flagged as "unknown." This approach creates tighter, more reliable decision boundaries compared to traditional softmax-based methods.
3. Adaptive Knowledge Space (AKS)
AKS serves as the system's long-term memory. Rather than simply discarding unknown samples, AKS clusters them and assigns pseudo-labels. When actual labels for these "unknowns" are eventually provided in a subsequent task, AKS enables a smooth transition from "unknown" to "known," effectively updating the model's internal map of the world.
Experimental Evaluation
The framework was evaluated on two primary benchmarks adapted for the few-shot, open-world setting:
- CUB200: 100 classes for the base task, with 100 classes partitioned into 10 incremental tasks (10-way 5-shot).
- MiniImageNet: 60 classes for the base task, with 40 classes split into 8 incremental tasks (5-way 5-shot).
Key Results
OFCL demonstrated significant performance gains over both specialized open-detection baselines and state-of-the-art continual learning methods:
- Unknown Detection: On CUB200, OFCL achieved an AUC of 69.72%, outperforming the standard Maximum Softmax Probability (MSP) baseline of 61.34%. On MiniImageNet, it reached 76.20% AUC.
- Classification Accuracy: In the final stage of the CUB200 incremental tasks, OFCL maintained a classification accuracy of 68.92%, whereas many baselines dropped significantly (often into the 20-40% range) due to catastrophic forgetting.
- Efficiency: The final knowledge space (AKS) for CUB200 occupies only 0.048 MB, making the framework highly practical for deployment on edge devices with limited resources.
Discussion and Future Work
The OFCL framework successfully mitigates the hubness problem and improves the transition from unknown to known classes in data-scarce environments. However, the authors note that the system still relies on a "base task" with substantial data for initial training. Achieving a fully "zero-to-hero" system that starts with minimal data remains an open challenge.
Future research directions include integrating Large Language Models (LLMs) to provide richer semantic descriptions for the token bank and enhancing "test-time adaptation" to allow the model to adjust its boundaries dynamically during inference as it encounters new data distributions.
Summary updated