Protodetect: Prototype Compactness and Inference Calibration for Few-Shot Out-of-Distribution Detection
Detecting out-of-distribution (OOD) samples from limited labeled data is important for reliable recognition under semantic novelty. Existing few-shot approaches use synthetic or auxiliary unknowns, model only in-distribution (ID) data, or rely on large pretrained vision–language models. This paper presents Protodetect, a metric-learning framework for the conventional episodic, prototype-based setting. Model weights are optimized using ID episodes only, while held-out OOD samples during meta-validation are used to select inference hyperparameters. Protodetect combines the prototypical classification objective with a prototype-anchored triplet loss to encourage compact within-class representations and separation between known classes. At inference, temperature scaling and gradient-based input preprocessing are applied to the prototype-distance scores. Experiments on miniImageNet and tieredImageNet evaluate both closed-set accuracy and OOD AUROC. Across three independent training seeds, Protodetect obtains a mean AUROC of 81.13% under the reported 5-way 5-shot miniImageNet protocol, 1.28 percentage points above the strongest evaluated baseline. On tieredImageNet, the corresponding mean AUROCs are 75.74% and 83.65% in the 1-shot and 5-shot settings, respectively. These results establish Protodetect as an effective incremental approach under the evaluated episodic protocols.
Authors
- Zexia Huang (ORCID: https://orcid.org/0009-0003-9783-7850)
- Xiaoliang Chen (ORCID: https://orcid.org/0000-0002-8201-9631)
- Xu Gu (ORCID: https://orcid.org/0000-0002-9931-061X)
- Haoyu Jiang (ORCID: https://orcid.org/0009-0004-7719-4496)
- Jinsong Hu (ORCID: https://orcid.org/0009-0007-8106-9972)
Institutions
- Xihua University (CN)
- Tongji University (CN)
- Chinese Academy of Sciences (CN)
- Chengdu University of Technology (CN)
- Chengdu Technological University
Publication Details
- Journal
- Symmetry
- Published
- 2026-09-30
- DOI
- https://doi.org/10.3390/sym18101647
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00