[論文レビュー] One-for-All: Bridge the Gap Between Heterogeneous Architectures in Knowledge Distillation
本論文は OFA-KD、追加の退出ブランチと適応型ターゲット情報強化ロスを用いて logits 空間で異種教師–学生表現を整合させるクロスアーキテクチャ知識蒸留フレームワークを提案し、CNN、ViT、MLP の学生の性能を向上させる。
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 で複数の教師–学生ペアに対して広範な実証的改善を示す。
提案手法
- クロスアーキテクチャ蒸留のために中間特徴をロジット空間へ射影するエグジット(退出)ブランチを学生に導入する。
- 教師のロジットと複数の学生出口を一致させ、中間特徴からアーキテクチャ固有の情報を除去する。
- 適応的にターゲット情報を強化するための修正KD損失(OFA)を、変調パラメータ gamma を用いて形成する。
- 出口の配置場所や最適化ハイパーパラメータおよび gamma の設定方法など、トレーニングの詳細に関するガイダンスを提供する。
実験結果
リサーチクエスチョン
- RQ1教師と学生がヘテロアーキテクチャ(CNN、ViT、MLP)である場合、クロスアーキテクチャ知識蒸留は効果的に実施できるか?
- RQ2追加の出口を介してロジット空間で表現を整合させることは、アーキテクチャ間で意味のある知識移転を可能にするか?
- RQ3教師の信頼度がサンプルごとに変化する場合、適応的なターゲット情報強化ロスは蒸留を改善するか?
- RQ4CIFAR-100 および ImageNet-1K における多様な教師–学生ペアでの OFA-KD の実証的な改善は何か?
主な発見
- OFA-KD はすべてのヘテロジニアスな組み合わせで強力なベースラインを一貫して上回り、CIFAR-100 で最大 8.0% の精度向上、ImageNet-1K で最大 0.7% の向上を達成する。
- 中間表現をロジット空間へ揃えることでアーキテクチャ固有の情報を除去し、クロスアーキテクチャ蒸留を可能にする。
- 変調パラメータ gamma を用いる適応的な OFA ロス は、教師が自信を持つときにターゲット情報を増やし、教師が不確かなときには干渉を抑制する。
- アブレーション研究において、複数の出口を使用し4つの段階に配置することが最良の性能を生むことを示している。
- ヘテロジニアスな教師を用いた蒸留は、特定のアーキテクチャで同質教師設定を上回ることがあり得る(例:ResNet50 を ViT-B 教師とする場合)、クロスアーキテクチャ KD の価値を強調している。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。