Research map / Large language models / Language, safety and interpretability
CodeIE: Large Code Generation Models are Better Few-Shot Information Extractors
Peng Li, Tianxiang Sun, Qiong Tang, Hang Yan, Yuanbin Wu, Xuanjing Huang, Xipeng Qiu
Fudan University · East China Normal University
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 |
|---|---|---|---|
| use code prompt instead of text prompt | Codex · 7 NER/RE benchmarks average | F1: 37.03 -> 42.78 | Improved |
| use code prompt instead of text prompt | GPT-3 · 7 NER/RE benchmarks average | F1: 32.65 -> 40.08 | Improved |
| use Codex instead of GPT-3 with code prompt | CodeIE · 7 NER/RE benchmarks average | F1: 40.08 -> 42.78 | Improved |
| prompt Codex with code instead of fine-tuning UIE-large | Codex · CoNLL03 (5-shot) | Entity F1: 70.62 -> 82.32 | Improved |
| prompt Codex with code instead of fine-tuning UIE-large (ablation) | Codex · SciERC (2-shot) | Relation Strict F1: 7.30 -> 7.74 | Mixed |
| use func exec prompt design instead of func def (ablation) | Codex · CoNLL03 (5-shot) | Entity F1: 82.32 -> 84.05 | Improved |
| use class init prompt design instead of func def (ablation) | Codex · CoNLL03 (5-shot) | Entity F1: 82.32 -> 81.29 | No clear effect |
| use natural language prompt instead of structured language (ablation) | GPT-3 · CoNLL03 (5-shot) | Entity F1: 68.84 -> 46.36 | Hurt |
| use natural language prompt instead of structured language (ablation) | GPT-3 · CoNLL04 (5-shot) | Relation F1: 39.67 -> 40.90 | No clear effect |
| use code-style output format (measured via perplexity with CodeT5 vs T5) | IE samples · perplexity on 7 datasets | perplexity | Improved |
| use code prompt instead of text prompt | GPT-3 and Codex · structural error rate | structural error rate | Improved |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- A Simple but Effective Approach to Improve Structured Language Model Output for Information Extraction (EMNLP 2024 · similarity 0.89)
- Large Language Model Is Not a Good Few-shot Information Extractor, but a Good Reranker for Hard Samples! (EMNLP 2023 · similarity 0.89)
- LLMaAA: Making Large Language Models as Active Annotators (EMNLP 2023 · similarity 0.88)
- IEPile: Unearthing Large Scale Schema-Conditioned Information Extraction Corpus (ACL 2024 · similarity 0.88)
- Generating Diverse Training Samples for Relation Extraction with Large Language Models (ACL 2025 · similarity 0.88)
- CodeT5+: Open Code Large Language Models for Code Understanding and Generation (EMNLP 2023 · similarity 0.87)
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.