[Paper Review] Distilling Large Language Models into Tiny and Effective Students using pQRNN
This paper proposes pQRNN, a tiny, embedding-free neural encoder that achieves state-of-the-art efficiency in distilling large pre-trained multilingual models like mBERT. Without pre-training, pQRNNs outperform LSTMs with pre-trained embeddings and match 95.9–97.1% of mBERT’s performance on semantic parsing tasks while being 350x smaller, demonstrating high parameter efficiency and strong distillation capability.
Large pre-trained multilingual models like mBERT, XLM-R achieve state of the art results on language understanding tasks. However, they are not well suited for latency critical applications on both servers and edge devices. It's important to reduce the memory and compute resources required by these models. To this end, we propose pQRNN, a projection-based embedding-free neural encoder that is tiny and effective for natural language processing tasks. Without pre-training, pQRNNs significantly outperform LSTM models with pre-trained embeddings despite being 140x smaller. With the same number of parameters, they outperform transformer baselines thereby showcasing their parameter efficiency. Additionally, we show that pQRNNs are effective student architectures for distilling large pre-trained language models. We perform careful ablations which study the effect of pQRNN parameters, data augmentation, and distillation settings. On MTOP, a challenging multilingual semantic parsing dataset, pQRNN students achieve 95.9\% of the performance of an mBERT teacher while being 350x smaller. On mATIS, a popular parsing task, pQRNN students on average are able to get to 97.1\% of the teacher while again being 350x smaller. Our strong results suggest that our approach is great for latency-sensitive applications while being able to leverage large mBERT-like models.
Motivation & Objective
- To develop a highly parameter-efficient student model for distilling large pre-trained multilingual language models.
- To eliminate the need for token embeddings, reducing model size and computational overhead.
- To achieve high performance on semantic parsing tasks with minimal parameters and inference cost.
- To enable effective knowledge distillation from large teachers like mBERT to small, efficient student models.
- To demonstrate that pQRNNs can match 95%+ of teacher performance while being drastically smaller.
Proposed method
- pQRNN uses a projection-based architecture that learns token representations directly from input text, avoiding learnable token embeddings.
- The model employs a quasi-Recurrent Neural Network (QRNN) structure with parameter-efficient projections for sequence modeling.
- Knowledge distillation is applied by training the pQRNN student on soft labels (logits) from a fine-tuned mBERT teacher model.
- A data augmentation strategy is introduced to improve student generalization and performance.
- Model compression is achieved via 8-bit quantization, reducing model size without significant accuracy drop.
- The approach enables decoupled evolution of teacher and student models, with the student optimized for specific tasks.
Experimental results
Research questions
- RQ1Can an embedding-free neural encoder achieve high performance on NLP tasks while being significantly smaller than standard models?
- RQ2How effective is pQRNN as a student architecture for distilling knowledge from large pre-trained models like mBERT?
- RQ3What impact do pQRNN hyperparameters, data augmentation, and distillation settings have on final performance?
- RQ4To what extent can a tiny pQRNN model match the performance of a large mBERT teacher on multilingual semantic parsing tasks?
- RQ5Can pQRNNs maintain high accuracy while reducing model size by 350x, making them suitable for latency-sensitive edge applications?
Key findings
- On the MTOP dataset, pQRNN students achieve 95.9% of the mBERT teacher’s performance while being 350x smaller.
- On the mATIS dataset, pQRNN students achieve an average of 97.1% of the mBERT teacher’s performance with the same 350x size reduction.
- Without pre-training, pQRNNs outperform LSTMs with pre-trained embeddings despite being 140x smaller.
- With the same number of parameters, pQRNNs outperform transformer baselines, demonstrating superior parameter efficiency.
- The proposed data augmentation strategy further improves student model quality and robustness.
- pQRNNs achieve strong performance even with 8-bit quantization, confirming their suitability for low-resource deployment.
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.