arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.02675cs.SE
收藏

TIPICAL——关键精度级别下的 Python 类型推断

TIPICAL -- Type Inference for Python In Critical Accuracy Level

Jonathan Elkobi, Bernd Gruner, Tim Sonnekalb, Clemens-Alexander Brust

AI总结:

本文提出 TIPICAL 方法,结合深度相似性学习与新异性检测,过滤未知和错误预测,从而在 Python 类型推断中实现高置信度预测并超越 Type4Py 的 F1 表现。

摘要:

基于深度学习的类型推断方法正变得越来越流行,因为它们旨在弥补静态和动态分析方法的不足,例如高不确定性。然而,其实际应用仍存在争议,原因在于若干固有问题,例如来自不同软件领域的代码会涉及类型推断系统未知的数据类型。为了克服这些问题并获得高置信度预测,我们提出了 TIPICAL,一种将深度相似性学习与新异性检测相结合的方法。我们表明,通过成功过滤掉未知和不准确的预测数据类型,我们的方法能够以高置信度更好地预测数据类型,并相对于最先进的类型推断方法 Type4Py 取得更高的 F1 分数。此外,我们还研究了不同软件领域和数据类型频率如何影响我们方法的结果。

英文摘要:

Type inference methods based on deep learning are becoming increasingly popular as they aim to compensate for the drawbacks of static and dynamic analysis approaches, such as high uncertainty. However, their practical application is still debatable due to several intrinsic issues such as code from different software domains will involve data types that are unknown to the type inference system. In order to overcome these problems and gain high-confidence predictions, we thus present TIPICAL, a method that combines deep similarity learning with novelty detection. We show that our method can better predict data types in high confidence by successfully filtering out unknown and inaccurate predicted data types and achieving higher F1 scores to the state-of-the-art type inference method Type4Py. Additionally, we investigate how different software domains and data type frequencies may affect the results of our method.

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

↑