arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.13032cs.SEcs.AIcs.LG
收藏

一种用于图数据标注的统一主动学习框架及其在软件源代码性能预测中的应用

A Unified Active Learning Framework for Annotating Graph Data with Application to Software Source Code Performance Prediction

Chalmers University of Technology(查尔姆斯理工大学);Fondazione Bruno Kessler(布鲁诺·凯塞勒基金会);University of Trento(特伦托大学)

Peter Samoaa, Linus Aronsson, Antonio Longa, Philipp Leitner, Morteza Haghir Chehreghani

AI总结:

本文提出一种基于FA-AST图表示和图嵌入的统一主动学习框架,用于软件源代码执行时间预测,实验证明仅需标注少量数据即可获得可观的预测性能。

摘要:

大多数机器学习和数据分析应用,包括软件系统中的性能工程,都需要大量的标注和带标签数据,而这些数据可能无法提前获得。获取标注通常需要大量时间、精力和计算资源,这使得该任务具有挑战性。我们开发了一个专门用于软件性能预测的统一主动学习框架来解决这一问题。我们首先将源代码解析为抽象语法树(AST),并用数据流边和控制流边对其进行增强。然后,我们将源代码的树表示转换为流增强AST图(FA-AST)表示。基于该图表示,我们构建了各种图嵌入(无监督和有监督)到潜在空间中。给定这样的嵌入,该框架变得与任务无关,因为主动学习可以使用任何适用于回归的回归方法和查询策略来执行。在该框架内,我们研究了使用不同级别的信息进行主动学习和被动学习的影响,例如部分可用的标签和未标记的测试数据。我们的方法旨在基于源代码的结构,改进对不同软件性能预测(执行时间)的AI模型投入。我们的真实世界实验表明,仅通过查询所有数据中一小部分子集的标签,就可以获得可观的性能。

英文摘要:

Most machine learning and data analytics applications, including performance engineering in software systems, require a large number of annotations and labelled data, which might not be available in advance. Acquiring annotations often requires significant time, effort, and computational resources, making it challenging. We develop a unified active learning framework specializing in software performance prediction to address this task. We begin by parsing the source code to an Abstract Syntax Tree (AST) and augmenting it with data and control flow edges. Then, we convert the tree representation of the source code to a Flow Augmented-AST graph (FA-AST) representation. Based on the graph representation, we construct various graph embeddings (unsupervised and supervised) into a latent space. Given such an embedding, the framework becomes task agnostic since active learning can be performed using any regression method and query strategy suited for regression. Within this framework, we investigate the impact of using different levels of information for active and passive learning, e.g., partially available labels and unlabeled test data. Our approach aims to improve the investment in AI models for different software performance predictions (execution time) based on the structure of the source code. Our real-world experiments reveal that respectable performance can be achieved by querying labels for only a small subset of all the data.

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

↑