Knowledge Distillation (Teacher-Student Model Compression)
Knowledge distillation trains a small student model to imitate a large teacher model. The student learns from the teacher's class probabilities, softened by a temperature so that the relative chances of the wrong classes stay visible, together with the true labels.
지식 증류는 작은 학생 모형이 큰 교사 모형을 흉내 내도록 학습시키는 방법입니다. 학생은 실제 정답과 함께, 틀린 범주들의 상대적 가능성도 보이도록 온도로 부드럽게 만든 교사의 범주별 확률에서 배웁니다.
Can a small, simple model keep most of the accuracy of a large model if it learns from the large model's predictions?
작고 단순한 모형이 큰 모형의 예측에서 배우면 큰 모형의 정확도를 대부분 유지할 수 있습니까?
The method reports held-out accuracy and log loss for the teacher, the distilled student and the same student trained on the true labels alone, and how often each student agrees with the teacher.
When to use Knowledge Distillation (Teacher-Student Model Compression)
- You need a smaller or more interpretable model for deployment and have a strong large model.
- You want to know whether learning from soft teacher outputs helps a simple model.
When to use something else
- You only need to explain a black-box model, not replace it: use LIME
- The large model itself is the deliverable: use Random Forest
Assumptions and requirements
- The teacher is more accurate than the student trained alone
- Training rows represent the inputs the student will see
- Categorical outcome
What the analysis reports
- Teacher, distilled student and baseline student accuracy and log loss
- Agreement with the teacher
- Number of student parameters
How to report it
Distilling a random forest teacher (held-out accuracy [value]) into a softmax regression student at temperature T = [value] gave held-out accuracy [value] versus [value] for the same student trained on hard labels.
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-6.
독립 계산. scikit-learn·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-6).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Knowledge Distillation (Teacher-Student Model Compression) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.