Strategies for improving the training and prediction quality of weakly supervised machine learning models vary in how much they are tailored to a specific task or integrated with a specific model architecture. In this work, we introduce Knodle, a software framework that treats weak data annotations, deep learning models, and methods for improving weakly supervised training as separate, modular components. This modularization gives the training process access to fine-grained information such as data set characteristics, matches of heuristic rules, or elements of the deep learning model ultimately used for prediction. Hence, our framework can encompass a wide range of training methods for improving weak supervision, ranging from methods that only look at correlations of rules and output classes (independently of the machine learning model trained with the resulting labels), to those that harness the interplay of neural networks and weakly labeled data. We illustrate the benchmarking potential of the framework with a performance comparison of several reference implementations on a selection of datasets that are already available in Knodle. The framework is published as an open-source Python package knodle and available at https://github.com/knodle/knodle.
翻译:在这项工作中,我们引入了Knodle,这是一个软件框架,将薄弱的数据说明、深层学习模式和改进薄弱监督培训的方法作为单独的模块部分处理。这种模块化使培训过程有机会获得精细的分类信息,如数据集特征、与疲软监督的机械学习规则匹配,或最终用于预测的深层学习模式的要素。因此,我们的框架可以包括一系列广泛的培训方法,以改进薄弱监督,从只看规则和产出类别的相关性的方法(取决于经过相关标签培训的机器学习模式)、利用神经网络的相互作用和标签薄弱的数据的方法,到对框架的基准潜力进行业绩比较,对在Knodle已有的数据集选择的若干参考执行情况进行比较。这个框架作为开放源Python软件包出版,可在https://github.com/knodle/knodle查阅。