Skip to main content
QUICK REVIEW

[논문 리뷰] Textbooks Are All You Need II: phi-1.5 technical report

Yuanzhi Li, Sébastien Bubeck|arXiv (Cornell University)|2023. 09. 11.
Topic ModelingComputer Science인용 수 48
한 줄 요약

주로 합성 교과서 스타일 데이터로 학습된 1.3B 파라미터 트랜스포머(phi-1.5)가 더 큰 모델과 유사한 상식 및 언어 이해를 달성하고 다단계 추론과 코딩에 탁월하며, 명령 수행, 편향, 환각 연구를 돕기 위한 오픈소스 공개가 이뤄진다.

ABSTRACT

We continue the investigation into the power of smaller Transformer-based language models as initiated by extbf{TinyStories} -- a 10 million parameter model that can produce coherent English -- and the follow-up work on extbf{phi-1}, a 1.3 billion parameter model with Python coding performance close to the state-of-the-art. The latter work proposed to use existing Large Language Models (LLMs) to generate ``textbook quality" data as a way to enhance the learning process compared to traditional web data. We follow the ``Textbooks Are All You Need" approach, focusing this time on common sense reasoning in natural language, and create a new 1.3 billion parameter model named extbf{phi-1.5}, with performance on natural language tasks comparable to models 5x larger, and surpassing most non-frontier LLMs on more complex reasoning tasks such as grade-school mathematics and basic coding. More generally, extbf{phi-1.5} exhibits many of the traits of much larger LLMs, both good -- such as the ability to ``think step by step" or perform some rudimentary in-context learning -- and bad, including hallucinations and the potential for toxic and biased generations -- encouragingly though, we are seeing improvement on that front thanks to the absence of web data. We open-source extbf{phi-1.5} to promote further research on these urgent topics.

연구 동기 및 목표

  • 합성 교과서 스타일 데이터를 사용하여 소형 LLM이 고수준 능력을 어떻게 달성할 수 있는지 조사한다.
  • 더 큰 모델과 비교하여 phi-1.5의 상식 추론, 언어 과제, 다단계 추론 성능을 평가한다.
  • 데이터 품질과 규모의 역할 및 정제된 웹 데이터 사용의 영향을 탐구한다.
  • 웹 데이터로 훈련된 기준과 비교한 phi-1.5의 안전성, 독성 및 편향 특성을 검토한다.
  • 맥락 학습, 해석 가능성 및 안전성 연구를 가능하게 하도록 모델을 오픈소스화한다.

제안 방법

  • 24개 계층, 32개의 헤드, 컨텍스트 길이 2048을 갖춘 1.3B 파라미터 트랜스포머인 phi-1.5를 구성한다.
  • 약 30B 토큰으로 학습하는데, phi-1의 7B와 약 20B의 합성 교과서 스타일 데이터로 구성; 80%는 합성 데이터, 20%는 phi-1 데이터.
  • 학습 설정으로 상수 학습률 2e-4, 가중치 감소 0.1, (0.9,0.98) 모멘텀의 Adam, fp16, DeepSpeed ZeRO-2, 배치 크기 2048를 사용한다.
  • 필터링된 웹 데이터(~95B 토큰)로 학습된 phi-1.5-web-only 및 웹/합성/코드 비율 40/20/40의 혼합 데이터 세트로 학습된 phi-1.5-web 변형을 만든다.
  • 제로샷 및 파샷 성능을 상식 벤치마크(WinoGrande, ARC-Easy, ARC-Challenge, BoolQ, SIQA), 언어 이해 벤치마크(PIQA, Hellaswag, OpenBookQA, SQuAD, MMLU), 다단계 추론 벤치마크(GSM8K, HumanEval/MBPP)에서 평가한다.
  • 오픈소스 기준선(Llama2-7B, Vicuna-13B, Falcon-7B 등)과 비교하고 웹 데이터 대 합성 데이터가 성능에 미치는 영향을 보고한다.
Figure 1 : Benchmark results comparing phi-1.5 , its version enhanced with filtered web data phi-1.5-web , and other state-of-the-art open-source LLMs. Sizes range from phi-1.5 ’s 1.3 billion parameters (Falcon-RW-1.3B [ PMH + 23 ] ) to 10x larger models like Vicuna-13B [ ZCS + 23 ] , a fine-tuned v
Figure 1 : Benchmark results comparing phi-1.5 , its version enhanced with filtered web data phi-1.5-web , and other state-of-the-art open-source LLMs. Sizes range from phi-1.5 ’s 1.3 billion parameters (Falcon-RW-1.3B [ PMH + 23 ] ) to 10x larger models like Vicuna-13B [ ZCS + 23 ] , a fine-tuned v

실험 결과

연구 질문

  • RQ1합성 교과서 스타일 데이터로 주로 학습된 1.3B 파라미터 LLM이 더 큰 모델에 맞먹거나 능가할 수 있을 만큼의 능력을 얼마나 확장시킬 수 있는가?
  • RQ2합성/교과서 품질의 데이터가 웹 데이터에 비해 독성 콘텐츠와 편향 성향을 줄이는가?
  • RQ3정제된 웹 데이터를 추가하는 것이 상식 추론, 코딩 및 다단계 추론 작업에 어떤 영향을 미치는가?
  • RQ4지침 미세조정이나 RLHF 없이도 작은 모델이 자연어 작업과 코딩에서 높은 성능을 유지할 수 있는가?
  • RQ5능력 있는 오픈소스 LLM 개발에 있어 데이터 품질 대 규모의 실용적 함의는 무엇인가?

주요 결과

  • phi-1.5는 규모가 열 배 큰 모델의 상식 추론 및 언어 과제와 대응하며 다단계 추론에서 많은 비전선(비전선) LLM들을 상회한다.
  • 필터링된 웹 데이터로 학습된 phi-1.5-web-only은 유사 규모의 모델보다 이미 상식 벤치에서 더 우수하다.
  • 합성 데이터와 phi-1 데이터를 함께 사용한(phi-1-web) 경우 추론 작업에서 5배 큰 모델과 근접한 성능에 도달한다.
  • phi-1.5는 단계적 사고와 초보적 맥락 내 학습 능력을 보이나 더 큰 모델들과 유사한 환각과 편향도 존재한다; 합성 데이터 집중으로 웹 데이터 기준선에 비해 독성은 감소한다.
  • phi-1.5를 오픈소스로 공개하면 맥락 내 학습, 해석 가능성, 환각 및 편향 출력 완화에 대한 연구가 가능하다.
Figure 2 : Safety scores computed on 13 demographics from ToxiGen [ HGP + 22 ] . In accordance with [ HPA23 ] , a subset of 6541 sentences are selected and scored based on scaled perplexity and sentence toxicity. Scores range from 0 to 1, where a higher score indicates the model is less likely to pr
Figure 2 : Safety scores computed on 13 demographics from ToxiGen [ HGP + 22 ] . In accordance with [ HPA23 ] , a subset of 6541 sentences are selected and scored based on scaled perplexity and sentence toxicity. Scores range from 0 to 1, where a higher score indicates the model is less likely to pr

이 논문 읽기

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

누빈트에서 이 논문 읽기

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