Skip to main content
QUICK REVIEW

[논문 리뷰] An Incomplete Loop: Instruction Inference, Instruction Following, and In-context Learning in Language Models

Emmy Liu, Graham Neubig|arXiv (Cornell University)|2024. 04. 03.
Natural Language Processing TechniquesComputer Science인용 수 3
한 줄 요약

이 논문은 대규모 언어 모델에서 추론적(지시 따르기), 인도적(소수 샘플 프롬프팅), 그리고 추측적(지시 유추) 추론 간의 상호작용을 조사한다. 연구 결과, 이러한 추론 방식은 상호 분리되어 있음을 발견했다: 모델은 작업 규칙을 이해하지 못한 채 소수 샘플 학습에서 뛰어난 성능을 내며, 규칙을 타당하게 유추할 수는 있지만 적용하지 못하는 경우가 있으며, 이는 최첨단 모델조차도 체계적인 추론이 아님을 드러낸다.

ABSTRACT

Modern language models (LMs) can learn to perform new tasks in different ways: in instruction following, the target task is described explicitly in natural language; in few-shot prompting, the task is specified implicitly with a small number of examples; in instruction inference, LMs are presented with in-context examples and are then prompted to generate a natural language task description before making predictions. Each of these procedures may be thought of as invoking a different form of reasoning: instruction following involves deductive reasoning, few-shot prompting involves inductive reasoning, and instruction inference involves abductive reasoning. How do these different capabilities relate? Across four LMs (from the gpt and llama families) and two learning problems (involving arithmetic functions and machine translation) we find a strong dissociation between the different types of reasoning: LMs can sometimes learn effectively from few-shot prompts even when they are unable to explain their own prediction rules; conversely, they sometimes infer useful task descriptions while completely failing to learn from human-generated descriptions of the same task. Our results highlight the non-systematic nature of reasoning even in some of today's largest LMs, and underscore the fact that very different learning mechanisms may be invoked by seemingly similar prompting procedures.

연구 동기 및 목표

  • 대규모 언어 모델에서 서로 다른 프롬프팅 방법이 추론 유형(추론적, 인도적, 추측적)을 어떻게 유도하는지 조사하기.
  • 소수 샘플 프롬프팅과 같은 한 형태의 추론에서의 숙련도가 지시 유추와 같은 다른 형태의 추론에서의 숙련도를 의미하는지 판단하기.
  • 표준 프롬프팅과 비교하여 지시 유추가 제로샷 및 소수 샘플 성능 향상에 얼마나 효과적인지 평가하기.
  • 언어 모델이 문맥 내 예시에서 작업 규칙을 생성하고 적용하는 데서 일관성과 신뢰성을 평가하기.
  • 현재 언어 모델들이 개별 작업에서 뛰어난 성능을 내고 있음에도 불구하고, 다양한 프롬프팅 패러다임 간의 체계적인 추론에서의 한계를 탐구하기.

제안 방법

  • 지시 따르기와 추론적 추론, 소수 샘플 프롬프팅과 인도적 추론, 지시 유추와 추측적 추론 간의 프레임워크를 제안한다.
  • 모델이 문맥 내 예시에서 자연어로 작업 설명을 생성한 후 예측을 내리도록 지시 유추를 적용한다.
  • 두 가지 평가 작업을 사용: 선형 함수 학습 및 저자원 기계 번역(Kalamang 및 Colours 데이터셋).
  • 정확도와 chrF 점수를 사용해 모델 성능을 평가하며, 번역 작업의 가설 품질에 대해 인간이 애너테이션한 정확도를 활용한다.
  • 가설 품질과 모델의 자신감을 평가하기 위해 여러 재정렬 전략(예: p_data_given_hyp_logprobs, p_answer_given_hyp_logprobs)을 적용한다.
  • 가설 정확도와 번역 품질(chrF) 간의 상관 분석을 수행하여 생성된 작업 설명의 신뢰성 검증
Figure 1: Diagram of abductive reasoning for an LM. Red arrows show data flow in inductive reasoning (few-shot prompting), while blue arrows show data flow in deductive reasoning (instruction following). Black arrows indicate data flow unique to abductive reasoning (instruction induction). Instructi
Figure 1: Diagram of abductive reasoning for an LM. Red arrows show data flow in inductive reasoning (few-shot prompting), while blue arrows show data flow in deductive reasoning (instruction following). Black arrows indicate data flow unique to abductive reasoning (instruction induction). Instructi

실험 결과

연구 질문

  • RQ1RQ1: 언어 모델에서 지시 유추가 표준 소수 샘플 프롬프팅보다 성능 향상에 기여하는 경우는 언제인가?
  • RQ2RQ2: 지시를 따르는 능력(추론적)과 문맥 내 예시에서 학습하는 능력(인도적 또는 추측적) 간의 관계는 어떠한가?
  • RQ3RQ3: 모델이 정확한 작업 설명을 유추할 수는 있지만 적용하지 못하거나, 그 반대의 경우는 존재하는가?
  • RQ4RQ4: 다양한 모델과 작업에서 인도적 추론(소수 샘플 학습) 성공과 추측적 추론(지시 유추) 성공 간에 상관관계가 있는가?

주요 결과

  • 지시 유추는 선형 함수 학습 및 인위적 언어 규칙 학습과 같은 단순한 작업에서 소수 샘플 프롬프팅보다 성능 향상을 이룬다.
  • 저자원 기계 번역(Kalamang)과 같은 복잡한 작업에서는 지시 유추가 실패하며, 형태학적 정보가 제거된 경우 정확도가 최소 0.0813까지 떨어진다.
  • 소수 샘플 학습 성능와 지시 유추 성공 간에 유의미한 상관관계가 없으며, 모델이 한 가지에서 성공하더라도 다른 한 가지에서 뛰어나지 않을 수 있다.
  • GPT-3.5-turbo의 경우 번역 품질(chrF)과 가설 정확도 간의 점이분산 상관계수는 0.1746(p = 0.0063)로 약한 상관관계이지만 통계적으로 유의미하다.
  • GPT-4-turbo는 지시 유추를 통해 평균 chrF 15.25를 기록했지만, 가설이 잘못된 경우는 13.54로 떨어지며, 이는 가설 품질의 영향을 잘 보여준다.
  • Llama-2-70b는 지시 유추 시 번역 chrF가 23.62로 GPT-3.5-turbo(19.29)보다 높았지만, 여전히 가설 정확도에서 어려움을 겪어 추측적 추론 능력에서 모델별 한계가 있음을 시사한다.
Figure 2: Real coefficients of linear functions and relationship to hypothesized coefficients for GPT-3.5-turbo and GPT-4-turbo. Remaining models can be found in Appendix D . The x-axis has been truncated for visualization purposes (as there are some large outlier hypotheses). GPT-4-turbo is able to
Figure 2: Real coefficients of linear functions and relationship to hypothesized coefficients for GPT-3.5-turbo and GPT-4-turbo. Remaining models can be found in Appendix D . The x-axis has been truncated for visualization purposes (as there are some large outlier hypotheses). GPT-4-turbo is able to

이 논문 읽기

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

누빈트에서 이 논문 읽기

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