| In-context learning | |
|---|---|
| share of training sequences that are bursty | |
| number of training classes | |
| rank of a class by frequency, 1 for the most common | |
| Zipf exponent; 0 gives uniform classes | |
| probability of the class of rank , | |
| Synthetic biographies | |
| number of people in the biography data | |
| number of model parameters | |
| bits of knowledge stored, a lower bound from the loss on names and values | |
| number of possible attribute combinations for one person; | |
| capacity ratio , bits per parameter | |
| Released models | |
| relevant pretraining documents for a question, or examples of a concept | |
| intercept and slope of accuracy against | |
| EntiGraph toy model | |
| number of synthetic documents generated | |
| fraction of entity pairs known after documents; the paper writes for | |
| rise of as | |
| share of unfilled pairs filled at rate per document | |
| Paper symbols | |
| P(bursty) | what the paper writes for |
| the paper's class rank, written here | |
| what Allen-Zhu and Li write for , | |
| what Yang et al. write for , | |
A model's pretrained abilities depend on measurable properties of its data: how often an item recurs, how its repeats cluster, and in how many forms it appears. Controlled synthetic datasets hold the model fixed and vary one property at a time, giving causal evidence at modest scale. Those tests run under 1M parameters for in-context learning, up to about 0.7B for factual recall, and on one base model and one corpus for synthetic expansion. Counts in released models up to 176B parameters show matching patterns at scale. Those counts are correlations, backed by one document-deletion retrain.
In Chan et al. (2022), a transformer learns in contextfrom examples placed in its input, with no change to its weights; shown a few labeled images, it labels a new image of one of those kinds only when classes cluster within sequences (burstinessthe tendency of an item to recur in clusters instead of spreading evenly over time, as a rare word recurs within one document; here, a class repeated within a training sequence) and many rare classes exist. Few classes or no in-sequence repeats push the model into weight storage. A word-like skew yields both, storing common classes while the long tail keeps the context useful. In synthetic biographies, a model memorizes a fact written identically every time yet rarely answers questions about it, whereas varied wordings make it answerable (Allen-Zhu and Li, 2024). After roughly a thousand exposures, models trained on those biographies store about 2 bits per parameter (Allen-Zhu and Li, 2025). In released language and vision-language models, accuracy rises with pretraining document or image counts, and prompt retrieval helps most on rare questions (Kandpal et al., 2023; Udandarao et al., 2024). When a corpus is too small to supply variety, text generated about how its entities relate puts its facts into the weights (Yang et al., 2025).
In-context learning. In meta-trainingtraining on sequences that each carry a new task, for example a fresh random assignment of labels to classes in every sequence, so that only the context can supply the answer, every sequence defines a new task, as in in-context regression promptsprompts of input-output pairs from a function drawn fresh for each prompt, such as a random linear function, so that the answer has to be fitted from the context. Reading note: In-context learning of simple function classes. The weights therefore cannot memorize answers. Natural text does not work that way. Words keep consistent meanings across documents, yet large transformers still learn in context. Chan et al. (2022) isolate the data properties behind this switch on Omniglota dataset of 1,623 handwritten characters from 50 alphabets, each drawn once by 20 different people; the standard benchmark for few-shot classification. They hold the model, loss, and training length fixed while changing one generator property at a time. Each training sequence presents eight image-label pairs followed by a query image, with cross-entropy loss on the query label alone and one fixed integer label per class throughout training. In a bursty sequencea training sequence in which the query's class and one other class each appear three times among the eight context pairs, with their fixed labels; with letters for images, a 17, b 9, c 40, a 17, b 9, a 17, d 3, b 9, then query a, answer 17, the query class and one distractor each appear three times in the context, which blocks a majority-label shortcut. In a non-bursty sequence, the generator draws context pairs uniformly at random. Write the share of training sequences that are bursty; the rest are non-bursty. The paper writes P(bursty) for the share of bursty training sequences.
Two diagnostic tests separate context lookup from weight storage. The in-context testfour images each of two held-out classes, labeled 0 and 1 at random for this sequence alone, then a query from one of them: x 1, y 0, y 0, x 1, x 1, y 0, x 1, y 0, then query x, answer 1 takes held-out classes and assigns them fresh random 0/1 labels in each sequence. It scores only the choice between those two labels (chance 0.5), so only the context carries the answer. The in-weights testeight distinct training classes with their training labels, then a query from a trained class that is absent from the context, so the label must come from the weights queries a trained class absent from the context, so only stored weights can answer. Every condition trains the same 831,479-parameter model for 500,000 Adam steps across three to five seeds. That model pairs a small ResNeta convolutional image network built from residual blocks; here a small one with four groups of 16 to 64 channels, trained from scratch together with the transformer encoder with a 12-layer causal transformer (width 64, 8 heads).
Burstiness and a large class count each push the model from weight storage to context lookup. In-context learning requires both. Because class labels stay fixed during training, both routes fit bursty sequences equally well, so the data distribution picks the solution. With 1,600 uniform classes, raising from 0 to 1 moved in-context accuracyaccuracy on the in-context test: held-out classes whose labels are redrawn in every sequence, so only the context can give the answer; chance is 0.5 from chance (0.50) to 0.77 while dropping in-weights accuracyaccuracy on the in-weights test: trained classes queried with none of their examples in the context, so only labels stored in the weights can give the answer from 0.91 to 0. At , the number of training classes classes gave 0.99 in-weights accuracy and chance in-context accuracy, whereas gave 0 in-weights and 0.93 in-context.
Two confounds qualify the uniform class-count sweep. First, under uniform classes each class makes up a fraction of the data, which ties class count to exposures per class. Assuming equal batch sizes, matching exposures per class pairs 31,250 steps at 100 classes against 500,000 steps at 1,600. Read from Figure 3, the 100-class model still stood at 0.84 in-weights and chance in-context, against 0.26 and 0.66 for the 1,600-class model. Fewer exposures alone therefore do not explain the shift, though this comparison leaves training steps unmatched. Second, the 12,800 classes come from rotating and mirroring Omniglot characters. Symmetric characters then receive multiple labels, which the authors note may itself favor context lookup. Raventós et al. saw an analogous switch on regression prompts, where a transformer memorizes seen tasks until task count crosses a thresholdthe number of distinct pretraining tasks past which the transformer gives up the Bayes estimator for the tasks it has seen and approaches the Bayes estimator for the distribution that generated them. Reading note: In-context learning as implicit Bayesian inference and then generalizes to new ones.
Variation within a class or ambiguity in its label also favors context lookup. When each class used one identical drawing every time, no model learned in context even at . Every run stored labels instead, with in-weights accuracy near 1. Adding fresh Gaussian pixel noise of scale 0.1 per presentation lifted in-context accuracy to roughly 0.88 at , yet left it at chance at . One non-bursty sequence in ten still sent the model back to its weights. At noise scale 0.5 and , in-context accuracy reached 0.93 while in-weights accuracy fell near zero, showing that harder recognition hurts weight storage more than context matching. Giving each class several possible labels and drawing one per sequence (label multiplicitythe number of labels a class can take; each time the class appears in a sequence one of its labels is drawn at random and kept for the rest of that sequence) had a similar effect. At , in-context accuracy rose from about 0.75 with one label to 0.87 to 0.88 with 2, 5, or 10 labels.
Uniform frequencies omit the heavy skew of natural language, where a few words dominate and most are rare. Rank classes from most common () to rarest. A Zipfian distributiona distribution over classes ranked by frequency in which the probability falls as a power of the rank, ; word frequencies in many languages follow it with exponent near 1 with exponent the Zipf exponent; 0 gives uniform classes and larger values concentrate the data on the top ranks gives rank the rank of a class by its frequency in training, 1 for the most common the probabilitywhich reduces to uniform classes at . Chan et al. swept at and , averaging over the last 100,000 steps across three seeds. In-context accuracy was 0.72, 0.84, and 0.88 at , 0.5, and 1, then fell to chance from onward. In-weights accuracy on the ten most common classes rose from 0.05 at and 0.13 at to 0.94 at , and neared 1 at 1.5 and 2. Classes outside the top ten stayed at chance for every exponent. Only delivered both abilities. Computed here from the distribution, the top ten classes take 29% of the data at while rarer classes keep 71%. At , the top ten take 77% and rarer classes drop to 23%. The paper does not test which share drives the cutoff.
Three caveats qualify the Zipfian results. When the model's in-context test scores over all class labels instead of only the two labels in the context, accuracy drops to about 0.37. The score here (0.72) also sits well below the 0.93 reported for the same nominal setting in the class-count sweep, with no stated difference in setup. Comparisons therefore hold only within each experiment. Because both routes fit bursty sequences, the authors treat in-context learning as an optimization bias that often drifts toward weight storage as training continues.
Architecture determines whether a model can exploit bursty data at all. At 1,600 classes and , Chan et al. tested a vanilla RNNa recurrent network whose hidden state is updated at each step by a nonlinearity applied to a linear map of the previous state and the new input and an LSTMlong short-term memory network: a recurrent network whose state is updated through learned gates that decide what to keep, forget and output at each step with matching depth, hidden size 64, encoder, and loss. Neither ever learned in context. A few recurrent runs did learn in weights nearly as well as the transformer, peaking at 0.63 and 0.67 versus 0.70, so the failure is specific to context lookup. Most settings in the one-run learning-rate and warmup sweep learned nothing in any architecture. A recurrent net must compress all eight context images into a fixed-size state, whereas a transformer attends directly to any position. As a result, this comparison does not separate attention from state size (not in the paper). The in-context test asks for the exact lookup performed by an induction headan attention head that finds an earlier occurrence of the current token and raises the token that followed it, so that A B … A is completed with B. Reading note: Induction heads, though Chan et al. do not inspect internal circuits.
Answerable facts. Real pretraining corpora make it hard to vary a fact's count or wording cleanly, and benchmark questions themselves may appear in training data. Allen-Zhu and Li (2024, 2025) avoid both confounds with synthetic biographies (bioS). Each of the number of people in the biography data, each with a unique full name people gets a unique name and five attributes drawn independently and uniformly from fixed lists: birth date, birth city, university, major, and employer. A sixth attribute, work city, is fixed by the employer's headquarters. Each biography states these six attributes in six sentences chosen from about 50 templates per attribute. Augmented versions add multiple reworded biographies per person, shuffle sentence order, or repeat the full name instead of pronouns. The authors pretrain a model from scratch on the biographies, fine-tune it on questions (“What is the birth city of Anya Briar Forger?”) for half the people, and evaluate on the held-out half. Every test answer must therefore come from the pretraining biographies.
How a fact is phrased in pretraining decides whether a model can later answer questions about it. Allen-Zhu and Li (2024) trained GPT-2-smalla 12-layer, 768-dimensional decoder-only transformer with 124M parameters; here with rotary position embeddings in place of learned ones for 80,000 steps on each variant of 100,000 biographies, matching model and compute across runs. Under the single-biography variant, the model saw each biography about 540 times. Every variant memorized the biographies, exceeding 99% next-token accuracy on attribute tokens. With one fixed biography per person, however, held-out QA accuracy was just 9.7%. Every form of variation helped on its own. Five rewordings per person reached 41.0%, repeating the full name in every sentence reached 48.9%, and five shuffled sentence orders reached 70.0%. Combining rewording and shuffling reached 96.6%. Post-hoc fine-tuning could not rescue single biographies. LoRAlow-rank adaptation, in which the pretrained weights stay frozen and a trainable low-rank update is added to chosen weight matrices, here the query and value matrices and the embedding layer stayed near 10% across every tested rank, and full fine-tuning reached 99% on training people yet stayed under 11% on held-out people. A 682M-parameter model trained for 1,350 passes did no better. Because LoRA leaves pretrained weights intact, forgetting cannot explain the failure. The paper reports no repeated seeds, though the gaps span 10% to 97%.
Linear probes explain why single biographies fail at question answering. The model ties attributes to preceding context instead of the person's name. A P-probea linear classifier on the frozen model's last layer at the token just before an attribute's first appearance in a biography, predicting each of the six attributes from there; only a rank-2 update of the embeddings is trained besides it reads the last layer just before each attribute appears inside a biography. A Q-probea linear classifier on the frozen model's last layer at the end of an input that holds only a person's full name, predicting each attribute; only a rank-16 update of the embeddings is trained besides it reads the last layer at the end of an input holding only the person's full name. On single biographies, the employer stayed at chance until the token directly before it, then jumped to 99.5%. The model stored it as a continuation of earlier biography text (“born on October 2, 1996, studied at MIT, so works at Meta”) instead of an attribute of the name. When a question gives only the name, nothing is left to read. With five shuffled rewordings, nearly every attribute became linearly readable from the name alone, and across variants QA accuracy tracked Q-probe accuracy.
Two other pretraining changes make even single-biography facts answerable by teaching the model to index facts under names. Mixing question-answer pairs for half the people directly into pretraining raised accuracy on the held-out half to 86.6%, even though every person still had one biography. Adding 100,000 extra “celebrity” people with five shuffled rewordings each, then fine-tuning only on celebrity QA, lifted held-out accuracy on single-biography people from 4.4% to 86.8%. On Llama-written biographies, celebrities raised accuracy from 10.0% to 76.3%, while adding general text (WikiBooks) in their place gave 7.3%.
Once facts are learned, storage capacity scales with parameter count and exposure frequency. Allen-Zhu and Li (2025) trained GPT-2 models from 1M to about 0.5B parameters on bioS datasets of 10,000 to 10 million people. They generated fresh templates and sentence orders on the fly, so 1,000 exposurestimes a fact appears in training, counted over every document that states it; when every biography is generated afresh, a person's 1,000 exposures are 1,000 different biographies, so the training text almost never repeats rarely repeated exact text. Write the number of trainable parameters of the model for the trainable parameters and bits of knowledge stored, a lower bound computed from the model's summed loss on the names and attribute values; exact prediction of a person's attributes stores bits beyond the name, where counts the possible attribute combinations for the stored bits, lower-bounded from name and attribute losses. Exact recall stores bits per person beyond the name, where counts the possible attribute combinations. The capacity ratio, bits of knowledge stored per parameter; an 8-bit parameter can hold at most 8 is . At 1,000 exposures, the best model at each data size stored at least 2 bits per parameter, and none exceeded 2.3. At that same exposure count, every model with at least one parameter per 1.8 bits of data stored nearly all of it. The 2-bit ratio held across depth, width, data variants, and Llama and Mistral architectures, but fell to about 1 bit per parameter at 100 exposures. Rewriting cost no capacity. Both 40 Llama 2 rewrites and a single fixed biography read 1,000 times approached 2 bits per parameter, though includes memorized facts that remain unanswerable. Extrapolating to 14B bits for a 7B model assumes every fact appears roughly 1,000 times in varied form.
Unlearnable junk tokens severely erode useful capacity, and a simple source tag recovers most of the loss. In the junk experiment, 1/8 of training tokens were useful biographies and 7/8 came from 100 million other people seen less than once each, supplying random facts that could not be learned. At 100 exposures per useful fact, useful capacity dropped by up to 20 times. Even at 1,000 exposures, it stayed 1.3 times below the junk-free 100-exposure run. Repetitive junk (1,000 extra people seen many times) caused no harm. Prepending one special token to every useful biography, without telling the model its meaning, shrank the 100-exposure penalty from 20-fold to 2-fold. At 300 exposures, the tagged run matched the junk-free 100-exposure run. The model learned from the tag which documents to store; the authors liken the token to a domain prefix such as wikipedia.org. This test covers only one kind of junk (unlearnable random facts) with at most 1 million useful people. The authors searched learning rates more widely on runs where junk hurt, which makes a tuning artifact unlikely.
Counts in released models. In released language models, closed-book question accuracy tracks how often the question's subject and answer co-occur in pretraining data. Kandpal et al. (2023) entity-linkedtagged each mention of a named thing with its identifier in a knowledge base (DBpedia or Wikidata), so that different spellings of one entity count together The Pile, ROOTS, C4, OpenWebText, and Wikipedia. For each TriviaQAa benchmark of trivia questions written by enthusiasts, answered here closed-book, with the answer scored by exact match and Natural Questionsa benchmark of real Google search queries with answers from Wikipedia, answered here closed-book, with the answer scored by exact match pair, they counted the documents for a question, the number of pretraining documents that contain both the question's main entity and the answer's entity, found by entity linking; for a concept, the number of image-caption pairs whose caption names it and whose image a tagging model labels with it mentioning both entities. In a manual check, 60% of those documents were relevant and 33% stated the answer. Across GPT-Neo (125M to 20B) and BLOOM (560M to 176B), 4-shot closed-book accuracy rose steadily with . BLOOM-176B answered 25% of TriviaQA questions backed by fewer than 10 documents, against over 55% backed by more than 1,000. Counting documents that held only the question entity or only the answer entity stopped predicting accuracy below five co-occurrences, ruling out entity popularity alone.
To test causation, Kandpal et al. retrained a 4.8B model on C4 after removing all relevant documents for 100 sampled TriviaQA questions per count bucket (about 30% of C4). Accuracy fell on those questions, dropping more where more documents were removed and changing little where the original model already sat near zero. Because this single retrained run also saw 30% fewer tokens and the paper did not report accuracy on untouched questions, the test shows that the documents matter without isolating the exact share. Scaling model size helps only slowly on rare facts. On Natural Questions with fewer than 100 relevant documents, BLOOM accuracy rose linearly in log parameter count across six sizes, reaching human or supervised-retrieval accuracy by extrapolation only beyond parameters. Placing three Wikipedia paragraphs retrieved by BM25a classical keyword-matching retrieval score built from term frequencies and inverse document frequencies in the prompt raised accuracy most on those rare questions.
Vision-language models show the same log-linear frequency dependence across 4,029 concepts. Udandarao et al. (2024) counted pretraining image-caption pairs across CC-3M, CC-12M, YFCC-15M, and LAION-400M that both named a concept in the caption and matched an image tagger. Across 10 CLIPcontrastive language-image pretraining, which trains an image encoder and a text encoder so that matching image-caption pairs have similar embeddings; it classifies zero-shot by comparing an image with the embedded class names models, zero-shot classification and retrieval recall scaled log-linearly with concept count :with intercept and a roughly constant gain per tenfold increase in . Aesthetic and text-alignment scores across 24 text-to-image models trained on LAION-Aesthetics followed the same log-linear trend. That trend survived two controls. It held after deleting the 50 million images nearest the test sets and retraining CLIP on LAION-200M. It also held when CLIP was trained on 30 million fully synthetic image-caption pairs with a shifted concept distribution. The fit compares different concepts inside fixed models without varying any single concept's frequency. Reading it as “a concept requires exponentially more examples for a linear gain” is therefore an inference from the cross-section.
Small corpora. For a corpus too small to supply varied exposures, generating synthetic text about its entities puts its facts into the weights. Yang et al. (2025) tested this on the 265 articles and short books of QuALITYa reading-comprehension benchmark of long English documents, mostly fiction and journalism of about 5,000 tokens each, with four-option multiple-choice questions written for each document (1.3M tokens), using 4,609 questions rewritten to name their source document so they can be answered closed-book. Their method, EntiGraph, prompts gpt-4-turbo to extract each document's salient entities and write how pairs and selected triples relate in the document. Continued pretraining of Llama 3 8B for 2 epochs on 455M EntiGraph tokens with 10% RedPajamaan open reproduction of the Llama pretraining corpus, mostly web text, used here as replay so that the model keeps its general abilities replay lifted closed-book accuracy from 39.5% to 56.2%. Accuracy scaled log-linearly over random subsets of those synthetic tokens. By contrast, continued pretraining on the raw documents themselves scored 38.2%, with epochs and replay tuned on held-out questions. EntiGraph also beat closed-book GPT-4 (51.3%), which rules out simple transfer of the generator's prior knowledge, and beat three-prompt paraphrases at matched token counts. Adding retrieval raised the EntiGraph model to 62.6%, against 60.4% for the base model, so weight knowledge complements retrieval. The paper reports no repeated seeds, and a manual check of a few books found no factual errors.
A random-graph toy model accounts for both the log-linear rise and its ceiling. Represent the source as a directed graph on entities where each ordered pair is linked with small probability. Assume training memorizes any relation stated in training text. Each synthetic document samples an entity pair. If a path connects them in the source graph, the document states the relations from the first entity to every node along that path. Short paths fill quickly and long paths slowly, so after synthetic documents the known fraction is a mixture of exponentials:Here the fraction of entity pairs whose relation the source states, the toy model's accuracy before any synthetic text; the paper writes is the fraction stated in the source, the increase in the known fraction as ; is the fraction of pairs joined by a path in the source graph is the fraction joined by an unstated path, and the share of the unfilled pairs that are filled at rate per synthetic document; pairs closer in the source graph have larger rates weights fill rates . The curve rises rapidly, follows a long near-log-linear stretch, and plateaus at . A three-term fit with seven constants matches QuALITY up to 455M tokens, showing consistency without testing the model's assumptions. Paraphrasing mainly restates edges already in , matching its flatter curve, though the paper does not model paraphrasing directly.
Consequences and limits. To keep in-context learning alongside stored facts, Chan et al.'s results favor skewed, bursty class frequencies near Zipf exponent 1 rather than rebalancing to uniform as supervised and RL datasets often do. That recipe is untested outside Omniglot, and the best exponent may shift with the training regime. Rare facts that must be answerable should enter pretraining in varied forms, since fine-tuning failed to unlock memorized single-form facts. A source tag on each document cheaply guards against unlearnable junk. For small private corpora, entity-centered synthetic expansion with continued pretraining and general-text replay puts facts into weights. Several limits remain. Chan et al. use one image dataset with loss only on the final query, unlike next-token language modeling, and Allen-Zhu and Li use templated biographies. The 2-bit capacity ratio and source-tag gains remain untested on web text at scale. EntiGraph is untested with a generator no stronger than the trained model, and on documents where invented relations are more likely. No experiment in these papers tests whether adding documents for one fact moves its accuracy along the cross-sectional curve.
Terms
- In-context learning
- labeling new inputs from examples in the input, with no weight update
- In-weights learning
- answering from labels stored in the weights during training
- Bursty sequence
- the query's class and one other each appear three times among eight context pairs
- Both properties needed
- with 100 classes, or with 1,600, gave no in-context learning
- Trade-off
- from 0 to 1: in-context 0.50 to 0.77, in-weights 0.91 to zero
- Variable meaning
- several labels per class, or more variation within a class, favor the context
- Zipf sweet spot
- at 12,800 classes: top ten classes 29% of data, stored; tail keeps in-context learning
- Architecture
- vanilla RNNs and LSTMs never learned in context, even in runs that learned in their weights
- Storage without extraction
- a model can reproduce a fact token by token and still fail to answer a question about it, when the fact is tied to the preceding text rather than to the subject's name
- Knowledge augmentation
- rewording, sentence shuffling and full names in pretraining data; held-out QA 9.7% to 96.6% at fixed model and compute
- Celebrity effect
- varied biographies of other people in pretraining raise accuracy on people with one biography (4.4% to 86.8%)
- Capacity ratio
- ; at least 2 bits per parameter after 1,000 exposures per fact, about 1 after 100 (the best model at each data size)
- Junk and source tags
- 7/8 unlearnable facts cut useful capacity by up to 20 times; one tag token on useful data cut the loss to 2 times
- Relevant documents
- , documents where a question's entity and the answer's entity co-occur; BLOOM-176B 25% below 10, over 55% above 1,000
- Log-linear trend
- accuracy : each tenfold increase in examples adds about the same amount (fit across concepts, not a change to any one concept)
- Deletion test
- a 4.8B model retrained without the relevant documents lost accuracy on those questions, more where more were removed
- EntiGraph
- extract a document's entities, then generate text on how pairs and triples relate; 39.5% to 56.2% at 455M tokens on QuALITY
- Limit of synthetic text
- in the toy model, only relations joined by a path in the source can be added:
- Evidence range
- causal in synthetic data (under 1M parameters for in-context learning, at most about 0.7B for facts); correlational in released models
Sources
- Stephanie C. Y. Chan, Adam Santoro, Andrew K. Lampinen, Jane X. Wang, Aaditya K. Singh, Pierre H. Richemond, James L. McClelland, and Felix Hill. Data Distributional Properties Drive Emergent In-Context Learning in Transformers. NeurIPS, 2022.
- Zeyuan Allen-Zhu and Yuanzhi Li. Physics of Language Models: Part 3.1, Knowledge Storage and Extraction. ICML, 2024.
- Zeyuan Allen-Zhu and Yuanzhi Li. Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Laws. ICLR, 2025.
- Nikhil Kandpal, Haikang Deng, Adam Roberts, Eric Wallace, and Colin Raffel. Large Language Models Struggle to Learn Long-Tail Knowledge. ICML, 2023.
- Vishaal Udandarao, Ameya Prabhu, Adhiraj Ghosh, Yash Sharma, Philip H. S. Torr, Adel Bibi, Samuel Albanie, and Matthias Bethge. No “Zero-Shot” Without Exponential Data: Pretraining Concept Frequency Determines Multimodal Model Performance. NeurIPS, 2024.
- Zitong Yang, Neil Band, Shuangping Li, Emmanuel Candès, and Tatsunori Hashimoto. Synthetic Continued Pretraining. ICLR, 2025.
Connected notes
- Understanding deep learning requires rethinking generalizationGeneralization bounds · Implicit bias of the optimizer
SGD started at zero stays in the row space of the data, so on a linear model it returns the minimum-norm interpolant, which reaches 1.2% test error on raw MNIST with no regularization.
- The information exponentHigh-dimensional SGD · Abrupt transitions at a critical ratio
Online SGD's overlap with a hidden direction grows at the rate signal/noise, which is tiny near a random start, so escaping takes about samples for information exponent (the order of the first nonzero Hermite term) and almost all the samples are used up before the overlap grows.
- Double descentBenign overfitting · Implicit bias of the optimizer
Past the interpolation threshold every model fits the data, so the test risk is set by which interpolant is chosen, and the minimum-norm one spreads the noise over more directions as features are added, which gives the second descent.
- In-context learning as implicit Bayesian inferenceIn-context learning · Abrupt transitions at a critical ratio
At dimension 8, below about pretraining tasks more data per task pulls the transformer toward the Bayes rule for the tasks it saw, and above toward ridge, with the threshold growing roughly linearly in dimension.