Skip to main content
QUICK REVIEW

[论文解读] Fairness-guided Few-shot Prompting for Large Language Models

Zhenqiang Ma, Changqing Zhang|arXiv (Cornell University)|Mar 23, 2023
Topic ModelingComputer Science被引用 24
一句话总结

本论文引入一个预测偏差(公平性)度量来评估提示,并提出两种提示搜索策略,T-fair-Prompting 与 G-fair-Prompting,以提升大语言模型的在-context学习(ICL)表现。

ABSTRACT

Large language models have demonstrated surprising ability to perform in-context learning, i.e., these models can be directly applied to solve numerous downstream tasks by conditioning on a prompt constructed by a few input-output examples. However, prior research has shown that in-context learning can suffer from high instability due to variations in training examples, example order, and prompt formats. Therefore, the construction of an appropriate prompt is essential for improving the performance of in-context learning. In this paper, we revisit this problem from the view of predictive bias. Specifically, we introduce a metric to evaluate the predictive bias of a fixed prompt against labels or a given attributes. Then we empirically show that prompts with higher bias always lead to unsatisfactory predictive quality. Based on this observation, we propose a novel search strategy based on the greedy search to identify the near-optimal prompt for improving the performance of in-context learning. We perform comprehensive experiments with state-of-the-art mainstream models such as GPT-3 on various downstream tasks. Our results indicate that our method can enhance the model's in-context learning performance in an effective and interpretable manner.

研究动机与目标

  • 通过解决大模型中因提示引发的预测偏差来提高在-context学习(ICL)能力。
  • 引入一个无开发集的度量(预测偏差)来评估提示质量。
  • 提出两种高效的提示搜索策略(T-fair-Prompting 与 G-fair-Prompting)以寻找近最优提示。
  • 在多个大语言模型及下游文本分类任务上验证该方法。
  • 突出偏差引导提示的可解释性和实用性,无需模型微调。

提出的方法

  • 将内容空白输入定义,并通过熵(Eq. 2)来测量预测分布以计算公平性分数。
  • 表明更高的提示偏差与较差的预测质量相关,激发基于偏差的提示搜索。
  • 提出两种搜索策略:T-fair-Prompting(线性时间,选择前-k个最公平的单示例)与 G-fair-Prompting(贪婪,O(N^2),搜索质量提升)。
  • 将公平度量形式化为 fair(ρ) = - sum_y p(y|ρ ⊕ η) log p(y|ρ ⊕ η).
  • 使用无内容的输入来评估提示,而不需要开发集,从而实现独立于开发集的评估。
  • 通过插入在每个步骤都能提高公平性的演示来展示局部到全局的偏差降低。
Figure 3: Overview of Most-fair Prompting.
Figure 3: Overview of Most-fair Prompting.

实验结果

研究问题

  • RQ1固定提示的预测偏差(公平性)是否与跨任务和模型的下游 ICL 表现相关?
  • RQ2偏差引导的搜索策略是否能够在无需微调的情况下,在原始(文本)空间有效地识别近似最优提示?
  • RQ3与现有基于多样性/相似性提示搜索的方法和基于校准的方法相比,T-fair-Prompting 与 G-fair-Prompting 有何差异?
  • RQ4在多种大模型上,这些策略的搜索成本与性能提升之间存在怎样的权衡?

主要发现

  • 基于内容空输入计算的公平性分数与在不同模型和数据集上的更高任务性能相关。
  • G-fair-Prompting 能较接近对所有提示的枚举,并且始终优于 T-fair-Prompting。
  • 两者中,G-fair-Prompting 与在较大程度上,T-fair-Prompting 在多个任务和模型上都优于基于多样性和相似性引导的基线。
  • 后校准对某些提示有帮助,但可能会损害低质量提示的性能,凸显了基于偏差的提示搜索的价值。
  • 所提出的方法在 GPT 系列和 LLaMA 家族模型上,相对于 SOTA 提示策略实现了一致的相对提升。
Figure 4: BLOOM is not sensitive to CoLA.
Figure 4: BLOOM is not sensitive to CoLA.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。