arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.08957cs.CL
收藏

《像一个优质近邻:实用内容审核与文本分类》

Like a Good Nearest Neighbor: Practical Content Moderation and Text Classification

Technical University of Darmstadt(达姆施塔特工业大学)

Luke Bates, Iryna Gurevych

AI总结:

针对少样本文本分类依赖大模型难部署的问题,提出无额外可学习参数的LaGoNN方案,通过引入训练数据近邻信息修改输入来优化SetFit,在内容审核等多场景下提升了分类性能。

摘要:

少样本文本分类系统虽具备出色性能,但因依赖提示工程和十亿参数级语言模型,难以可靠部署与使用。SetFit(Tunstall等人,2022)是近年提出的实用方案,它在对比学习范式下微调Sentence Transformer,取得了与更庞大的系统相近的效果。低成本文本分类对于解决所有分类任务中的领域漂移问题至关重要,尤其在检测社交媒体平台普遍存在的有害内容方面作用突出。本文提出Like a Good Nearest Neighbor(LaGoNN,近邻辅助分类框架),这是对SetFit的改进方案:它不引入任何可学习参数,而是利用训练数据中最近邻样本的信息(如标签和文本)修改输入文本,使新数据看起来与模型优化过的样本更相似。LaGoNN在不良内容标记和文本分类任务中均有效,能提升SetFit的性能。为验证LaGoNN的价值,我们针对内容审核场景下的四种标签分布,以及通用和多语言分类设置,对文本分类系统开展了全面研究。

英文摘要:

Few-shot text classification systems have impressive capabilities but are infeasible to deploy and use reliably due to their dependence on prompting and billion-parameter language models. SetFit (Tunstall et al., 2022) is a recent, practical approach that fine-tunes a Sentence Transformer under a contrastive learning paradigm and achieves similar results to more unwieldy systems. Inexpensive text classification is important for addressing the problem of domain drift in all classification tasks, and especially in detecting harmful content, which plagues social media platforms. Here, we propose Like a Good Nearest Neighbor (LaGoNN), a modification to SetFit that introduces no learnable parameters but alters input text with information from its nearest neighbor, for example, the label and text, in the training data, making novel data appear similar to an instance on which the model was optimized. LaGoNN is effective at flagging undesirable content and text classification, and improves the performance of SetFit. To demonstrate the value of LaGoNN, we conduct a thorough study of text classification systems in the context of content moderation under four label distributions, and in general and multilingual classification settings.

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

↑