arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.09886cs.LGcs.CV
收藏

ReffAKD:基于资源高效自编码器的知识蒸馏

ReffAKD: Resource-efficient Autoencoder-based Knowledge Distillation

North Carolina State University(北卡罗来纳州立大学)

Divyang Doshi, Jung-Eun Kim

AI总结:

本研究提出ReffAKD方法,用紧凑自编码器生成软标签替代大型教师模型指导学生模型训练,在多个数据集上以更低资源消耗实现了相近或更优的知识蒸馏效果,且可兼容现有logit类蒸馏方法。

摘要:

本研究提出了一种创新方法,无需依赖资源消耗巨大的教师模型即可提升知识蒸馏效率。知识蒸馏通过在更大的“教师”模型指导下训练更小的“学生”模型,但其计算成本高昂。不过,知识蒸馏的主要优势来自教师模型提供的软标签,能帮助学生模型掌握细微的类别相似性。在本研究中,我们提出了一种生成此类软标签的高效方法,从而无需使用大型教师模型。我们采用紧凑的自编码器提取关键特征,并计算不同类别之间的相似度分数。随后,我们对这些相似度分数应用softmax函数,得到软概率向量。该向量可作为学生模型训练过程中的有效指导。我们在CIFAR-100、Tiny Imagenet和Fashion MNIST等多个数据集上开展了大量实验,结果表明,与依赖大型教师模型的传统知识蒸馏方法相比,我们的方法在资源效率上更具优势。重要的是,我们的方法在模型准确率方面始终能达到相近甚至更优的性能。我们还与近期开发的多种知识蒸馏技术进行了对比研究,结果显示我们的方法在资源消耗显著更低的情况下取得了具有竞争力的性能。我们还证明,该方法可以轻松集成到任何基于logit的知识蒸馏方法中。本研究有助于让知识蒸馏在实际应用中更易获取且成本更低,为提升模型训练效率提供了一条有前景的路径。本研究的代码可在https://github.com/JEKimLab/ReffAKD获取。

英文摘要:

In this research, we propose an innovative method to boost Knowledge Distillation efficiency without the need for resource-heavy teacher models. Knowledge Distillation trains a smaller ``student'' model with guidance from a larger ``teacher'' model, which is computationally costly. However, the main benefit comes from the soft labels provided by the teacher, helping the student grasp nuanced class similarities. In our work, we propose an efficient method for generating these soft labels, thereby eliminating the need for a large teacher model. We employ a compact autoencoder to extract essential features and calculate similarity scores between different classes. Afterward, we apply the softmax function to these similarity scores to obtain a soft probability vector. This vector serves as valuable guidance during the training of the student model. Our extensive experiments on various datasets, including CIFAR-100, Tiny Imagenet, and Fashion MNIST, demonstrate the superior resource efficiency of our approach compared to traditional knowledge distillation methods that rely on large teacher models. Importantly, our approach consistently achieves similar or even superior performance in terms of model accuracy. We also perform a comparative study with various techniques recently developed for knowledge distillation showing our approach achieves competitive performance with using significantly less resources. We also show that our approach can be easily added to any logit based knowledge distillation method. This research contributes to making knowledge distillation more accessible and cost-effective for practical applications, making it a promising avenue for improving the efficiency of model training. The code for this work is available at, https://github.com/JEKimLab/ReffAKD.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑