mlsanityData to 14 Oct 2026

CodeKGC: Code Language Model for Generative Knowledge Graph Construction

arXiv 2304.09048 ↗First posted 18 Apr 2023cs.CL cs.AI cs.IRcited by 28

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

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  5. 2022Emergent Abilities of Large Language Modelscited by 2,512
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  8. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  10. 2022PAL: Program-aided Language Modelscited by 652
  11. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  12. 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
17 more
  1. 2018A Survey on Deep Learning for Named Entity Recognitioncited by 282
  2. 2022Reasoning with Language Model Prompting: A Surveycited by 252
  3. 2022Unified Structure Generation for Universal Information Extractioncited by 221
  4. 2021Structured Prediction as Translation between Augmented Natural Languagescited by 183
  5. 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
  6. 2021A Unified Generative Framework for Various NER Subtaskscited by 141
  7. 2021Text2Event: Controllable Sequence-to-Structure Generation for End-to-end Event Extractioncited by 129
  8. 2019Long-tail Relation Extraction via Knowledge Graph Embeddings and Graph Convolution Networkscited by 61
  9. 2022RelationPrompt: Leveraging Prompts to Generate Synthetic Data for Zero-Shot Relation Triplet Extractioncited by 60
  10. 2021GenIE: Generative Information Extractioncited by 53
  11. 2022Generative Knowledge Graph Construction: A Reviewcited by 49
  12. 2022DeepStruct: Pretraining of Language Models for Structure Predictioncited by 45
  13. 2020Contrastive Triple Extraction with Generative Transformercited by 44
  14. 2022Autoregressive Structured Prediction with Language Modelscited by 43
  15. 2021Zero-Shot Information Extraction as a Unified Text-to-Triple Translationcited by 22
  16. 2021A Simple but Effective Bidirectional Framework for Relational Triple Extractioncited by 14
  17. 2022Generative Entity Typing with Curriculum Learningcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 9; 2024: 9; 2025: 8; 2026: 2.

28 papers.

Sort:

By area:

  1. 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
  2. 2024Large Language Models Meet NLP: A Surveycited by 103
  3. 2024Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Constructioncited by 70
  4. 2024KAG: Boosting LLMs in Professional Domains via Knowledge Augmented Generationcited by 67
  5. 2023Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Textcited by 48
  6. 2023How to Unleash the Power of Large Language Models for Few-shot Relation Extraction?cited by 30
  7. 2023Iterative Zero-Shot LLM Prompting for Knowledge Graph Constructioncited by 25
  8. 2023When Do Program-of-Thoughts Work for Reasoning?cited by 19
  9. 2025AssertionForge: Enhancing Formal Verification Assertion Generation with Structured Representation of Specifications and RTLcited by 13
  10. 2023Large Knowledge Model: Perspectives and Challengescited by 12
  11. 2024Eliciting Better Multilingual Structured Reasoning from LLMs through Codecited by 9
  12. 2024An Automatic Graph Construction Framework based on Large Language Models for Recommendationcited by 9
16 more
  1. 2023Exploring the Curious Case of Code Promptscited by 6
  2. 2024Scaling Knowledge Graph Construction through Synthetic Data Generation and Distillationcited by 6
  3. 2024Way to Specialist: Closing Loop Between Specialized LLM and Evolving Domain Knowledge Graphcited by 6
  4. 2023Cost-Efficient Prompt Engineering for Unsupervised Entity Resolutioncited by 4
  5. 2025ClimateViz: A Benchmark for Statistical Reasoning and Fact Verification on Scientific Chartscited by 2
  6. 2023Navigating Healthcare Insights: A Birds Eye View of Explainability with Knowledge Graphscited by 1
  7. 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifiercited by 1
  8. 2025Enhancing Knowledge Graph Construction: Evaluating with Emphasis on Hallucination, Omission, and Graph Similarity Metricscited by 1
  9. 2025EMRModel: A Large Language Model for Extracting Medical Consultation Dialogues into Structured Medical Recordscited by 1
  10. 2026GRID: Graph Representation of Intelligence Data for Security Text Knowledge Graph Constructioncited by 1
  11. 2024A Two Dimensional Feature Engineering Method for Relation Extractioncited by 0
  12. 2024CogNarr Ecosystem: Facilitating Group Cognition at Scalecited by 0
  13. 2025Dependency Parsing is More Parameter-Efficient with Normalizationcited by 0
  14. 2025EMERGE: A Benchmark for Updating Knowledge Graphs with Emerging Textual Knowledgecited by 0
  15. 2025Systematic Evaluation of Knowledge Graph Repair with Large Language Modelscited by 0
  16. 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancementcited by 0