Appendix

Xueqing Deng, Dawei Sun, S. Newsam, Peng Wang
{"title":"Appendix","authors":"Xueqing Deng, Dawei Sun, S. Newsam, Peng Wang","doi":"10.2307/j.ctvkwnqg0.12","DOIUrl":null,"url":null,"abstract":"In this section, we present the implementation details on the experiments performed on transformer. We select ViT-B [2] with patch size of 16 as our teacher model and DeiT-Tiny [4] as our student model. We reproduce the baseline result with 4 GPUs and the total batch size is 1024. However, for searching the distillation process, we have to reduce the batch size to 256 due to limited GPU memory as we have pathways between the feature maps from teacher and student. Meanwhile, we keep the same batch size for retraining after searching. The most significant difference between the implementations of convolutional neural networks (CNNs) and transformers is the transform block. Our experimental results show that the proposed transform block on CNNs is not applicable to transformer yielding much worse performance on distillation compared to non-distillation. Therefore, we employ a transformer-style block to serve as a transform block for feature transfer between the teacher and student whose architectures are transformers as shown in Fig. 1. We follow similar search pipeline with a search learning rate of 1e-3. Once the distillation process is obtained, we train the models with 150 epochs for both ReviewKD [1] and our proposed DistPro following the same configurations in DeiT [4].","PeriodicalId":347866,"journal":{"name":"The Rights Paradox","volume":"2 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-12-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"The Rights Paradox","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2307/j.ctvkwnqg0.12","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In this section, we present the implementation details on the experiments performed on transformer. We select ViT-B [2] with patch size of 16 as our teacher model and DeiT-Tiny [4] as our student model. We reproduce the baseline result with 4 GPUs and the total batch size is 1024. However, for searching the distillation process, we have to reduce the batch size to 256 due to limited GPU memory as we have pathways between the feature maps from teacher and student. Meanwhile, we keep the same batch size for retraining after searching. The most significant difference between the implementations of convolutional neural networks (CNNs) and transformers is the transform block. Our experimental results show that the proposed transform block on CNNs is not applicable to transformer yielding much worse performance on distillation compared to non-distillation. Therefore, we employ a transformer-style block to serve as a transform block for feature transfer between the teacher and student whose architectures are transformers as shown in Fig. 1. We follow similar search pipeline with a search learning rate of 1e-3. Once the distillation process is obtained, we train the models with 150 epochs for both ReviewKD [1] and our proposed DistPro following the same configurations in DeiT [4].
附录
在本节中,我们介绍了在变压器上进行的实验的实现细节。我们选择patch大小为16的ViT-B[2]作为我们的教师模型,DeiT-Tiny[4]作为我们的学生模型。我们用4个gpu重现基线结果,总批大小为1024。然而,对于搜索蒸馏过程,由于GPU内存有限,我们必须将批处理大小减少到256个,因为我们在教师和学生的特征映射之间有路径。同时,我们在搜索后保持相同的批大小进行再训练。卷积神经网络(cnn)与变压器实现的最大区别在于变换块。实验结果表明,本文提出的变换块算法不适用于变压器,在蒸馏处理上的性能明显低于非蒸馏处理。因此,我们采用变压器式块作为师生之间特征传递的转换块,其架构为变压器,如图1所示。我们遵循类似的搜索管道,搜索学习率为1e-3。一旦获得了蒸馏过程,我们按照DeiT[4]中相同的配置,对ReviewKD[1]和我们提出的DistPro进行150 epoch的模型训练。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信