用剪枝技术让小模型在孟加拉语上媲美大模型。
BnBERT-iPET: Sparse Few-Shot Language Modeling for Bengali via Lottery Ticket Pruning

- 基于彩票理论剪掉90%参数,只保留10%关键连接。
- 仅用少量样本训练,性能接近大模型在孟加拉语任务上的表现。
- 适合计算资源少却需高效语言模型的低资源语言研究者。
深度神经网络在自然语言处理中表现优异,但依赖大规模预训练模型如BERT时成本高、耗时长且碳排放大,难以在计算能力有限的设备上部署,尤其对孟加拉语等低资源语言构成障碍。然而复杂模型中并非所有连接都同等重要,部分可被忽略。通过剪枝可减少内存占用、缩短训练时间并提升推理效率而不损失性能。本文提出BnBERT-iPET,一种面向孟加拉语的稀疏少样本语言建模方法,实验表明,仅保留初始模型10%连接的轻量级模型,在少样本条件下经迭代模式利用训练(iPET)和彩票理论剪枝(Lottery Ticket Hypothesis),在挑战性任务上表现与更大模型相当。该模型在标准孟加拉语基准数据集上,以90%稀疏度超越或媲美Bangla Electra、Indic-BERT和XLM-RoBERTa等先进模型。
原文摘要 · Abstract (English)
Deep neural networks have shown impressive success in NLP tasks owing to their complex structure and huge number of edges. Achieving state-of-the-art performance in natural language processing with a large pre-trained model such as BERT is expensive and time-consuming, carries a large carbon footprint, and is difficult to realize on machines with minimal computational capability. This creates a barrier to training complex models for resource-constrained languages such as Bengali. However, in a complex neural model, not all edges are equally impactful, and the contributions of some of them can be neglected. Pruning promises to reduce the memory footprint of regular networks, shorten the training time of ever-growing networks, and increase inference efficiency without sacrificing comparable performance. In this work, we introduce BnBERT-iPET, a sparse few-shot language modeling approach for Bengali, and experimentally show that a lightweight few-shot-learned language model retaining only 10% of the edges of an initial model such as BERT can perform neck and neck with much larger models on challenging tasks for a resource-constrained language such as Bengali. By learning from few shots through iterative pattern exploiting training and achieving 90% sparsity with the Lottery Ticket Hypothesis pruning technique, our pruned BnBERT-iPET model proves to be a tough competitor to state-of-the-art language models such as Bangla Electra, Indic-BERT, and XLM-RoBERTa on downstream tasks over standard benchmark datasets of the Bengali language.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。