# MLKD-BERT: Multi-level Knowledge Distillation for Pre-trained Language Models

Source: [MLKD-BERT: Multi-level Knowledge Distillation for Pre-trained Language Models](<https://www.sota2.com/research/paper/68fa73e81e209131cea5ed71>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T02:59:03.375Z

Authors: Ying Zhang, Ziheng Yang, Shufan Ji

Published: 2024-07-03T03:03:30.000Z

## Abstract

Knowledge distillation is an effective technique for pre-trained language model compression. Although existing knowledge distillation methods perform well for the most typical model BERT, they could be further improved in two aspects: the relation-level knowledge could be further explored to improve model performance; and the setting of student attention head number could be more flexible to decrease inference time. Therefore, we are motivated to propose a novel knowledge distillation method MLKD-BERT to distill multi-level knowledge in teacher-student framework. Extensive experiments on GLUE benchmark and extractive question answering tasks demonstrate that our method outperforms state-of-the-art knowledge distillation methods on BERT. In addition, MLKD-BERT can flexibly set student attention head number, allowing for substantial inference time decrease with little performance drop.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2407.02775>)

[PDF](<https://arxiv.org/pdf/2407.02775.pdf>)
