Skip to main content
QUICK REVIEW

[논문 리뷰] Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoning

Pan Lu, Liang Qiu|arXiv (Cornell University)|2022. 09. 29.
Topic ModelingComputer Science인용 수 41
한 줄 요약

이 논문은 TabMWP라는 대규모 표 형식 수학 단어 문제 데이터셋과 표 데이터에 대한 few-shot GPT-3 추론을 개선하기 위해 맥락 내 예시 선택 학습을 하는 정책-그래디언트 기반 방법인 PromptPG를 소개한다.

ABSTRACT

Mathematical reasoning, a core ability of human intelligence, presents unique challenges for machines in abstract thinking and logical reasoning. Recent large pre-trained language models such as GPT-3 have achieved remarkable progress on mathematical reasoning tasks written in text form, such as math word problems (MWP). However, it is unknown if the models can handle more complex problems that involve math reasoning over heterogeneous information, such as tabular data. To fill the gap, we present Tabular Math Word Problems (TabMWP), a new dataset containing 38,431 open-domain grade-level problems that require mathematical reasoning on both textual and tabular data. Each question in TabMWP is aligned with a tabular context, which is presented as an image, semi-structured text, and a structured table. There are two types of questions: free-text and multi-choice, and each problem is annotated with gold solutions to reveal the multi-step reasoning process. We evaluate different pre-trained models on TabMWP, including the GPT-3 model in a few-shot setting. As earlier studies suggest, since few-shot GPT-3 relies on the selection of in-context examples, its performance is unstable and can degrade to near chance. The unstable issue is more severe when handling complex problems like TabMWP. To mitigate this, we further propose a novel approach, PromptPG, which utilizes policy gradient to learn to select in-context examples from a small amount of training data and then constructs the corresponding prompt for the test example. Experimental results show that our method outperforms the best baseline by 5.31% on the accuracy metric and reduces the prediction variance significantly compared to random selection, which verifies its effectiveness in selecting in-context examples.

연구 동기 및 목표

  • TabMWP를 도입하여 반구조적 수학 추론을 가능하게 하는 표 맥락을 가진 개방 도메인 수학 단어 문제의 대규모 데이터셋을 소개한다.
  • GPT-3의 few-shot 성능을 향상시키기 위해 맥락 내 예시 선택을 학습하는 강화 학습 기반 방법인 PromptPG를 제안한다.
  • 동적 프롬프트 학습이 선택의 불안정을 감소시키고 TabMWP에서 정확도를 향상시킴을 보여준다.
  • 성능을 좌우하는 요인을 이해하기 위한 입력 구성 요소, 어블레이션, 선택 전략에 대한 분석을 제공한다.

제안 방법

  • TabMWP를 표 맥락(이미지, 반구조적 텍스트, 또는 구조화된 표)과 자유될 텍스트 또는 다지선다형 질문으로 구성된 문제로 정의한다.
  • 표 맥락을 세 가지 형식(이미지, 반구조적 텍스트, 구조화된 표)으로 표현하고 다단계 추론을 위한 정답 해를 제공한다.
  • TabMWP에서 few-shot 및 few-shot-CoT 프롬프트를 포함한 few-shot GPT-3의 기본 벤치마크 평가를 수행한다.
  • 고정 매개변수 BERT 인코더와 선형 헤드를 결합하여 후보 풀에서 맥락 내 예시를 점수화하는 정책-그래디언트 기반의 프롬프트 학습기인 PromptPG를 도입한다.
  • 정답 여부에 따라 보상이 ±1인 REINFORCE를 사용하여 GPT-3 답변의 기대 보상을 최대화하고, 더 나은 프롬프트를 선호하도록 정책 매개변수를 업데이트한다.
  • 사전 학습 및 미세 조정된 UnifiedQA와 TAPEX 베이스라인 및 기타 프롬프팅 전략과의 비교를 통해 TabMWP에서의 정확도를 보고한다.

실험 결과

연구 질문

  • RQ1표 컨텍스트 수학 단어 문제 데이터세트가 GPT-3로 few-shot 설정에서 효과적으로 해결될 수 있는가?
  • RQ2정책 그래디언트를 통해 맥락 내 예시 선택을 학습하는 것이 임의의 또는 휴리스틱한 예시 선택에 비해 정확도를 높이고 안정성 문제를 줄이는가?
  • RQ3다른 입력 형식(이미지, 반구조적 텍스트, 표)과 질문 유형(자유 텍스트 vs 다지선다)이 성능에 어떤 영향을 미치는가?
  • RQ4훈련 예시 수와 후보 프롬프트의 수가 PromptPG의 효과에 어떤 영향을 미치는가?

주요 결과

  • PromptPG는 TabMWP에서 평균 정확도 68.23%를 달성하여 최고 베이스라인보다 최대 5.31퍼센트 포인트 만큼 향상시킨다.
  • PromptPG는 무작위 맥락 내 예시 선택에 비해 예측 분산을 줄인다.
  • 제로샷 GPT-3는 이미 TabMWP에서 대형 미세 조정 베이스라인에 필적하지만, CoT를 포함한 few-shot 프롬프팅이 PromptPG 이전의 가장 강력한 단일 베이스라인으로 남아 있다.
  • 어블레이션 연구에서 표 맥락과 질문 텍스트 모두 정확도에 필수적임이 나타났으며; 전체 TQ(C) 입력이 최상의 성능을 낸다.
  • PromptPG는 자유 텍스트와 다지선다형 문제 모두, 학년 구간(1-6 및 7-8) 및 정답 유형 전반에 걸쳐 일관되게 성능을 향상시킨다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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