arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.12683cs.LGcs.CVmath.STstat.TH

TorchCP: 一个用于置信预测的 Python 库

TorchCP: A Python Library for Conformal Prediction

Southern University of Science and Technology(南方科技大学);Nanyang Technological University(南洋理工大学);Nanjing University(南京大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Jianguo Huang, Jianqing Song, Xuanning Zhou, Bingyi Jing, Hongxin Wei

AI总结:

TorchCP 是一个基于 PyTorch 的库,旨在将先进的置信预测算法集成到深度学习技术中,提升大规模数据中的不确定性量化能力。

摘要:

置信预测(CP)是一种强大的统计框架,能够生成具有保证覆盖概率的预测区间或集合。尽管 CP 算法已超越传统的分类器和回归器,发展到包括深度神经网络(DNNs)、图神经网络(GNNs)和大语言模型(LLMs)等复杂的深度学习模型,现有的 CP 库往往缺乏对大规模深度学习(DL)场景的支持和可扩展性。本文介绍了 TorchCP,一个原生基于 PyTorch 的库,旨在将最先进的 CP 算法集成到深度学习技术中,包括基于 DNN 的分类器/回归器、GNNs 和 LLMs。该库以 LGPL-3.0 许可证发布,包含约 16000 行代码,经过 100% 的单元测试覆盖率和详细的文档验证。值得注意的是,TorchCP 能够实现 CP 特定的训练算法、在线预测和 GPU 加速的批量处理,在大规模数据集上实现了高达 90% 的推理时间减少。凭借其低耦合设计、全面的高级方法套件和完整的 GPU 可扩展性,TorchCP 使研究人员和实践者能够提升在前沿应用中的不确定性量化。

英文摘要:

Conformal prediction (CP) is a powerful statistical framework that generates prediction intervals or sets with guaranteed coverage probability. While CP algorithms have evolved beyond traditional classifiers and regressors to sophisticated deep learning models like deep neural networks (DNNs), graph neural networks (GNNs), and large language models (LLMs), existing CP libraries often lack the model support and scalability for large-scale deep learning (DL) scenarios. This paper introduces TorchCP, a PyTorch-native library designed to integrate state-of-the-art CP algorithms into DL techniques, including DNN-based classifiers/regressors, GNNs, and LLMs. Released under the LGPL-3.0 license, TorchCP comprises about 16k lines of code, validated with 100\% unit test coverage and detailed documentation. Notably, TorchCP enables CP-specific training algorithms, online prediction, and GPU-accelerated batch processing, achieving up to 90\% reduction in inference time on large datasets. With its low-coupling design, comprehensive suite of advanced methods, and full GPU scalability, TorchCP empowers researchers and practitioners to enhance uncertainty quantification across cutting-edge applications.

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

↑