Skip to main content
QUICK REVIEW

[논문 리뷰] Fairness-guided Few-shot Prompting for Large Language Models

Zhenqiang Ma, Changqing Zhang|arXiv (Cornell University)|2023. 03. 23.
Topic ModelingComputer Science인용 수 24
한 줄 요약

이 논문은 프롬프트를 평가하기 위한 예측-편향(공정성) 지표를 도입하고, T-fair-Prompting과 G-fair-Prompting 두 가지 프롬프트 탐색 전략을 제안하여 LLM의 in-context learning을 개선한다.

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.

연구 동기 및 목표

  • LLM에서 프롬프트로 야기된 예측 편향을 해결함으로써 in-context 학습(ICL)을 개선하도록 동기 부여한다.
  • 프롬프트 품질을 평가하기 위한 개발 세트 없이 사용 가능한 지표(예측 편향)를 도입한다.
  • 가까운 최적 프롬프트를 찾기 위한 두 가지 효율적 프롬프트 탐색 전략(T-fair-Prompting 과 G-fair-Prompting)을 제안한다.
  • 여러 LLM과 다운스트림 텍스트 분류 작업에 걸쳐 접근법의 타당성을 검증한다.
  • 모델 미세조정 없이 편향 기반 프롬프트의 해석 가능성과 실용성을 강조한다.

제안 방법

  • 콘텐츠-프리 입력을 정의하고 예측 분포를 측정하여 엔트로피를 통해 공정성 점수(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편향 안내 탐색 전략이 미세조정 없이 원래(텍스트) 공간에서 근사 최적 프롬프트를 효율적으로 식별할 수 있는가?
  • RQ3T-fair-Prompting과 G-fair-Prompting은 기존의 다양성/유사도 기반 프롬프트 탐색 방법 및 보정 기반 접근법과 어떻게 비교되는가?
  • RQ4여러 LLM에 걸친 제안된 전략의 탐색 비용과 성능 향상 간의 트레이드오프는 무엇인가?

주요 결과

  • 콘텐츠 프리 입력에서 계산된 공정성 점수는 모델 및 데이터셋 전반에서 더 높은 작업 성능과 상관관계가 있다.
  • 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.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.