ToddlerBERTa: Exploiting BabyBERTa for Grammar Learning and Language Understanding
Paper · 2023 · Veysel Çağatan, Ömer
Summary
How much English grammar can a system learn when its training text is limited to approximately the amount of language a child might encounter? ToddlerBERTa takes up that question through the BabyLM Challenge. The authors work with roughly 10 million words, drawn from sources that include transcripts, children’s books, Wikipedia and child-directed speech. Their starting point is BabyBERTa, a compact system trained to recover hidden parts of a sentence. They ask how much more this approach can learn from a fixed collection of text if they change the size of the network, the way they hide parts of each sentence and the amount of training.
The authors build five sizes of ToddlerBERTa and train more than 180 systems. Across the search they vary how many masking patterns are available, how many passes training makes through the data and how many examples go into an update. A masking pattern determines which positions are hidden, so changing the pattern can turn a familiar sentence into a different prediction exercise. The clearest comparison at a fixed parameter count is between the original BabyBERTa configuration and ToddlerBERTa-base. Both have 8.5 million parameters. The original configuration scores 0.6660 on average BLiMP accuracy, while the best ToddlerBERTa-base reaches 0.7407 with more epochs and mask patterns. BLiMP tests grammatical preferences by asking which sentence in a closely matched pair the system favors.
The authors select their final submission on BLiMP. It is ToddlerBERTa-xl, trained for 5 epochs with 20 mask patterns and a batch size of 64. Its overall evaluation beats the official challenge baselines across a suite that includes BLiMP, SuperGLUE, MSGS and a BLiMP Supplement. The SuperGLUE comparison is especially relevant to the training setup. ToddlerBERTa sees sentences in isolation during pretraining, yet it competes with baselines exposed to wider context on an evaluation that often gives it multiple sentences at a time. The system also improves on the challenge baselines on the Supplement. A separate RoBERTa-base reference trained on 3 billion words still leads on BLiMP.
Generalization is more uneven. On MSGS, which tests whether a system favors a linguistic cue when a surface cue points elsewhere, ToddlerBERTa and the baselines perform poorly. The authors suggest that repeated exposure could contribute to ToddlerBERTa’s result, while limited training could contribute to the weakness of the baselines. Those explanations remain hypotheses. The demonstrated gain is narrower and useful for work with limited text. An established architecture can acquire stronger grammatical preferences from the same-sized network when the training recipe changes, and a larger network can also benefit under the challenge’s small-corpus budget.
Deep dive: ToddlerBERTa: Exploiting BabyBERTa for Grammar Learning and Language Understanding
ToddlerBERTa tests how repeated masking, training duration and network size affect grammar learning from a small English corpus. · about 32 minutes to read
The problem and its context
What a small corpus can tell us
A system that learns from text depends on both the amount of text available and the way training uses it. Those factors are easy to conflate. An unusually large corpus supplies more chances to encounter a construction, different words that can fill the same grammatical role and contexts that help distinguish possible interpretations. A training procedure also decides how much work the system does with each encounter. The ToddlerBERTa paper focuses on this second question under a restriction on the first. It asks how far a familiar approach can go when the supply of text is kept small and the way of learning from it can change.
The restriction comes from the BabyLM Challenge. The paper describes recent progress in pretraining as accompanied by growth in both network size and dataset size. It sees comparatively little work at the scale of input used as a point of comparison with human language learning. A challenge corpus makes that smaller scale an experimental condition. Several entrants can work from the same collection and compare their approaches without collecting separate, much larger corpora. The child-scale comparison concerns the amount and some of the character of the text. For the paper, it provides a way to frame an engineering question that also touches research on psycholinguistics and language acquisition.
There is a related reason to study the small-data setting. The authors want procedures that make more effective use of text when acquiring additional material is difficult. When data are scarce, a familiar example may still contain prediction problems that the training procedure has yet to present. A sentence offers different kinds of evidence depending on which part is visible and which part has to be recovered. The paper also treats small-corpus experiments as a place to investigate techniques that might later be tried on larger collections. Those are motivations for studying the regime alongside its potential relevance to low-resource languages.
The challenge also gives the authors a concrete way to ask what successful learning looks like. Grammar provides one kind of evidence. If two sentences are close in wording but differ in whether a construction is acceptable, a system’s preference can be informative about the distinction it has learned. Tasks that use sentences to make decisions give a different kind of evidence. They ask whether a representation acquired during pretraining can be adapted to problems posed in another format. And if a test sets grammatical information against an easier cue in the wording, it can reveal why an apparently successful decision rule may fail when the examples change. Those distinctions motivate the use of several kinds of evaluation benchmarks.
What earlier work changed
The paper places ToddlerBERTa among several earlier ways of using capacity or data more efficiently. Some start with a larger pretrained system and aim to preserve useful behavior in a smaller one. DistilBERT is the paper’s example of transferring knowledge in this way. The compact system learns from a larger teacher, using knowledge distillation to retain capabilities in a form that is faster to use. TinyBERT likewise uses teacher–student training and distillation, with limited-resource deployment among its motivations. Both approaches make the larger system part of the training story. The paper discusses them through DistilBERT and TinyBERT.
Another approach is to change how parameters are allocated. ALBERT reduces the number of independent parameters through factorization and by sharing parameters across layers. A layer is a stage of processing that transforms the representation it receives. Sharing parameters allows more than one stage to reuse the same learned settings. The paper cites this as a way to keep performance competitive while reducing the parameter count. It addresses a different part of efficiency from the scarcity of raw text because its intervention is in the representation and reuse of weights. The example is ALBERT.
Earlier work also changes what a system is asked to predict. In masked language training, some material is hidden and the system has to work out what belongs there. The paper describes ELECTRA as using a discriminator that judges whether an input comes from the original text or from a generator. The distinction concerns what supplies the learning signal. A system can learn from a judgment about whether an input has been replaced, or from recovering missing material. ToddlerBERTa stays with the latter objective and varies the opportunities to practice it. This places its intervention in the construction and scheduling of training examples rather than in the definition of the task.
The composition of the data is another possible intervention. The authors discuss TinyStories, a synthetic story collection written with vocabulary intended to be accessible to children aged 3 to 4. The cited work uses that collection to train and evaluate systems with limited capacity, including systems with less than 10 million parameters. The ToddlerBERTa paper describes their ability to produce coherent stories that extend across paragraphs. Here, the design of the text itself makes the case for studying learning at small scales. The example comes from TinyStories.
The paper also points to GPT-Neo as an example of a different relationship between pretraining and later adaptation. In its account, GPT-Neo learns from a large collection of text before it is adapted to smaller datasets. That approach can make a pretrained system useful when a particular application lacks examples. BabyLM places scarcity earlier in the process. The limited collection is the text available for the initial phase of learning itself. The later supervised tasks then provide their own setting for adaptation. This distinction helps explain why ToddlerBERTa studies the schedule of pretraining so closely.
Why BabyBERTa was the starting point
The immediate predecessor is a lightweight system designed for language acquisition research. As the ToddlerBERTa paper describes it, BabyBERTa was trained on 5M words of American-English input directed to children. The network uses eight layers and eight attention heads, with 256 hidden units and an intermediate dimension of 1024. The authors describe it as small enough to run on a desktop with a single GPU. They cite earlier evidence that it can learn distinctions involving grammatical structure and meaning, and apply grammatical knowledge in unfamiliar contexts. With that prior result, a small set of inputs and a compact network already formed a credible basis for grammatical testing. The work is BabyBERTa.
BabyBERTa belongs to the same architectural tradition as RoBERTa. The approach uses a Transformer, whose attention mechanism lets positions in an input take account of information from other positions. This is relevant to a masked prediction problem because a missing item can depend on more than its closest neighbors. A system can draw on cues from elsewhere in the sentence when predicting what belongs at a hidden position. The architecture’s connection to larger pretrained systems gives the authors a familiar family whose capacity can be varied within the challenge restriction. The paper traces that connection through RoBERTa.
The earlier BabyBERTa setup also gives ToddlerBERTa a point of reference inside its own family. Starting with an established compact network makes it possible to ask two questions. At a familiar parameter count, how much does the training recipe matter? Across sizes, does increasing the capacity help when the text remains scarce? Those questions involve different resources. Parameters determine how much adjustable capacity the network has. The text supplies the underlying examples. The masking and training schedule determine what exercises the network receives from those examples and how frequently it can learn from them. ToddlerBERTa’s design makes each resource visible, even where several settings ultimately change together.
The method, step by step
Turn a sentence into a prediction exercise
The input is the BabyLM challenge collection of roughly 10 million words. It contains speech transcripts from different sources, material directed to children, children’s books and Wikipedia. This mix gives the system text drawn from conversation and from writing. In pretraining, the authors handle that text one sentence at a time. Each sentence supplies the available linguistic context for the masked prediction exercise. Neighboring sentences are outside that exercise, even when the source text originally places them together.
Before masking, the text has to be converted into units the network can process. A tokenizer does this by mapping text to units drawn from a vocabulary. The paper reports training its tokenizer with the Transformers software and using the official BabyBERTa repository for its implementation. The vocabulary, the amount of context supplied at a time and the masking procedure belong to the inherited recipe the authors discuss. In this setup, the vocabulary is compact, and the context is a sentence. The relevant earlier software work is Transformers.
A mask changes what part of the sentence the system can see directly. Training with that input asks the network to use the visible positions to predict what was hidden. The unmodified text supplies the target, so the authors can get training examples from the corpus without adding a grammatical judgment to every sentence. If a different pattern hides different positions, the same underlying sentence offers a different combination of cues and targets. Material that helped the system infer an answer on an earlier encounter can itself be the material it has to predict on a later one.
The number of mask patterns controls how much variation of this kind the procedure can draw from the source sentences. It is important to distinguish pattern count from the amount hidden in any given example. The paper’s search changes the number of patterns. The authors describe this as data augmentation because the system gets different exercises from the same source material. Its underlying text still comes from the fixed challenge collection. Masking can change the role each position plays in an exercise, while the available sentences continue to determine which words and constructions the system has an opportunity to encounter.
This arrangement also gives a practical meaning to the single-sentence restriction. Attention can use relevant clues elsewhere inside the sentence, including clues separated from the masked position by other words. A clue that is available only in a preceding or following sentence is outside the training input. The setup consequently gives the network practice using relationships within sentences. The later evaluation can then ask how much of that knowledge is usable when the inputs to a downstream task extend beyond a sentence.
ToddlerBERTa training and evaluation
The steps in order.
Vary the network’s capacity
The authors construct ToddlerBERTa-xs, ToddlerBERTa-s, ToddlerBERTa-base, ToddlerBERTa-l and ToddlerBERTa-xl. The size variants change four architectural settings. Hidden size determines how wide the representation carried through the network is. Intermediate size sets the width of the internal feed-forward computation within a layer. The number of attention heads governs how many attention operations a layer can perform in parallel. The number of layers determines how many processing stages are stacked. The variants retain the same overall design while jointly varying these dimensions.
The range is wide enough to address more than one version of the efficiency question. ToddlerBERTa-xs has roughly 750 thousand parameters and ToddlerBERTa-s has 1.8 million. These sizes let the authors see what the training procedure can do with very small networks. ToddlerBERTa-base has 8.5 million parameters, the same count as BabyBERTa. The paper describes ToddlerBERTa-l as having approximately 30 million parameters and ToddlerBERTa-xl as having 92 million. Those sizes extend the experiment toward networks comparable in scale to larger reference systems, while keeping them within ToddlerBERTa’s sentence-based training setup.
Parameter count gives a convenient way to describe the range, although it does not specify exactly how capacity is distributed. A wider hidden representation, for example, changes what each position can carry between layers. More layers change how frequently that representation is transformed. More attention heads change how attention is organized within a stage. The paper treats these architecture changes together as a move between sizes. Its design can therefore connect performance to a larger or smaller member of the family. It has much less leverage for assigning a change to any particular architectural dimension.
The base size has a special role in the comparison. A result achieved at the same parameter count as BabyBERTa can establish that additional parameters are unnecessary for that particular improvement. The extent to which it identifies a specific cause depends on what else changed in the recipe. The authors give special attention to greater mask diversity and longer training. Because the comparison involves those changes together, it tests whether a revised recipe can get more from the base size. Comparisons with the larger variants then address what further improvement is available when additional capacity enters the experiment.
Change the training schedule
For training, the authors vary count of mask patterns, epochs and batch size. The numbers of mask patterns considered are 1, 5, 10, 20 and 50. An epoch describes a pass through the training examples as organized for the run. The epoch settings considered are 1, 5 and 10. A batch is a group of examples whose training signals contribute to an update of the network’s parameters. The batch sizes considered are 16, 32, 64 and 128. The choice of batch size changes how much evidence is combined before an update and how the stream of examples is divided into updates.
These settings control different aspects of exposure. Pattern count determines how many ways the procedure can construct a prediction exercise from a sentence. Epochs determine how long the procedure keeps going through the prepared material. Batch size determines how training groups that material as it adjusts the network. An additional pass can let the system work further on the same corpus. Additional patterns can give it different questions to answer about that corpus. A larger batch changes how those questions participate together in an update. A configuration combines all of these choices.
That combination matters when interpreting what an epoch count means. Two settings can have the same epoch count and differ in the variety of masked examples supplied to training. Two settings can have the same pattern count and differ in the amount of repetition. These counts also describe training at different levels from the raw word total. The corpus size describes the supply of original text. The pattern count concerns the transformations applied to it. The epoch count concerns the number of passes over the examples prepared for a run. The paper uses all three to discuss how work with a small corpus can still vary in extent and diversity.
The authors consider 36 configurations per size because they have limited computation. The candidates span the named settings, with a subset of the possible combinations represented in the search. Across the exercise the introduction describes more than 180 trained systems. These are runs under different architectural and training choices. The point of the search is to see how the inherited design responds across that space and to locate a strong configuration for the competition. The paper reports using Tesla T4 and Tesla A100 hardware for the work.
Screen the variants, then evaluate the selected system
BLiMP is the screening benchmark for the search. Its examples are linguistic minimal pairs, meaning that the sentences are constructed to differ in a way that makes a targeted grammatical property relevant to the choice between them. The desired preference is for the acceptable member. The authors look at average BLiMP performance across the task suite to rank configurations. In this role the benchmark turns many judgments about different linguistic cases into a single ordering that the search can use.
The paper uses the official BabyLM evaluation pipeline. Evaluating all candidates across the entire pipeline would have required more computation, so the broader assessment is reserved for the BLiMP winner. The selected run is ToddlerBERTa-xl trained for 5 epochs, with 20 mask patterns and a batch size of 64. Its configuration is an observed choice from the search. In particular, the schedule shows that the BLiMP winner combines some of the available training options below their largest tested values. This makes the selection a result about a particular combination and the benchmark used to choose it.
After selection, the authors assess the system on the BLiMP Supplement and adapt it to SuperGLUE and MSGS. This adaptation is fine-tuning because the system starts with parameters learned during pretraining and is trained further for the downstream task. The distinction yields two ways to read the results. BLiMP serves as the grammar-oriented measure used to select the configuration. The fine-tuned evaluations show how well that selected starting point works once it receives task-specific training. Any account of the downstream performance therefore needs to include both stages.
The procedure keeps the unit of pretraining and the unit of evaluation distinct. During pretraining, a sentence supplies the context for token prediction. A downstream example can be structured differently and can include multiple sentences. Fine-tuning places the pretrained parameters in that new task setting. SuperGLUE can therefore test whether pretraining on isolated sentences leaves a representation that can be adapted to multi-sentence inputs. The paper’s comparisons show how the resulting system fares against the official baselines under the challenge pipeline. They do so for the BLiMP-selected run, leaving the downstream behavior of the rest of the search mostly open.
Experiments and results
What the official baselines establish
The competition baselines are OPT, RoBERTa and T5. For the challenge, the organizers train those systems from scratch on the competition’s own data. Their role in the comparison follows from that shared source of text. A baseline familiar from other settings can behave differently when pretrained on this collection. The official runs show how several established approaches perform in the same small-corpus regime as ToddlerBERTa. They provide the reference for the paper’s claim that its best configuration makes effective use of the challenge data.
The main BLiMP comparison also brings in a RoBERTa-base result from the earlier BabyBERTa work. This is a reference under a different data regime. The paper gives RoBERTa-base a training corpus of 3 billion words and ToddlerBERTa a corpus of 10 million words. The larger-corpus reference scores higher. The official challenge comparisons measure progress under the shared data restriction. The RoBERTa-base comparison shows how ToddlerBERTa fares against a familiar system when that restriction is lifted for the reference. Each comparison answers a different question about the resulting grammar judgments.
The metrics also have to be read in light of the role of each test. The article reports average BLiMP accuracy as a measure of how frequently the grammatical member of a pair is preferred. That average can improve through gains concentrated in some tasks or through gains spread throughout the suite. On MSGS, the scale reported by the authors extends from -100 at the bottom to 100 at the top, and the performance discussion concerns generalization when cues compete. SuperGLUE provides task-specific evaluations after adaptation, while the Supplement adds another evaluation associated with BLiMP. The paper’s overall comparison draws on the suite. Its BLiMP accuracy, its MSGS scale and its downstream outcomes have distinct meanings.
How the sizes fare on BLiMP
For ToddlerBERTa-xs, the paper reports that some settings are competitive with the larger T5 baseline on BLiMP. This is a result about what the recipe can support on the grammar evaluation at approximately 750 thousand parameters. It shows that a substantial difference in network size can coexist with comparable performance on that benchmark under the given training restriction. The experiment’s small-size comparison is especially useful because the paper’s larger variants eventually have far more capacity. The performance of the smallest one shows where the training recipe already has traction.
At 1.8 million parameters, ToddlerBERTa-s exceeds the official OPT baseline across various configurations. The wording matters for the scope of the claim. The paper observes improvement over the baseline repeatedly among the tested settings, making the result more informative than the outcome of a sole run. Its comparison still concerns BLiMP and the particular challenge version of OPT. ToddlerBERTa-s thereby supplies a second example of a compact member of the family competing with a larger reference in the fixed-data setting.
The base comparison supplies the exact pair of scores that most directly addresses improvement at fixed capacity. ToddlerBERTa-base and BabyBERTa each have 8.5 million parameters. The original BabyBERTa configuration scores 0.6660 on average BLiMP accuracy. The strongest ToddlerBERTa-base setting scores 0.7407. The difference in training that the authors emphasize is the use of more epochs and more mask patterns in the improved setting. The scores show a gain from the revised base-size configuration even though the parameter count is held at the predecessor’s scale.
BabyBERTa and ToddlerBERTa-base average accuracy on BLiMP
The tuned ToddlerBERTa-base setting has higher average accuracy at the same parameter count.
The numbers
| System or setting | accuracy proportion |
|---|---|
| Original BabyBERTa configuration | 0.6660 |
| Best ToddlerBERTa-base configuration (this paper) | 0.7407 |
The paper describes the move to ToddlerBERTa-l as improving many configurations, with a relatively modest increase at the top. That distinction is useful because the best run and the typical run express different properties of a search. The top score answers how well the best sampled setting performed. Performance across many settings indicates what happens as the schedule changes within the tested portion of the space. For ToddlerBERTa-l, the paper’s observation is that the larger network is frequently beneficial even where its strongest configuration adds comparatively little to the previous peak. The paper also reports that increasing capacity makes it possible to surpass the official RoBERTa baseline.
ToddlerBERTa-xl extends the comparison to 92 million parameters. The authors report a substantial BLiMP lead over official baselines of similar size. This gives the extra capacity a role within the small-data condition. Keeping the challenge corpus fixed still leaves room for a larger member of the family to improve, provided it is trained with a suitable recipe. The best overall BLiMP configuration comes from this size. The paper describes its advantage over the original BabyBERTa by 10 points on BLiMP. That is the comparison with the final system, while 0.7407 is the reported result for the best base-size configuration.
The final BLiMP result fits alongside the larger-corpus RoBERTa-base result. The authors attribute much of the remaining gap to RoBERTa-base’s much larger collection of training text. They also discuss using a larger variety of masks within the challenge’s 1-billion-word exposure constraint. Corpus size and exposure refer to different parts of the experiment. The corpus figure describes the underlying words available as source material. The exposure restriction limits training use of material, which can include repeated presentations. The reported result is that training with diverse masks can make a limited corpus more productive for grammar testing, while access to a far larger corpus still goes with higher performance in the reference comparison.
What the broader evaluation adds
On SuperGLUE, the authors examine the selected ToddlerBERTa-xl after fine-tuning. They emphasize that SuperGLUE frequently presents inputs containing several sentences. This creates a change in context from sentence-level pretraining. The pretrained system has practiced using information from within individual sentences, and fine-tuning adapts those parameters to the forms of input used in the downstream evaluation. The paper reports that the final system competes with baselines that saw multiple sentences in pretraining. This is the basis of its claim that useful language understanding can transfer from sentence-level pretraining to tasks with wider inputs.
The SuperGLUE comparison ties that claim to performance under the evaluation procedure. It takes the grammar-selected configuration, gives it the pipeline’s downstream training and assesses the resulting task performance. This answers whether the pretrained network can become competitive on those tasks under the challenge setup. The experiment also leaves a separate question about which parts of pretraining account for that competitiveness. The result combines the effects of capacity, the mask schedule, the sentence-level input format and adaptation. The paper treats the broader assessment as evidence about the usefulness of the complete selected system.
MSGS, the Mixed Signals Generalization Set, evaluates a different aspect of learning. A system can have access to both a cue tied to the intended linguistic generalization and a surface cue visible in the examples. Generalization is tested when reliance on the cues would produce different answers. An assessment of this kind is informative because a pattern that appears reliable in the examples used for learning can cease to be reliable after the relationship between cues changes. The benchmark asks which kind of information the trained system relies on. The paper connects it to earlier work on linguistic generalizations in RoBERTa.
ToddlerBERTa’s behavior on MSGS is poor, and the paper judges the official baselines to be similarly weak on the benchmark’s scale. This result qualifies the success on BLiMP. On a grammatical minimal pair, the preferred sentence provides the outcome of interest. On MSGS, a system has to apply the desired cue when another available signal supports a different decision. Higher average accuracy on the pairwise grammar tests can make a pretrained system promising while leaving its cue preferences uncertain. Here, that uncertainty matters because the more targeted downstream test reveals weakness shared across the comparison systems.
The authors suggest that ToddlerBERTa’s exposure to repeated examples could shape its MSGS behavior. An underlying example can recur across many masked exercises and training passes. The system might then rely on recurring features that support prediction in those encounters. The baselines also perform poorly, which leads the authors to raise limited training as another possible source of weak generalization. The observed result is the weakness of the systems on MSGS. The account in terms of repeated exposure and undertraining is the authors’ interpretation of why that result might arise.
On the BLiMP Supplement, ToddlerBERTa finishes ahead of the official baselines. The authors treat this as evidence that benefits of the training procedure carry over to the additional benchmark. They are more guarded about the extent of the advance there. At the time of the paper, they lacked a published account of the Supplement’s design. That restricts interpretation of the scores because a stronger showing on the additional set does not identify the particular skills that account for it. The Supplement broadens the evidence for competitive performance and offers less information about the source of the advantage.
Taken together, the experiments establish that the BLiMP-selected recipe makes ToddlerBERTa competitive across the official evaluation and particularly strong on the primary grammar benchmark. That result spans different comparisons. Matching capacity against BabyBERTa highlights the value of the revised training configuration. Beating challenge baselines of similar size supports the approach under a common text budget. The separate lead of larger-corpus RoBERTa-base and the shared weakness on MSGS give the advantages specific boundaries. Each outcome concerns a different condition or target ability, which makes the individual comparisons more informative than treating the overall evaluation as a uniform measure of language understanding.
What the ablations show
What changes when the size stays fixed
The paper’s main evidence about the training recipe comes from a configuration search. A classical single-factor ablation would remove or change one component while keeping all the other choices fixed. ToddlerBERTa’s reported analysis uses comparisons across sampled combinations and sizes, with the base-size comparison providing a particularly informative control on parameter count. The authors vary mask patterns, epochs and batch size within the search. Their discussion draws conclusions about the behavior of the recipe as a whole and about where better results appear among the settings examined.
At 8.5 million parameters, the BabyBERTa comparison rules out an increase in parameter count as the explanation for the higher score of the strongest base-size setting. Increased masking diversity and more training both figure in the authors’ description of the successful configuration. The result supports their premise that the original scale had room for improvement through training. It leaves the separate contribution of mask variety and epoch count open, along with any interaction between them. An additional pattern and an additional pass can each change the system’s experience of a sentence, so the comparison’s strength is showing that their use within the revised recipe yields a better result at that scale.
The parameter sweep asks a complementary question with the same restricted supply of text. A compact architecture can achieve competitive performance, as the smallest configurations show. A higher parameter count also helps in the experiments, especially when the comparison looks across the performance of many settings. The change to ToddlerBERTa-l, in particular, illustrates how a capacity increase can affect the distribution of results more visibly than the highest result. A peak and a set of scores across configurations represent different evidence about whether an architecture helps. The authors discuss both in interpreting the move to larger sizes.
The authors associate the stronger results of the larger variants with longer training and larger batches, along with varied masking. They interpret larger batches as helping training stability and additional epochs as allowing more learning. These statements explain the authors’ choice to adjust the recipe for capacity. The paper’s strongest result arises from a specific combination, and the settings favored by that combination are properties of this search on BLiMP. The experiment supports sensitivity to the way capacity and training are used together. It provides much less evidence about an independently optimal batch size or epoch count.
The selected ToddlerBERTa-xl also helps to interpret what “more training” means in the paper. Its 5 epochs, 20 mask patterns and batch size of 64 sit within wider sets of tested values. This is direct evidence about the schedule used by the winner. It does not supply a general ordering of every schedule by length or intensity. A configuration that lets the network see more forms of a sentence can interact with how often the system sees them and how the resulting exercises are batched. The most informative reading of the search is that the revised recipe has substantial consequences under fixed data, and those consequences depend on the choices in combination.
Which grammar tasks move with the average
For the benchmark analysis, the paper examines how the scores for individual BLiMP tasks vary across the training runs. It uses a Spearman correlation matrix. Spearman correlation compares the rankings induced by scores. When a task has a strong positive correlation with average BLiMP performance, configurations that place higher on the average tend to place higher on that task as well. The analysis therefore asks whether choosing a strong configuration according to the average tends to move individual grammar scores in the same direction.
The paper reports strong positive association with the average for most tasks. It singles out Island Effects, Filler Gap and Control/Raising as exceptions. Those tasks matter to the selection analysis because the overall score can steadily improve even when particular grammatical abilities change little. Choosing a configuration on the average puts the emphasis on overall performance. A task that is weakly associated with that measure may contribute less to the ordering than the tasks on which the configurations separate more consistently.
The authors then order runs by their average BLiMP score and plot the scores for the exceptional tasks along that ordering. The horizontal order describes how the systems rank on overall BLiMP. It does not represent successive checkpoints of the same training run. In this view, the authors see the individual scores either improve slightly or stay within a fairly stable interval. The visual comparison gives direction to the correlation finding. It suggests that some of the apparent exceptions arise because performance in those areas is relatively insensitive across the tested settings, even while the overall average moves upward.
A task’s rank correlation with the average also needs to be understood in relation to how that average is used. A task score contributes to the general performance picture, and the ordering obtained from the average can reflect that contribution. Correlation is a way to see alignment of ranks across the runs. It does not establish that the system learned the same kind of grammar in every task whose results rise together. The analysis is valuable because it shows which areas an aggregate-led search can pass over. It gives detail about the distribution of the gain without requiring a separate experiment for each grammatical construction.
The authors suggest that the exceptional tasks may be intrinsically harder in this setting and could require more text or more complex architectures. The results are consistent with difficulty under the tested conditions, because raising the average through the search yields little movement in those scores. They do not identify the reason for that pattern. More raw text, a different distribution of examples, greater capacity and another training objective would be distinct interventions. The task analysis shows where the existing interventions produce limited progress, which is the stronger empirical conclusion.
What the generalization result can explain
The authors’ analysis of MSGS raises a tradeoff that the BLiMP tuning does not measure directly. Repeated masking of a sentence can yield useful practice with different targets. The same repetitions can also preserve recurring surface properties of the source examples. If a downstream decision rewards a deeper linguistic cue when those surface properties change, improved prediction during pretraining need not carry over to that decision. The authors identify this as a plausible way to understand the selected system’s performance on MSGS.
That account has a different evidentiary status from the size and configuration comparisons on BLiMP. The full MSGS assessment is reported for the BLiMP winner rather than the sweep. The paper consequently has a comparison between the selected system and the official baselines, but little leverage to trace MSGS performance as masks or epochs increase within a size. The baselines’ weakness also leaves open several routes to poor generalization. Taken as a controlled comparison, the result establishes that the selected recipe’s gains on BLiMP coexist with weak MSGS performance. The proposed cause remains a hypothesis about how repetition might influence the cues learned during training.
Limitations
Limits the authors state
The search covers a bounded set of training schedules and sizes. The authors attribute this to available computation. They choose 36 settings per size from the combinations suggested by the mask, epoch and batch options. This supports a comparison among substantial numbers of runs, and it leaves room for stronger settings in combinations that were skipped or outside the stated ranges. The paper’s selected schedule is best on BLiMP among the systems the authors evaluate. Its status follows from that empirical search.
The authors also limit most evaluations to BLiMP. A system that scores below the winner on that benchmark could still do better on an individual downstream task or generalize differently on MSGS. The broad evaluation gives evidence about the selected ToddlerBERTa-xl. The narrower evidence for the remaining variants is primarily about performance on linguistic minimal pairs. The paper makes clear that this division is a consequence of computational resources. It affects how much can be concluded about the broader capabilities of the smaller sizes, including those with competitive BLiMP scores.
Another stated limit is reliance on a fixed corpus. A dataset can be small in volume and still vary in the kinds of language it contains, as this one does. Its mix nevertheless defines the patterns the system can encounter, and an increase in mask variety works with that mix. A rare construction remains dependent on the examples in the collection. The authors acknowledge that a fixed dataset restricts exposure to diverse patterns and contexts. This bounds how far the results can speak about a small corpus with a different composition.
The authors identify sentence-level pretraining as a restriction too. It leaves longer textual relations outside the context available during initial learning. The SuperGLUE result shows that the chosen system can adapt to multi-sentence inputs and compete with baselines after receiving task-specific training. The setup still leaves open what broader context during pretraining would have added under otherwise comparable conditions. The authors accordingly treat sentence-level input as a potential weakness for tasks that require understanding a wider span of text.
The comparison centers on Transformer-based systems and on changes within an established design. The authors say that the evaluation’s architectural focus limits comparisons to other families. They also acknowledge that they did little to investigate novel objectives or architectural mechanisms. The paper therefore offers evidence about how far a recognizable architecture and objective can be taken through adjustments to size and scheduling. A different design could use the same corpus differently, and the paper’s results give a reference for that comparison.
The Supplement has an additional limitation of interpretation. The authors describe its details as unpublished at the time. They tentatively suggest that the presence of a decoder might help explain how OPT and T5 perform relative to RoBERTa on that benchmark. Such an explanation depends on the kinds of examples and on how the differing architectures interact with them. Without those details or a comparison that varies the decoder independently, the paper can identify the ranking and propose a possibility. It cannot attribute the differences to the decoder.
Limits that follow from the design
Because BLiMP is used to choose the final system, the best BLiMP score is a result of both training and selection. It tells the reader what the search found under the benchmark it optimized. A separate set of grammatical evaluations with known coverage could address how broadly the selection gain transfers within grammar. The Supplement offers some evidence in that direction, subject to the uncertainty about its composition. SuperGLUE and MSGS extend the evaluation to other capabilities, while their adaptation stages make them different tests of what the system acquired during pretraining.
The scope of the parameter result is also specific. The architecture changes several dimensions at once as it scales. A gain from a larger size may reflect the combined effect of width, depth and attention configuration. Similarly, a gain at the BabyBERTa parameter count can be achieved by a training recipe that changes multiple dimensions of exposure at once. Parameter count provides a firm basis for comparing scale. Attributing a gain within one of those comparisons to an individual architectural or training choice would require narrower interventions than the reported comparisons supply.
The comparison with the official baselines controls the source of pretraining text in an important sense, because all are trained on the challenge collection. It does not make their entire experience or computation equivalent. The paper describes differences between sentence-level pretraining and baselines that use wider context. The architectures differ, and ToddlerBERTa is drawn from a search tailored to BLiMP. The comparison establishes performance in the common corpus regime. A claim about equal computational effort, equal training exposure, or the isolated effect of context would require those conditions to be matched separately.
This also bears on the paper’s use of efficiency. A pattern schedule can get more useful training exercises out of a small amount of text. Repeating those exercises and training many candidate configurations uses computation. The experiment demonstrates strong results with a restricted source corpus and shows that tiny variants can be competitive on BLiMP. It gives no single accounting that converts those results into savings in training time or total search cost. Data efficiency, parameter efficiency and computational cost are related questions with separate evidence.
The larger-corpus RoBERTa-base comparison is informative because it sets a reference for what additional text can accompany. It does not isolate the effect of corpus size. The reference and ToddlerBERTa have different training histories, and the paper does not train the selected ToddlerBERTa recipe under both corpus sizes as part of that comparison. The authors’ attribution to the size of RoBERTa-base’s corpus is plausible within their account. The directly observed result is the stronger BLiMP performance of the larger-corpus reference alongside ToddlerBERTa’s better results against the official small-corpus baselines.
The interpretation of MSGS is especially sensitive to this distinction between outcomes and causes. A change in the amount of repetition during pretraining could alter the features a system learns to trust. Establishing that mechanism would require testing otherwise comparable runs that differ in exposure and then observing their behavior when linguistic and surface cues disagree. Because the extensive search is assessed largely on BLiMP, the study does not supply such a series for MSGS. Weak generalization is an observed limit of the selected setup. The role of overexposure remains an explanation to test.
Finally, the child-scale motivation and the suggested relevance to other languages should be read in light of what the challenge measures. The study trains on a collection of English text that includes some material addressed to children, and it assesses computational systems with language benchmarks. Its evidence concerns the grammatical preferences and downstream behavior learned under the experimental conditions. Human learning involves a different setting, and the paper does not test a developmental trajectory against children’s performance. Transfer to another language likewise depends on what text and grammatical evidence are available in that setting. The study gives a reason to investigate training recipes under restricted data, with the experimentally demonstrated gains grounded in this English corpus and these evaluations.
What came after
Later work cites ToddlerBERTa in connection with grammatical learning in Basque. The later study asks how well BERT can learn the grammar of a language described in its title as agglutinative and flexible in word order. Agglutination concerns the way grammatical information is combined within words. Flexible order concerns the positions those words can occupy in a sentence. The title places both properties at the center of the inquiry, giving the question of grammatical learning a different linguistic setting. The work is How Well Can BERT Learn the Grammar of Basque?.
The connection is clearest at the level of the research question. ToddlerBERTa examines what can be learned about English grammar from a limited corpus by changing capacity and the presentation of the same underlying text. The later study asks how well a related pretraining approach can acquire grammar when the language itself offers a different organization of grammatical information. The citation establishes that ToddlerBERTa is part of the background to that inquiry. It leaves open whether the Basque experiments adopted ToddlerBERTa’s single-sentence setup, its mask schedule or its configuration search.
Cite
Cite as Veysel Çağatan, Ömer. 2023. ToddlerBERTa: Exploiting BabyBERTa for Grammar Learning and Language Understanding. Proceedings of the BabyLM Challenge at the 27th Conference on Computational Natural Language Learning.
@inproceedings{omer2023toddlerberta,
title = {{ToddlerBERTa: Exploiting BabyBERTa for Grammar Learning and Language Understanding}},
author = {Veysel Çağatan, Ömer},
booktitle = {Proceedings of the BabyLM Challenge at the 27th Conference on Computational Natural Language Learning},
year = {2023},
doi = {10.18653/v1/2023.conll-babylm.14},
eprint = {2308.16336},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2023.conll-babylm.14}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cagatan-2023-toddlerberta-exploiting-babyberta-grammar-learning/
References
- Sid Black, Leo Gao, Phil Wang, Connor Leahy, and Stella Rose Biderman. 2021. Gpt-neo: Large scale autoregressive language modeling with mesh-tensorflow. OpenAlex ↗ · Scholar ↗
- Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, T. J. Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeff Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. ArXiv, abs/2005.14165. our card
- Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, Parker Schuh, Kensen Shi, Sasha Tsvyashchenko, Joshua Maynez, Abhishek Rao, Parker Barnes, Yi Tay, Noam M. Shazeer, Vinodkumar Prabhakaran, Emily Reif, Nan Du, Benton C. Hutchinson, Reiner Pope, James Bradbury, Jacob Austin, Michael Isard, Guy Gur-Ari, Pengcheng Yin, Toju Duke, Anselm Levskaya, Sanjay Ghemawat, Sunipa Dev, Henryk Michalewski, Xavier García, Vedant Misra, Kevin Robinson, Liam Fedus, Denny Zhou, Daphne Ippolito, David Luan, Hyeontaek Lim, Barret Zoph, Alexander Spiridonov, Ryan Sepassi, David Dohan, Shivani Agrawal, Mark Omernick, Andrew M. Dai, Thanumalayan Sankaranarayana Pillai, Marie Pellat, Aitor Lewkowycz, Erica Moreira, Rewon Child, Oleksandr Polozov, Katherine Lee, Zongwei Zhou, Xuezhi Wang, Brennan Saeta, Mark Díaz, Orhan Firat, Michele Catasta, Jason Wei, Kathleen S. Meier-Hellstern, Douglas Eck, Jeff Dean, Slav Petrov, and Noah Fiedel. 2022. Palm: Scaling language modeling with pathways. ArXiv, abs/2204.02311. our card
- Kevin Clark, Minh-Thang Luong, Quoc V. Le, and Christopher D. Manning. 2020. Electra: Pre-training text encoders as discriminators rather than generators. ArXiv, abs/2003.10555. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. ArXiv, abs/1810.04805. our card
- Ronen Eldan and Yuan-Fang Li. 2023. Tinystories: How small can language models be and still speak coherent english? (https://api.semanticscholar.org/CorpusID:258686446) ArXiv, abs/2305.07759. our card
- Leo Gao, Jonathan Tow, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Kyle McDonell, Niklas Muennighoff, Jason Phang, Laria Reynolds, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2021. A framework for few-shot language model evaluation (https://doi.org/10.5281/zenodo.5371628). OpenAlex ↗ · Scholar ↗
- Jordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya, Trevor Cai, Eliza Rutherford, Diego de Las Casas, Lisa Anne Hendricks, Johannes Welbl, Aidan Clark, Tom Hennigan, Eric Noland, Katie Millican, George van den Driessche, Bogdan Damoc, Aurelia Guy, Simon Osindero, Karen Simonyan, Erich Elsen, Jack W. Rae, Oriol Vinyals, and L. Sifre. 2022. Training compute-optimal large language models. ArXiv, abs/2203.15556. our card
- Philip A. Huebner, Elior Sulem, Cynthia Fisher, and Dan Roth. 2021. Babyberta: Learning more grammar with small-scale child-directed language (https://api.semanticscholar.org/CorpusID:241583340). In Conference on Computational Natural Language Learning. our card
- Xiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Chen, Linlin Li, Fang Wang, and Qun Liu. 2019. Tinybert: Distilling bert for natural language understanding. In Findings. our card
- Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2019. Albert: A lite bert for self-supervised learning of language representations. ArXiv, abs/1909.11942. our card
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. ArXiv, abs/1907.11692. our card
- OpenAI. 2023. Gpt-4 technical report (https://api.semanticscholar.org/CorpusID:257532815). ArXiv, abs/2303.08774. our card
- Colin Raffel, Noam M. Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. ArXiv, abs/1910.10683. our card
- Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. 2019. Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter. ArXiv, abs/1910.01108. our card
- Ashish Vaswani, Noam M. Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In NIPS. our card
- Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. Superglue: A stickier benchmark for general-purpose language understanding systems. ArXiv, abs/1905.00537. our card
- Alex Warstadt, Aaron Mueller, Leshem Choshen, Ethan Gotlieb Wilcox, Chengxu Zhuang, Juan Ciro, Rafael Mosquera, Adina Williams, Bhargavi Paranjabe, Tal Linzen, and Ryan Cotterell. 2023. Findings of the 2023 BabyLM Challenge: Sample-efficient pretraining on developmentally plausible corpora. In Proceedings of the 2023 BabyLM Challenge. Association for Computational Linguistics (ACL). OpenAlex ↗ · Scholar ↗
- Alex Warstadt, Alicia Parrish, Haokun Liu, Anhad Mohananey, Wei Peng, Sheng-Fu Wang, and Samuel R. Bowman. 2019. Blimp: A benchmark of linguistic minimal pairs for english. Transactions of the Association for Computational Linguistics, 8:377–392. OpenAlex ↗ · Scholar ↗
- Alex Warstadt, Yian Zhang, Haau-Sing Li, Haokun Liu, and Samuel R. Bowman. 2020. Learning which features matter: Roberta acquires a preference for linguistic generalizations (eventually) (https://api.semanticscholar.org/CorpusID:222290865). In Conference on Empirical Methods in Natural Language Processing. our card
- Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, and Jamie Brew. 2019. Huggingface's transformers: State-of-the-art natural language processing. ArXiv, abs/1910.03771. our card
- Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer. 2022. Opt: Open pre-trained transformer language models. ArXiv, abs/2205.01068. our card