Paper: revised introduction
Browse filesFiles changed (2)
123version https://git-lfs.github.com/spec/v1oid sha256:c323de1e99e743f013bc561dd48bc9bfa140e87fb9f3e13fc65f2d86e94142c7size 143943123version https://git-lfs.github.com/spec/v1oid sha256:24ca6dc11e0436bc530a64e5680eea63daaa96190bcdcfa751803530ace80974size 143616
47 unmodified lines48495051525354555647 unmodified linesLanguage model pretraining is usually done on large web corpora. Even small models are trained on this vast distribution, and much of it is long-tail content: encyclopedic facts, specific blogs or articles or stories, highly domain-specific knowledge, and so on. Language models store a great deal of such knowledge in their parameters~\cite{petroni2019lama}, and the amount they can store grows roughly linearly with their size~\cite{allenzhu2024capacity}. Small models can memorize much of this long-tail content and still struggle with instruction following and in-context learning and still remain far from saturating commonsense benchmarks such as CoQA~\cite{reddy2019coqa}, PIQA~\cite{bisk2020piqa} and HellaSwag~\cite{zellers2019hellaswag}, indicating a failure to fully learn basic world knowledge. In general, in a language model, lots of parameters are spent on specific, rather than generalizing, knowledge.I take the view that the pretraining distribution largely encodes world knowledge that could, in principle, be written down as an extremely large probabilistic knowledge graph whose entities are named by words. Trimming the graph then amounts to removing entities. This paper tests the simplest version of that idea: keep only the forms of a fixed set of base words (lemmas) and replace every other word with a placeholder, so that the model still sees well-formed text, but about a much smaller world.I test this at a small scale. I train a small GPT on a constrained version of TinyStories~\cite{eldan2023tinystories} and compare it with the public TinyStories-33M model, which was trained on the full TinyStories distribution. The two models differ in data, tokenizer and architecture (Section~\ref{sec:model}), so this is a comparison of finished small models, not a controlled ablation. They are compared with an LLM-as-judge evaluation~\cite{zheng2023judging} of 180 story continuations from in-lexicon openings, scored for grammar, consistency, plot and endings.The contributions are:\begin{itemize}47 unmodified lines48495051525354555647 unmodified linesLanguage model pretraining is usually done on large web corpora. Even small models are trained on this vast distribution, and much of it is long-tail content: encyclopedic facts, specific blogs or articles or stories, highly domain-specific knowledge, and so on. Language models store a great deal of such knowledge in their parameters~\cite{petroni2019lama}, and the amount they can store grows roughly linearly with their size~\cite{allenzhu2024capacity}. Small models can memorize much of this long-tail content and still struggle with instruction following and in-context learning and still remain far from saturating commonsense benchmarks such as CoQA~\cite{reddy2019coqa}, PIQA~\cite{bisk2020piqa} and HellaSwag~\cite{zellers2019hellaswag}, indicating a failure to fully learn basic world knowledge. In general, in a language model, lots of parameters are spent on specific, rather than generalizing, knowledge.I take the view that the pretraining distribution largely encodes world knowledge that could, in principle, be written down as an extremely large probabilistic knowledge graph. Trimming the graph then amounts to removing entities in the graph. This can be approximated by keeping only the forms of a fixed set of base words (lemmas) and replacing other words with a placeholder, so that the model still sees well-formed text, but about a much smaller world.I test this at a small scale. I train a small GPT on a constrained version of TinyStories~\cite{eldan2023tinystories} and compare it with the public TinyStories-33M model, which was trained on the full TinyStories distribution. They are compared with an LLM-as-judge evaluation~\cite{zheng2023judging} of 180 story continuations from in-lexicon openings, scored for grammar, consistency, plot and endings.The contributions are:\begin{itemize}
paper/constraining_language_modeling_pretraining_data.pdf+2-2
paper/main.tex+2-2