KnowCoder: Coding Structured Knowledge into LLMs for Universal Information Extraction
Zixuan Li, Yutao Zeng, Yuxin Zuo, Weicheng Ren, Wenxuan Liu, Miao Su, Yucan Guo, Yantao Liu, Xiang Li, Zhilei Hu, Long Bai, Wei Li
摘要
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 twophase 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, Know-Coder 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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction 引用了 CrossNER: Evaluating Cross-Domain Named Entity Recognition
- GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction 引用了 A Joint Neural Model for Information Extraction with Global Features
- Zero-Shot Learning for Materials Science Texts: Leveraging Duck Typing Principles 引用了 GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction
- NOTAM-Evolve: A Knowledge-Guided Self-Evolving Optimization Framework with LLMs for NOTAM Interpretation 引用了 GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction
- DiCoRe: Enhancing Zero-shot Event Detection via Divergent-Convergent LLM Reasoning 引用了 GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction
- DiCoRe: Enhancing Zero-shot Event Detection via Divergent-Convergent LLM Reasoning 引用了 Training language models to follow instructions with human feedback
- Multi-level Association Refinement Network for Dialogue Aspect-based Sentiment Quadruple Analysis 引用了 GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction
- Multi-level Association Refinement Network for Dialogue Aspect-based Sentiment Quadruple Analysis 引用了 LoRA: Low-Rank Adaptation of Large Language Models
引用它的顶会 Paper11
- Unlocking the Power of Large Language Models for Entity AlignmentXuhui Jiang, Yinghan Shen, Zhichao Shi, Chengjin Xu 等ACL 2024 · 17 次引用
- Multi-level Association Refinement Network for Dialogue Aspect-based Sentiment Quadruple AnalysisZeliang Tong, Wei Wei, Xiaoye Qu, Rikui Huang 等ACL 2025 · 2 次引用
- Zero-Shot Learning for Materials Science Texts: Leveraging Duck Typing PrinciplesXin Zhang, Peiliang Zhang, Jingling Yuan, Lin LiAAAI 2025 · 1 次引用
- NOTAM-Evolve: A Knowledge-Guided Self-Evolving Optimization Framework with LLMs for NOTAM InterpretationMaoqi Liu, Quan Fang, Yuhao Wu, Can Zhao 等AAAI 2026 · 1 次引用
- DiCoRe: Enhancing Zero-shot Event Detection via Divergent-Convergent LLM ReasoningTanmay Parekh, Kartik Mehta, Ninareh Mehrabi, Kai-Wei Chang 等EMNLP 2025 · 1 次引用
它引用的 Paper11
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- A Joint Neural Model for Information Extraction with Global FeaturesYing Lin, Heng Ji, Fei Huang, Lingfei WuACL 2020 · 376 次引用
- CrossNER: Evaluating Cross-Domain Named Entity RecognitionZihan Liu, Yan Xu, Tiezheng Yu, Wenliang Dai 等AAAI 2021 · 201 次引用
- GoLLIE: Annotation Guidelines improve Zero-Shot Information-ExtractionOscar Sainz, Iker García-Ferrero, Rodrigo Agerri, Oier Lopez de Lacalle 等ICLR 2024 · 168 次引用
相关 Paper
- KnowCoder-X: Boosting Multilingual Information Extraction via CodeYuxin Zuo, Wenxuan Jiang, Wenxuan Liu, Zixuan Li 等ACL Findings 2025 · 5 次引用
- WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction TuningZhaojian Yu, Xin Zhang, Ning Shang, Yangyu Huang 等ACL 2024
- CodeIE: Large Code Generation Models are Better Few-Shot Information ExtractorsPeng Li, Tianxiang Sun, Qiong Tang, Hang Yan 等ACL 2023 · 41 次引用
- Unified Structure Generation for Universal Information ExtractionYaojie Lu, Qing Liu, Dai Dai, Xinyan Xiao 等ACL 2022
- Capability Decomposition for Unified Information Extraction via Hierarchical Mixture-of-ExpertsJing Zhou, Peng Wang, Wenjun Ke, Jiajun Liu 等ACL 2026
