CodeKGC: Code Language Model for Generative Knowledge Graph Construction
Not on the map. Why?
Abstract (arXiv)
Current generative knowledge graph construction approaches usually fail to capture structural knowledge by simply flattening natural language into serialized texts or a specification language. However, large generative language model trained on structured data such as code has demonstrated impressive capability in understanding natural language for structural prediction and reasoning tasks. Intuitively, we address the task of generative knowledge graph construction with code language model: given a code-format natural language input, the target is to generate triples which can be represented as code completion tasks. Specifically, we develop schema-aware prompts that effectively utilize the semantic structure within the knowledge graph. As code inherently possesses structure, such as class and function definitions, it serves as a useful model for prior semantic structural knowledge. Furthermore, we employ a rationale-enhanced generation method to boost the performance. Rationales provide intermediate steps, thereby improving knowledge extraction abilities. Experimental results indicate that the proposed approach can obtain better performance on benchmark datasets compared with baselines. Code and datasets are available in https://github.com/zjunlp/DeepKE/tree/main/example/llm.
Key facts. Cited by 28 papers in the map (data through 14 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 18 Apr 2023.
Builds on
29 of 39 references.
References · 29
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022PAL: Program-aided Language Modelscited by 652
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
- 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
17 more
- 2018A Survey on Deep Learning for Named Entity Recognitioncited by 282
- 2022Reasoning with Language Model Prompting: A Surveycited by 252
- 2022Unified Structure Generation for Universal Information Extractioncited by 221
- 2021Structured Prediction as Translation between Augmented Natural Languagescited by 183
- 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
- 2021A Unified Generative Framework for Various NER Subtaskscited by 141
- 2021Text2Event: Controllable Sequence-to-Structure Generation for End-to-end Event Extractioncited by 129
- 2019Long-tail Relation Extraction via Knowledge Graph Embeddings and Graph Convolution Networkscited by 61
- 2022RelationPrompt: Leveraging Prompts to Generate Synthetic Data for Zero-Shot Relation Triplet Extractioncited by 60
- 2021GenIE: Generative Information Extractioncited by 53
- 2022Generative Knowledge Graph Construction: A Reviewcited by 49
- 2022DeepStruct: Pretraining of Language Models for Structure Predictioncited by 45
- 2020Contrastive Triple Extraction with Generative Transformercited by 44
- 2022Autoregressive Structured Prediction with Language Modelscited by 43
- 2021Zero-Shot Information Extraction as a Unified Text-to-Triple Translationcited by 22
- 2021A Simple but Effective Bidirectional Framework for Relational Triple Extractioncited by 14
- 2022Generative Entity Typing with Curriculum Learningcited by 8
Built on by
Citing papers per year: 2023: 9; 2024: 9; 2025: 8; 2026: 2.
28 papers.
Sort:
By area:
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2024Large Language Models Meet NLP: A Surveycited by 103
- 2024Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Constructioncited by 70
- 2024KAG: Boosting LLMs in Professional Domains via Knowledge Augmented Generationcited by 67
- 2023Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Textcited by 48
- 2023How to Unleash the Power of Large Language Models for Few-shot Relation Extraction?cited by 30
- 2023Iterative Zero-Shot LLM Prompting for Knowledge Graph Constructioncited by 25
- 2023When Do Program-of-Thoughts Work for Reasoning?cited by 19
- 2025AssertionForge: Enhancing Formal Verification Assertion Generation with Structured Representation of Specifications and RTLcited by 13
- 2023Large Knowledge Model: Perspectives and Challengescited by 12
- 2024Eliciting Better Multilingual Structured Reasoning from LLMs through Codecited by 9
- 2024An Automatic Graph Construction Framework based on Large Language Models for Recommendationcited by 9
16 more
- 2023Exploring the Curious Case of Code Promptscited by 6
- 2024Scaling Knowledge Graph Construction through Synthetic Data Generation and Distillationcited by 6
- 2024Way to Specialist: Closing Loop Between Specialized LLM and Evolving Domain Knowledge Graphcited by 6
- 2023Cost-Efficient Prompt Engineering for Unsupervised Entity Resolutioncited by 4
- 2025ClimateViz: A Benchmark for Statistical Reasoning and Fact Verification on Scientific Chartscited by 2
- 2023Navigating Healthcare Insights: A Birds Eye View of Explainability with Knowledge Graphscited by 1
- 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifiercited by 1
- 2025Enhancing Knowledge Graph Construction: Evaluating with Emphasis on Hallucination, Omission, and Graph Similarity Metricscited by 1
- 2025EMRModel: A Large Language Model for Extracting Medical Consultation Dialogues into Structured Medical Recordscited by 1
- 2026GRID: Graph Representation of Intelligence Data for Security Text Knowledge Graph Constructioncited by 1
- 2024A Two Dimensional Feature Engineering Method for Relation Extractioncited by 0
- 2024CogNarr Ecosystem: Facilitating Group Cognition at Scalecited by 0
- 2025Dependency Parsing is More Parameter-Efficient with Normalizationcited by 0
- 2025EMERGE: A Benchmark for Updating Knowledge Graphs with Emerging Textual Knowledgecited by 0
- 2025Systematic Evaluation of Knowledge Graph Repair with Large Language Modelscited by 0
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancementcited by 0
- 2026GRID: Graph Representation of Intelligence Data for Security Text Knowledge Graph Construction15 May 2026
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancement21 Mar 2026
- 2025Systematic Evaluation of Knowledge Graph Repair with Large Language Models30 Jul 2025
- 2025EMERGE: A Benchmark for Updating Knowledge Graphs with Emerging Textual Knowledge4 Jul 2025
- 2025ClimateViz: A Benchmark for Statistical Reasoning and Fact Verification on Scientific Charts10 Jun 2025
- 2025Dependency Parsing is More Parameter-Efficient with Normalization26 May 2025
- 2025EMRModel: A Large Language Model for Extracting Medical Consultation Dialogues into Structured Medical Records23 Apr 2025
- 2025AssertionForge: Enhancing Formal Verification Assertion Generation with Structured Representation of Specifications and RTL24 Mar 2025
- 2025Enhancing Knowledge Graph Construction: Evaluating with Emphasis on Hallucination, Omission, and Graph Similarity Metrics7 Feb 2025
- 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifier9 Jan 2025
- 2024An Automatic Graph Construction Framework based on Large Language Models for Recommendation24 Dec 2024
- 2024Way to Specialist: Closing Loop Between Specialized LLM and Evolving Domain Knowledge Graph28 Nov 2024
16 more
- 2024Scaling Knowledge Graph Construction through Synthetic Data Generation and Distillation22 Oct 2024
- 2024KAG: Boosting LLMs in Professional Domains via Knowledge Augmented Generation10 Sep 2024
- 2024CogNarr Ecosystem: Facilitating Group Cognition at Scale11 Jul 2024
- 2024Large Language Models Meet NLP: A Survey21 May 2024
- 2024A Two Dimensional Feature Engineering Method for Relation Extraction7 Apr 2024
- 2024Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Construction5 Apr 2024
- 2024Eliciting Better Multilingual Structured Reasoning from LLMs through Code5 Mar 2024
- 2023Large Language Models for Generative Information Extraction: A Survey29 Dec 2023
- 2023Large Knowledge Model: Perspectives and Challenges5 Dec 2023
- 2023Cost-Efficient Prompt Engineering for Unsupervised Entity Resolution9 Oct 2023
- 2023Navigating Healthcare Insights: A Birds Eye View of Explainability with Knowledge Graphs28 Sep 2023
- 2023When Do Program-of-Thoughts Work for Reasoning?29 Aug 2023
- 2023Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Text4 Aug 2023
- 2023Iterative Zero-Shot LLM Prompting for Knowledge Graph Construction3 Jul 2023
- 2023How to Unleash the Power of Large Language Models for Few-shot Relation Extraction?2 May 2023
- 2023Exploring the Curious Case of Code Prompts26 Apr 2023
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2024Large Language Models Meet NLP: A Surveycited by 103
- 2024Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Constructioncited by 70
- 2023Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Textcited by 48
- 2023How to Unleash the Power of Large Language Models for Few-shot Relation Extraction?cited by 30
- 2023Iterative Zero-Shot LLM Prompting for Knowledge Graph Constructioncited by 25
- 2025AssertionForge: Enhancing Formal Verification Assertion Generation with Structured Representation of Specifications and RTLcited by 13
- 2023Large Knowledge Model: Perspectives and Challengescited by 12
- 2024An Automatic Graph Construction Framework based on Large Language Models for Recommendationcited by 9
- 2023Exploring the Curious Case of Code Promptscited by 6
- 2024Way to Specialist: Closing Loop Between Specialized LLM and Evolving Domain Knowledge Graphcited by 6
- 2023Cost-Efficient Prompt Engineering for Unsupervised Entity Resolutioncited by 4
12 most cited of 22 All 22 (JSON)
- 2026GRID: Graph Representation of Intelligence Data for Security Text Knowledge Graph Construction15 May 2026
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancement21 Mar 2026
- 2025Systematic Evaluation of Knowledge Graph Repair with Large Language Models30 Jul 2025
- 2025EMERGE: A Benchmark for Updating Knowledge Graphs with Emerging Textual Knowledge4 Jul 2025
- 2025Dependency Parsing is More Parameter-Efficient with Normalization26 May 2025
- 2025EMRModel: A Large Language Model for Extracting Medical Consultation Dialogues into Structured Medical Records23 Apr 2025
- 2025AssertionForge: Enhancing Formal Verification Assertion Generation with Structured Representation of Specifications and RTL24 Mar 2025
- 2025Enhancing Knowledge Graph Construction: Evaluating with Emphasis on Hallucination, Omission, and Graph Similarity Metrics7 Feb 2025
- 2024An Automatic Graph Construction Framework based on Large Language Models for Recommendation24 Dec 2024
- 2024Way to Specialist: Closing Loop Between Specialized LLM and Evolving Domain Knowledge Graph28 Nov 2024
- 2024CogNarr Ecosystem: Facilitating Group Cognition at Scale11 Jul 2024
- 2024Large Language Models Meet NLP: A Survey21 May 2024
12 newest of 22 All 22 (JSON)