Paper: trim model and training section
Browse filesFiles changed (2)
123version https://git-lfs.github.com/spec/v1oid sha256:2f4061bea4c21c44a660cb473b3937c8a7af7f7e84efb0d188627c0008cdad58size 143569123version https://git-lfs.github.com/spec/v1oid sha256:2e459e8762a3b351562b5ede1ae5eabbea46fff23cb1428d034a7d7a56008673size 142918
117 unmodified lines11811912012112212312415 unmodified lines140141142143144145146147117 unmodified lines\section{Model and training}\label{sec:model}I call the model trained on the constrained data \ours. Table~\ref{tab:models} compares it with the reference. Most of TinyStories-33M's total is its 50K-token embedding (38.6M parameters) and position table; the ``33M'' in its name matches neither count. The 4.5$\times$ gap in non-embedding parameters is the fairer comparison.\begin{table}[t]\centering\small15 unmodified linesOur model is a pre-RMSNorm~\cite{zhang2019rmsnorm} GPT with rotary position embeddings~\cite{su2021roformer}, a GELU MLP of width $4\,d_\text{model}$, tied embeddings, no biases and a 512-token context; the reference uses the GPT-Neo architecture~\cite{black2021gptneo}. Training used AdamW with learning rate $2\times10^{-3}$ (2\% warmup, cosine decay to 10\%), weight decay 0.1, dropout 0.1, batches of $64\times512$ tokens, bf16 and \texttt{torch.compile}, seed 0, on one H100 NVL GPU for 21.4 minutes (3.44B tokens seen). The best validation loss, 0.9214 at step 103,500 of 105,040, gives the checkpoint evaluated here.The configuration came from a hyperparameter sweep. Without dropout every model overfit the 43M-token set after about 8 epochs; with dropout 0.1, validation loss kept falling through 80 epochs (6.3M model: 0.987 at 10 epochs without dropout, 0.932 at 40, 0.921 at 80). At equal size, models with 4, 8, 12 and 16 layers landed within about 0.015 of each other in validation loss. A 9.8M model trained the same way reached 0.902 and scored almost identically with the judge.\section{Evaluation}\label{sec:judge}\paragraph{Setup.} Twenty story openings were written using only in-lexicon words (Table~\ref{tab:openings}), so both models see identical text and our model sees no placeholders in the prompt. Each model continued each opening 9 times (180 pairs) at temperature 0.7 and top-$p$ 1.0, with the same seeds, and outputs were trimmed to 250 words. Each packet of 10 pairs went to a fresh Claude Opus 5.5 instance with no other context, with A/B order randomized and balanced. The judge counted grammar and consistency errors, rated grammar, consistency and plot from 1 to 10, marked whether the story reached a sensible ending, and chose a preferred continuation. The rubric says that placeholders stand for out-of-vocabulary words and are not errors in themselves, but that reusing one placeholder for two different things is a consistency error. Differences are paired per item, with 5,000-sample bootstrap 95\% confidence intervals.117 unmodified lines11811912012112212312415 unmodified lines140141142143144145117 unmodified lines\section{Model and training}\label{sec:model}I call the model trained on the constrained data \ours. Table~\ref{tab:models} compares it with the reference.\begin{table}[t]\centering\small15 unmodified linesOur model is a pre-RMSNorm~\cite{zhang2019rmsnorm} GPT with rotary position embeddings~\cite{su2021roformer}, a GELU MLP of width $4\,d_\text{model}$, tied embeddings, no biases and a 512-token context; the reference uses the GPT-Neo architecture~\cite{black2021gptneo}. Training used AdamW with learning rate $2\times10^{-3}$ (2\% warmup, cosine decay to 10\%), weight decay 0.1, dropout 0.1, batches of $64\times512$ tokens, bf16 and \texttt{torch.compile}, seed 0, on one H100 NVL GPU for 21.4 minutes (3.44B tokens seen). The best validation loss, 0.9214 at step 103,500 of 105,040, gives the checkpoint evaluated here.\section{Evaluation}\label{sec:judge}\paragraph{Setup.} Twenty story openings were written using only in-lexicon words (Table~\ref{tab:openings}), so both models see identical text and our model sees no placeholders in the prompt. Each model continued each opening 9 times (180 pairs) at temperature 0.7 and top-$p$ 1.0, with the same seeds, and outputs were trimmed to 250 words. Each packet of 10 pairs went to a fresh Claude Opus 5.5 instance with no other context, with A/B order randomized and balanced. The judge counted grammar and consistency errors, rated grammar, consistency and plot from 1 to 10, marked whether the story reached a sensible ending, and chose a preferred continuation. The rubric says that placeholders stand for out-of-vocabulary words and are not errors in themselves, but that reusing one placeholder for two different things is a consistency error. Differences are paired per item, with 5,000-sample bootstrap 95\% confidence intervals.
paper/constraining_language_modeling_pretraining_data.pdf+2-2
paper/main.tex+1-3