Is More Data Worth the Cost? Dataset Scaling Laws in a Tiny Attention-Only Decoder
Organizations: Institute of Computer Science, University of St. Gallen, St. Gallen, Switzerland · Institute of Computer Science in Vorarlberg, University of St. Gallen, Dornbirn, Austria
Abstract
Training Transformer language models is expensive, as performance typically improves with increasing dataset size and computational budget. Although scaling laws describe this trend at large scale, their implications in controlled, smaller-scale settings remain less explored. In this work, we isolate dataset-size effects using a strongly reduced attention-only decoder architecture. By training on progressively larger power-of-two subsets, we observe smooth performance improvements accompanied by clear diminishing returns, consistent with scaling-law behavior. Using only about 30% of the training data is sufficient to reach approximately 90% of the full-data validation token-level accuracy. These results provide actionable insights into dataset scaling in a controlled, component-isolated setting and offer practical guidance for balancing dataset size and computational cost in compute- and data-restricted environments, such as small research labs and exploratory model development.
Figures & tables
| Subset Level | % Full Dataset | Size (seqs) | Tokens (in M) | Tokens/Param | Train Time (h:mm) | |
|---|---|---|---|---|---|---|
| 0.1 | 128 | 0.13 | 0.056 | 0:08 | ||
| 0.2 | 256 | 0.26 | 0.111 | 0:15 | ||
| 0.3 | 512 | 0.52 | 0.222 | 0:31 | ||
| 0.7 | 1,024 | 1.05 | 0.444 | 1:01 | ||
| 1.4 | 2,048 | 2.10 | 0.888 | 2:02 | ||
| 2.7 | 4,096 | 4.19 | 1.776 | 3:44 | ||
| Fraction of full-data accuracy | Subset | Data (%) | Train Time (h) | Cost (%) |
|---|---|---|---|---|
| 80% | 7 | 8 | 7 | |
| 90% | 29 | 32 | 26 | |
| 95% | 56 | 60 | 49 | |
| 100% | 100 | 123 | 100 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Statistic | Training Dataset | Validation Dataset |
|---|---|---|
| Number of Sequences | 131,072 | 20,000 |
| Sequence Length | 1024 tokens | 1024 tokens |
| Total Token Count | 76,800,000 | 10,240,000 |
| Padding Tokens | 21,504,000 (28%) | 2,867,200 (28%) |
| Subset Level | Val. Loss | Val. Perplexity | Val. Accuracy (%) |
|---|---|---|---|
| .07) | .12) | ||
| .10) | .41) | ||
| .05) | .21) | ||
| .02) | .50) | ||
| .08) | .20) | ||
| .04) | .27) |
Language Model Scaling Laws
Language model scaling laws describe how model size, training data, compute, and inference effort jointly shape loss, capabilities, and efficiency.
See all 141 papers