Skip to main content
QUICK REVIEW

[논문 리뷰] One-for-All: Bridge the Gap Between Heterogeneous Architectures in Knowledge Distillation

Zhiwei Hao, Jianyuan Guo|arXiv (Cornell University)|2023. 10. 30.
Advanced Neural Network ApplicationsComputer Science인용 수 31
한 줄 요약

이 논문은 교차 아키텍처 지식 증류 프레임워크인 OFA-KD를 소개하며, 추가 Exit 분기와 적응 대상 정보 강화 손실을 사용하여 로짓 공간에서 이질적인 교사–학생 표현을 정렬하고 CNN, ViT 및 MLP 학생의 성능을 향상시킨다.

ABSTRACT

Knowledge distillation~(KD) has proven to be a highly effective approach for enhancing model performance through a teacher-student training scheme. However, most existing distillation methods are designed under the assumption that the teacher and student models belong to the same model family, particularly the hint-based approaches. By using centered kernel alignment (CKA) to compare the learned features between heterogeneous teacher and student models, we observe significant feature divergence. This divergence illustrates the ineffectiveness of previous hint-based methods in cross-architecture distillation. To tackle the challenge in distilling heterogeneous models, we propose a simple yet effective one-for-all KD framework called OFA-KD, which significantly improves the distillation performance between heterogeneous architectures. Specifically, we project intermediate features into an aligned latent space such as the logits space, where architecture-specific information is discarded. Additionally, we introduce an adaptive target enhancement scheme to prevent the student from being disturbed by irrelevant information. Extensive experiments with various architectures, including CNN, Transformer, and MLP, demonstrate the superiority of our OFA-KD framework in enabling distillation between heterogeneous architectures. Specifically, when equipped with our OFA-KD, the student models achieve notable performance improvements, with a maximum gain of 8.0% on the CIFAR-100 dataset and 0.7% on the ImageNet-1K dataset. PyTorch code and checkpoints can be found at https://github.com/Hao840/OFAKD.

연구 동기 및 목표

  • 이질적인 아키텍처(CNN, Transformer, MLP) 간의 특징 공간이 크게 다를 때 지식 증류를 동기화한다.
  • 교차-아키텍처 KD에서 직접적인 특징 매칭이 효과적이지 않음을 보이고 로짓 공간 정렬 전략을 제안한다.
  • 교사 신뢰도에 기반하여 대상 클래스 정보를 강조하는 적응형 손실(OFA)을 개발한다.
  • CIFAR-100과 ImageNet-1K에서 다양한 교사–학생 쌍에 걸친 폭넓은 실험적 이점을 입증한다.

제안 방법

  • 교수 단계에서 학생에 종료(exit) 분기를 도입해 중간 특징을 로짓 공간으로 투영하고 교차-아키텍처 증류를 수행한다.
  • 중간 특징에서 아키텍처 특이 정보 제거하고 여러 학생 출구의 로짓을 교사와 정합시킨다.
  • 교사 신뢰도에 따라 대상 정보 강화를 자동으로 조정하는 γ 매개 변수를 가진 수정된 KD 손실(OFA)을 제시한다.
  • 출구 배치 위치, 최적화 하이퍼파라미터 및 γ 설정 등 학습 세부정보에 대한 지침을 제공한다.]
  • research_questions:[

실험 결과

연구 질문

  • RQ1교사와 학생이 이질적인 아키텍처(CNN, ViT, MLP)인 경우에도 교차-아키텍처 지식 증류가 효과적으로 수행될 수 있는가?
  • RQ2추가 Exit를 통해 로짓 공간에서 표현을 정렬하는 것이 아키텍처 간 지식의 의미 있는 전이를 가능하게 하는가?
  • RQ3교사 신뢰도가 샘플마다 달라질 때 적응형 대상 정보 강화 손실이 증류를 향상시키는가?
  • RQ4다양한 교사–학생 쌍에 대해 OFA-KD가 CIFAR-100 및 ImageNet-1K에서 어떤 경험적 이점을 보여주는가?

주요 결과

  • OFA-KD는 모든 이질적 조합에서 강력한 baselines에 대해 일관된 이득을 제공하며, CIFAR-100에서 최대 8.0% 정확도 향상, ImageNet-1K에서 최대 0.7% 향상을 보인다.
  • 중간 표현을 로짓 공간으로 정렬하면 아키텍처 특이 정보를 제거하고 이질적 증류를 가능하게 한다.
  • 적응형 OFA 손실(γ 매개 변수가 있는)은 교사가 자신감 있을 때 대상 정보를 증가시키고 교사가 불확실할 때 간섭을 완화한다.
  • ablation 연구에서 여러 출구를 네 단계에 걸쳐 배치하는 것이 최상의 성능을 낳는다.
  • 이질적 교사를 사용하는 증류가 일부 아키텍처(예: ViT-B 교사와 함께 ResNet50)의 경우 동종 교사 설정보다 더 나은 성능을 보일 수 있어 교차-아키텍처 KD의 가치를 강조한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.