[Paper Review] Simplified TinyBERT: Knowledge Distillation for Document Retrieval
This paper proposes Simplified TinyBERT, a knowledge distillation framework that improves document retrieval performance by merging TinyBERT's two-stage training into one and incorporating hard labels into the loss. It achieves 15× faster inference than BERT-Base while significantly outperforming both BERT-Base and standard TinyBERT on MS MARCO and TREC 2019 DL benchmarks.
Despite the effectiveness of utilizing the BERT model for document ranking, the high computational cost of such approaches limits their uses. To this end, this paper first empirically investigates the effectiveness of two knowledge distillation models on the document ranking task. In addition, on top of the recently proposed TinyBERT model, two simplifications are proposed. Evaluations on two different and widely-used benchmarks demonstrate that Simplified TinyBERT with the proposed simplifications not only boosts TinyBERT, but also significantly outperforms BERT-Base when providing 15$ imes$ speedup.
Motivation & Objective
- To investigate the effectiveness of knowledge distillation for document ranking, a task where BERT's high inference cost limits deployment.
- To improve upon the TinyBERT model by simplifying its training process and enhancing distillation effectiveness for ranking tasks.
- To achieve a smaller, faster student model that surpasses BERT-Base in ranking performance while maintaining high efficiency.
Proposed method
- Merged the two steps of TinyBERT's task-specific distillation stage into a single training step using a combined loss function.
- Proposed a unified loss function combining attention, hidden state, embedding, and soft label distillation losses: $\mathcal{L} = \mathcal{L}_{attn} + \mathcal{L}_{hidn} + \mathcal{L}_{emb} + \mathcal{L}_{soft}$.
- Incorporated hard labels into the loss function to improve discrimination between relevant and non-relevant documents.
- Used a single-stage distillation process that initializes the student model with the first k layers of BERT-Base, eliminating the need for a separate general distillation stage.
- Performed hyperparameter search over temperature $T \in \{1,5,10\}$ and knowledge distillation weight $\alpha \in \{0.2,0.5,0.7\}$ on fixed-size student models.
- Evaluated the model on MS MARCO and TREC 2019 DL Track benchmarks using standard ranking metrics like MRR@10 and NDCG@10.
Experimental results
Research questions
- RQ1Can standard knowledge distillation and TinyBERT be effectively applied to document retrieval, a task with high inference cost constraints?
- RQ2Does merging the two steps of TinyBERT’s task-specific distillation into one improve performance and training efficiency?
- RQ3Can the addition of hard labels to the distillation loss enhance the model’s ability to distinguish relevant from non-relevant documents?
- RQ4Does the simplified training process of Simplified TinyBERT lead to better ranking performance than BERT-Base at 15× inference speedup?
- RQ5Can the proposed simplifications maintain or improve performance across different model sizes and re-ranking depths?
Key findings
- Simplified TinyBERT with the L6_H768 configuration significantly outperforms both BERT-Base and standard TinyBERT on the MS MARCO dev set under 15× speedup.
- On the TREC 2019 DL test set, Simplified TinyBERT outperforms BERT-Base in NDCG@10 when using the small L3_H384 student model, while TinyBERT performs significantly worse than BERT-Base in the same setting.
- At all re-ranking depths (top-10 to top-100), Simplified TinyBERT consistently outperforms BERT-Base and TinyBERT, with a 3.5% improvement in MRR@10 on the MS MARCO dev set at depth 100.
- The one-step training simplification reduces the second-stage training time by 42–52% compared to standard TinyBERT, with a 14.37h training time for L6_H768 versus 29.95h.
- The ablation study confirms that both simplifications—single-step training and hard label integration—contribute independently and synergistically to performance gains.
- The model achieves state-of-the-art performance among distilled models on document retrieval, with the L3_H384 variant achieving 15× speedup while surpassing BERT-Base in ranking effectiveness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.