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

PyTAIL:人在回路中的NLP模型在线数据交互增量学习

PyTAIL: Interactive and Incremental Learning of NLP Models with Human in the Loop for Online Data

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Shubhanshu Mishra, Jana Diesner

摘要:

在线数据流使得训练机器学习模型变得困难,因为分布偏移和随着时间的推移出现的新模式。对于利用基于词典和规则的特征集合的自然语言处理(NLP)任务,使这些特征适应变化的数据是重要的。为了应对这一挑战,我们引入了PyTAIL,这是一个Python库,它允许一个人在循环中主动训练NLP模型。PyTAIL增强了通用的主动学习,它只建议新的实例进行标记,同时建议新的特征,如规则和词典进行标记。此外,PyTAIL足够灵活,用户可以在训练模型时接受、拒绝或更新规则和词典。最后,我们在现有的社交媒体基准数据集上模拟了PyTAIL的文本分类性能。我们在这些基准上比较了各种主动学习策略。该模型用少至10%的训练数据来缩小差距。最后,我们还强调了在测试数据集旁边跟踪剩余数据(尚未与主动学习合并)的评估指标的重要性。这突出了该模型在准确注释剩余数据集方面的有效性,特别适合于大型未标记语料库的批处理。PyTAIL将在https://github.com/socialmediaie/pytail上提供。

英文摘要:

Online data streams make training machine learning models hard because of distribution shift and new patterns emerging over time. For natural language processing (NLP) tasks that utilize a collection of features based on lexicons and rules, it is important to adapt these features to the changing data. To address this challenge we introduce PyTAIL, a python library, which allows a human in the loop approach to actively train NLP models. PyTAIL enhances generic active learning, which only suggests new instances to label by also suggesting new features like rules and lexicons to label. Furthermore, PyTAIL is flexible enough for users to accept, reject, or update rules and lexicons as the model is being trained. Finally, we simulate the performance of PyTAIL on existing social media benchmark datasets for text classification. We compare various active learning strategies on these benchmarks. The model closes the gap with as few as 10% of the training data. Finally, we also highlight the importance of tracking evaluation metric on remaining data (which is not yet merged with active learning) alongside the test dataset. This highlights the effectiveness of the model in accurately annotating the remaining dataset, which is especially suitable for batch processing of large unlabelled corpora. PyTAIL will be available at https://github.com/socialmediaie/pytail.

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

↑