IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Models

Shaokun Zhang, Xiaobo Xia, Zhaoqing Wang, Ling-Hao Chen, Jiale Liu +2 more
10/1/2023

No official code found. Best implementation: skzhang1/IDEAL (59 stars, Apache-2.0, last commit 2024-01-19).

Abstract

In-context learning is a promising paradigm that utilizes in-context examples as prompts for the predictions of large language models. These prompts are crucial for achieving strong performance. However, since the prompts need to be sampled from a large volume of annotated examples, finding the right prompt may result in high annotation costs. To address this challenge, this paper introduces an influence-driven selective annotation method that aims to minimize annotation costs while improving the quality of in-context examples. The essence of our method is to select a pivotal subset from a large-scale unlabeled data pool to annotate for the subsequent sampling of prompts. Specifically, a directed graph is first constructed to represent unlabeled data. Afterward, the influence of candidate unlabeled subsets is quantified with a diffusion process. A simple yet effective greedy algorithm for unlabeled data selection is lastly introduced. It iteratively selects the data if it provides a maximum marginal gain with respect to quantified influence. Compared with previous efforts on selective annotations, our influence-driven method works in an end-to-end manner, avoids an intractable explicit balance between data diversity and representativeness, and enjoys theoretical support. Experiments confirm the superiority of the proposed method on various benchmarks, achieving better performance under lower time consumption during subset selection. The project page is available at https://skzhang1.github.io/IDEAL/.

View on arXivView PDF

Code Implementations(1)

skzhang1/IDEALCommunity73%
Apache-2.0

IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Models

595C, C++Oct 16, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2023ideal,
  title  = {IDEAL: Influence-Driven Selective Annotations Empower In-Context Learners in Large Language Models},
  author = {Shaokun Zhang and Xiaobo Xia and Zhaoqing Wang and Ling-Hao Chen and Jiale Liu and Qingyun Wu and Tongliang Liu},
  year   = {2023},
  eprint = {2310.10873},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.10873},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.10873.svg)](https://codeofpaper.com/paper/2310.10873)

Discussion