Lune

AAAI2021Top-tier venue

Few-Shot One-Class Classification via Meta-Learning

Ahmed Frikha, Denis Krompaß, Hans-Georg Köpken, Volker Tresp

Abstract

Although few-shot learning and one-class classification (OCC), i.e., learning a binary classifier with data from only one class, have been separately well studied, their intersection remains rather unexplored. Our work addresses the few-shot OCC problem and presents a method to modify the episodic data sampling strategy of the model-agnostic meta-learning (MAML) algorithm to learn a model initialization particularly suited for learning few-shot OCC tasks. This is done by explicitly optimizing for an initialization which only requires few gradient steps with one-class minibatches to yield a performance increase on class-balanced test data. We provide a theoretical analysis that explains why our approach works in the few-shot OCC scenario, while other meta-learning algorithms fail, including the unmodified MAML. Our experiments on eight datasets from the image and time-series domains show that our method leads to better results than classical OCC and few-shot classification approaches, and demonstrate the ability to learn unseen tasks from only few normal class samples. Moreover, we successfully train anomaly detectors for a real-world application on sensor readings recorded during industrial manufacturing of workpieces with a CNC milling machine, by using few normal examples. Finally, we empirically demonstrate that the proposed data sampling technique increases the performance of more recent meta-learning algorithms in few-shot OCC and yields state-of-the-art results in this problem setting.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Task-Specific Gradient Adaptation for Few-Shot One-Class Classification cites A Hierarchical Transformation-Discriminating Generative Model for Few Shot Anomaly Detection
  • TaskNorm: Rethinking Batch Normalization for Meta-Learning cites Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few Examples
  • REACT: Residual-Adaptive Contextual Tuning for Fast Model Adaptation in Threat Detection cites Zero-Shot Anomaly Detection via Batch Normalization
  • Zero-Shot Anomaly Detection via Batch Normalization cites A Hierarchical Transformation-Discriminating Generative Model for Few Shot Anomaly Detection
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. A Hierarchical Transformation-Discriminating Generative Model for Few Shot Anomaly DetectionShelly Sheynin, Sagie Benaim, Lior WolfICCV 2021 · 106 citations
  2. Remember the Difference: Cross-Domain Few-Shot Semantic Segmentation via Meta-Memory TransferWenjian Wang, Lijuan Duan, Yuxi Wang, Qing En et al.CVPR 2022 · 32 citations
  3. Zero-Shot Anomaly Detection via Batch NormalizationAodong Li, Chen Qiu, Marius Kloft, Padhraic Smyth et al.NeurIPS 2023 · 7 citations
  4. REACT: Residual-Adaptive Contextual Tuning for Fast Model Adaptation in Threat DetectionJiayun Zhang, Junshen Xu, Bugra Can, Yi FanWWW 2025 · 3 citations
  5. Task-Specific Gradient Adaptation for Few-Shot One-Class ClassificationYunlong Li, Xiabi Liu, Liyuan Pan, Yuchen RenCVPR 2025

Builds on3

  1. Rapid Learning or Feature Reuse? Towards Understanding the Effectiveness of MAMLAniruddh Raghu, Maithra Raghu, Samy Bengio, Oriol VinyalsICLR 2020 · 736 citations
  2. Meta-Dataset: A Dataset of Datasets for Learning to Learn from Few ExamplesEleni Triantafillou, Tyler Zhu, Vincent Dumoulin, Pascal Lamblin et al.ICLR 2020 · 692 citations
  3. TaskNorm: Rethinking Batch Normalization for Meta-LearningJohn Bronskill, Jonathan Gordon, James Requeima, Sebastian Nowozin et al.ICML 2020 · 93 citations

Related papers

  1. OOD-MAML: Meta-Learning for Few-Shot Out-of-Distribution Detection and ClassificationTaewon Jeong, Heeyoung KimNeurIPS 2020 · 111 citations
  2. How to Train Your MAML to Excel in Few-Shot ClassificationHan-Jia Ye, Wei-Lun ChaoICLR 2022 · 61 citations
  3. A Nested Bi-level Optimization Framework for Robust Few Shot LearningKrishnaTeja Killamsetty, Changbin Li, Chen Zhao, Feng Chen et al.AAAI 2022 · 12 citations
  4. Semantic matching for text classification with complex class descriptionsBrian de Silva, Kuan-Wen Huang, Gwang Lee, Karen Hovsepian et al.EMNLP 2023 · 1 citation
  5. Meta-Learning with Task-Adaptive Loss Function for Few-Shot LearningSungyong Baik, Janghoon Choi, Heewon Kim, Dohee Cho et al.ICCV 2021 · 146 citations
Dusk over the sea between two cliffs drawn in fine vertical lines