Abstract
This paper presents a meta-learning framework for few-shots One-Class Classification (OCC) at test-time, a setting where labeled examples are only available for the positive class, and no supervision is given for the negative example. We consider that we have a set of 'one-class classification' objective-tasks with only a small set of positive examples available for each task, and a set of training tasks with full supervision (i.e. highly imbalanced classification). We propose an approach using order-equivariant networks to learn a 'meta' binary-classifier. The model will take as input an example to classify from a given task, as well as the corresponding supervised set of positive examples for this OCC task. Thus, the output of the model will be 'conditioned' on the available positive example of a given task, allowing to predict on new tasks and new examples without labeled negative examples. In this paper, we are motivated by an astronomy application. Our goal is to identify if stars belong to a specific stellar group (the 'one-class' for a given task), called stellar streams, where each stellar stream is a different OCC-task. We show that our method transfers well on unseen (test) synthetic streams, and outperforms the baselines even though it is not retrained and accesses a much smaller part of the data per task to predict (only positive supervision). We see however that it doesn't transfer as well on the real stream GD-1. This could come from intrinsic differences from the synthetic and real stream, highlighting the need for consistency in the 'nature' of the task for this method. However, light fine-tuning improve performances and outperform our baselines. Our experiments show encouraging results to further explore meta-learning methods for OCC tasks.
Introduction
One-Class Classification (OCC) represents a significant challenge in machine learning, often described as the "needle in a haystack" problem. In many real-world domains, such as anomaly detection or rare-species identification, practitioners possess a few labeled examples of the "interesting" class but lack reliable labels for the "uninteresting" background.
Standard OCC methods, such as One-Class SVMs, typically require substantial data to model the "normal" class distribution. However, in fields like astronomy, we frequently encounter a few-shot problem: identifying members of a specific stellar structure with only 10 to 200 confirmed members. Existing methods struggle in this low-data, high-imbalance regime. This work bridges the gap using meta-learning—training a model on diverse but related OCC tasks to learn the underlying logic of class membership.
Methodology
We propose a representation-based meta-learning approach. Instead of learning a specific classifier for a single task, the model is trained to recognize the relationship between a small "support set" of positive examples and a new query instance.
Technical Architecture
- Order-Equivariant Networks (DeepSets): The input is a set of positive examples, requiring the model to be invariant to the order of presentation. We utilize a DeepSets architecture to process these sets into fixed-size representations.
- Conditioned Classification: A key innovation is the concatenation of the query instance with each member of the support set before passing them through equivariant layers. This "conditions" the representation on the specific instance being classified, which proved significantly more efficient than separate processing.
- Meta-Training: The model is trained on a "meta-dataset" of various stellar streams. During training, it encounters both positive and negative examples, learning a generalized distance metric and decision boundary applicable to entirely new, unseen streams at test time using only positive examples.
Experimental Setup
The framework was evaluated on two primary datasets:
- Synthetic Stellar Streams: 61 synthetic streams generated via galactic dynamics simulations were injected into real foreground star data from the Gaia DR-2 mission. This provided ground truth for meta-training (46 streams), validation (7), and testing (8).
- GD-1 (Real Stream): To assess real-world generalization, we used GD-1, a well-mapped real stellar stream. This serves as an out-of-distribution test for models trained on simulations.
Each star is represented by 10 features, including sky position (RA/DEC), proper motions, and photometric colors.
Results and Discussion
Synthetic Performance
On unseen synthetic streams, the Meta-DeepSets model achieved an F1-score of 0.652, significantly outperforming the Random Forest (RF) baseline (0.499) and an RF with self-labeling (0.553). This suggests the meta-learner successfully captured the "physical nature" of stellar streams across the galaxy.
Generalization to Real Data
The model initially struggled on the real GD-1 stream (F1 ~0.48), highlighting the simulation-to-reality gap. However, with light fine-tuning using a small amount of task-specific negative data, performance improved to an F1 of 0.714, surpassing the baseline RF (0.647).
Efficiency
At test time, the model functions as a "forward-pass" classifier. It does not require retraining to identify a new stream; it simply processes the support set as input, making it highly efficient for real-time discovery.
Conclusion
While the meta-learning approach shows great promise, it remains sensitive to the "nature" of the task, as evidenced by the performance drop on real-world data compared to simulations. Future work will explore more complex architectures, such as Transformers with attention mechanisms, to better capture the internal structure of support sets. Additionally, investigating optimal negative sampling strategies for fine-tuning could further enhance robustness on difficult real-world tasks.
Summary updated