The reviewed record of science sign in
Pith

arxiv: 2311.02962 · v1 · pith:POEYUF7J · submitted 2023-11-06 · cs.AI · cs.CL· cs.IR

Retrieval-Augmented Code Generation for Universal Information Extraction

Reviewed by Pithpith:POEYUF7Jopen to challenge →

classification cs.AI cs.CLcs.IR
keywords code4uietextscodesknowledgeschemastasksuniversalcode
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. LC-ICL: Label-Guided Contrastive In-Context Learning for Robust Information Extraction

    cs.CL 2026-06 unverdicted novelty 6.0

    LC-ICL improves few-shot NER and RE by using label-guided contrastive demonstrations that pair positive samples with error-annotated negative samples.

  2. Beyond Clean Text: Evaluating Encoder and Decoder Robustness for Bangla Event Detection in Noisy Text

    cs.CL 2026-06 unverdicted novelty 5.0

    Creates a Bangla event detection benchmark with clean, ASR, and corrupted text variants and finds decoder-only LLMs more robust to noise than encoder models.

  3. Retrieval-Augmented Generation for AI-Generated Content: A Survey

    cs.CV 2024-02 accept novelty 5.0

    A survey classifying RAG foundations for AIGC, summarizing enhancements, cross-modal applications, benchmarks, limitations, and future directions.