$N$-gram Is Back: Residual Learning of Neural Text Generation with $n$-gram Language Model
Nara Institute of Science and Technology(奈良先端科学技术大学院大学);Institute for Interdisciplinary Information Sciences, Tsinghua University(清华大学交叉信息研究院);The Chinese University of Hong Kong(香港中文大学)
$N$-gram language models (LM) have been largely superseded by neural LMs as the latter exhibits better performance. However, we find that $n$-gram models can achieve satisfactory performance on a large proportion of testing cases, indicating they have already captured abundant knowledge of the language with relatively low computational cost. With this observation, we propose to learn a neural LM that fits the residual between an $n$-gram LM and the real-data distribution. The combination of $n$-gram and neural LMs not only allows the neural part to focus on the deeper understanding of language but also provides a flexible way to customize an LM by switching the underlying $n$-gram model without changing the neural model. Experimental results on three typical language tasks (i.e., language modeling, machine translation, and summarization) demonstrate that our approach attains additional performance gains over popular standalone neural models consistently. We also show that our approach allows for effective domain adaptation by simply switching to a domain-specific $n$-gram model, without any extra training. Our code is released at https://github.com/ghrua/NgramRes.
Towards the Development of Balanced Synthetic Data for Correcting Grammatical Errors in Arabic: An Approach Based on Error Tagging Model and Synthetic Data Generating Model
King Abdulaziz University(阿卜杜勒阿齐兹大学);Saudi Electronic University(沙特电子大学)
GRAM: Fast Fine-tuning of Pre-trained Language Models for Content-based Collaborative Filtering
Riiid AI Research(Riiid人工智能研究院)
基于内容的协同过滤(CCF)根据用户的交互历史和项目的内容信息来预测用户与项目的交互。最近,预训练的语言模型(PLM)已被用来提取高质量的项目编码的CCF。然而,以端到端(E2 E)方式训练基于PLM的CCF模型是资源密集型的,因为优化涉及通过给定用户交互序列内的每个内容编码的反向传播。为了解决这个问题,我们提出了一个新的概念,即CCF中多模态的梯度累积(Gradient Accumulation for Multi-modality in CCF),它利用了一个给定的项目经常在一批交互历史中出现多次的事实。具体来说,单步训练聚合每个项目编码的梯度进行反向传播,理论上等同于标准的E2 E训练。作为单步迭代的扩展,我们提出了多步迭代,它增加了梯度更新延迟,以更少的GPU内存实现了进一步的加速。在来自知识追踪和新闻推荐两个任务领域的五个数据集上,该算法显著提高了训练效率(高达146倍)。我们的代码可在https://github.com/yoonseok312/GRAM上获得。
ICD Coding from Clinical Text Using Multi-Filter Residual Convolutional Neural Network
University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校);Bedford Veterans Affairs Medical Center(贝德福德退伍军人事务医疗中心);University of Massachusetts Medical School(马萨诸塞大学医学院)