Skip to main content
QUICK REVIEW

[논문 리뷰] Ask Me Anything: A simple strategy for prompting language models

Simran Arora, Avanika Narayan|arXiv (Cornell University)|2022. 10. 05.
Topic ModelingComputer Science인용 수 74
한 줄 요약

AMA는 여러 개의 개방형 QA 프롬프트와 약한 감독을 사용해 예측을 집계하고, 오픈소스 LLM 프롬팅을 개선하며 다수의 벤치마크에서 few-shot GPT-3 베이스라인을 능가하는 데 기여한다.

ABSTRACT

Large language models (LLMs) transfer well to new tasks out-of-the-box simply given a natural language prompt that demonstrates how to perform the task and no additional training. Prompting is a brittle process wherein small modifications to the prompt can cause large variations in the model predictions, and therefore significant effort is dedicated towards designing a painstakingly "perfect prompt" for a task. To mitigate the high degree of effort involved in prompt-design, we instead ask whether producing multiple effective, yet imperfect, prompts and aggregating them can lead to a high quality prompting strategy. Our observations motivate our proposed prompting method, ASK ME ANYTHING (AMA). We first develop an understanding of the effective prompt formats, finding that question-answering (QA) prompts, which encourage open-ended generation ("Who went to the park?") tend to outperform those that restrict the model outputs ("John went to the park. Output True or False."). Our approach recursively uses the LLM itself to transform task inputs to the effective QA format. We apply the collected prompts to obtain several noisy votes for the input's true label. We find that the prompts can have very different accuracies and complex dependencies and thus propose to use weak supervision, a procedure for combining the noisy predictions, to produce the final predictions for the inputs. We evaluate AMA across open-source model families (e.g., EleutherAI, BLOOM, OPT, and T0) and model sizes (125M-175B parameters), demonstrating an average performance lift of 10.2% over the few-shot baseline. This simple strategy enables the open-source GPT-J-6B model to match and exceed the performance of few-shot GPT3-175B on 15 of 20 popular benchmarks. Averaged across these tasks, the GPT-J-6B model outperforms few-shot GPT3-175B. We release our code here: https://github.com/HazyResearch/ama_prompting

연구 동기 및 목표

  • 하나의 손으로 만든 프롬프트가 아닌 여러 개의 불완전한 프롬프트를 활용하여 프롬프트의 취약성을 줄이려는 동기.
  • 재귀적 프롬프트 체인을 사용하여 작업 입력을 개방형 QA 형식으로 변환하는 확장 가능한 방법을 개발.
  • 레이블 데이터 없이도 노이즈가 있는 프롬프트 예측을 신뢰성 있게 집계하기 위해 약한 감독을 도입.
  • 다양한 오픈소스 모델 계열과 벤치마크에 대해 AMA를 평가하여 few-shot 베이스라인 대비 개선을 정량화.

제안 방법

  • 개방형 QA를 제한적인 프롬프트보다 우선시하는 효과적인 프롬프트 형식을 식별.
  • question()과 answer() 기능 프롬프트로 구성된 프롬프트 체인을 사용하여 입력을 재귀적으로 QA 형식으로 변환.
  • 각 입력에 대해 다양한 예측을 생성하기 위해 다중 프롬프트 체인을 생성.
  • 레이블 데이터 없이 프롬프트 출력 간의 의존성과 정확 accuracies를 고려한 약한 감독을 적용하여 예측을 집계.

실험 결과

연구 질문

  • RQ1개방형 QA 프롬프트가 작업과 모델 크기에 관계없이 제한형 프롬프트보다 우수한가요?
  • RQ2확장 가능하고 재귀적인 입력 재형식화가 집계에 적합한 효과적인 프롬프트 체인을 생성할 수 있는가?
  • RQ3레이블 데이터 없이도 노이즈가 많고 의존적인 프롬프트 출력을 신뢰성 있게 결합해 정확도를 향상시킬 수 있는가?
  • RQ4AMA가 서로 다른 오픈소스 모델 계열과 작업 간에 얼마나 잘 전이되는가?
  • RQ5AMA의 평균 성능 향상은 얼마이며, 이득이 가장 큰 조건은 무엇인가?

주요 결과

  • 개방형 QA 프롬프트는 제한형 프롬프트에 비해 상당한 성능 향상을 제공하며, 재형식화가 작업과 모델 전반에 걸쳐 일반화될수록 더 큰 향상이 나타난다.
  • 재귀적 프롬프트 체인(question()과 answer())은 다양한 입력에 대해 QA 스타일의 프롬프트를 확장 가능하게 생성하게 한다.
  • 프롬프트 간 의존성과 정확성을 반영한 약한 감독은 단순 다수결보다 집계를 개선하고, 조건 엔트로피를 감소시켜 신뢰성을 향상시킨다.
  • 14개 모델 가족과 20개 벤치마크에서 AMA는 few-shot 베이스라인 대비 평균 상승 10.2% (±6.1%)를 달성하며, GPT-J-6B는 20개 중 15개 작업에서 GPT-3-175B few-shot과 동등하거나 이를 초과한다.
  • AMA는 6B 오픈소스 모델이 다수의 작업에서 175B GPT-3 few-shot 베이스라인을 능가하도록 해주어, 훨씬 작은 모델로도 효과적인 프롬프트 작성이 가능함을 보여준다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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