arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.15094cs.LGcs.AIcs.CV
收藏

从镶嵌到提取:域外数据的知识蒸馏

Mosaicking to Distill: Knowledge Distillation from Out-of-Domain Data

Zhejiang University(浙江大学);Alibaba-Zhejiang University Joint Institute of Frontier Technologies(阿里巴巴-浙江大学前沿技术联合研究院);National University of Singapore(新加坡国立大学);Central South University(中南大学)

Gongfan Fang, Yifan Bao, Jie Song, Xinchao Wang, Donglin Xie, Chengchao Shen, Mingli Song

摘要:

知识蒸馏~(KD)的目的是制作一个紧凑的学生模型,模仿一个预先培训的教师在目标领域的行为。先前的KD方法,尽管它们的令人满意的结果,在很大程度上依赖于\emph{in-domain}数据可用于执行知识转移的前提。不幸的是,这种假设在许多情况下违反了实际设置,因为由于隐私或版权原因,原始训练数据甚至数据域通常是不可访问的。在本文中,我们试图解决一个雄心勃勃的任务,被称为\emph{out-of-domain}知识蒸馏~(OOD-KD),它允许我们进行KD只使用OOD数据,可以很容易地获得在一个非常低的成本。不可否认,由于不可知的领域差距,OOD-KD本质上是一项极具挑战性的任务。为此,我们介绍了一种方便但令人惊讶的有效方法,称为~ \textit{MosaicKD}。MosaicKD背后的关键洞察力在于,来自不同领域的样本共享共同的局部模式,即使它们的全局语义可能会有很大的不同;这些共享的局部模式反过来可以类似于马赛克拼接进行重新组装,以近似域内数据并进一步缓解域差异。在MosaicKD中,这是通过一个四人的最小-最大游戏来实现的,在这个游戏中,一个生成器、一个学习者、一个学生网络以对抗的方式进行集体训练,部分是在一个预先训练过的老师的指导下进行的。我们在各种基准测试中验证了MosaicKD在{分类和语义分割任务}上的有效性,并证明它产生的结果远远优于OOD数据上最先进的同行。我们的代码可在\url{https://github.com/zju-vipa/MosaicKD}上找到。

英文摘要:

Knowledge distillation~(KD) aims to craft a compact student model that imitates the behavior of a pre-trained teacher in a target domain. Prior KD approaches, despite their gratifying results, have largely relied on the premise that \emph{in-domain} data is available to carry out the knowledge transfer. Such an assumption, unfortunately, in many cases violates the practical setting, since the original training data or even the data domain is often unreachable due to privacy or copyright reasons. In this paper, we attempt to tackle an ambitious task, termed as \emph{out-of-domain} knowledge distillation~(OOD-KD), which allows us to conduct KD using only OOD data that can be readily obtained at a very low cost. Admittedly, OOD-KD is by nature a highly challenging task due to the agnostic domain gap. To this end, we introduce a handy yet surprisingly efficacious approach, dubbed as~\textit{MosaicKD}. The key insight behind MosaicKD lies in that, samples from various domains share common local patterns, even though their global semantic may vary significantly; these shared local patterns, in turn, can be re-assembled analogous to mosaic tiling, to approximate the in-domain data and to further alleviating the domain discrepancy. In MosaicKD, this is achieved through a four-player min-max game, in which a generator, a discriminator, a student network, are collectively trained in an adversarial manner, partially under the guidance of a pre-trained teacher. We validate MosaicKD over {classification and semantic segmentation tasks} across various benchmarks, and demonstrate that it yields results much superior to the state-of-the-art counterparts on OOD data. Our code is available at \url{https://github.com/zju-vipa/MosaicKD}.

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

↑