mlsanityData to 7 Oct 2026

Deploying a BERT-based Query-Title Relevance Classifier in a Production System: a View from the Trenches

arXiv 2108.10197 ↗First posted 23 Aug 2021cs.CL stat.COcited by 2

Not on the map. Why?

Abstract (arXiv)

The Bidirectional Encoder Representations from Transformers (BERT) model has been radically improving the performance of many Natural Language Processing (NLP) tasks such as Text Classification and Named Entity Recognition (NER) applications. However, it is challenging to scale BERT for low-latency and high-throughput industrial use cases due to its enormous size. We successfully optimize a Query-Title Relevance (QTR) classifier for deployment via a compact model, which we name BERT Bidirectional Long Short-Term Memory (BertBiLSTM). The model is capable of inferring an input in at most 0.2ms on CPU. BertBiLSTM exceeds the off-the-shelf BERT model's performance in terms of accuracy and efficiency for the aforementioned real-world production task. We achieve this result in two phases. First, we create a pre-trained model, called eBERT, which is the original BERT architecture trained with our unique item title corpus. We then fine-tune eBERT for the QTR task. Second, we train the BertBiLSTM model to mimic the eBERT model's performance through a process called Knowledge Distillation (KD) and show the effect of data augmentation to achieve the resembling goal. Experimental results show that the proposed model outperforms other compact and production-ready models.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 14 of its 26 references that are in the map. First posted on arXiv 23 Aug 2021.

Builds on

14 of 26 references.

References · 14

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  7. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  8. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
  9. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  10. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  11. 2019Distilling Task-Specific Knowledge from BERT into Simple Neural Networkscited by 152
  12. 2018The Best of Both Worlds: Combining Recent Advances in Neural Machine Translationcited by 101
2 more
  1. 2020Understanding and Improving Knowledge Distillationcited by 83
  2. 2018Sequence-Level Knowledge Distillation for Model Compression of Attention-based Sequence-to-Sequence Speech Recognitioncited by 9

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.