使用pQRNN将大语言模型提炼为小型有效的学生
Distilling Large Language Models into Tiny and Effective Students using pQRNN
摘要:
mBERT、XLM-R等大型预训练多语言模型在语言理解任务上实现了最先进的结果。但是,它们并不适合服务器和边缘设备上的延迟关键型应用程序。减少这些模型所需的内存和计算资源非常重要。为此,我们提出了pQRNN,这是一种基于投影的无嵌入神经编码器,对于自然语言处理任务来说,它很小,而且很有效。在没有预训练的情况下,pQRNN的性能明显优于具有预训练嵌入的LSTM模型,尽管它比LSTM模型小了140倍。在参数数量相同的情况下,它们的性能优于Transformer基线,从而展示了它们的参数效率。此外,我们还证明了pQRNN是提取大型预训练语言模型的有效学生架构。我们进行了仔细的消融,研究pQRNN参数,数据增强和蒸馏设置的影响。在MTOP上,一个具有挑战性的多语言语义解析数据集,pQRNN学生实现了mBERT教师的95.9%的性能,同时小了350倍。在mATIS上,一个流行的解析任务,pQRNN学生平均能够达到老师的97.1%,同时又小了350倍。我们的强有力的结果表明,我们的方法是伟大的延迟敏感的应用程序,同时能够利用大型mBERT类模型。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。