Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

More Samples or More Prompts? Exploring Effective In-Context Sampling for LLM Few-Shot Prompt Engineering (2311.09782v2)

Published 16 Nov 2023 in cs.CL

Abstract: While most existing works on LLM prompting techniques focus only on how to select a better set of data samples inside one single prompt input (In-Context Learning or ICL), why can not we design and leverage multiple prompts together to further improve the LLM's performance? In this work, we propose In-Context Sampling (ICS), a low-resource LLM prompting technique to produce confident predictions by optimizing the construction of multiple ICL prompt inputs. Extensive experiments with three open-source LLMs (FlanT5-XL, Mistral-7B, and Mixtral-8x7B) on four NLI datasets (e-SNLI, Multi-NLI, ANLI, and Contract-NLI) and one QA dataset (CommonsenseQA) illustrate that ICS can consistently enhance LLMs' performance. An in-depth evaluation with three data similarity-based ICS strategies suggests that these strategies can further elevate LLM's performance, which sheds light on a new yet promising future research direction.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (10)
  1. Bingsheng Yao (49 papers)
  2. Guiming Chen (4 papers)
  3. Ruishi Zou (6 papers)
  4. Yuxuan Lu (26 papers)
  5. Jiachen Li (144 papers)
  6. Shao Zhang (18 papers)
  7. Sijia Liu (204 papers)
  8. James Hendler (11 papers)
  9. Dakuo Wang (87 papers)
  10. Yisi Sang (13 papers)
Citations (10)

Summary

We haven't generated a summary for this paper yet.