Research map / Large language models / Retrieval and knowledge
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 and 5 more
Chinese Academy of Sciences
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add schema understanding phase (code pretraining) | Llama-2-7B · NER few-shot (7-dataset average) | F1: 30.9 -> 46.3 (+49.8% relative) | Improved |
| add schema following (instruction tuning) phase (ablation) | KnowCoder-7B · NER zero-shot (7 datasets) | F1: w.o. SF drops by 46.1 to 70.8 F1 per dataset | Improved |
| add schema understanding phase (ablation) | KnowCoder-7B · NER zero-shot (7 datasets) | F1: w.o. SU: -4.5 (AI), -3.1 (Music) but +1.6 (Movie), +0.6 (Litera.) | Mixed |
| add negative class sampling (ablation) | KnowCoder-7B · NER zero-shot (macro avg) | F1: 50.4 -> 57.8 (-7.4 when removed) | Improved |
| add fully negative sample construction (ablation) | KnowCoder-7B · NER zero-shot (macro avg) | F1: 55.7 -> 57.8 (-2.1 when removed) | Improved |
| place import clause after the sentence (Sentence-First) instead of before or with whole definitions (ablation) | KnowCoder schema understanding data · NER zero-shot (7 datasets) | F1 | Improved |
| align dataset concept names to KnowCoder schema names (ablation) | KnowCoder-7B · NER per-type F1 | F1: 81.35 -> 81.37 | No clear effect |
| add class methods for post-processing (ablation) | KnowCoder-7B · NER (5 datasets) | F1: 83.5 average, +1.0 F1 | Improved |
| use code-style prompt instead of IE-style prompt (ablation) | KnowCoder-7B · ACE05 NER | F1: 81.6 -> 82.4 | No clear effect |
| compare KnowCoder to UIE at 1% low-resource data | KnowCoder-7B · Low-resource 1% (average) | F1: 42.0 -> 52.8 | Improved |
| fine-tune on more training data: KnowCoder gain over LLaMA2 shrinks | KnowCoder-7B · Low-resource average | F1: +9.5 (1%), +6.3 (5%), +2.6 (10%) vs LLaMA2-7B | Mixed |
| apply KnowCoder zero-shot to RE | KnowCoder-7B · GIDS zero-shot RE | F1: 9.9 -> 25.5 | Improved |
Later papers that compared with this method
2 later accepted papers report KnowCoder (7B) as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- ProUIE: A Macro-to-Micro Progressive Learning Method for LLM-based Universal Information Extraction (ACL 2026 · better on 1 of 2 shared results)
- A Reasoning Paradigm for Named Entity Recognition (AAAI 2026 · better on 1 of 1 shared result)
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- GoLLIE-7B — GoLLIE: Annotation Guidelines improve Zero-Shot Information-Extraction (ICLR 2024) · better on 2 of 2 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in knowledge editing in LLMs
Do knowledge editing and factuality methods hold up on larger models, closed models and real-world editing?
- Experiments stay on small or mid-sized models. · 24 papers state it
- Needs logits or internal access, so closed models are out. · 12 papers state it
- Tested on short factual answers, not reasoning or long text. · 10 papers state it
Closest papers by meaning
- CodeIE: Large Code Generation Models are Better Few-Shot Information Extractors (ACL 2023 · similarity 0.82)
- Unified Structure Generation for Universal Information Extraction (ACL 2022 · similarity 0.81)
- A Simple but Effective Approach to Improve Structured Language Model Output for Information Extraction (EMNLP 2024 · similarity 0.81)
- Estimating Knowledge in Large Language Models Without Generating a Single Token (EMNLP 2024 · similarity 0.80)
- StructRAG: Boosting Knowledge Intensive Reasoning of LLMs via Inference-time Hybrid Information Structurization (ICLR 2025 · similarity 0.80)
- Knowledge Card: Filling LLMs' Knowledge Gaps with Plug-in Specialized Language Models (ICLR 2024 · similarity 0.79)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.