Skip to main content
QUICK REVIEW

[논문 리뷰] Data Distributional Properties Drive Emergent In-Context Learning in Transformers

Stephanie C. Y. Chan, Adam Santoro|arXiv (Cornell University)|2022. 04. 22.
Topic ModelingComputer Science인용 수 52
한 줄 요약

논문은 트랜스포머에서의 emergent in-context learning이 학습 데이터 분포(버스트성, 긴 꼬리 클래스 다양성, 동적 의미)에 의존하며, 아키텍처와 데이터 특성이 함께 이 능력을 가능하게 하거나 제한한다는 것을 보여준다.

ABSTRACT

Large transformer-based models are able to perform in-context few-shot learning, without being explicitly trained for it. This observation raises the question: what aspects of the training regime lead to this emergent behavior? Here, we show that this behavior is driven by the distributions of the training data itself. In-context learning emerges when the training data exhibits particular distributional properties such as burstiness (items appear in clusters rather than being uniformly distributed over time) and having large numbers of rarely occurring classes. In-context learning also emerges more strongly when item meanings or interpretations are dynamic rather than fixed. These properties are exemplified by natural language, but are also inherent to naturalistic data in a wide range of other domains. They also depart significantly from the uniform, i.i.d. training distributions typically used for standard supervised learning. In our initial experiments, we found that in-context learning traded off against more conventional weight-based learning, and models were unable to achieve both simultaneously. However, our later experiments uncovered that the two modes of learning could co-exist in a single model when it was trained on data following a skewed Zipfian distribution -- another common property of naturalistic data, including language. In further experiments, we found that naturalistic data distributions were only able to elicit in-context learning in transformers, and not in recurrent models. In sum, our findings indicate how the transformer architecture works together with particular properties of the training data to drive the intriguing emergent in-context learning behaviour of large language models, and how future work might encourage both in-context and in-weights learning in domains beyond language.

연구 동기 및 목표

  • 트랜스포머 모델이 명시적 메타 학습 없이 컨텍스트 내 소수 shot 학습을 획득하는 방법을 조사한다.
  • 컨텍스트 내 학습을 촉진하거나 억제하는 학습 데이터 분포 특성을 식별한다.
  • 아키텍처(트랜스포머 대 순환 신경망) 가 컨텍스트 내 학습 가능성에 미치는 역할을 검사한다.
  • 동일한 데이터 체계에서 컨텍스트 내 학습과 전통적 가중치 기반 학습이 공존할 수 있는 조건을 탐구한다.

제안 방법

  • Omniglot에서 이미지-레이블 쌍 시퀀스로 트랜스포머 및 순환 모델을 학습시킨다.
  • 버스트성, 클래스 수, 레이블 중복성, 클래스 내 변variation 등의 데이터 분포 특성을 체계적으로 조작한다.
  • 표준 소수-shot 설정을 사용하여 보류 클래스에서의 컨텍스트 내 학습 및 학습된 클래스에서의 가중치 학습을 평가한다.
  • Zipfian(왜곡된) 클래스 분포가 학습 모드의 공존에 미치는 영향을 테스트한다.
  • 주의 메커니즘의 역할을 분리하기 위해 트랜스포머와 순환 아키텍처를 비교한다.

실험 결과

연구 질문

  • RQ1트랜스포머에서 emergent한 컨텍스트 내 학습을 촉진하는 데이터 분포 특성은 무엇인가?
  • RQ2버스트성 및 긴 꼬리 클래스 분포가 컨텍스트 내 학습과 가중치 학습에 어떤 영향을 미치는가?
  • RQ3같은 데이터 환경에서 트랜스포머와 순환 모델이 컨텍스트 내 학습을 나타내는 능력에서 차이가 있는가?
  • RQ4동일 모델에서 컨텍스트 내 학습과 가중치 학습이 공존할 수 있는 조건은 무엇인가?

주요 결과

  • 컨텍스트 내 학습은 학습 데이터가 버스트형이고 거의 등장하지 않는 클래스를 많이 포함할 때 트랜스포머에서 나타난다.
  • 버스트성을 높이면 컨텍스트 내 학습이 개선되지만 가중치 학습은 감소하여 두 모드 간의 트레이드오프를 시사한다.
  • 더 많은 클래스로 구성된 긴 꼬리 분포는 컨텍스트 내 학습을 더 강화하고 가중치 학습을 약화시킨다.
  • 동적 의미(레이블 중복성과 클래스 내 변동성)는 컨텍스트 내 학습을 촉진한다.
  • 지수 약 1인 Zipf 분포는 컨텍스트 내 학습과 가중치 학습의 공존을 유지시켜 자연어 통계와 일치한다.
  • 순환 모델(일반 RNN, LSTM)은 동일한 데이터 조건에서도 컨텍스트 내 학습을 보이지 않아 아키텍처별 효과를 강조한다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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