Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

PaLM 2 Technical Report

PaLM 2 grows training data and model size together for better multilingual reasoning

  • Problem Earlier large models grew parameters about 3× faster than training data, leaving data lagging behind parameters.
  • Method PaLM 2 keeps the Transformer but mixes several pre-training objectives and multilingual data instead of mostly English text.
  • Results PaLM 2-L averaged an F1 of 40.3 on multilingual TyDi QA without context, compared to 31.5 for PaLM.

Why scaling advice conflicted

Recent large language models mostly grew by adding parameters, and the advice on how fast to grow them has been contested. Kaplan et al. (2020) found that model size should grow faster than data, while Hoffmann et al. (2022) concluded that the two should grow in equal proportions. Earlier large models scaled the model about 3× faster than the dataset, which left training data lagging behind parameters.

The choice matters because a fixed compute budget has to be split between model size and training tokens. The authors therefore ran their own scaling study at larger budgets, rather than relying on the smaller-scale results.

Fitting scaling laws across four budgets

The study follows Hoffmann et al. (2022): several models of different sizes are trained at each of four budgets, from 1 × 1019 to 1 × 1022 FLOPs. For each budget, the heuristic FLOPs ≈ 6ND sets how many tokens each model sees, with N as model size and D as data. The runs use cosine learning rate decay, so each learning rate fully decays at its final training token.

For each budget, the final validation losses are smoothed with a quadratic fit, and the minimum of that fit gives the projected optimal model size N. Because the budget already fixes the product of N and D, the optimal D follows from the same heuristic.

They describe the match with Hoffmann et al. (2022) as close, even though their study ran at a smaller scale and used a different training mixture.

Data mix, objectives and control tokens

PaLM 2 keeps the Transformer as its base architecture, so the changes sit in the data and the training objective. Earlier pre-training sets were dominated by English, with about ∼78% of non-code text in English in the Chowdhery et al. (2022) mixture. PaLM 2 instead uses a mix that spans hundreds of languages and domains, including code, mathematics and parallel multilingual documents.

Past models mostly trained with one causal or masked language modeling objective. PaLM 2 instead mixes several pre-training objectives, a choice the authors base on the strong results of UL2. The mix is meant to teach the model different aspects of language, not just next-token prediction.

At inference time, conditioning on these tokens is the mechanism the authors use to steer toxicity. Canary sequences are injected into the same data so that memorization can be measured across languages.

English, multilingual and exam results

The even smallest variant is competitive with the much larger PaLM 540B, and PaLM 2-M averages above PaLM at 72.0. So the gain comes from the new training recipe at each size, and model scale alone doesn't explain it.

On the multilingual TyDi QA set in the no-context setting, PaLM 2-L averaged an F1 of 40.3, compared to 31.5 for PaLM. That setting asks the model to answer solely from knowledge stored in its parameters, with no passage given. The gap is therefore largest where the model must recall rather than read.

On the C2-level language proficiency exams, PaLM 2 outperforms PaLM on every exam and passes in every evaluated language. The writing parts were rated by native-speaker raters and the scores are estimates, not official grades.

Translation and summarization results

On the WMT21 Chinese-to-English set, PaLM 2 scored an MQM of 3.0, compared to 3.7 for PaLM and 3.1 for Google Translate. MQM counts weighted errors per segment, so lower values are better. The authors prompted both PaLM models with five-shot exemplars and sent the source text straight to Google Translate.

The authors tie this translation result to a minor share of translation pairs in the mixture, which still let the model match production translation services. That claim rests on one MQM comparison per language pair, so it doesn't cover all language pairs.

In the one-shot NLG evaluation, PaLM 2-L improved over PaLM by 59.4% on XSum and by 100.8% on WikiLingua. These scores use ROUGE-2 and SentencePiece-ROUGE-2, which measure overlap with reference text rather than summary quality. On the filtered XSum subset the score moved from 23.2 to 23.8, so the target overlap doesn't appear to inflate it.

Coding results for the code-tuned variant

PaLM 2-S* is PaLM 2-S trained with additional code-related tokens, and it is compared with PaLM-Coder-540B. On HumanEval pass@1, PaLM 2-S* scored 37.6, compared to 35.9 for PaLM-Coder-540B. The gap is wider on ARCADE, where PaLM 2-S* scored 16.2 against a PaLM-Coder-540B score of 7.9.

ARCADE uses newly curated notebooks, which the authors chose to avoid evaluation data leakage. The authors stress that the coding gains come from a model that is much smaller and cheaper to serve.

On BabelCode-HumanEval, PaLM 2-S* beats PaLM on all but two languages. It improves on PaLM-Coder-540B by 6.3× on Haskell and by 4.7× on Julia.

Toxicity control and memorization

In the language-modeling test, prompts with toxicity below 0.5 were continued with greedy decoding, and the probability of a toxic continuation was measured. Without a control token, PaLM 2 gives 0.075 from a non-toxic prompt, and PaLM gives 0.076. Low toxicity control lowers that probability to 0.033, while high toxicity control raises it to 0.203.

But dialog-prompting alone reduced toxic generation more than control tokens did. Control tokens added only small gains on top of dialog prompting, and only on the standard dataset.

Memorization was measured with canaries, and PaLM 2 shows lower average verbatim memorization than PaLM. Canary tests suggest tail languages need fewer repetitions to memorize, but real training data showed no strong correlation with language size.

Limitations

The authors state that the control-token method applies only to a small fraction of pre-training tokens. Coverage of the training data is therefore limited, and the toxicity gains don't show what a larger tagged share would do.

Memorization numbers are estimates and don't characterize what a determined adversary could recover. User-facing products can differ from the reported numbers because they add pre- and post-processing steps.

Paper info

Authors
Rohan Anil, Andrew M. Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, Eric Chu, Jonathan H. Clark, Laurent El Shafey, Yanping Huang, Kathy Meier-Hellstern, Gaurav Mishra, Erica Moreira, Mark Omernick, Kevin Robinson, Sebastian Ruder, Yi Tay, Kefan Xiao, Yuanzhong Xu, Yujing Zhang, Gustavo Hernandez Abrego, Junwhan Ahn, Jacob Austin, Paul Barham, Jan Botha, James Bradbury, Siddhartha Brahma, Kevin Brooks, Michele Catasta, Yong Cheng, Colin Cherry, Christopher A. Choquette-Choo, Aakanksha Chowdhery, Clément Crepy, Shachi Dave, Mostafa Dehghani, Sunipa Dev, Jacob Devlin, Mark Díaz, Nan Du, Ethan Dyer, Vlad Feinberg, Fangxiaoyu Feng, Vlad Fienber, Markus Freitag, Xavier Garcia, Sebastian Gehrmann, Lucas Gonzalez, Guy Gur-Ari, Steven Hand, Hadi Hashemi, Le Hou, Joshua Howland, Andrea Hu, Jeffrey Hui, Jeremy Hurwitz, Michael Isard, Abe Ittycheriah, Matthew Jagielski, Wenhao Jia, Kathleen Kenealy, Maxim Krikun, Sneha Kudugunta, Chang Lan, Katherine Lee, Benjamin Lee, Eric Li, Music Li, Wei Li, YaGuang Li, Jian Li, Hyeontaek Lim, Hanzhao Lin, Zhongtao Liu, Frederick Liu, Marcello Maggioni, Aroma Mahendru, Joshua Maynez, Vedant Misra, Maysam Moussalem, Zachary Nado, John Nham, Eric Ni, Andrew Nystrom, Alicia Parrish, Marie Pellat, Martin Polacek, Alex Polozov, Reiner Pope, Siyuan Qiao, Emily Reif, Bryan Richter, Parker Riley, Alex Castro Ros, Aurko Roy, Brennan Saeta, Rajkumar Samuel, Renee Shelby, Ambrose Slone, Daniel Smilkov, David R. So, Daniel Sohn, Simon Tokumine, Dasha Valter, Vijay Vasudevan, Kiran Vodrahalli, Xuezhi Wang, Pidong Wang, Zirui Wang, Tao Wang, John Wieting, Yuhuai Wu, Kelvin Xu, Yunhan Xu, Linting Xue, Pengcheng Yin, Jiahui Yu, Qiao Zhang, Steven Zheng, Ce Zheng, Weikang Zhou, Denny Zhou, Slav Petrov, Yonghui Wu
Venue
arXiv · Preprint
First published
2023-5-17
Added
2026-11-12
Updated
2023-9-13
Version
v3
arXiv
2305.10403
Category
cs.CL · cs.AI
Original paper terms
CC BY-SA 4.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Rohan Anil, Andrew M. Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, Eric Chu, Jonathan H. Clark, Laurent El Shafey, Yanping Huang, Kathy Meier-Hellstern, Gaurav Mishra, Erica Moreira, Mark Omernick, Kevin Robinson, Sebastian Ruder et al. (2023). PaLM 2 Technical Report. arXiv:2305.10403v3. https://arxiv.org/abs/2305.10403v3

BibTeX
@misc{anil2023palm,
  title = {{PaLM 2 Technical Report}},
  author = {Rohan Anil and Andrew M. Dai and Orhan Firat and Melvin Johnson and Dmitry Lepikhin and Alexandre Passos and Siamak Shakeri and Emanuel Taropa and Paige Bailey and Zhifeng Chen and Eric Chu and Jonathan H. Clark and Laurent El Shafey and Yanping Huang and Kathy Meier-Hellstern and Gaurav Mishra and Erica Moreira and Mark Omernick and Kevin Robinson and Sebastian Ruder and Yi Tay and Kefan Xiao and Yuanzhong Xu and Yujing Zhang and Gustavo Hernandez Abrego and Junwhan Ahn and Jacob Austin and Paul Barham and Jan Botha and James Bradbury and Siddhartha Brahma and Kevin Brooks and Michele Catasta and Yong Cheng and Colin Cherry and Christopher A. Choquette-Choo and Aakanksha Chowdhery and Clément Crepy and Shachi Dave and Mostafa Dehghani and Sunipa Dev and Jacob Devlin and Mark Díaz and Nan Du and Ethan Dyer and Vlad Feinberg and Fangxiaoyu Feng and Vlad Fienber and Markus Freitag and Xavier Garcia and Sebastian Gehrmann and Lucas Gonzalez and Guy Gur-Ari and Steven Hand and Hadi Hashemi and Le Hou and Joshua Howland and Andrea Hu and Jeffrey Hui and Jeremy Hurwitz and Michael Isard and Abe Ittycheriah and Matthew Jagielski and Wenhao Jia and Kathleen Kenealy and Maxim Krikun and Sneha Kudugunta and Chang Lan and Katherine Lee and Benjamin Lee and Eric Li and Music Li and Wei Li and YaGuang Li and Jian Li and Hyeontaek Lim and Hanzhao Lin and Zhongtao Liu and Frederick Liu and Marcello Maggioni and Aroma Mahendru and Joshua Maynez and Vedant Misra and Maysam Moussalem and Zachary Nado and John Nham and Eric Ni and Andrew Nystrom and Alicia Parrish and Marie Pellat and Martin Polacek and Alex Polozov and Reiner Pope and Siyuan Qiao and Emily Reif and Bryan Richter and Parker Riley and Alex Castro Ros and Aurko Roy and Brennan Saeta and Rajkumar Samuel and Renee Shelby and Ambrose Slone and Daniel Smilkov and David R. So and Daniel Sohn and Simon Tokumine and Dasha Valter and Vijay Vasudevan and Kiran Vodrahalli and Xuezhi Wang and Pidong Wang and Zirui Wang and Tao Wang and John Wieting and Yuhuai Wu and Kelvin Xu and Yunhan Xu and Linting Xue and Pengcheng Yin and Jiahui Yu and Qiao Zhang and Steven Zheng and Ce Zheng and Weikang Zhou and Denny Zhou and Slav Petrov and Yonghui Wu},
  year = {2023},
  eprint = {2305.10403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.10403v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up