Retrieval-Augmented Code Generation for Universal Information Extraction
On the map: Retrieval-augmented generation → RAG for code
Abstract (arXiv)
Information Extraction (IE) aims to extract structural knowledge (e.g., entities, relations, events) from natural language texts, which brings challenges to existing methods due to task-specific schemas and complex text expressions. Code, as a typical kind of formalized language, is capable of describing structural knowledge under various schemas in a universal way. On the other hand, Large Language Models (LLMs) trained on both codes and texts have demonstrated powerful capabilities of transforming texts into codes, which provides a feasible solution to IE tasks. Therefore, in this paper, we propose a universal retrieval-augmented code generation framework based on LLMs, called Code4UIE, for IE tasks. Specifically, Code4UIE adopts Python classes to define task-specific schemas of various structural knowledge in a universal way. By so doing, extracting knowledge under these schemas can be transformed into generating codes that instantiate the predefined Python classes with the information in texts. To generate these codes more precisely, Code4UIE adopts the in-context learning mechanism to instruct LLMs with examples. In order to obtain appropriate examples for different tasks, Code4UIE explores several example retrieval strategies, which can retrieve examples semantically similar to the given texts. Extensive experiments on five representative IE tasks across nine datasets demonstrate the effectiveness of the Code4UIE framework.
Key facts. Cited by 40 papers in the map (data through 14 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 18 of its 31 references that are in the map. First posted on arXiv 6 Nov 2023.
Builds on
18 of 31 references.
References · 18
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
- 2018Multi-Task Identification of Entities, Relations, and Coreference for Scientific Knowledge Graph Constructioncited by 322
- 2022Unified Structure Generation for Universal Information Extractioncited by 221
- 2023InstructUIE: Multi-task Instruction Tuning for Unified Information Extractioncited by 170
- 2023Evaluating ChatGPT's Information Extraction Capabilities: An Assessment of Performance, Explainability, Calibration, and Faithfulnesscited by 130
- 2023Revisiting Relation Extraction in the era of Large Language Modelscited by 102
- 2020Automated Concatenation of Embeddings for Structured Predictioncited by 86
- 2021DEGREE: A Data-Efficient Generation-Based Event Extraction Modelcited by 83
- 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
6 more
- 2023CodeIE: Large Code Generation Models are Better Few-Shot Information Extractorscited by 68
- 2021Packed Levitated Marker for Entity and Relation Extractioncited by 49
- 2023Universal Information Extraction as Unified Semantic Matchingcited by 48
- 2020FLERT: Document-Level Features for Named Entity Recognitioncited by 45
- 2018Assertion-based QA with Question-Aware Open Information Extractioncited by 7
- 2021Intelligent Online Selling Point Extraction for E-Commerce Recommendationcited by 6
Built on by
Citing papers per year: 2023: 2; 2024: 18; 2025: 16; 2026: 4.
40 papers.
Sort:
By area:
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2024RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generationcited by 61
- 2025VideoRAG: Retrieval-Augmented Generation over Video Corpuscited by 57
- 2024KnowCoder: Coding Structured Knowledge into LLMs for Universal Information Extractioncited by 34
- 2024ADELIE: Aligning Large Language Models on Information Extractioncited by 24
- 2024C-ICL: Contrastive In-context Learning for Information Extractioncited by 23
- 2024EVOR: Evolving Retrieval for Code Generationcited by 22
- 2025Instruction-Tuning LLMs for Event Extraction with Annotation Guidelinescited by 18
- 2024A Simple but Effective Approach to Improve Structured Language Model Output for Information Extractioncited by 16
- 2024Debate as Optimization: Adaptive Conformal Prediction and Diverse Retrieval for Event Extractioncited by 10
- 2024LTNER: Large Language Model Tagging for Named Entity Recognition with Contextualized Entity Markingcited by 7
28 more
- 2025Adaptive Schema-aware Event Extraction with Retrieval-Augmented Generationcited by 7
- 2023GIELLM: Japanese General Information Extraction Large Language Model Utilizing Mutual Reinforcement Effectcited by 6
- 2024AgentRE: An Agent-Based Framework for Navigating Complex Information Landscapes in Relation Extractioncited by 6
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Modelcited by 5
- 2024Retrieval Augmented Instruction Tuning for Open NER with Large Language Modelscited by 4
- 2025SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localizationcited by 4
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attentioncited by 4
- 2024Embedded Named Entity Recognition using Probing Classifierscited by 3
- 2024KnowCoder-X: Boosting Multilingual Information Extraction via Codecited by 3
- 2025Schema as Parameterized Tools for Universal Information Extractioncited by 3
- 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
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Executioncited by 2
- 2025Extracting Events Like Code: A Multi-Agent Programming Framework for Zero-Shot Event Extractioncited by 2
- 2024Is There a One-Model-Fits-All Approach to Information Extraction? Revisiting Task Definition Biasescited by 1
- 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifiercited by 1
- 2025KnowCoder-V2: Deep Knowledge Analysiscited by 1
- 2025A Semantic Parsing Framework for End-to-End Time Normalizationcited by 1
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agentscited by 1
- 2024A Two Dimensional Feature Engineering Method for Relation Extractioncited by 0
- 2024Weak Reward Model Transforms Generative Models into Robust Causal Event Extraction Systemscited by 0
- 2024Can AI Extract Antecedent Factors of Human Trust in AI? An Application of Information Extraction for Scientific Literature in Behavioural and Computer Sciencescited by 0
- 2025Evaluation of LLM-based Strategies for the Extraction of Food Product Information from Online Shopscited by 0
- 2025Keyword-Centric Prompting for One-Shot Event Detection with Self-Generated Rationale Enhancementscited 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
- 2026Analysing Lightweight Large Language Models for Biomedical Named Entity Recognition on Diverse Ouput Formatscited by 0
- 2026LC-ICL: Label-Guided Contrastive In-Context Learning for Robust Information Extractioncited by 0
- 2026LC-ICL: Label-Guided Contrastive In-Context Learning for Robust Information Extraction28 Jun 2026
- 2026ProUIE: A Macro-to-Micro Progressive Learning Method for LLM-based Universal Information Extraction12 Apr 2026
- 2026Analysing Lightweight Large Language Models for Biomedical Named Entity Recognition on Diverse Ouput Formats27 Mar 2026
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancement21 Mar 2026
- 2025Extracting Events Like Code: A Multi-Agent Programming Framework for Zero-Shot Event Extraction17 Nov 2025
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution9 Oct 2025
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attention22 Aug 2025
- 2025Keyword-Centric Prompting for One-Shot Event Detection with Self-Generated Rationale Enhancements11 Aug 2025
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agents24 Jul 2025
- 2025A Semantic Parsing Framework for End-to-End Time Normalization8 Jul 2025
- 2025SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localization25 Jun 2025
- 2025Evaluation of LLM-based Strategies for the Extraction of Food Product Information from Online Shops17 Jun 2025
28 more
- 2025KnowCoder-V2: Deep Knowledge Analysis7 Jun 2025
- 2025Schema as Parameterized Tools for Universal Information Extraction2 Jun 2025
- 2025MPL: Multiple Programming Languages with Large Language Models for Information Extraction22 May 2025
- 2025Adaptive Schema-aware Event Extraction with Retrieval-Augmented Generation13 May 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
- 2025VideoRAG: Retrieval-Augmented Generation over Video Corpus10 Jan 2025
- 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifier9 Jan 2025
- 2024Can AI Extract Antecedent Factors of Human Trust in AI? An Application of Information Extraction for Scientific Literature in Behavioural and Computer Sciences16 Dec 2024
- 2024KnowCoder-X: Boosting Multilingual Information Extraction via Code7 Nov 2024
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Model21 Oct 2024
- 2024AgentRE: An Agent-Based Framework for Navigating Complex Information Landscapes in Relation Extraction3 Sep 2024
- 2024RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generation15 Aug 2024
- 2024Weak Reward Model Transforms Generative Models into Robust Causal Event Extraction Systems26 Jun 2024
- 2024Retrieval Augmented Instruction Tuning for Open NER with Large Language Models25 Jun 2024
- 2024Debate as Optimization: Adaptive Conformal Prediction and Diverse Retrieval for Event Extraction18 Jun 2024
- 2024ADELIE: Aligning Large Language Models on Information Extraction8 May 2024
- 2024LTNER: Large Language Model Tagging for Named Entity Recognition with Contextualized Entity Marking8 Apr 2024
- 2024A Two Dimensional Feature Engineering Method for Relation Extraction7 Apr 2024
- 2024Is There a One-Model-Fits-All Approach to Information Extraction? Revisiting Task Definition Biases25 Mar 2024
- 2024Embedded Named Entity Recognition using Probing Classifiers18 Mar 2024
- 2024KnowCoder: Coding Structured Knowledge into LLMs for Universal Information Extraction12 Mar 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024A Simple but Effective Approach to Improve Structured Language Model Output for Information Extraction20 Feb 2024
- 2024EVOR: Evolving Retrieval for Code Generation19 Feb 2024
- 2024C-ICL: Contrastive In-context Learning for Information Extraction17 Feb 2024
- 2023Large Language Models for Generative Information Extraction: A Survey29 Dec 2023
- 2023GIELLM: Japanese General Information Extraction Large Language Model Utilizing Mutual Reinforcement Effect12 Nov 2023
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
- 2024RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generationcited by 61
- 2025VideoRAG: Retrieval-Augmented Generation over Video Corpuscited by 57
- 2024EVOR: Evolving Retrieval for Code Generationcited by 22
- 2025Adaptive Schema-aware Event Extraction with Retrieval-Augmented Generationcited by 7
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Modelcited by 5
- 2024Retrieval Augmented Instruction Tuning for Open NER with Large Language Modelscited by 4
- 2025SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localizationcited by 4
- 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifiercited by 1
- 2025SACL: Understanding and Combating Textual Bias in Code Retrieval with Semantic-Augmented Reranking and Localization25 Jun 2025
- 2025Adaptive Schema-aware Event Extraction with Retrieval-Augmented Generation13 May 2025
- 2025VideoRAG: Retrieval-Augmented Generation over Video Corpus10 Jan 2025
- 2025Biomedical Relation Extraction via Adaptive Document-Relation Cross-Mapping and Concept Unique Identifier9 Jan 2025
- 2024Building A Coding Assistant via the Retrieval-Augmented Language Model21 Oct 2024
- 2024RAGChecker: A Fine-grained Framework for Diagnosing Retrieval-Augmented Generation15 Aug 2024
- 2024Retrieval Augmented Instruction Tuning for Open NER with Large Language Models25 Jun 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024EVOR: Evolving Retrieval for Code Generation19 Feb 2024
- 2024Debate as Optimization: Adaptive Conformal Prediction and Diverse Retrieval for Event Extractioncited by 10
- 2024AgentRE: An Agent-Based Framework for Navigating Complex Information Landscapes in Relation Extractioncited by 6
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Executioncited by 2
- 2025Extracting Events Like Code: A Multi-Agent Programming Framework for Zero-Shot Event Extractioncited by 2
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agentscited by 1
- 2025Extracting Events Like Code: A Multi-Agent Programming Framework for Zero-Shot Event Extraction17 Nov 2025
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution9 Oct 2025
- 2025MemoCoder: Automated Function Synthesis using LLM-Supported Agents24 Jul 2025
- 2024AgentRE: An Agent-Based Framework for Navigating Complex Information Landscapes in Relation Extraction3 Sep 2024
- 2024Debate as Optimization: Adaptive Conformal Prediction and Diverse Retrieval for Event Extraction18 Jun 2024
- 2025KnowCoder-V2: Deep Knowledge Analysiscited by 1
- 2025KnowCoder-V2: Deep Knowledge Analysis7 Jun 2025
- 2023Large Language Models for Generative Information Extraction: A Surveycited by 185
- 2024KnowCoder: Coding Structured Knowledge into LLMs for Universal Information Extractioncited by 34
- 2024C-ICL: Contrastive In-context Learning for Information Extractioncited by 23
- 2025Instruction-Tuning LLMs for Event Extraction with Annotation Guidelinescited by 18
- 2024A Simple but Effective Approach to Improve Structured Language Model Output for Information Extractioncited by 16
- 2024LTNER: Large Language Model Tagging for Named Entity Recognition with Contextualized Entity Markingcited by 7
- 2023GIELLM: Japanese General Information Extraction Large Language Model Utilizing Mutual Reinforcement Effectcited by 6
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attentioncited by 4
- 2024Embedded Named Entity Recognition using Probing Classifierscited by 3
- 2024KnowCoder-X: Boosting Multilingual Information Extraction via Codecited by 3
- 2025Schema as Parameterized Tools for Universal Information Extractioncited by 3
- 2025Towards Event Extraction with Massive Types: LLM-based Collaborative Annotation and Partitioning Extractioncited by 2
12 most cited of 22 All 22 (JSON)
- 2026LC-ICL: Label-Guided Contrastive In-Context Learning for Robust Information Extraction28 Jun 2026
- 2026ProUIE: A Macro-to-Micro Progressive Learning Method for LLM-based Universal Information Extraction12 Apr 2026
- 2026Analysing Lightweight Large Language Models for Biomedical Named Entity Recognition on Diverse Ouput Formats27 Mar 2026
- 2026Code-MIE: A Code-style Model for Multimodal Information Extraction with Scene Graph and Entity Attribute Knowledge Enhancement21 Mar 2026
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attention22 Aug 2025
- 2025A Semantic Parsing Framework for End-to-End Time Normalization8 Jul 2025
- 2025Evaluation of LLM-based Strategies for the Extraction of Food Product Information from Online Shops17 Jun 2025
- 2025Schema as Parameterized Tools for Universal Information Extraction2 Jun 2025
- 2025MPL: Multiple Programming Languages with Large Language Models for Information Extraction22 May 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
- 2024Can AI Extract Antecedent Factors of Human Trust in AI? An Application of Information Extraction for Scientific Literature in Behavioural and Computer Sciences16 Dec 2024
12 newest of 22 All 22 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Retrieval-Augmented Generation-based Relation Extraction
- 2026Retrieval-Augmented Generation for Scientific Code Understanding
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities
- 2026Context-Augmented Code Generation Using Programming Knowledge Graphs
- 2025What to Retrieve for Effective Retrieval-Augmented Code Generation? An Empirical Study and Beyond
- 2024Context-Augmented Code Generation Using Programming Knowledge Graphs
- 2026SchemaRAG: Dynamic Large Schema Reduction for LLM-driven Structured Information Extraction
- 2025SelfRACG: Enabling LLMs to Self-Express and Retrieve for Code Generation