Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
80 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

ICL-D3IE: In-Context Learning with Diverse Demonstrations Updating for Document Information Extraction (2303.05063v4)

Published 9 Mar 2023 in cs.CL

Abstract: LLMs, such as GPT-3 and ChatGPT, have demonstrated remarkable results in various NLP tasks with in-context learning, which involves inference based on a few demonstration examples. Despite their successes in NLP tasks, no investigation has been conducted to assess the ability of LLMs to perform document information extraction (DIE) using in-context learning. Applying LLMs to DIE poses two challenges: the modality and task gap. To this end, we propose a simple but effective in-context learning framework called ICL-D3IE, which enables LLMs to perform DIE with different types of demonstration examples. Specifically, we extract the most difficult and distinct segments from hard training documents as hard demonstrations for benefiting all test instances. We design demonstrations describing relationships that enable LLMs to understand positional relationships. We introduce formatting demonstrations for easy answer extraction. Additionally, the framework improves diverse demonstrations by updating them iteratively. Our experiments on three widely used benchmark datasets demonstrate that the ICL-D3IE framework enables Davinci-003/ChatGPT to achieve superior performance when compared to previous pre-trained methods fine-tuned with full training in both the in-distribution (ID) setting and in the out-of-distribution (OOD) setting. Code is available at https://github.com/MAEHCM/ICL-D3IE.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Jiabang He (6 papers)
  2. Lei Wang (975 papers)
  3. Yi Hu (129 papers)
  4. Ning Liu (199 papers)
  5. Hui Liu (481 papers)
  6. Xing Xu (48 papers)
  7. Heng Tao Shen (117 papers)
Citations (39)