arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.08688cs.CLcs.AI
收藏

通过子空间嵌入实现神经语言模型的轻量级适配

Lightweight Adaptation of Neural Language Models via Subspace Embedding

University of Surrey(萨里大学);University of Southampton(南安普顿大学)

Amit Kumar Jaiswal, Haiming Liu

AI总结:

本文提出一种基于子空间嵌入与 token 上下文分配的紧凑嵌入结构,可将预训练语言模型嵌入压缩超过99.8%,且绝对准确率损失不超过4%。

摘要:

传统神经词嵌入通常依赖更丰富多样的词汇。然而,语言模型倾向于通过词嵌入参数覆盖主要词汇,尤其是对于多语言语言模型而言,这些嵌入通常占其全部学习参数的很大一部分。在本工作中,我们提出一种新的紧凑嵌入结构,以降低预训练语言模型的内存占用,其代价是绝对准确率最多下降4%。嵌入向量的重构遵循一组子空间嵌入,并利用预训练语言模型中 token 之间的上下文关系执行分配过程。该子空间嵌入结构针对掩码语言模型进行校准,以便在相似度和文本蕴含任务、句子任务及释义任务上评估我们的紧凑嵌入结构。实验评估表明,在 XNLI 和 GLUE 基准套件上,与语言模型的原始嵌入相比,子空间嵌入实现了超过99.8%的压缩率。

英文摘要:

Traditional neural word embeddings are usually dependent on a richer diversity of vocabulary. However, the language models recline to cover major vocabularies via the word embedding parameters, in particular, for multilingual language models that generally cover a significant part of their overall learning parameters. In this work, we present a new compact embedding structure to reduce the memory footprint of the pre-trained language models with a sacrifice of up to 4% absolute accuracy. The embeddings vectors reconstruction follows a set of subspace embeddings and an assignment procedure via the contextual relationship among tokens from pre-trained language models. The subspace embedding structure calibrates to masked language models, to evaluate our compact embedding structure on similarity and textual entailment tasks, sentence and paraphrase tasks. Our experimental evaluation shows that the subspace embeddings achieve compression rates beyond 99.8% in comparison with the original embeddings for the language models on XNLI and GLUE benchmark suites.

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

↑