arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2311.16298cs.LGcs.CL
收藏

大规模影响分数用于高效语言数据采样

Influence Scores at Scale for Efficient Language Data Sampling

Amazon Alexa AI(亚马逊Alexa人工智能部门)

Nikhil Anand, Joshua Tan, Maria Minakova

AI总结:

本文研究了影响分数在语言分类任务中的适用性,通过在SNLI和语音助手NLU场景中评估多种分数(尤其是梯度方差VoG),证明编码器语言模型可在约50%数据上微调而不损失性能,并总结了噪声与类别不平衡下的采样建议。

摘要:

现代机器学习系统摄取来自多种来源聚合的数据,例如合成数据、人工标注数据和实时客户流量数据。理解哪些示例对学习算法的性能至关重要,对于高效模型训练十分关键。近年来,越来越多的文献提出了各种“影响分数”,这些分数利用模型置信度或检查点梯度等训练产物来识别重要的数据子集。然而,这些方法主要在计算机视觉场景中开发,它们在基于语言的任务中使用预训练模型时的泛化能力仍不清楚。在本文中,我们探索了影响分数在语言分类任务中的适用性。我们通过在SNLI数据集上量化随机采样和基于影响分数的采样对训练数据进行剪枝后的准确率变化,评估了这些分数中的一个多样化子集。然后,我们在一个暴露于语音助手类场景中动态用户语音模式的NLU模型栈上,对其中一种分数——“梯度方差”(VoG,来自Agarwal et al. (2022))进行了压力测试。我们的实验表明,在许多情况下,基于编码器的语言模型可以在大约50%的原始数据上进行微调,而性能指标不会下降。在此过程中,我们总结了应用现成影响分数实现的经验教训,量化了噪声数据和类别不平衡数据的影响,并就基于分数的采样提出了建议,以获得更好的准确率和训练效率。

英文摘要:

Modern ML systems ingest data aggregated from diverse sources, such as synthetic, human-annotated, and live customer traffic. Understanding \textit{which} examples are important to the performance of a learning algorithm is crucial for efficient model training. Recently, a growing body of literature has given rise to various "influence scores," which use training artifacts such as model confidence or checkpointed gradients to identify important subsets of data. However, these methods have primarily been developed in computer vision settings, and it remains unclear how well they generalize to language-based tasks using pretrained models. In this paper, we explore the applicability of influence scores in language classification tasks. We evaluate a diverse subset of these scores on the SNLI dataset by quantifying accuracy changes in response to pruning training data through random and influence-score-based sampling. We then stress-test one of the scores -- "variance of gradients" (VoG) from Agarwal et al. (2022) -- in an NLU model stack that was exposed to dynamic user speech patterns in a voice assistant type of setting. Our experiments demonstrate that in many cases, encoder-based language models can be finetuned on roughly 50% of the original data without degradation in performance metrics. Along the way, we summarize lessons learned from applying out-of-the-box implementations of influence scores, quantify the effects of noisy and class-imbalanced data, and offer recommendations on score-based sampling for better accuracy and training efficiency.

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

↑