paper-with-me

Papers

Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies

2024-07-18 · Chaofan Tao, Qian Liu, Longxu Dou, Niklas Muennighoff, Zhongwei Wan, Ping Luo, Min Lin, Ngai Wong

Research on scaling large language models (LLMs) has primarily focused on model parameters and training data size, overlooking the role of vocabulary size. We investigate how vocabulary size impacts LLM scaling laws by training models ranging from 33M to 3B parameters on up to 500B characters with various vocabulary configurations. We propose three complementary approaches for predicting the compute-optimal vocabulary size: IsoFLOPs analysis, derivative estimation, and parametric fit of the loss function. Our approaches converge on the conclusion that the optimal vocabulary size depends on the compute budget, with larger models requiring larger vocabularies. Most LLMs, however, use insufficient vocabulary sizes. For example, we predict that the optimal vocabulary size of Llama2-70B should have been at least 216K, 7 times larger than its vocabulary of 32K. We validate our predictions empirically by training models with 3B parameters across different FLOPs budgets. Adopting our predicted optimal vocabulary size consistently improves downstream performance over commonly used vocabulary sizes. By increasing the vocabulary size from the conventional 32K to 43K, we improve performance on ARC-Challenge from 29.1 to 32.0 with the same 2.3e21 FLOPs. Our work highlights the importance of jointly considering tokenization and model scaling for efficient pre-training. The code and demo are available at https://github.com/sail-sg/scaling-with-vocab and https://hf.co/spaces/sail/scaling-with-vocab-demo.

📄 PDF Abstract BibTeX arXiv:2407.13623

Code (1)

sail-sg/scaling-with-vocab 공식 구현 pytorch

Tasks

ARC

Similar Papers 제목 키워드 기반

Over-Tokenized Transformer: Vocabulary is Generally Worth Scaling

2025-01-28 · Hongzhi Huang, Defa Zhu, Banggu Wu, Yutao Zeng 외

Tokenization is a fundamental component of large language models (LLMs), yet its influence on model scaling and performance is not fully explored. In this paper, we introduce Over-Tokenized Transformers, a novel framewor…

Language ModelingLanguage Modelling

Is the Number of Trainable Parameters All That Actually Matters?

2021-09-24 · NeurIPS Workshop ICBINB 2021 12 · Amélie Chatelain, Amine Djeghri, Daniel Hesslow, Julien Launay 외

Recent work has identified simple empirical scaling laws for language models, linking compute budget, dataset size, model size, and autoregressive modeling loss. The validity of these simple power laws across orders of m…

All

Scaling Laws Are Unreliable for Downstream Tasks: A Reality Check

2025-07-01 · Nicholas Lourie, Michael Y. Hu, Kyunghyun Cho

Downstream scaling laws aim to predict task performance at larger scales from pretraining losses at smaller scales. Whether this prediction should be possible is unclear: some works demonstrate that task performance foll…

How do Scaling Laws Apply to Knowledge Graph Engineering Tasks? The Impact of Model Size on Large Language Model Performance

2025-05-22 · Desiree Heim, Lars-Peter Meyer, Markus Schröder, Johannes Frey 외

When using Large Language Models (LLMs) to support Knowledge Graph Engineering (KGE), one of the first indications when searching for an appropriate model is its size. According to the scaling laws, larger models typical…

Language ModelingLanguage ModellingLarge Language Model

Scaling Laws Do Not Scale

2023-07-05 · Fernando Diaz, Michael Madaio

Recent work has advocated for training AI models on ever-larger datasets, arguing that as the size of a dataset increases, the performance of a model trained on that dataset will correspondingly increase (referred to as …