KnowCoder: Coding Structured Knowledge into LLMs for Universal Information Extraction
Not on the map. Why?
Abstract (arXiv)
In this paper, we propose KnowCoder, a Large Language Model (LLM) to conduct Universal Information Extraction (UIE) via code generation. KnowCoder aims to develop a kind of unified schema representation that LLMs can easily understand and an effective learning framework that encourages LLMs to follow schemas and extract structured knowledge accurately. To achieve these, KnowCoder introduces a code-style schema representation method to uniformly transform different schemas into Python classes, with which complex schema information, such as constraints among tasks in UIE, can be captured in an LLM-friendly manner. We further construct a code-style schema library covering over 30,000 types of knowledge, which is the largest one for UIE, to the best of our knowledge. To ease the learning process of LLMs, KnowCoder contains a two-phase learning framework that enhances its schema understanding ability via code pretraining and its schema following ability via instruction tuning. After code pretraining on around 1.5B automatically constructed data, KnowCoder already attains remarkable generalization ability and achieves relative improvements by 49.8% F1, compared to LLaMA2, under the few-shot setting. After instruction tuning, KnowCoder further exhibits strong generalization ability on unseen schemas and achieves up to 12.5% and 21.9%, compared to sota baselines, under the zero-shot setting and the low resource setting, respectively. Additionally, based on our unified schema representations, various human-annotated datasets can simultaneously be utilized to refine KnowCoder, which achieves significant improvements up to 7.5% under the supervised setting.
Key facts. Cited by 34 papers in the map (data through 14 Oct 2026). Builds on 21 of its 51 references that are in the map. First posted on arXiv 12 Mar 2024.
Builds on
21 of 51 references.
References · 21
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2020Knowledge Graphscited by 621
- 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
- 2022Unified Structure Generation for Universal Information Extractioncited by 221
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2023InstructUIE: Multi-task Instruction Tuning for Unified Information Extractioncited by 170
- 2021Text2Event: Controllable Sequence-to-Structure Generation for End-to-end Event Extractioncited by 129
- 2023GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extractioncited by 119
- 2020CrossNER: Evaluating Cross-Domain Named Entity Recognitioncited by 104
9 more
- 2023CodeIE: Large Code Generation Models are Better Few-Shot Information Extractorscited by 68
- 2019SemEval-2010 Task 8: Multi-Way Classification of Semantic Relations Between Pairs of Nominalscited by 63
- 2023Universal Information Extraction as Unified Semantic Matchingcited by 48
- 2015Relation Classification via Recurrent Neural Networkcited by 46
- 2022DeepStruct: Pretraining of Language Models for Structure Predictioncited by 45
- 2023Retrieval-Augmented Code Generation for Universal Information Extractioncited by 40
- 2018Improving Distantly Supervised Relation Extraction using Word and Entity Based Attentioncited by 35
- 2020Biomedical Named Entity Recognition at Scalecited by 30
- 2019GCDT: A Global Context Enhanced Deep Transition Architecture for Sequence Labelingcited by 22
Built on by
Citing papers per year: 2024: 8; 2025: 17; 2026: 9.
34 papers.
Sort:
By area:
- 2025Instruction-Tuning LLMs for Event Extraction with Annotation Guidelinescited by 18
- 2024CodeTaxo: Enhancing Taxonomy Expansion with Limited Examples via Code Language Promptscited by 10
- 2024Polynomial Composition Activations: Unleashing the Dynamics of Large Language Modelscited by 9
- 2025A Survey on Large Language Models in Multimodal Recommender Systemscited by 7
- 2025Revisiting Prompt Optimization with Large Reasoning Models-A Case Study on Event Extractioncited by 6
- 2024Beyond Boundaries: Learning a Universal Entity Taxonomy across Datasets and Languages for Open Named Entity Recognitioncited by 5
- 2025Event Extraction in Large Language Modelcited by 5
- 2024Retrieval Augmented Instruction Tuning for Open NER with Large Language Modelscited by 4
- 2025GuideX: Guided Synthetic Data Generation for Zero-Shot Information Extractioncited by 4
- 2024RUIE: Retrieval-based Unified Information Extraction using Large Language Modelcited by 3
- 2024KnowCoder-X: Boosting Multilingual Information Extraction via Codecited by 3
- 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Modelscited by 3
22 more
- 2025Schema as Parameterized Tools for Universal Information Extractioncited by 3
- 2025Selecting and Merging: Towards Adaptable and Scalable Named Entity Recognition with Large Language Modelscited by 3
- 2024PrivComp-KG : Leveraging Knowledge Graph and Large Language Models for Privacy Policy Compliance Verificationcited by 2
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extractioncited by 2
- 2025MPL: Multiple Programming Languages with Large Language Models for Information Extractioncited by 2
- 2026A System for Name and Address Parsing with Large Language Modelscited by 2
- 2024EXCEEDS: Extracting Complex Events via Nugget-based Grid Modeling in Scientific Domaincited by 1
- 2025Label Drop for Multi-Aspect Relation Modeling in Universal Information Extractioncited by 1
- 2025Towards Robust Universal Information Extraction: Benchmark, Evaluation, and Solutioncited by 1
- 2025KnowCoder-V2: Deep Knowledge Analysiscited by 1
- 2025A Semantic Parsing Framework for End-to-End Time Normalizationcited by 1
- 2026Towards Knowledgeable Deep Research: Framework and Benchmarkcited by 1
- 2026Enhancing Biomedical Named Entity Recognition via Multiple Programming Languages Instruction Tuning and Ensemble Methodcited by 1
- 2025Evaluation of LLM-based Strategies for the Extraction of Food Product Information from Online Shopscited by 0
- 2025MME-RAG: Multi-Manager-Expert Retrieval-Augmented Generation for Fine-Grained Entity Recognition in Task-Oriented Dialoguescited by 0
- 2025Knots: A Large-Scale Multi-Agent Enhanced Expert-Annotated Dataset and LLM Prompt Optimization for NOTAM Semantic Parsingcited by 0
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancementcited by 0
- 2026ProUIE: A Macro-to-Micro Progressive Learning Method for LLM-based Universal Information Extractioncited by 0
- 2026DiZiNER: Disagreement-guided Instruction Refinement via Pilot Annotation Simulation for Zero-shot Named Entity Recognitioncited by 0
- 2026SAM-NER: Semantic Archetype Mediation for Zero-Shot Named Entity Recognitioncited by 0
- 2026CMNIE: An Information Extraction Benchmark for Chinese Military Newscited by 0
- 2026EAGER: Enhancing Generative Event Extraction via Reinforcement Learning with Verifiable Rewardscited by 0
- 2026Enhancing Biomedical Named Entity Recognition via Multiple Programming Languages Instruction Tuning and Ensemble Method2 Oct 2026
- 2026EAGER: Enhancing Generative Event Extraction via Reinforcement Learning with Verifiable Rewards24 Sep 2026
- 2026CMNIE: An Information Extraction Benchmark for Chinese Military News9 Sep 2026
- 2026SAM-NER: Semantic Archetype Mediation for Zero-Shot Named Entity Recognition5 May 2026
- 2026DiZiNER: Disagreement-guided Instruction Refinement via Pilot Annotation Simulation for Zero-shot Named Entity Recognition17 Apr 2026
- 2026ProUIE: A Macro-to-Micro Progressive Learning Method for LLM-based Universal Information Extraction12 Apr 2026
- 2026Towards Knowledgeable Deep Research: Framework and Benchmark9 Apr 2026
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancement21 Mar 2026
- 2026A System for Name and Address Parsing with Large Language Models25 Jan 2026
- 2025Event Extraction in Large Language Model22 Dec 2025
- 2025Knots: A Large-Scale Multi-Agent Enhanced Expert-Annotated Dataset and LLM Prompt Optimization for NOTAM Semantic Parsing16 Nov 2025
- 2025MME-RAG: Multi-Manager-Expert Retrieval-Augmented Generation for Fine-Grained Entity Recognition in Task-Oriented Dialogues15 Nov 2025
22 more
- 2025A Semantic Parsing Framework for End-to-End Time Normalization8 Jul 2025
- 2025Selecting and Merging: Towards Adaptable and Scalable Named Entity Recognition with Large Language Models28 Jun 2025
- 2025Evaluation of LLM-based Strategies for the Extraction of Food Product Information from Online Shops17 Jun 2025
- 2025KnowCoder-V2: Deep Knowledge Analysis7 Jun 2025
- 2025Schema as Parameterized Tools for Universal Information Extraction2 Jun 2025
- 2025GuideX: Guided Synthetic Data Generation for Zero-Shot Information Extraction31 May 2025
- 2025MPL: Multiple Programming Languages with Large Language Models for Information Extraction22 May 2025
- 2025A Survey on Large Language Models in Multimodal Recommender Systems14 May 2025
- 2025Revisiting Prompt Optimization with Large Reasoning Models-A Case Study on Event Extraction10 Apr 2025
- 2025Towards Robust Universal Information Extraction: Benchmark, Evaluation, and Solution5 Mar 2025
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extraction4 Mar 2025
- 2025Instruction-Tuning LLMs for Event Extraction with Annotation Guidelines22 Feb 2025
- 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Models21 Feb 2025
- 2025Label Drop for Multi-Aspect Relation Modeling in Universal Information Extraction18 Feb 2025
- 2024KnowCoder-X: Boosting Multilingual Information Extraction via Code7 Nov 2024
- 2024Polynomial Composition Activations: Unleashing the Dynamics of Large Language Models6 Nov 2024
- 2024RUIE: Retrieval-based Unified Information Extraction using Large Language Model18 Sep 2024
- 2024CodeTaxo: Enhancing Taxonomy Expansion with Limited Examples via Code Language Prompts17 Aug 2024
- 2024Retrieval Augmented Instruction Tuning for Open NER with Large Language Models25 Jun 2024
- 2024EXCEEDS: Extracting Complex Events via Nugget-based Grid Modeling in Scientific Domain20 Jun 2024
- 2024Beyond Boundaries: Learning a Universal Entity Taxonomy across Datasets and Languages for Open Named Entity Recognition17 Jun 2024
- 2024PrivComp-KG : Leveraging Knowledge Graph and Large Language Models for Privacy Policy Compliance Verification30 Apr 2024
- 2025Event Extraction in Large Language Modelcited by 5
- 2025Event Extraction in Large Language Model22 Dec 2025
- 2025Instruction-Tuning LLMs for Event Extraction with Annotation Guidelinescited by 18
- 2024CodeTaxo: Enhancing Taxonomy Expansion with Limited Examples via Code Language Promptscited by 10
- 2024Polynomial Composition Activations: Unleashing the Dynamics of Large Language Modelscited by 9
- 2025A Survey on Large Language Models in Multimodal Recommender Systemscited by 7
- 2024Beyond Boundaries: Learning a Universal Entity Taxonomy across Datasets and Languages for Open Named Entity Recognitioncited by 5
- 2024RUIE: Retrieval-based Unified Information Extraction using Large Language Modelcited by 3
- 2024KnowCoder-X: Boosting Multilingual Information Extraction via Codecited by 3
- 2025Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Modelscited by 3
- 2025Schema as Parameterized Tools for Universal Information Extractioncited by 3
- 2025Selecting and Merging: Towards Adaptable and Scalable Named Entity Recognition with Large Language Modelscited by 3
- 2024PrivComp-KG : Leveraging Knowledge Graph and Large Language Models for Privacy Policy Compliance Verificationcited by 2
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extractioncited by 2
12 most cited of 27 All 27 (JSON)
- 2026Enhancing Biomedical Named Entity Recognition via Multiple Programming Languages Instruction Tuning and Ensemble Method2 Oct 2026
- 2026EAGER: Enhancing Generative Event Extraction via Reinforcement Learning with Verifiable Rewards24 Sep 2026
- 2026CMNIE: An Information Extraction Benchmark for Chinese Military News9 Sep 2026
- 2026SAM-NER: Semantic Archetype Mediation for Zero-Shot Named Entity Recognition5 May 2026
- 2026DiZiNER: Disagreement-guided Instruction Refinement via Pilot Annotation Simulation for Zero-shot Named Entity Recognition17 Apr 2026
- 2026ProUIE: A Macro-to-Micro Progressive Learning Method for LLM-based Universal Information Extraction12 Apr 2026
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancement21 Mar 2026
- 2026A System for Name and Address Parsing with Large Language Models25 Jan 2026
- 2025Knots: A Large-Scale Multi-Agent Enhanced Expert-Annotated Dataset and LLM Prompt Optimization for NOTAM Semantic Parsing16 Nov 2025
- 2025A Semantic Parsing Framework for End-to-End Time Normalization8 Jul 2025
- 2025Selecting and Merging: Towards Adaptable and Scalable Named Entity Recognition with Large Language Models28 Jun 2025
- 2025Evaluation of LLM-based Strategies for the Extraction of Food Product Information from Online Shops17 Jun 2025
12 newest of 27 All 27 (JSON)