LibFewShot:一个用于少样本学习的综合库
LibFewShot: A Comprehensive Library for Few-shot Learning
摘要:
少样本学习,特别是Few-Shot图像分类,近年来受到越来越多的关注并取得了重大进展。最近的一些研究隐含地表明,许多通用技术或“技巧”,如数据增强,预训练,知识蒸馏和自我监督,可能会大大提高少样本学习方法的性能。此外,不同的作品可能采用不同的软件平台、主干架构和输入图像大小,这使得公平比较变得困难,从业者也难以重现。为了解决这些情况,我们提出了一个全面的少样本学习库(LibFewShot),通过在PyTorch中使用相同的单一代码库在统一框架中重新实现18种最先进的少样本学习方法。此外,基于LibFewShot,我们对具有各种骨干架构的多个基准测试提供了全面的评估,以评估不同训练技巧的常见陷阱和效果。此外,对于最近的质疑Meta或情节训练机制的必要性,我们的评估结果证实,这种机制仍然是必要的,特别是当结合预训练。我们希望我们的工作不仅可以降低初学者进入少样本学习领域的门槛,而且可以阐明非平凡技巧的作用,以促进对少样本学习的内在研究。源代码可从https://github.com/RL-VIG/LibFewShot获得。
英文摘要:
Few-shot learning, especially few-shot image classification, has received increasing attention and witnessed significant advances in recent years. Some recent studies implicitly show that many generic techniques or ``tricks'', such as data augmentation, pre-training, knowledge distillation, and self-supervision, may greatly boost the performance of a few-shot learning method. Moreover, different works may employ different software platforms, backbone architectures and input image sizes, making fair comparisons difficult and practitioners struggle with reproducibility. To address these situations, we propose a comprehensive library for few-shot learning (LibFewShot) by re-implementing eighteen state-of-the-art few-shot learning methods in a unified framework with the same single codebase in PyTorch. Furthermore, based on LibFewShot, we provide comprehensive evaluations on multiple benchmarks with various backbone architectures to evaluate common pitfalls and effects of different training tricks. In addition, with respect to the recent doubts on the necessity of meta- or episodic-training mechanism, our evaluation results confirm that such a mechanism is still necessary especially when combined with pre-training. We hope our work can not only lower the barriers for beginners to enter the area of few-shot learning but also elucidate the effects of nontrivial tricks to facilitate intrinsic research on few-shot learning. The source code is available from https://github.com/RL-VIG/LibFewShot.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。