Task-Specific Gradient Adaptation for Few-Shot One-Class Classification
Abstract
Optimization-based meta-learning methods for few-shot one-class classification (FS-OCC) aim to fine-tune a meta-trained model to classify the positive and negative samples using only a few positive samples by adaptation. However, recent approaches primarily focus on adjusting existing meta-learning algorithms for FS-OCC, while overlooking issues stemming from the misalignment between the cross-entropy loss and OCC tasks during adaptation. This misalignment, combined with the limited availability of one-class samples and the restricted diversity of task-specific adaptation, can significantly exacerbate the adverse effects of gradient instability and generalization. To address these challenges, we propose a novel Task-Specific Gradient Adaptation (TSGA) for FS-OCC. Without extra supervision, TSGA learns to generate appropriate, stable gradients by leveraging label prediction and feature representation details of one-class samples and refines the adaptation process by recalibrating task-specific gradients and regularization terms. We evaluate TSGA on three challenging datasets and a real-world CNC Milling Machine application and demonstrate consistent improvements over baseline methods. Furthermore, we illustrate the critical impact of gradient instability and task-agnostic adaptation. Notably, TSGA achieves state-of-the-art results by effectively addressing these issues.
Cite
Text
Li et al. "Task-Specific Gradient Adaptation for Few-Shot One-Class Classification." Conference on Computer Vision and Pattern Recognition, 2025. doi:10.1109/CVPR52734.2025.02845Markdown
[Li et al. "Task-Specific Gradient Adaptation for Few-Shot One-Class Classification." Conference on Computer Vision and Pattern Recognition, 2025.](https://mlanthology.org/cvpr/2025/li2025cvpr-taskspecific/) doi:10.1109/CVPR52734.2025.02845BibTeX
@inproceedings{li2025cvpr-taskspecific,
title = {{Task-Specific Gradient Adaptation for Few-Shot One-Class Classification}},
author = {Li, Yunlong and Liu, Xiabi and Pan, Liyuan and Ren, Yuchen},
booktitle = {Conference on Computer Vision and Pattern Recognition},
year = {2025},
pages = {30556-30565},
doi = {10.1109/CVPR52734.2025.02845},
url = {https://mlanthology.org/cvpr/2025/li2025cvpr-taskspecific/}
}