Prompt Valuation Based on Shapley Values

Hanxi Liu, Xiaokai Mao, Haocheng Xia, Jian Lou, Jinfei Liu +1 more
12/24/2023
cs.CLcs.DBcs.LG

No confident code implementation found for this paper.

Abstract

Large language models (LLMs) excel on new tasks without additional training, simply by providing natural language prompts that demonstrate how the task should be performed. Prompt ensemble methods comprehensively harness the knowledge of LLMs while mitigating individual biases and errors and further enhancing performance. However, more prompts do not necessarily lead to better results, and not all prompts are beneficial. A small number of high-quality prompts often outperform many low-quality prompts. Currently, there is a lack of a suitable method for evaluating the impact of prompts on the results. In this paper, we utilize the Shapley value to fairly quantify the contributions of prompts, helping to identify beneficial or detrimental prompts, and potentially guiding prompt valuation in data markets. Through extensive experiments employing various ensemble methods and utility functions on diverse tasks, we validate the effectiveness of using the Shapley value method for prompts as it effectively distinguishes and quantifies the contributions of each prompt.

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. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

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

Cite this paper

@article{liu2023prompt,
  title  = {Prompt Valuation Based on Shapley Values},
  author = {Hanxi Liu and Xiaokai Mao and Haocheng Xia and Jian Lou and Jinfei Liu and Kui Ren},
  year   = {2023},
  eprint = {2312.15395},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.15395v2}
}

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

Discussion