arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.07521cs.CVcs.AIcs.LG
收藏

设备上领域泛化

On-Device Domain Generalization

Nanyang Technological University(南洋理工大学)

Kaiyang Zhou, Yuanhan Zhang, Yuhang Zang, Jingkang Yang, Chen Change Loy, Ziwei Liu

摘要:

本文系统地研究了小神经网络的领域泛化问题。这个问题对于设备上的机器学习应用至关重要,但在文献中被忽视了,因为研究仅仅集中在大型模型上。微小的神经网络具有更少的参数和更低的复杂性,因此不应该像DG应用中的大型神经网络那样进行训练。通过大量的实验,我们发现知识蒸馏(KD),一个著名的技术模型压缩,是更好地解决设备上的DG问题比传统的DG方法。另一个有趣的观察是,教师和学生在分布外数据上的差距大于分布内数据,这突出了能力不匹配问题以及KD的缺点。我们进一步提出了一种方法,称为外的分布知识蒸馏(OKD)的想法是教学生如何处理教师通过破坏性的数据增强合成的分布数据。在不向模型添加任何额外参数的情况下-因此保持部署成本不变- OKD显着提高了图像和语音应用的各种设备上DG场景中微型神经网络的DG性能。我们还提供了一种可扩展的方法来合成视觉域的变化,以及一套新的DG数据集,以补充现有的测试平台。

英文摘要:

We present a systematic study of domain generalization (DG) for tiny neural networks. This problem is critical to on-device machine learning applications but has been overlooked in the literature where research has been merely focused on large models. Tiny neural networks have much fewer parameters and lower complexity and therefore should not be trained the same way as their large counterparts for DG applications. By conducting extensive experiments, we find that knowledge distillation (KD), a well-known technique for model compression, is much better for tackling the on-device DG problem than conventional DG methods. Another interesting observation is that the teacher-student gap on out-of-distribution data is bigger than that on in-distribution data, which highlights the capacity mismatch issue as well as the shortcoming of KD. We further propose a method called out-of-distribution knowledge distillation (OKD) where the idea is to teach the student how the teacher handles out-of-distribution data synthesized via disruptive data augmentation. Without adding any extra parameter to the model -- hence keeping the deployment cost unchanged -- OKD significantly improves DG performance for tiny neural networks in a variety of on-device DG scenarios for image and speech applications. We also contribute a scalable approach for synthesizing visual domain shifts, along with a new suite of DG datasets to complement existing testbeds.

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

↑