A Flexible Multi-Task Model for BERT Serving
Not on the map. Why?
Abstract (arXiv)
In this demonstration, we present an efficient BERT-based multi-task (MT) framework that is particularly suitable for iterative and incremental development of the tasks. The proposed framework is based on the idea of partial fine-tuning, i.e. only fine-tune some top layers of BERT while keep the other layers frozen. For each task, we train independently a single-task (ST) model using partial fine-tuning. Then we compress the task-specific layers in each ST model using knowledge distillation. Those compressed ST models are finally merged into one MT model so that the frozen layers of the former are shared across the tasks. We exemplify our approach on eight GLUE tasks, demonstrating that it is able to achieve both strong performance and efficiency. We have implemented our method in the utterance understanding system of XiaoAI, a commercial AI assistant developed by Xiaomi. We estimate that our model reduces the overall serving cost by 86%.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 28 of its 42 references that are in the map. First posted on arXiv 12 Jul 2021.
Builds on
28 of 42 references.
References · 28
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2018Deep contextualized word representationscited by 2,285
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
16 more
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2017An Overview of Multi-Task Learning in Deep Neural Networkscited by 791
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020AdapterHub: A Framework for Adapting Transformerscited by 441
- 2019What do you learn from context? Probing for sentence structure in contextualized word representationscited by 436
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
- 2019To Tune or Not to Tune? Adapting Pretrained Representations to Diverse Taskscited by 167
- 2020What Happens To BERT Embeddings During Fine-tuning?cited by 113
- 2020Understanding and Improving Information Transfer in Multi-Task Learningcited by 113
- 2020BERT-of-Theseus: Compressing BERT by Progressive Module Replacingcited by 112
- 2019Knowledge Distillation from Internal Representationscited by 87
- 2019BAM! Born-Again Multi-Task Networks for Natural Language Understandingcited by 85
- 2017Identifying beneficial task relations for multi-task learning in deep neural networkscited by 59
- 2020The Microsoft Toolkit of Multi-Task Deep Neural Networks for Natural Language Understandingcited by 28
- 2016When is multitask learning effective? Semantic sequence prediction under varying data conditionscited by 21
Built on by
Citing papers per year: 2022: 2; 2023: 1; 2024: 1.
4 papers.
- 2023On Optimal Caching and Model Multiplexing for Large Model Inferencecited by 20
- 2022Embedding Recycling for Language Modelscited by 5
- 2022All Birds with One Stone: Multi-task Text Classification for Efficient Inference with One Forward Passcited by 0
- 2024Deploying Multi-task Online Server with Large Language Modelcited by 0
- 2024Deploying Multi-task Online Server with Large Language Model6 Nov 2024
- 2023On Optimal Caching and Model Multiplexing for Large Model Inference3 Jun 2023
- 2022Embedding Recycling for Language Models11 Jul 2022
- 2022All Birds with One Stone: Multi-task Text Classification for Efficient Inference with One Forward Pass22 May 2022