Proceedings

Teaching What You Should Teach: A Data-Based Distillation Method

Download BibTeX Cite

Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence. Main Track. Pages 1351-1359.

https://doi.org/10.24963/ijcai.2023/150

Abstract

In real teaching scenarios, an excellent teacher always teaches what he (or she) is good at but the student is not. This gives the student the best assistance in making up for his (or her) weaknesses and becoming a good one overall. Enlightened by this, we introduce the "Teaching what you Should Teach" strategy into a knowledge distillation framework, and propose a data-based distillation method named "TST" that searches for desirable augmented samples to assist in distilling more efficiently and rationally. To be specific, we design a neural network-based data augmentation module with priori bias to find out what meets the teacher's strengths but the student's weaknesses, by learning magnitudes and probabilities to generate suitable data samples. By training the data augmentation module and the generalized distillation paradigm alternately, a student model is learned with excellent generalization ability. To verify the effectiveness of our method, we conducted extensive comparative experiments on object recognition, detection, and segmentation tasks. The results on the CIFAR-100, ImageNet-1k, MS-COCO, and Cityscapes datasets demonstrate that our method achieves state-of-the-art performance on almost all teacher-student pairs. Furthermore, we conduct visualization studies to explore what magnitudes and probabilities are needed for the distillation process.

  1. [Ahn et al., 2019] Sungsoo Ahn, Shell Xu Hu, et al. Variational information distillation for knowledge transfer. In Computer Vi- sion and Pattern Recognition, pages 9163-9171, Long Beach, CA, USA, Jun. 2019. IEEE.
  2. [Carlini and Wagner, 2017] Nicholas Carlini and David Wagner. Towards evaluating the robustness of neural networks. In Security and Privacy, pages 39-57. IEEE, 2017.
  3. [Chen et al., 2019] Kai Chen, Jiaqi Wang, and Pang et al. MMDe- tection: Open mmlab detection toolbox and benchmark. arXiv preprint arXiv:1906.07155, 2019.
  4. [Chen et al., 2021] Pengguang Chen, Shu Liu, et al. Distilling knowledge via knowledge review. In Computer Vision and Pat- tern Recognition, pages 5008-5017, Virtual Event, Jun. 2021. IEEE.
  5. [Chen et al., 2022] Huanran Chen, Shitong Shao, Ziyi Wang, Zirui Shang, Jin Chen, Xiaofeng Ji, and Xinxiao Wu. Bootstrap gener- alization ability from loss landscape perspective. arXiv preprint arXiv:2209.08473, 2022.
  6. [Chen et al., 2023] Huanran Chen, Shitong Shao, Ziyi Wang, Zirui Shang, Jin Chen, Xiaofeng Ji, and Xinxiao Wu. Bootstrap gen- eralization ability from loss landscape perspective. In Leonid Karlinsky, Tomer Michaeli, and Ko Nishino, editors, ECCV 2022 Workshops, Cham, 2023. Springer. [Contributors, 2020] MMSegmentation Contributors. MMSegmen- tation: Openmmlab semantic segmentation toolbox and bench- mark, 2020.
  7. [Contributors, 2021] MMRazor Contributors. Openmmlab model compression toolbox and benchmark, 2021.
  8. [Cordts et al., 2016] Marius Cordts, Mohamed Omran, and Ramos et al. The cityscapes dataset for semantic urban scene under- standing. In Computer Vision and Pattern Recognition, pages 3213-3223, Las Vegas, NV, USA, Jun.-Jul. 2016. IEEE.
  9. [Cubuk et al., 2019] Ekin D Cubuk, Barret Zoph, et al. Autoaug- ment: Learning augmentation strategies from data. In Computer Vision and Pattern Recognition, pages 113-123, Long Beach, CA, USA, Jun. 2019. IEEE.
  10. [Cubuk et al., 2020] Ekin D Cubuk, Barret Zoph, et al. Randaug- ment: Practical automated data augmentation with a reduced search space. In Computer Vision and Pattern Recognition work- shops, pages 702-703, Seattle, WA, USA, Jun. 2020. IEEE.
  11. [Dai et al., 2019] Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc Le, and Ruslan Salakhutdinov. Transformer- XL: Attentive language models beyond a fixed-length context. In Association for Computational Linguistics, pages 2978-2988, Florence, Italy, Jul. 2019. ACL.
  12. [Dai et al., 2021] Xing Dai, Zeren Jiang, et al. General instance distillation for object detection. In Computer Vision and Pattern Recognition, pages 7842-7851, Virtual Event, Jun. 2021.
  13. [Devlin et al., 2018] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirec- tional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
  14. [Fang et al., 2022] Gongfan Fang, Kanya Mo, et al. Up to 100x faster data-free knowledge distillation. In Association for the Ad- vancement of Artificial Intelligence, number 6, pages 6597-6604, Virtual Event, Feb.-Mar. 2022.
  15. [Frankle and Carbin, 2019] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In International Conference on Learning Represen- tations, New Orleans, LA, USA, May 2019.
  16. [He et al., 2016] Kaiming He, Xiangyu Zhang, et al. Deep resid- ual learning for image recognition. In Conference on Computer Vision and Pattern Recognition, pages 770-778, Las Vegas, NV, USA, Jun. 2016. IEEE.
  17. [He et al., 2022] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are scalable vision learners. In Computer Vision and Pattern Recog- nition, pages 16000-16009, New Orleans, LA, USA, Jun. 2022. IEEE.
  18. [Heo et al., 2019] Byeongho Heo, Jeesoo Kim, and Sangdoo et al. A comprehensive overhaul of feature distillation. In International Conference on Computer Vision, pages 1921-1930, Seoul, Korea (South), Oct.-Nov. 2019. IEEE.
  19. [Hinton et al., 2015] Geoffrey Hinton, Oriol Vinyals, Jeff Dean, et al. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2(7), 2015.
  20. [Huang et al., 2022] Tao Huang, Shan You, et al. Knowledge distil- lation from a stronger teacher. In Neural Information Processing Systems, New Orleans, LA, USA, Nov.-Dec. 2022. NIPS.
  21. [Jaderberg et al., 2015] Max Jaderberg, Karen Simonyan, et al. Spatial transformer networks. In Neural Information Process- ing Systems, volume 28, Montréal, Canada, Dec. 2015.
  22. Curran Associates, Inc. [Krizhevsky and Hinton, 2009]
  23. Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. Handbook of Sys temic Autoimmune Diseases, 2009.
  24. [Li et al., 2020] Yonggang Li, Guosheng Hu, Yongtao Wang, Tim- othy M. Hospedales, Neil Martin Robertson, and Yongxing Yang. DADA: differentiable automatic data augmentation. In Euro- pean Conference on Computer Vision, Virtual Event, Aug. 2020. Springer.
  25. Lim et al., ] Sungbin Lim, Ildoo Kim, Taesup Kim, Chiheon Kim, and Sungwoong Kim. Fast autoaugment. In Neural Information Processing Systems, pages 6662-6672, Jan.
  26. [Lin et al., 2014] Tsung-Yi Lin, Michael Maire, et al. Microsoft coco: Common objects in context. In European Conference on Computer Vision, pages 740-755, Zurich, Switzerland, Sept. 2014. Springer.
  27. [Liu et al., 2019] Yifan Liu, Ke Chen, Chris Liu, Zengchang Qin, Zhenbo Luo, and Jingdong Wang. Structured knowledge distil- lation for semantic segmentation. In Computer Vision and Pat- tern Recognition, pages 2604-2613, Long Beach, CA, USA, Jun. 2019. IEEE.
  28. [Liu et al., 2020] Yifan Liu, Changyong Shu, Jingdong Wang, and Chunhua Shen. Structured knowledge distillation for dense pre- diction. IEEE transactions on Pattern Analysis and Machine In- telligence, 2020.
  29. [Liu et al., 2021] Ze Liu, Yutong Lin, et al. Swin transformer: Hi- erarchical vision transformer using shifted windows. In Inter- national Conference on Computer Vision, pages 10012-10022, Virtual Event, Mar. 2021. IEEE.
  30. [Madry et al., 2018] Aleksander Madry, Aleksandar Makelov, Lud- wig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, Vancouver, Canada, Apr.-May 2018. OpenReview.net.
  31. [Marcel and Rodriguez, 2010] Sébastien Marcel and Yann Ro- driguez. Torchvision the machine-vision package of torch. In ACM international conference on Multimedia, pages 1485-1488, Firenze, Italy, Oct. 2010. ACM.
  32. [Mnih et al., 2013] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learn- ing. arXiv preprint arXiv:1312.5602, 2013.
  33. [Park et al., 2019] Wonpyo Park, Dongju Kim, et al. Relational knowledge distillation. In Conference on Computer Vision and Pattern Recognition, pages 3967-3976, Long Beach, CA, USA, Jun. 2019. IEEE.
  34. [Peng et al., 2019] Baoyun Peng, Xiao Jin, et al. Correlation congruence for knowledge distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5007-5016, 2019.
  35. [Purwins et al., 2019] Hendrik Purwins, Bo Li, Tuomas Virtanen, Jan Schlüter, Shuo-Yiin Chang, and Tara Sainath. Deep learning for audio signal processing. IEEE Journal of Selected Topics in Signal Processing, 13(2):206-219, 2019.
  36. [Romero et al., 2014] Adriana Romero, Nicolas Ballas, et al. Fit- nets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
  37. [Russakovsky et al., 2015] Olga Russakovsky, Jia Deng, et al. Ima- genet large scale visual recognition challenge. International jour- nal of computer vision, 115(3):211-252, 2015.
  38. [Shu et al., 2021] Changyong Shu, Yifan Liu, et al. Channel-wise knowledge distillation for dense prediction. In International Conference on Computer Vision, pages 5311-5320, Montreal, Canada, Oct. 2021. IEEE.
  39. [Suzuki, 2022] Teppei Suzuki. Teachaugment: Data augmenta- tion optimization using teacher knowledge. In Computer Vision and Pattern Recognition, pages 10904-10914, New Orleans, LA, USA, Jun. 2022. IEEE.
  40. [Tian et al., 2020] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive representation distillation. In Interna- tional Conference on Learning Representations, Addis Ababa, Ethiopia, Apr. 2020. OpenReview.net.
  41. [Tung and Mori, 2019] Frederick Tung and Greg Mori. Similarity- preserving knowledge distillation. In International Conference on Computer Vision, pages 1365-1374, Seoul, Korea (South), Oct-Nov. 2019. IEEE.
  42. [Wang et al., 2020] Yukang Wang, Wei Zhou, Tao Jiang, Xiang Bai, and Yongchao Xu. Intra-class feature variation distillation for semantic segmentation. In European Conference on Com- puter Vision, pages 346-362, Virtual Event, Aug. 2020. Springer.
  43. [Wieczorek et al., 2021] Mikołaj Wieczorek, Barbara Rychalska, and Jacek Dabrowski. On the unreasonable effectiveness of cen- troids in image retrieval. In International Conference on Neural Information Processing, pages 212-223, Bali, Indonesia, Dec. 2021. Springer.
  44. [Wu et al., 2016] Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In Computer Vision and Pattern Recognition, Las Vegas, NV, USA, Jun. 2016. IEEE.
  45. [Yang et al., 2021] Jing Yang, Brais Martinez, et al. Knowledge distillation via softmax regression representation learning. In In- ternational Conference on Learning Representations. OpenRe- view.net, 2021.
  46. [Yang et al., 2022] Zhendong Yang, Zhe Li, et al. Focal and global knowledge distillation for detectors. In Computer Vision and Pattern Recognition, pages 4643-4652, New Orleans, LA, USA, Jun. 2022. IEEE.
  47. [Yin et al., 2020] Hongxu Yin, Pavlo Molchanov, et al. Dream- ing to distill: Data-free knowledge transfer via deepinversion. In Computer Vision and Pattern Recognition, pages 8715-8724, Seattle, WA, USA, Jun. 2020. IEEE. [Zagoruyko and Komodakis, 2016a] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In International Conference on Learning Representa- tions(ICLR), 2016.
  48. [Zagoruyko and Komodakis, 2016b] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In British Machine Vision Conference, pages 1-15, York, UK, Sept. 2016. BMVA.
  49. [Zhang and Ma, 2021] Linfeng Zhang and Kaisheng Ma. Improve object detection with feature-based knowledge distillation: To- wards accurate and efficient detectors. In International Confer- ence on Learning Representations, Vienna, Austria, May 2021. OpenReview.net, 2021.
  50. [Zhao et al., 2017] Hengshuang Zhao, Jianping Shi, Xiaojuan Qi, Xiaogang Wang, and Jiaya Jia. Pyramid scene parsing net- work. In Computer Vision and Pattern Recognition, Honolulu, HI, USA, Jul, 2017. IEEE.
  51. [Zhao et al., 2020] Hengshuang Zhao, Jiaya Jia, and Vladlen Koltun. Exploring self-attention for image recognition. In Com- puter Vision and Pattern Recognition, pages 10076-10085, Seat- tle, WA, USA, Jun. 2020. IEEE.
  52. [Zhao et al., 2022] Borui Zhao, Quan Cui, Renjie Song, Yiyu Qiu, and Jiajun Liang. Decoupled knowledge distillation. In Confer- ence on Computer Vision and Pattern Recognition, pages 11953- 11962, New Orleans, LA, USA, Jun. 2022. IEEE.
  53. [Zhixing et al., 2021] Du Zhixing, Rui Zhang, Ming Chang, Shaoli Liu, Tianshi Chen, Yunji Chen, et al. Distilling object detectors with feature richness. Neural Information Processing Systems, 34:5213-5224, Dec. 2021.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards