Knodle: Modular Weakly Supervised Learning with PyTorch

Anastasiia Sedova, Andreas Stephan, Marina Speranskaya, Benjamin Roth
4/23/2021
cs.LGcs.CL

Official code: knodle/knodle (108 stars, Python, Apache-2.0, PyTorch, last commit 2024-09-10).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

knodle/knodleOfficial100%
PyTorchApache-2.0

A PyTorch-based open-source framework that provides methods for improving the weakly annotated data and allows researchers to efficiently develop and compare their own methods.

10815PythonNov 4, 20202 years agoApache-2.0
aiclassificationdenoising-methodsknodlemachine-learning+7 more

Similar Papers

Cite this paper

@article{sedova2021knodle,
  title  = {Knodle: Modular Weakly Supervised Learning with PyTorch},
  author = {Anastasiia Sedova and Andreas Stephan and Marina Speranskaya and Benjamin Roth},
  year   = {2021},
  eprint = {2104.11557},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.11557}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.11557.svg)](https://codeofpaper.com/paper/2104.11557)

Discussion