Papers

probly:一个 Python 包统一不确定性机器学习工具链

probly: Uncertainty-Aware Machine Learning

Why we picked it

做 ML 部署的朋友注意,uncertainty 这块以前要翻好几个库拼工具,现在 probly 一个包搞定,PyTorch、sklearn、Flax 的模型都能直接转换。论文里还带 selective prediction 和 OOD 检测的基准,做可靠性评估或主动学习的话直接翻 GitHub 代码就能上手。

研究团队在 arXiv 发布论文,介绍开源 Python 包 probly(GitHub 地址 github.com/pwhofman/probly),把分散在各框架中的不确定性建模工具整合进一个模块化框架。该包提供四类组件:针对已有模型的轻量转换、多种不确定性表示(二阶分布、credal sets、conformal prediction)、对应的量化指标,以及评估协议,各组件可自由组合。

Body

probly 目前支持 PyTorch、scikit-learn 和 Flax 三种框架,用户无需重写模型即可将其转为不确定性感知版本。论文基于 selective prediction、out-of-distribution detection、active learning 三项标准任务做了基准研究,并额外在 first-order data(标签本身是结果分布的数据集)上评估方法,这是现有基准缺少的部分。案例研究还覆盖大语言模型、图神经网络和数据流等非标准场景。

在此之前,从业者做不确定性量化需要在不同库之间拼凑,且工具往往绑定单一框架和单一建模范式,选择与评估基本靠自行摸索。probly 的统一接口降低了跨方法比较的门槛,对需要部署可靠性保障的工程团队和做不确定性方向研究的学者都有直接参考价值。

Original · arXiv cs.LG

probly: Uncertainty-Aware Machine Learning

As machine learning systems are increasingly deployed in real-world applications, the question of how to represent and quantify uncertainty has moved from a methodological side issue to a central concern. In practice, however, making a model uncertainty-aware is still surprisingly difficult: relevant tools tend to be scattered across libraries, each tied to a particular framework and a particular approach to modeling uncertainty, and the choice of representation, quantification, and evaluation is typically left to the user without much guidance. In this paper, we present probly, a Python package that addresses these issues in a single, modular framework. probly offers (i) lightweight transformations that turn existing models into uncertainty-aware ones, currently supporting PyTorch, scikit-learn, and Flax, (ii) several representations, including second-order distributions, credal sets, and conformal prediction, (iii) the corresponding quantification measures, and (iv) a number of evaluation protocols, which can be combined more or less arbitrarily. Using probly, we conduct a benchmark study on three standard tasks --- selective prediction, out-of-distribution detection, and active learning. In addition, and unlike existing benchmarks, we evaluate suitable methods on first-order data, i.e., datasets for which the target itself is a distribution over outcomes. We further illustrate the flexibility of the package on a number of less standard case studies, including large language models, graph neural networks, and data streams. The package is publicly available at https://github.com/pwhofman/probly.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include probly, conformal prediction, PyTorch, scikit-learn.

Source attribution: curated from arXiv cs.LG (@Paul Hofman, Clemens Damke, Timo Löhr, Santo M. A. R. Thies, Alireza Javanmardi, Valentin Margraf, Jakub Paplham, Yusuf Sale, Eyke Hüllermeier, Maximilian Muschalik).