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

对LLMs在自动RDF知识图谱生成中的性能评估

Performance Evaluation of LLMs in Automated RDF Knowledge Graph Generation

Distributed Systems Research Laboratory, Computer Science Department, Technical University of Cluj-Napoca(克卢日-纳波卡技术大学计算机科学系分布式系统研究实验室)

Ioana Ramona Martin, Tudor Cioara, Ionut Anghel, Gabriel Arcas

AI总结:

本文评估了多种LLM架构和提示策略在自动RDF提取中的性能,通过控制框架和两个处理半结构化日志数据的管道,分析了Few-Shot学习在生成RDF三元组中的有效性,并揭示了不同LLM架构的局限性。

摘要:

云系统生成大量异构日志数据,包含关键基础设施、应用程序和安全信息。将这些日志转换为RDF三元组可将其整合到知识图谱中,提高可解释性、根本原因分析和跨服务推理能力。大型语言模型(LLMs)提供了一种自动化RDF知识图谱生成的有前途的方法;然而,它们在复杂云日志上的有效性仍 largely 未被探索。本文评估了多种LLM架构和提示策略,通过受控框架和两个系统处理半结构化日志数据的管道,系统地处理这些数据。提取管道整合了多个LLM来识别相关实体和关系,自动生成主谓宾三元组。这些输出通过专用验证管道使用语法和语义指标进行评估,以评估准确性、完整性和质量。由于缺乏公开的地面真相数据集,我们通过手动标注和本体驱动方法从OpenStack日志中创建了一个参考Log-to-KG数据集,以实现客观基线。我们的分析显示,Few-Shot学习是最有效的策略,Llama在Few-Shot提示下实现了99.35%的F1分数和100%有效的RDF输出,而Qwen、NuExtract和Gemma在Few-Shot提示下也表现良好,Chain-of-Thought方法保持了相似的准确性。One-Shot提示提供了一种较轻但有效的替代方案,而Zero-Shot和高级策略如Tree-of-Thought、Self-Critique和Generate-Multiple则表现明显较差。这些结果突显了上下文示例和提示设计在准确RDF提取中的重要性,并揭示了不同LLM架构中的模型特定限制。

英文摘要:

Cloud systems generate large, heterogeneous log data containing critical infrastructure, application, and security information. Transforming these logs into RDF triples enables their integration into knowledge graphs, improving interpretability, root-cause analysis, and cross-service reasoning beyond what raw logs allow. Large Language Models (LLMs) offer a promising approach to automate RDF knowledge graph generation; however, their effectiveness on complex cloud logs remains largely unexplored. In this paper, we evaluate multiple LLM architectures and prompting strategies for automated RDF extraction using a controlled framework with two pipelines for systematically processing semi-structured log data. The extraction pipeline integrates multiple LLMs to identify relevant entities and relationships, automatically generating subject-predicate-object triples. These outputs are evaluated using a dedicated validation pipeline with both syntactic and semantic metrics to assess accuracy, completeness, and quality. Due to the lack of public ground-truth datasets, we created a reference Log-to-KG dataset from OpenStack logs using manual annotation and ontology-driven methods, enabling objective baseline. Our analysis shows that Few-Shot learning is the most effective strategy, with Llama achieving a 99.35% F1 score and 100% valid RDF output while Qwen, NuExtract, and Gemma also perform well under Few-Shot prompting, with Chain-of-Thought approaches maintaining similar accuracy. One-Shot prompting offers a lighter but effective alternative, while Zero-Shot and advanced strategies such as Tree-of-Thought, Self-Critique, and Generate-Multiple perform substantially worse. These results highlight the importance of contextual examples and prompt design for accurate RDF extraction and reveal model-specific limitations across LLM architectures.

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

↑