arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.04350cs.CLcs.AIcs.LG
收藏

pNLP-Mixer:一种用于语言的高效全MLP架构

pNLP-Mixer: an Efficient all-MLP Architecture for Language

IBM Research(IBM研究院);Telepathy Labs(心灵感应实验室)

Francesco Fusco, Damian Pascual, Peter Staar, Diego Antognini

AI总结:

本文提出pNLP-Mixer,一种面向端侧NLP的无嵌入全MLP架构,通过新颖投影层实现高权重效率,仅1MB模型在多语言语义解析任务上以极低参数量接近mBERT性能并超越pQRNN。

摘要:

基于Transformer架构的大型预训练语言模型极大地改变了自然语言处理(NLP)的格局。然而,由于模型规模和推理成本,将这些模型部署到智能手表等资源受限设备上的端侧应用完全不切实际。作为基于Transformer架构的替代方案,近期关于高效NLP的研究表明,权重高效的模型能够以兆字节量级的模型规模,在槽填充和意图分类等简单任务上取得具有竞争力的性能。本文提出pNLP-Mixer架构,这是一种面向端侧NLP的无嵌入MLP-Mixer模型,借助一种新颖的投影层实现了高权重效率。我们在两个多语言语义解析数据集MTOP和multiATIS上评估了一个大小仅为1MB的pNLP-Mixer模型。我们的量化模型在MTOP和multiATIS上分别达到mBERT性能的99.4%和97.8%,而参数量仅为后者的1/170。我们的模型在MTOP上持续超越规模为其两倍的微型模型最新最优方法(pQRNN),领先幅度最高达7.8%。

英文摘要:

Large pre-trained language models based on transformer architecture have drastically changed the natural language processing (NLP) landscape. However, deploying those models for on-device applications in constrained devices such as smart watches is completely impractical due to their size and inference cost. As an alternative to transformer-based architectures, recent work on efficient NLP has shown that weight-efficient models can attain competitive performance for simple tasks, such as slot filling and intent classification, with model sizes in the order of the megabyte. This work introduces the pNLP-Mixer architecture, an embedding-free MLP-Mixer model for on-device NLP that achieves high weight-efficiency thanks to a novel projection layer. We evaluate a pNLP-Mixer model of only one megabyte in size on two multi-lingual semantic parsing datasets, MTOP and multiATIS. Our quantized model achieves 99.4% and 97.8% the performance of mBERT on MTOP and multi-ATIS, while using 170x fewer parameters. Our model consistently beats the state-of-the-art of tiny models (pQRNN), which is twice as large, by a margin up to 7.8% on MTOP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑