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

Small-Text:Python 中面向文本分类的主动学习

Small-Text: Active Learning for Text Classification in Python

Leipzig University(莱比锡大学);Institute for Applied Informatics (InfAI)(应用信息学研究所(InfAI))

Christopher Schröder, Lydia Müller, Andreas Niekler, Martin Potthast

AI总结:

研究推出Python主动学习库small-text,支持多类文本分类场景,集成主流机器学习库,通过实验验证SetFit训练范式在准确率与transformer微调相当、AUC更优,为主动学习实验与应用开发提供便捷工具。

摘要:

我们推出 small-text,这是一款易于使用的主动学习库,可在 Python 中为单标签和多标签文本分类提供基于池的主动学习支持。它内置了多种当前最先进的查询策略,其中部分策略可利用 GPU 加速。该库采用标准化接口,支持组合多种分类器、查询策略与停止准则,便于用户快速混搭配置,从而能便捷高效地开展主动学习实验并开发相关应用。为了让各类分类器和查询策略都能用于主动学习,small-text 集成了多个知名机器学习库,即 scikit-learn、PyTorch 以及 Hugging Face transformers。后两者的集成为可选安装扩展,因此支持使用 GPU 但并非必需。借助这个新库,我们研究了最新发布的 SetFit 训练范式的性能,将其与原生 transformer 微调进行对比,发现二者分类准确率相当,但 SetFit 的曲线下面积表现更优。该库以 MIT 许可证发布,可在 https://github.com/webis-de/small-text 获取,撰写本文时版本为 1.3.0。

英文摘要:

We introduce small-text, an easy-to-use active learning library, which offers pool-based active learning for single- and multi-label text classification in Python. It features numerous pre-implemented state-of-the-art query strategies, including some that leverage the GPU. Standardized interfaces allow the combination of a variety of classifiers, query strategies, and stopping criteria, facilitating a quick mix and match, and enabling a rapid and convenient development of both active learning experiments and applications. With the objective of making various classifiers and query strategies accessible for active learning, small-text integrates several well-known machine learning libraries, namely scikit-learn, PyTorch, and Hugging Face transformers. The latter integrations are optionally installable extensions, so GPUs can be used but are not required. Using this new library, we investigate the performance of the recently published SetFit training paradigm, which we compare to vanilla transformer fine-tuning, finding that it matches the latter in classification accuracy while outperforming it in area under the curve. The library is available under the MIT License at https://github.com/webis-de/small-text, in version 1.3.0 at the time of writing.

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

↑