프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

PaLM: Scaling Language Modeling with Pathways

PaLM: Pathways를 이용한 언어 모델링 확장

  • 연구 문제 모델 규모를 키우면 few-shot 언어 이해와 생성 성능이 어떻게 개선되는지 PaLM으로 확인합니다.
  • 연구 방법 540B 파라미터의 밀집 decoder-only Transformer를 Pathways 시스템으로 6144개의 TPU v4 칩에 걸쳐 학습합니다.
  • 주요 결과 PaLM 540B는 영어 NLP 29개 과제 중 28개에서 few-shot 기준 최고 결과를 보고하고, GSM8K에서 chain-of-thought와 계산기를 결합해 58%를 얻습니다.

Figure 16: Few-shot learning performance on 5 different tasks across 3 models sizes (8B, 62B, 540B). Most
tasks improve monotonically as the number of few-shot…

Figure 16 : Few-shot learning performance on 5 different tasks across 3 models sizes (8B, 62B, 540B). Most tasks improve monotonically as the number of few-shot examples is increased. Certain tasks like Trivia QA break this trend. Performance on the few-shot tasks scales well with model sizes, with the 540B model achieving the best performance across all tasks.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 34쪽에서 그림 영역을 추출했습니다.

모델 규모는 few-shot 성능을 어디까지 끌어올리는가

대규모 Transformer 언어 모델은 여러 자연어 과제에서 강한 성능을 보여 왔습니다. 그러나 BERT와 T5 같은 인필링 방식의 모델은 과제마다 많은 학습 예시로 미세조정해야 하고, 모델 파라미터의 일부를 과제에 맞게 갱신해야 합니다. 이 때문에 모델 구조와 배포 과정이 복잡해집니다.

GPT-3는 과제 설명과 소수의 예시만 입력으로 주는 few-shot 예측이 가능함을 보였습니다. 이 논문은 그 흐름에서 규모가 few-shot 학습에 주는 영향을 더 깊이 확인하려고 합니다. 이를 위해 540B 파라미터의 밀집 활성화 자기회귀 Transformer인 PaLM을 780B 토큰으로 학습했습니다.

밀집 디코더 구조와 두 Pod 데이터 병렬 학습

PaLM은 표준 Transformer를 decoder-only 방식으로 사용하며, 몇 가지 구조를 바꿉니다. MLP 중간 활성화에는 SwiGLU를 쓰고, 각 블록은 attention과 MLP를 나란히 계산하는 parallel layers 방식을 씁니다. 저자들은 parallel layers가 대규모에서 약 15% 빠른 학습을 주며, 8B 규모에서는 품질이 약간 떨어졌지만 62B 규모에서는 품질 저하가 없었다는 결과를 근거로 540B 규모에서도 품질에 중립적이라고 외삽합니다.

Table 1: Model architecture details. We list the number of layers, dmodel, the number of attention heads and
attention head size. The feed-forward size dff is a…

Table 1 : Model architecture details. We list the number of layers, dmodel, the number of attention heads and attention head size. The feed-forward size dff is always 4×dmodel and attention head size is always 256.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

또한 multi-query attention은 key와 value 투영을 헤드 사이에서 공유해, 자기회귀 디코딩 때의 비용을 줄입니다. 학습 시스템은 Pathways를 사용합니다. 하나의 Python 클라이언트가 두 TPU v4 Pod에 절반씩 배치를 나누어 보내고, 각 Pod는 자신의 절반에서 기울기를 계산한 뒤 원격 Pod와 기울기를 교환합니다. 이 과정으로 6144개의 TPU v4 칩을 파이프라인 병렬 없이 사용합니다.

Figure 2: The Pathways system (Barham et al., 2022) scales training across two TPU v4 pods using two-way
data parallelism at the pod level

Figure 2 : The Pathways system (Barham et al., 2022) scales training across two TPU v4 pods using two-way data parallelism at the pod level.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

학습 효율을 재는 지표 MFU

기존 연구는 주로 하드웨어 FLOPs 활용률인 HFU를 썼습니다. 저자들은 재계산(rematerialization)이 메모리와 연산을 맞바꾸기 때문에 HFU가 구현과 컴파일러 선택에 따라 달라진다고 지적합니다. 그래서 이론적 최대 처리량 대비 관측된 처리량의 비율인 model FLOPs utilization(MFU)을 제안합니다. 이 분모에는 순전파와 역전파에 필요한 연산만 들어가며, 재계산은 포함되지 않습니다.

PaLM 540B의 MFU는 46.2%로 보고되며, 같은 계산으로 측정한 HFU는 57.8%입니다. 같은 표에서 GPT-3는 21.3%, Gopher는 32.5%, Megatron-Turing NLG 530B는 30.2%로 제시됩니다. 다만 이 수치들은 각 논문의 학습 처리량에서 계산되었으므로, 하드웨어와 측정 시점이 같은 통제 실험이 아닙니다.

Table 3: Model FLOPs utilization of PaLM and prior large models. PaLM achieves a notably high MFU
because of several optimizations across the model, compiler,…

Table 3 : Model FLOPs utilization of PaLM and prior large models. PaLM achieves a notably high MFU because of several optimizations across the model, compiler, and parallelism strategy. The corresponding hardware FLOPs utilization of PaLM is 57.8%. Details of the calculation are in Appendix B.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

780B 토큰 말뭉치의 구성

PaLM의 pre-training 말뭉치는 웹페이지, 책, 위키백과, 뉴스, 소스 코드, 소셜 미디어 대화를 섞어 만든 780B 토큰입니다. 세 모델 모두 같은 데이터를 한 번의 epoch 동안 학습하며, 데이터가 어떤 하위 말뭉치에서도 반복되지 않도록 혼합 비율을 정했습니다.

비율은 소셜 미디어 대화(다국어) 50%, 필터링된 웹페이지(다국어) 27%, 책(영어) 13%, GitHub 코드 5%, 위키백과(다국어) 4%, 뉴스(영어) 1%입니다. 비영어 데이터는 전체의 약 22%이며, 코드는 허용되지 않는 copyleft 라이선스를 제외하고 24개 프로그래밍 언어 파일을 사용했습니다.

Table 2: Proportion of data from each source in the training dataset. The multilingual corpus contains text
from over 100 languages, with the distribution give…

Table 2 : Proportion of data from each source in the training dataset. The multilingual corpus contains text from over 100 languages, with the distribution given in Appendix Table 29.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

영어 NLP 29개 과제에서의 few-shot 결과

저자들은 GLaM과 GPT-3가 쓴 29개 영어 벤치마크에서 PaLM 540B를 평가했습니다. 비교 대상은 각 과제에서 이전 대규모 언어 모델들이 보고한 단일 체크포인트 최고 결과입니다. 미세조정이나 다중 과제 적응 모델은 이 표에 넣지 않았습니다.

Table 4: Results obtained by the PaLM 540B model across 29 NLP benchmarks. For the few-shot results, the
number of shots for each task are mentioned in parenth…

Table 4 : Results obtained by the PaLM 540B model across 29 NLP benchmarks. For the few-shot results, the number of shots for each task are mentioned in parenthesis. The splits for each task are the same ones used in Du et al. (2021) and Brown et al. (2020). Superscripts denote results from past work: aGLaM 62B/64E (Du et al., 2021), bGPT-3 175B (Brown et al., 2020), cMegatron-Turing NLG 530B (Smith et al., 2022), dGopher (Rae et al., 2021), eLaMDA (Thoppilan et al., 2022) (results reported from Wei et al. (2022a), fChinchilla (Hoffmann et al., 2022)). † The work of Rae et al. (2021) and Hoffmann et al. (2022) achieve much higher scores on RACE-m/h, but the authors of those papers note their scores cannot be compared to GPT-3 and other large LMs because of a difference in task setup. We follow the GPT-3 style task setup for RACE-m/h, and compare to the prior results using the same setup.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

1-shot 설정에서 PaLM 540B는 29개 중 24개 과제에서 기존 최고 결과를 넘었습니다. few-shot 설정에서는 29개 중 28개 과제에서 넘었습니다. 같은 규모의 Megatron-Turing NLG 530B와 비교해서도 모든 벤치마크에서 앞섰는데, 저자들은 이 차이가 모델 크기뿐 아니라 pre-training 데이터, 학습 전략, 관측 토큰 수에서도 온다고 해석합니다.

Table 5: Average (Avg) Natural Language Generation (NLG) and Natural Language Understanding (NLU)
results across 29 benchmarks using 1-shot evaluation. NLG ben…

Table 5 : Average (Avg) Natural Language Generation (NLG) and Natural Language Understanding (NLU) results across 29 benchmarks using 1-shot evaluation. NLG benchmarks include eight tasks – TriviaQA, NQS, WebQS, SQuADv2, LAMBADA, DROP, QuAC and CoQA – while the remaining are NLU benchmarks. Results for GPT-3 and GLaM are from Du et al. (2021).

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

BIG-bench에서 인간 평균과의 비교

BIG-bench는 대규모 언어 모델을 위해 만든 150개 이상의 어려운 과제 모음입니다. 인간 성능은 작업자들이 과제 설명과 예시를 보고 답한 결과이며, 평균 인간 성능과 최고 인간 성능으로 나뉩니다. 58개 공통 과제에서 PaLM 540B 5-shot은 44개 과제에서 기존 SOTA를 넘었고, 전체 집계에서는 인간 평균 성능을 넘었습니다.

Figure 3: BIG-bench evaluation of PaLM. (left) Evaluation of PaLM, GPT-3, Gopher, and Chinchilla.
Previous models have only evaluated on a subset of tasks, so…

Figure 3 : BIG-bench evaluation of PaLM. (left) Evaluation of PaLM, GPT-3, Gopher, and Chinchilla. Previous models have only evaluated on a subset of tasks, so this graph shows aggregate results on the 58 tasks which all three models have evaluated on. (right) Evaluation of PaLM on a larger set of 150 BIG-bench tasks. For each task, the results of its preferred metric are used. The results are normalized by setting the maximum score to 100 and the random chance score to 0 for multiple-choice tasks, so that they are negative valued if the model performs worse than random chance. The normalized results are averaged over all tasks.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.
Figure 4: Distribution of score difference in “normalized preferred metric” between PaLM 540B 5-shot and
the prior SOTA across a common subset of 58 BIG-bench t…

Figure 4 : Distribution of score difference in “normalized preferred metric” between PaLM 540B 5-shot and the prior SOTA across a common subset of 58 BIG-bench text tasks. Positive numbers (blue) indicate that PaLM 540B achieves higher than the prior SOTA, while negative numbers (orange) indicate that the prior SOTA is higher than that of PaLM 540B. Prior SOTA includes GPT-3 175B 1-shot (Brown et al., 2020), Gopher 5-shot (Rae et al., 2021) and Chinchilla 5-shot (Hoffmann et al., 2022). Names of individual tasks are not shown here for visual clarity.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

모델 규모에 따른 성능은 대체로 로그 선형으로 나타났습니다. 다만 150개 과제 중 약 25%의 과제에서는 62B에서 540B로 갈 때 성능이 급격히 올랐습니다. 저자들은 이를 규모가 일정 수준을 넘을 때 나타나는 불연속 개선으로 해석합니다. 반면 인간 평균이 여전히 더 높은 과제도 전체의 35%였으므로, 이 결과를 모든 BIG-bench 과제에서 인간을 넘었다는 뜻으로 읽을 수는 없습니다.

Figure 5: 5-shot evaluations on six individual tasks with interesting scaling characteristics. For each task, the
“normalized preferred metric” is used, where…

Figure 5 : 5-shot evaluations on six individual tasks with interesting scaling characteristics. For each task, the “normalized preferred metric” is used, where 0% corresponds to random guessing for multiple choice tasks. (a) shows log-linear improvements with scale, (b) shows “discontinuous” improvements with scale, and (c) shows relatively flat improvements with scale.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Figure 6: Distribution of score difference in “normalized preferred metric” between PaLM 540B and the
average human performance across all 150 BIG-bench text ta…

Figure 6 : Distribution of score difference in “normalized preferred metric” between PaLM 540B and the average human performance across all 150 BIG-bench text tasks. Positive numbers (blue) indicate that PaLM 540B achieves higher than the average human performance, while negative numbers (orange) indicate that the average human performance is higher than that of PaLM 540B. Names of individual tasks are not shown here for visual clarity.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

chain-of-thought와 모델 규모의 결합

저자들은 산술 추론과 상식 추론 과제에서 8-shot chain-of-thought 프롬프트를 사용했습니다. 산술 과제에서는 생성된 계산을 외부 계산기로 보정하는 설정도 함께 평가했습니다. GSM8K에서 PaLM 540B는 chain-of-thought와 외부 계산기를 함께 사용할 때 58%의 정확도를 얻었습니다. 같은 표에서 chain-of-thought 없이 540B를 쓴 경우는 17%, chain-of-thought를 쓴 62B는 33%입니다.

Figure 8: Chain of thought prompting allows language models to better perform multi-step reasoning tasks
such as math word problems

Figure 8 : Chain of thought prompting allows language models to better perform multi-step reasoning tasks such as math word problems.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.
Table 10: 8-shot evaluation of PaLM on GSM8K with chain-of-thought in comparison to prior SOTA

Table 10 : 8-shot evaluation of PaLM on GSM8K with chain-of-thought in comparison to prior SOTA.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

이 58%는 Cobbe et al.(2021)의 미세조정, chain-of-thought, 계산기, 검증기를 결합한 최고 결과 55%보다 높습니다. 7개 추론 데이터셋 가운데 4개에서 SOTA를 기록했고, 나머지 3개에서는 SOTA에 근접했습니다. 계산기 사용이 어떤 데이터셋에서도 5%포인트 넘게 성능을 올리지 않았다는 점도 함께 보고됩니다.

Figure 10: Via chain of thought prompting, PaLM achieves strong performance on a range of arithmetic and
commonsense reasoning tasks. PaLM achieves new SOTA on…

Figure 10 : Via chain of thought prompting, PaLM achieves strong performance on a range of arithmetic and commonsense reasoning tasks. PaLM achieves new SOTA on GSM8K, MAWPS, SVAMP, and StrategyQA. Comparisons with prior SOTA are the following. GSM8K: Cobbe et al. (2021), MAWPS and ASDiv: Lan et al. (2021), SVAMP: Pi et al. (2022), AQuA: Piekos et al. (2021), CommonsenseQA: Talmor et al. (2019) leadersboard, StrategyQA: Geva et al. (2021).

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 22쪽에서 그림 영역을 추출했습니다.

PaLM-Coder의 코드 생성과 수정

PaLM-Coder는 PaLM 모델을 Python 중심의 코드 데이터로 두 단계 추가 미세조정한 변형입니다. 전체 미세조정 데이터는 7.75B 토큰이며, 이 중 5.9B가 Python 코드입니다. HumanEval에서 PaLM-Coder 540B는 pass@100 88.4%, MBPP에서는 pass@80 80.8%를 기록했습니다. 저자들은 샘플 중 과제를 푼 비율을 직접 보고하며, Chen et al.(2021)의 추정식은 쓰지 않았다고 밝힙니다.

Figure 11: Examples from the PaLM-Coder 540B model. (top left) GSM8K-Python question converted from
the OpenAI GSM8K math dataset. (bottom left) TransCoder exa…

Figure 11 : Examples from the PaLM-Coder 540B model. (top left) GSM8K-Python question converted from the OpenAI GSM8K math dataset. (bottom left) TransCoder example translating a simple function from C++ to Python. (right) Converted HumanEval example.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.
Table 11: Amount of code tokens processed during training by the language models of code that we consider.
For the Davinci Codex model, the training dataset mi…

Table 11 : Amount of code tokens processed during training by the language models of code that we consider. For the Davinci Codex model, the training dataset mix is unknown. For PaLM-Coder, the table shows the sum of pre-training and fine tuning data. Dashes indicate that no data of that type is included. Data for Codex 12B reported from Chen et al. (2021). Codex, PaLM, and PaLM-Coder may include a small amount of code web docs; see footnote.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.
Table 12: Results obtained by the PaLM 540B and PaLM-Coder 540B models across code synthesis and
software engineering tasks. For the few-shot results, the numb…

Table 12 : Results obtained by the PaLM 540B and PaLM-Coder 540B models across code synthesis and software engineering tasks. For the few-shot results, the number of shots for each task are mentioned in parenthesis. Superscripts denote results that are quoted from past work: a Chen et al. (2021); b Austin et al. (2021); c Lachaux et al. (2020); dYasunaga & Liang (2021). ∗Davinci Codex results are our own calculations obtained using the OpenAI Codex API and recommended settings for Codex as outlined in Chen et al. (2021).

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

규모에 따른 변화도 확인됩니다. 미세조정하지 않은 540B 모델과 비교하면 HumanEval pass@100은 12%포인트, MBPP pass@80은 5%포인트 높아졌습니다. DeepFix 코드 수정에서는 컴파일 성공률이 82.1%로, 이전 연구의 71.7%보다 높았습니다. 다만 Davinci Codex의 학습 데이터 구성은 공개되지 않아 비교는 과제 난이도를 가늠하는 참고로 읽어야 합니다.

Figure 12: Scaling results for HumanEval, MBPP, GSM8K-Python, TransCoder, and DeepFix datasets on
PaLM and PaLM-Coder models scales 8B, 62B and 540B. For DeepF…

Figure 12 : Scaling results for HumanEval, MBPP, GSM8K-Python, TransCoder, and DeepFix datasets on PaLM and PaLM-Coder models scales 8B, 62B and 540B. For DeepFix we report scaling of the compile rate.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.
Figure 13: An example DeepFix problem with the original broken code on the left and the PaLM-Coder 540B
model’s prediction on the right. The predicted code con…

Figure 13 : An example DeepFix problem with the original broken code on the left and the PaLM-Coder 540B model’s prediction on the right. The predicted code contains fixes for all of the compilation errors (undeclared variables), as well as other stylistic improvements (declaring variables together) and logic improvements (reading numbers into array a in a loop and not using index i outside the loop).

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.
Figure 14: Another example DeepFix problem. The predicted code fixes the compilation error (missing braces
for the if block, causing a scope error for variable…

Figure 14 : Another example DeepFix problem. The predicted code fixes the compilation error (missing braces for the if block, causing a scope error for variable t) and makes other improvements (declaring variables together and removing the line t = 0; which has no effect).

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 26쪽에서 그림 영역을 추출했습니다.

편향, 독성, 기억화의 측정 범위

Winogender에서 PaLM 540B는 1-shot multiple choice 설정에서 79.4%의 정확도를 보였고, 생성식 채점에서는 69.7%였습니다. 4-shot 생성식 설정에서는 84.7%였습니다. 다만 multiple choice 채점은 정답의 상대 확률만 비교하므로, 절대 확률이 낮아도 정답으로 처리될 수 있어 정확도를 과대평가할 수 있다고 저자들은 설명합니다. 인간 기준 95.9%에는 여전히 못 미칩니다.

Figure 20: Winogender overall accuracy on PaLM 62B and 540B, using different scoring methods. PaLM
540B achieves a new state-of-the-art performance in 1-shot an…

Figure 20 : Winogender overall accuracy on PaLM 62B and 540B, using different scoring methods. PaLM 540B achieves a new state-of-the-art performance in 1-shot and few-shot settings, even when using generative scoring methods.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 41쪽에서 그림 영역을 추출했습니다.

독성 분석에서는 연속 텍스트의 독성이 프롬프트의 독성과 높은 상관을 보였습니다. 또 Islam과 terrorist 등이 함께 나타나는 연관도 관찰되었습니다. 기억화 분석에서 학습 예제의 정확한 50토큰 이어쓰기 비율은 540B에서 2.4%, 8B에서 1.6%였습니다. 이 분석은 주로 정확히 반복된 텍스트를 다루며, 공정성 분석은 대부분 영어 데이터와 출력에 한정되어 다국어 편향은 충분히 측정되지 않았다고 저자들은 명시합니다.

Figure 18: (a) Proportions of training examples memorized for the three model sizes. Held-out data is from
the same distribution as training, but was not exact…

Figure 18 : (a) Proportions of training examples memorized for the three model sizes. Held-out data is from the same distribution as training, but was not exactly seen in the training. (b) Log-log plot of memorization rate based on how many times the example was seen in the training. (c) Proportion examples memorized, broken down by corpus.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 35쪽에서 그림 영역을 추출했습니다.
Figure 22: Distribution of toxicity probabilities of the continuation in the first sentence for various religious
groups for PaLM 540B

Figure 22 : Distribution of toxicity probabilities of the continuation in the first sentence for various religious groups for PaLM 540B.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 43쪽에서 그림 영역을 추출했습니다.
Figure 23: Toxicity probability of the continuation (TPC) as a function of Toxicity probability of the prompt
(TPP). The human baseline represents the toxicity…

Figure 23 : Toxicity probability of the continuation (TPC) as a function of Toxicity probability of the prompt (TPP). The human baseline represents the toxicity probability of the original sentence continuation. Model TPC is more consistent with the TPP than the human TPC, suggesting that the model is strongly influenced by the prompt-style and is likely to respond like-to-like. Note that the PaLM 62B and 540B models have very similar toxicity profiles.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 44쪽에서 그림 영역을 추출했습니다.
Table 20: Probability of generating a comment that could be perceived as toxic (i.e. toxicity score > 0.5)
at least once in 25 continuations for different model…

Table 20 : Probability of generating a comment that could be perceived as toxic (i.e. toxicity score > 0.5) at least once in 25 continuations for different model sizes. We compute the toxicity probability for “Toxic” and “Non-Toxic” prompts and report the results as such. We report the metric both in the first full-sentence completion and in the full 128 decoding steps similar to Rae et al. (2021). Note that the toxicity score assigned by the Perspective API tends to increase with the number of tokens generated, given that the results are not normalized to the text length.

원문 · CC BY 4.0 · Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel · PaLM: Scaling Language Modeling with Pathways · 원문 그림 인용 · 원본 PDF 45쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Ben Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier Garcia, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Diaz, Orhan Firat, Michele Catasta, Jason Wei, Kathy Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, Noah Fiedel
학회·저널
arXiv · 프리프린트
최초 공개일
2022년 4월 5일
등록일
2026년 10월 20일
수정일
2022년 10월 5일
버전
v5
arXiv
2204.02311
분류
cs.CL
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

Large language models have been shown to achieve remarkable performance across a variety of natural language tasks using few-shot learning, which drastically reduces the number of task-specific training examples needed to adapt the model to a particular application. To further our understanding of the impact of scale on few-shot learning, we trained a 540-billion parameter, densely activated, Transformer language model, which we call Pathways Language Model PaLM. We trained PaLM on 6144 TPU v4 chips using Pathways, a new ML system which enables highly efficient training across multiple TPU Pods. We demonstrate continued benefits of scaling by achieving state-of-the-art few-shot learning results on hundreds of language understanding and generation benchmarks. On a number of these tasks, PaLM 540B achieves breakthrough performance, outperforming the finetuned state-of-the-art on a suite of multi-step reasoning tasks, and outperforming average human performance on the recently released BIG-bench benchmark. A significant number of BIG-bench tasks showed discontinuous improvements from model scale, meaning that performance steeply increased as we scaled to our largest model. PaLM also has strong capabilities in multilingual tasks and source code generation, which we demonstrate on a wide array of benchmarks. We additionally provide a comprehensive analysis on bias and toxicity, and study the extent of training data memorization with respect to model scale. Finally, we discuss the ethical considerations related to large language models and discuss potential mitigation strategies.

원문 인용

Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam Shazeer, Vinodkumar Prabhakaran, Emily Reif et al. (2022). PaLM: Scaling Language Modeling with Pathways. arXiv:2204.02311v5. https://arxiv.org/abs/2204.02311v5

BibTeX
@misc{chowdhery2022palm,
  title = {{PaLM: Scaling Language Modeling with Pathways}},
  author = {Aakanksha Chowdhery and Sharan Narang and Jacob Devlin and Maarten Bosma and Gaurav Mishra and Adam Roberts and Paul Barham and Hyung Won Chung and Charles Sutton and Sebastian Gehrmann and Parker Schuh and Kensen Shi and Sasha Tsvyashchenko and Joshua Maynez and Abhishek Rao and Parker Barnes and Yi Tay and Noam Shazeer and Vinodkumar Prabhakaran and Emily Reif and Nan Du and Ben Hutchinson and Reiner Pope and James Bradbury and Jacob Austin and Michael Isard and Guy Gur-Ari and Pengcheng Yin and Toju Duke and Anselm Levskaya and Sanjay Ghemawat and Sunipa Dev and Henryk Michalewski and Xavier Garcia and Vedant Misra and Kevin Robinson and Liam Fedus and Denny Zhou and Daphne Ippolito and David Luan and Hyeontaek Lim and Barret Zoph and Alexander Spiridonov and Ryan Sepassi and David Dohan and Shivani Agrawal and Mark Omernick and Andrew M. Dai and Thanumalayan Sankaranarayana Pillai and Marie Pellat and Aitor Lewkowycz and Erica Moreira and Rewon Child and Oleksandr Polozov and Katherine Lee and Zongwei Zhou and Xuezhi Wang and Brennan Saeta and Mark Diaz and Orhan Firat and Michele Catasta and Jason Wei and Kathy Meier-Hellstern and Douglas Eck and Jeff Dean and Slav Petrov and Noah Fiedel},
  year = {2022},
  eprint = {2204.02311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.02311v5}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입