Experimental Design for Active Transductive Inference in Large Language Models

Subhojyoti Mukherjee, Anusha Lalitha, Aniket Deshmukh, Ge Liu, Yifei Ma +1 more
4/12/2024
cs.LGcs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

One emergent ability of large language models (LLMs) is that query-specific examples can be included in the prompt at inference time. In this work, we use active learning for adaptive prompt design and call it Active In-context Prompt Design (AIPD). We design the LLM prompt by adaptively choosing few-shot examples from a training set to optimize performance on a test set. The training examples are initially unlabeled and we obtain the label of the most informative ones, which maximally reduces uncertainty in the LLM prediction. We propose two algorithms, GO and SAL, which differ in how the few-shot examples are chosen. We analyze these algorithms in linear models: first GO and then use its equivalence with SAL. We experiment with many different tasks in small, medium-sized, and large language models; and show that GO and SAL outperform other methods for choosing few-shot examples in the LLM prompt at inference time.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mukherjee2024experimental,
  title  = {Experimental Design for Active Transductive Inference in Large Language Models},
  author = {Subhojyoti Mukherjee and Anusha Lalitha and Aniket Deshmukh and Ge Liu and Yifei Ma and Branislav Kveton},
  year   = {2024},
  eprint = {2404.08846},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.08846v2}
}

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/2404.08846.svg)](https://codeofpaper.com/paper/2404.08846)

Discussion