arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.02632cs.SEcs.AI
收藏

TAAF:一种结合知识图谱和大语言模型的跟踪抽象与分析框架

TAAF: A Trace Abstraction and Analysis Framework Synergizing Knowledge Graphs and LLMs

Brock University(布鲁克大学);Mcgil University(麦吉尔大学)

Alireza Ezaz, Ghazal Khodabandeh, Majid Babaei, Naser Ezzati-Jivan

AI总结:

TAAF结合知识图谱和大语言模型,通过时间索引技术将大规模跟踪数据转化为可操作的洞察,提升复杂系统分析的准确性和效率。

摘要:

执行跟踪是理解、调试和优化复杂软件系统的关键信息源。然而,来自操作系统内核或大型应用如Chrome或MySQL的跟踪数据庞大且难以分析。现有工具依赖于预定义的分析,而定制的洞察往往需要编写领域特定的脚本,这是一项容易出错且耗时的任务。本文介绍了TAAF(跟踪抽象与分析框架),一种新的方法,结合时间索引、知识图谱(KGs)和大语言模型(LLMs),将原始跟踪数据转换为可操作的见解。TAAF从跟踪事件构建一个时间索引的知识图谱,以捕捉线程、CPU和系统资源之间的关系。然后,一个LLM会解释查询特定的子图来回答自然语言问题,减少手动检查和深入系统专业知识的需要。为了评估TAAF,我们引入了TraceQA-100,一个基于真实内核跟踪的100个问题基准测试。在三个LLM和多种时间设置上的实验表明,TAAF将答案准确率提高了高达31.2%,特别是在多跳和因果推理任务中。我们进一步分析了图基础推理帮助和限制存在的地方,为下一代跟踪分析工具提供了基础。

英文摘要:

Execution traces are a critical source of information for understanding, debugging, and optimizing complex software systems. However, traces from OS kernels or large-scale applications like Chrome or MySQL are massive and difficult to analyze. Existing tools rely on predefined analyses, and custom insights often require writing domain-specific scripts, which is an error-prone and time-consuming task. This paper introduces TAAF (Trace Abstraction and Analysis Framework), a novel approach that combines time-indexing, knowledge graphs (KGs), and large language models (LLMs) to transform raw trace data into actionable insights. TAAF constructs a time-indexed KG from trace events to capture relationships among entities such as threads, CPUs, and system resources. An LLM then interprets query-specific subgraphs to answer natural-language questions, reducing the need for manual inspection and deep system expertise. To evaluate TAAF, we introduce TraceQA-100, a benchmark of 100 questions grounded in real kernel traces. Experiments across three LLMs and multiple temporal settings show that TAAF improves answer accuracy by up to 31.2%, particularly in multi-hop and causal reasoning tasks. We further analyze where graph-grounded reasoning helps and where limitations remain, offering a foundation for next-generation trace analysis tools.

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

↑