Jiang Zhen, Feng Zeyu, Niu Bolin
School of computer science and communication engineering, Jiangsu University, Zhenjiang, PR China.
School of computer science and communication engineering, Jiangsu University, Zhenjiang, PR China.
Neural Netw. 2025 Oct;190:107761. doi: 10.1016/j.neunet.2025.107761. Epub 2025 Jun 10.
As a promising technique for Few-Shot Classification (FSC), Prototypical Networks (PN) has gained increasing attention due to their simplicity and effectiveness. However, the unimodal prototypes derived from a few labeled data may lack representativeness and fail to capture complex data distributions. Inspired by KNN, a model-free classification algorithm, we propose a Neighbor Network (NN) to compensate for the limitations of PN. Specifically, NN classifies query samples based on their neighbors and optimizes the metric space to ensure that samples of the same class are grouped together. By combining PN and NN, we propose a Prototype-Neighbor Networks (PNN) to learn a better metric space where a few labeled data suffice to learn a reliable FSC model. To enhance adaptability to new classes, we improve the meta-learning mechanism by incorporating a task-specific fine-tuning phase between the meta-training and meta-testing stages. Additionally, we present a data augmentation method that combines PN and NN to generate pseudo-labeled data. Compared to self-training approaches, our method significantly reduces pseudo-label noise and confirmation bias. The proposed method has been validated on three benchmark datasets. Compared to 24 state-of-the-art FSC algorithms, PNN outperforms others on mini-imageNet, and CUB while achieving competitive results on tiered-imageNet. The experimental results on four medical image datasets further demonstrate the effectiveness of PNN on cross-domain tasks. The source code and related models are available at https://github.com/Dracula-funny/PNN.
作为一种用于少样本分类(FSC)的有前途的技术,原型网络(PN)因其简单性和有效性而受到越来越多的关注。然而,从少量标记数据中导出的单峰原型可能缺乏代表性,无法捕捉复杂的数据分布。受无模型分类算法KNN的启发,我们提出了一种邻居网络(NN)来弥补PN的局限性。具体来说,NN根据查询样本的邻居对其进行分类,并优化度量空间以确保同一类别的样本聚集在一起。通过将PN和NN相结合,我们提出了一种原型-邻居网络(PNN),以学习一个更好的度量空间,在这个空间中,少量标记数据就足以学习一个可靠的FSC模型。为了增强对新类别的适应性,我们通过在元训练和元测试阶段之间加入特定任务的微调阶段来改进元学习机制。此外,我们提出了一种结合PN和NN来生成伪标记数据的数据增强方法。与自训练方法相比,我们的方法显著降低了伪标记噪声和确认偏差。所提出的方法已在三个基准数据集上得到验证。与24种先进的FSC算法相比,PNN在mini-imageNet和CUB上优于其他算法,同时在tiered-imageNet上取得了有竞争力的结果。在四个医学图像数据集上的实验结果进一步证明了PNN在跨域任务中的有效性。源代码和相关模型可在https://github.com/Dracula-funny/PNN获取。