PulseAugur
实时 15:23:22
English(EN) I Added 6 Few-Shot Examples to One Prompt. Two of Them Made the Output Worse.

少样本示例可能损害 LLM 提示性能

LLM 提示词添加更多少样本示例并不总能提高性能,有时甚至会降低性能。在一项实验中,一个包含六个示例的提示词的表现不如一个包含四个示例的提示词,增加的两个示例对准确性产生了负面影响。作者发现,更长、更详细的示例,尤其是在提示词末尾放置时,可能会由于近因效应和分布偏移等偏差而扭曲模型的输出。 AI

影响 证明了提示工程需要仔细选择和放置示例,而不仅仅是数量,以避免性能下降。

排序理由 该集群描述了一个关于 LLM 和少样本示例的实验,类似于研究论文的发现。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

少样本示例可能损害 LLM 提示性能

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Ken Imoto ·

    I Added 6 Few-Shot Examples to One Prompt. Two of Them Made the Output Worse.

    <p>For a long time I treated few-shot examples like seasoning. More is more. If two examples made a prompt better, six would make it great, and I never bothered to check the math on that assumption.</p> <p>Last month I sat down with one classification prompt and actually measured…