mlsanityData to 14 Oct 2026

Explore-Construct-Filter: An Automated Framework for Rich and Reliable API Knowledge Graph Construction

arXiv 2502.13412 ↗First posted 19 Feb 2025cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

The API Knowledge Graph (API KG) is a structured network that models API entities and their relations, providing essential semantic insights for tasks such as API recommendation, code generation, and API misuse detection. However, constructing a knowledge-rich and reliable API KG presents several challenges. Existing schema-based methods rely heavily on manual annotations to design KG schemas, leading to excessive manual overhead. On the other hand, schema-free methods, due to the lack of schema guidance, are prone to introducing noise, reducing the KG's reliability. To address these issues, we propose the Explore-Construct-Filter framework, an automated approach for API KG construction based on large language models (LLMs). This framework consists of three key modules: 1) KG exploration: LLMs simulate the workflow of annotators to automatically design a schema with comprehensive type triples, minimizing human intervention; 2) KG construction: Guided by the schema, LLMs extract instance triples to construct a rich yet unreliable API KG; 3) KG filtering: Removing invalid type triples and suspicious instance triples to construct a rich and reliable API KG. Experimental results demonstrate that our method surpasses the state-of-the-art method, achieving a 25.2% improvement in F1 score. Moreover, the Explore-Construct-Filter framework proves effective, with the KG exploration module increasing KG richness by 133.6% and the KG filtering module improving reliability by 26.6%. Finally, cross-model experiments confirm the generalizability of our framework.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 49 references that are in the map. First posted on arXiv 19 Feb 2025.

Builds on

23 of 49 references.

References · 23

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  5. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
  6. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
  7. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  8. 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 324
  9. 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 268
  10. 2024Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Constructioncited by 70
  11. 2023PiVe: Prompting with Iterative Verification Improving Graph-based Generative Capability of LLMscited by 44
  12. 2024SAC-KG: Exploiting Large Language Models as Skilled Automatic Constructors for Domain Knowledge Graphscited by 31
11 more
  1. 2021Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?cited by 21
  2. 2023From Misuse to Mastery: Enhancing Code Generation with Knowledge-Driven AI Chainingcited by 15
  3. 2024Can LLMs be Good Graph Judge for Knowledge Graph Construction?cited by 11
  4. 2023Microservice API Evolution in Practice: A Study on Strategies and Challengescited by 7
  5. 2023Let's Discover More API Relations: A Large Language Model-based AI Chain for Unsupervised API Relation Inferencecited by 3
  6. 2022ARCLIN: Automated API Mention Resolution for Unformatted Textscited by 2
  7. 20221+1>2: Programming Know-What and Know-How Knowledge Fusion, Semantic Enrichment and Coherent Applicationcited by 2
  8. 2023API Entity and Relation Joint Extraction from Text via Dynamic Prompt-tuned Language Modelcited by 2
  9. 2023Recommending Analogical APIs via Knowledge Graph Embeddingcited by 2
  10. 2022SE Factual Knowledge in Frozen Giant Code Model: A Study on FQN and its Retrievalcited by 1
  11. 2023Answering Uncertain, Under-Specified API Queries Assisted by Knowledge-Aware Human-AI Dialoguecited by 1

Built on by

Not cited yet.