Aug 2026· ACM Transactions on Software Engineering and Methodology· 0 citations· 45 references
TL;DR
This work proposes Explore-Construct-Verify (ECV), a three-stage framework for API KG construction using large language models (LLMs), which preserves LLMs’ ability to discover domain-specific knowledge while enabling efficient post-hoc validation.
Abstract
Application Programming Interfaces (APIs) are central to modern software development, yet the growing scale and semantic complexity of APIs present significant challenges for developers in learning and using them effectively. API knowledge graphs (KGs) offer a structured solution by organizing API entities and their relations, but existing construction methods face a trade-off: schema-guided methods ensure precision but suffer from limited richness, while schema-free methods capture richer semantics but often lack reliability. To address this challenge, we propose Explore-Construct-Verify (ECV), a three-stage framework for API KG construction using large language models (LLMs). The framework first explores candidate schema in a bottom-up manner, then constructs the KG with schema-guided extraction, and finally applies human-AI collaborative verification based on association rule mining. This design preserves LLMs’ ability to discover domain-specific knowledge while enabling efficient post-hoc validation. We conduct extensive experiments to evaluate the effectiveness of our method. Compared to the state-of-the-art method EDC, ECV improves KG construction F1 score by 31.3%. Component analysis shows that the exploration module improves KG richness (recall) by 267.9%, the fully connected schema strategy increases richness by 50.0%, and the verification module improves KG reliability (precision) by 47.1%. ECV maintains an average F1 around 0.69 both across six programming languages and across five LLMs, demonstrating strong cross-language and cross-model generalizability. We further validate the practical utility of the constructed KG through an API recommendation task, where KG-enhanced LLMs outperform LLM-only baselines by 26.3% in accuracy.
Software architecture recovery has long been central to research in program understanding and reengineering. Understanding and modernizing large-scale legacy software requires accurate reconstruction of its architectural structure. Traditional recovery approaches based on code clustering or template matching struggle t...
S. Quadri, K. Kontogiannis, Derek Truong· Annual International Compute...· 0 citations
This tutorial offers a high-level view of KG data quality at scale, organized along KG lifecycle stages, covering efficient quality estimation, as well as the role of Large Language Models as validators and auxiliary signals.
A framework for managing duplicate predicates in RKGs that covers detection, resolution, and prevention that combines automated similarity-based methods with human validation and is designed for integration into the lifecycle of evolving, crowdsourced RKGs.
Lena John, Sushant Aggarwal, Sören Auer et al.· 0 citations
This work presents an evidence-carrying validation interface: every selected node-shape check returns either a satisfaction trace or failure witness, and shows how programs combine passing and failing evidence to diagnose missing information and guide repair.
This work presents the first systematic survey of graph-assisted LLMs from the perspective of how graph structures mitigate LLMs’ limitations, and introduces a taxonomy spanning Graph-Assisted Knowledge Augmentation, Graph-Assisted Reasoning and Planning, and Graph-Assisted LLM Collaboration.
Haitong Luo, Fali Wang, Weiyao Zhang et al.· Annual Meeting of the Associ...· 2 citations
ReG-TG is proposed, a retrieval-augmented framework for repository tag recommendation that integrates hybrid retrieval, a tag co-occurrence knowledge graph, and Chain-of-Thought reasoning within a large language model (LLM)-based architecture and consistently outperforms representative baselines.
Min Wang, Shan-Shan Wu, Wanjia Lv et al.· Applied Sciences· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.