arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.01412cs.LGcs.AI
收藏

用于知识蒸馏的等序数据增强

Isotonic Data Augmentation for Knowledge Distillation

Shanghai University of Finance and Economics(上海财经大学)

Wanyun Cui, Sen Yan

摘要:

知识蒸馏使用教师模型预测的真实硬标签和软标签作为监督。直觉上,我们希望软标签和硬标签与w.r.t.一致。概率的顺序。然而,我们发现在增强样本中硬标签和软标签之间存在严重的顺序违反。例如,对于增强样本$x=0.7*panda+0.3*cat$,我们期望有意义的软标签的顺序为$P_\text{soft}(panda|x)>P_\text{soft}(cat|x)>P_\text{soft}(other|x)$。但真正的软标签通常违反顺序,例如$P_\text{soft}(tiger|x)>P_\text{soft}(panda|x)>P_\text{soft}(cat|x)$。我们将此归因于教师的泛化能力不令人满意,这导致了增强样本的预测误差。从经验上看,我们发现违规行为是常见的,损害了知识转移。本文在知识蒸馏的数据增广中引入序限制,称之为保序数据增强(IDA)。我们使用保序回归(IR)-一个经典的技术,从统计-消除秩序的侵犯。我们表明,IDA可以建模为一个树结构的IR问题。因此,我们适应经典的IRT-BIN算法的最优解与$O(c \log c)$的时间复杂度,其中$c$是标签的数量。为了进一步降低时间复杂度,我们还提出了一个GPU友好的近似线性时间复杂度。我们已经验证了不同的数据集和数据增强技术,我们提出的IDA算法有效地提高了知识蒸馏的准确性,通过消除秩违规。

英文摘要:

Knowledge distillation uses both real hard labels and soft labels predicted by teacher models as supervision. Intuitively, we expect the soft labels and hard labels to be concordant w.r.t. their orders of probabilities. However, we found critical order violations between hard labels and soft labels in augmented samples. For example, for an augmented sample $x=0.7*panda+0.3*cat$, we expect the order of meaningful soft labels to be $P_\text{soft}(panda|x)>P_\text{soft}(cat|x)>P_\text{soft}(other|x)$. But real soft labels usually violate the order, e.g. $P_\text{soft}(tiger|x)>P_\text{soft}(panda|x)>P_\text{soft}(cat|x)$. We attribute this to the unsatisfactory generalization ability of the teacher, which leads to the prediction error of augmented samples. Empirically, we found the violations are common and injure the knowledge transfer. In this paper, we introduce order restrictions to data augmentation for knowledge distillation, which is denoted as isotonic data augmentation (IDA). We use isotonic regression (IR) -- a classic technique from statistics -- to eliminate the order violations. We show that IDA can be modeled as a tree-structured IR problem. We thereby adapt the classical IRT-BIN algorithm for optimal solutions with $O(c \log c)$ time complexity, where $c$ is the number of labels. In order to further reduce the time complexity, we also propose a GPU-friendly approximation with linear time complexity. We have verified on variant datasets and data augmentation techniques that our proposed IDA algorithms effectively increases the accuracy of knowledge distillation by eliminating the rank violations.

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

↑