probly:一个 Python 包统一不确定性机器学习工具链
probly: Uncertainty-Aware Machine Learning
做 ML 部署的朋友注意,uncertainty 这块以前要翻好几个库拼工具,现在 probly 一个包搞定,PyTorch、sklearn、Flax 的模型都能直接转换。论文里还带 selective prediction 和 OOD 检测的基准,做可靠性评估或主动学习的话直接翻 GitHub 代码就能上手。
研究团队在 arXiv 发布论文,介绍开源 Python 包 probly(GitHub 地址 github.com/pwhofman/probly),把分散在各框架中的不确定性建模工具整合进一个模块化框架。该包提供四类组件:针对已有模型的轻量转换、多种不确定性表示(二阶分布、credal sets、conformal prediction)、对应的量化指标,以及评估协议,各组件可自由组合。
probly 目前支持 PyTorch、scikit-learn 和 Flax 三种框架,用户无需重写模型即可将其转为不确定性感知版本。论文基于 selective prediction、out-of-distribution detection、active learning 三项标准任务做了基准研究,并额外在 first-order data(标签本身是结果分布的数据集)上评估方法,这是现有基准缺少的部分。案例研究还覆盖大语言模型、图神经网络和数据流等非标准场景。
在此之前,从业者做不确定性量化需要在不同库之间拼凑,且工具往往绑定单一框架和单一建模范式,选择与评估基本靠自行摸索。probly 的统一接口降低了跨方法比较的门槛,对需要部署可靠性保障的工程团队和做不确定性方向研究的学者都有直接参考价值。
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.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:probly、conformal prediction、PyTorch、scikit-learn,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「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),经 AITOP 多维评分管线结构化提炼。