# LECAT: Measuring LLM Category Learning from Pretraining Data

LECAT tests how LLMs learn categories from their pretraining text

Jimin Mun, Maarten Sap, Yanai Elazar · arXiv · 2026-11-13

- **Problem** Studies of pretraining cover factual knowledge well, but how LLMs learn to apply categories from text is poorly understood. That gap matters for reducing harmful stereotypes.
- **Method** LECAT scores category knowledge from next-token probabilities on short prompts instead of long generations. It also classifies pretraining text into five expression types, such as verbatim repetition and exceptions.
- **Results** In controlled training from scratch, data with only verbatim repetition scored 0.03 on strengthening-over-base, versus 0.62 for context-dependent data.

## Why category knowledge is hard to trace

Category membership lets a learner carry shared properties over to new members, so knowing airplanes are fast covers unseen airplanes. The same inference goes wrong when it is applied inaccurately, as with social stereotypes. A robust learner therefore also needs exceptions, counter-stereotypes, and context that changes a rule.

Prior work shows that language models acquire factual knowledge from pretraining data, which has driven research on data curation. Category knowledge has received far less study, so how models acquire and use it from data is poorly understood. That gap matters because the same associations can reduce harmful stereotypes or support more creative category representations.

One question is how well a model applies category knowledge across different contexts. A second question is which kinds of pretraining text produce that ability. Answering the second question means inspecting the training data, not only the model outputs. LECAT measures five types of expressions in data, such as verbatim repetition, exceptions, and weakening contexts.

Pretraining text can encode category knowledge in many forms, which makes the signal hard to isolate. Pretraining data are heterogeneous, so correlations between data and model behavior remain correlational. The authors therefore train a model from scratch on controlled data, because real corpora could confound the findings.

## Reading category knowledge from next-token probabilities

The key idea is to read category knowledge from a model's next-token probabilities on short prompts instead of from long generations. LECAT-Output checks three behaviors that human category learning also relies on: memorization, generalization and contextual flexibility. Each behavior gets its own prompts, built from a base context, invariant and erroneous contexts, and strengthening and weakening contexts.

For a prompt x and target token y\_target, the measure is the target's log-probability minus the log-probability of the most likely next token. \\\[ G(x, y\_{\\text{target}}) = \\log p\_{\\theta\_{t\_i}}(y\_{\\text{target}} \\mid x) - \\log p\_{\\theta\_{t\_i}}(y\_{\\max} \\mid x) \\\] Values closer to 0 mean the model favors the target nearly as much as its top competitor, so it is more confident in the target.

For a feature that spans several tokens, the token log-probabilities are averaged.

Memorization uses the base prompt, such as 'Airplanes are', with fast as the target. Generalization compares an invariant context such as 'red airplanes are' with an erroneous context such as 'slow airplanes are'. Flexibility compares a strengthening context, such as an airplane with a new engine, with a weakening context, such as an airplane with an old engine.

A flexible learner should order these probes as \\( G\_{str} \> G\_{base} \\gtrsim G\_{inv} \> G\_{weak} \> G\_{err} \\). Each pairwise ordering counts as a pass or a fail, and the pass rate is the share of category-feature pairs that pass it. The authors test one ordering at a time, such as G\_str over G\_base, rather than combining them into one score.

## Checking the probability score against generated text

The probability score is only useful if it tracks what models actually write, so the authors checked it against free-form generations. For example, "Red airplanes are known for being" is one such template built from a probe. Qwen3.8-27B-FP8 serves as the LLM judge, and it reads each free-form generation. For each generation, the judge annotates whether the feature can be inferred and how strong the inference is.

The authors compare these judge annotations with their log-probability measure across Pythia and Olmo3. Both annotations correlate positively and significantly with that measure. Spearman ρ= 0.88 covers feature inference, and ρ= 0.87 covers inference strength, with both p \< .01. The full results sit in Appendix B.1, so the main text only reports these two coefficients.

The authors read this agreement as evidence that the probability measure is a valid and computationally efficient proxy for category learning. The check covers only these two open model families, so it doesn't show the same agreement for other models.

## How pretraining text expresses a category

LECAT-Data builds on cognitive science work to define how a document teaches a category-feature link. The same definitions guide both the analysis of real corpora and the generation of synthetic training data.

Verbatim repetition is the simplest signal, since it states a category-feature claim without variation, contrast, or context. A Pile excerpt calling a skyscraper a tall, continuously habitable building gives the pair skyscraper and tall directly. Instantiations work differently, because they describe one member with extra attributes that don't bear on the feature.

An excerpt about a woman who is calm and empathetic gives the pair woman and empathetic through one individual.

An exception is a category member that lacks the typical feature, with no explanatory context attached. A small moose shot on opening day gives the pair moose and large, but it has no explanation for the missing size. Dependent contexts come in two forms, strengthening and weakening, and they test whether context changes the feature. A strengthening excerpt about oak charcoal keeping ovens always hot supports the pair oven and hot.

A weakening excerpt about two blunt and rusted knives gives the pair knife and sharp. Exceptions and weakening contexts both show a missing feature, so only the stated context separates them.

An LLM classifier assigns each co-occurring excerpt to an expression type. Human validation of the classifier reached 83% agreement, which the authors used to check its labels. Each category-feature pair gets 4000 excerpts, split into 2000 co-occurrence excerpts and 2000 category-only excerpts. For training, the authors mix expression types randomly as Dall, or order them as a curriculum called Dcurriculum.

The curriculum runs from easy to hard: repetition, instantiation, exceptions, then dependent contexts.

## Scale changes which orderings pass

The authors ran their probes on ten Pythia sizes, from 14m to 12b, and on two OLMo 3 sizes, 7b and 32b. A pair passes if the feature gets a higher score under the first context than under the second one. The base-over-invariant ordering checks whether a model keeps a feature when the context is irrelevant.

The base-invariant pass rate climbs with scale, starting at 71.4% for Pythia-14M. It reaches 95.5% for Pythia-2.8B and 6.9B. The strengthening ordering moves the other way, falling from 81.9% for Pythia-14M to 51.3% for Pythia-6.9B. OLMo-3-32B reaches 49.7% on the same ordering, which is near chance. The authors hypothesize that larger models memorize the base association more strongly rather than becoming context sensitive.

Figure 1 plots every ordering pair against model size for both families. Solid lines show Pythia, dashed lines show OLMo 3, and error bars are 95% Wilson intervals. Weakening contexts rank above erroneous ones in only 10.1 to 24.1% of cases. The weakening-invariant edge stays between 44.7 and 58.3%, close to chance. Even the largest models rarely separate a weakened association from a contradicted one.

![Figure 1: Pass rate for each ordering pair by model size. A pair passes when the model scores the feature higher under the first context than under the second;…](https://refivu.com/papers/a9acf13c-34dc-44f5-b84d-62a081413434/figures/figure-a93d03acd9a9f8be5d63684d404ebeeb.png?thumb=512)

**Figure 1** : Pass rate for each ordering pair by model size. A pair passes when the model scores the feature higher under the first context than under the second; “invari- ance” is the irrelevant context, and base ≳ invariance allows a small tolerance. Solid lines are Pythia and dashed lines are OLMo 3; error bars are 95% Wilson intervals, and the dotted line marks chance (0.5).

[Original paper](https://arxiv.org/abs/2611.18419v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jimin Mun, Maarten Sap, Yanai Elazar · LECAT: Measuring LLM Category Learning from Pretraining Data · Original paper figure · Extracted the figure area from page 5 of the original PDF.

## Pretraining factors and pass rates

The authors correlated each model's mean pass rate per order pair with statistics from its pretraining corpus. The corpus factors were document-level PMI between category and feature, the share of each expression type, and evenness across expression types. They used Pearson r, and a correlation counted as significant only when its Spearman correlation survived a two-sided t-test with Benjamini–Hochberg FDR correction at p \<0.05.

For Pythia models up to 410M parameters, PMI showed no relation to pass rate, with r between −0.05 and 0.01. From Pythia-1B onward, the PMI correlation turned consistently positive, at r = 0.07 to 0.14. Only Pythia-12B reached significance, at r = 0.13. OLMo-3 pointed the same way, with r = −0.08 at 7B and r = 0.09 at 32B, but neither model was significant.

Ddep. strengthen excerpts had the largest positive correlations, peaking at r = 0.21 for Pythia-410M. For OLMo-3-32B, at r = 0.16, it was the only expression type that reached significance. Dexception excerpts were negatively correlated at every Pythia scale, from −0.04 to −0.18, but none survived correction. Drepetition excerpts stayed negative too, from −0.04 to −0.14 for Pythia and at −0.13 and −0.11 for OLMo-3.

Dinstantiation and expression-type evenness showed no consistent trend.

Only two model-factor pairs survived FDR correction, so the correlations stay weak overall. Because the pretraining data are heterogeneous, the authors treat these findings as correlational. The analysis compares corpus statistics with pass rates, so it doesn't establish that any factor causes better learning.

## A controlled corpus with injected categories

Open pretraining corpora mix many kinds of documents, so any link between expression type and learning could be confounded. The authors build a controlled corpus by adapting TinyStories and injecting two fictional category-feature relations, valins–poor and pezzdens–fast. One pair mimics a societal category and the other an object category.

Because each expression type is generated on its own, the training data can be controlled per expression type rather than inferred from web text.

Each category knowledge expression is generated with GPT-4o mini and validated with GPT-5-mini. Because of computational budget limits, they use a smaller model that has been shown to learn from limited data.

Each training setting is either a single expression type, the random mixture Dall, or the curriculum Dcurriculum. Pass rates average the final 25% of training, which covers 265 checkpoints from step 79,500 to 105,900, and both category-feature pairs. The authors also use four open-ended generation prompts per category to check generation quality.

## What each training mixture teaches

The controlled runs ask which expression types help flexible learning, and the full mixture gives the answer's baseline. Drepetition, Dinstantiation and Dexception reach overall pass rates of 0.47, 0.45 and 0.40 in Table 2. The single-type settings therefore range from 0.40 to 0.49 once Dcurriculum and Ddependent are included. Dcurriculum and Ddependent follow the mixture closely, at 0.49 each.

Repetition-only data gives a Str.\>Base pass rate of 0.03, the lowest of all settings. It preserves the default association best, with 0.90 for Base≥Irr. The authors read this as evidence that data repeating an association without context doesn't support flexible learning. Strengthening contexts almost never raise the feature's probability above the base sentence, so the model can't tell context from the bare claim.

Context-dependent data reverses that pattern, with 0.62 for Str.\>Base and 0.35 for Base≥Irr. It gives the strongest contextual strengthening, but it weakens the default association. This matches the positive correlation of Ddep. strengthen excerpts seen in the open-source models, where the percentage peaked at Pythia-410M with r = 0.21. Exception data behaves differently: it scores 0.97 for Irr.\>Weak., but only 0.17 for Base≥Irr.

It also scores 0.01 for Weak.\>Err., so it almost never separates a weakened association from a contradicted one. The authors connect this to the negative but non-significant exception correlation in Pythia.

Across all settings, Irr.\>Weak. is satisfied most often, at 0.86 to 0.97. Weak.\>Err. is satisfied least often, at 0.01 to 0.13. So the authors conclude that data composition, rather than raw exposure to a pair, decides whether flexible learning appears. Flexible learning seems to need both a default association and data that shows how context modulates it.

## Where the LECAT findings stop

The open-model results stay correlational, because the pretraining data are heterogeneous. Only two model-factor pairs survive FDR correction, so most data-factor trends fall short of significance. The authors note that most of the expression-type trends don't reach significance on their own.

The controlled study is meant to isolate these effects, but it rests on two fictional category-feature pairs. They didn't scale these controlled runs to larger models, because compute limits made that infeasible.

The evaluation probes are few, with three each for memorization and generalization and six each for contextual sensitivity. The authors say their data variations, probes and training settings are not exhaustive. They also argue that the metric and probe choices, though intuitive, could be explored further. The LLM-as-a-judge check covers only Pythia and OLMo 3 generations.

Applying category learning to stereotypes raises ethical concerns, since memorizing harmful stereotypes is itself a problem. The authors flag this area as needing further investigation and careful consideration. So the findings hold for these models, probes and pairs, and they don't yet tell us how larger models behave.

## Paper info

- **Authors**: Jimin Mun, Maarten Sap, Yanai Elazar
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-13
- **Added**: 2026-11-16
- **Updated**: 2026-11-13
- **Version**: v1
- **arXiv**: 2611.18419
- **Category**: cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.18419v1) · [PDF ↗](https://arxiv.org/pdf/2611.18419v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Humans know that airplanes are fast, that this extends to red airplanes, but that it does not hold for broken airplanes. How do LLMs acquire category knowledge that humans learn and apply effortlessly? We introduce LeCat, a two-part framework to analyze LLM's Learning of Category knowledge. First, we use LeCat to evaluate models on their ability to learn category knowledge, distinguishing between three cases: memorization of in-domain category knowledge, generalization to unseen instances, and ability to flexibly use knowledge in appropriate contexts. Then, we use LeCat to trace how this knowledge can be learned in pretraining from text that may encode category knowledge in various ways, such as verbatim repetition or exceptions, which we refer to as forms of "knowledge expression". We first assess open-source pretrained models using 199 curated category-feature pairs and analyze their training data. Our findings suggest that strengthening context and category-feature co-occurrence likelihood (PMI) improve learning for larger models and verbatim rule-like statements diminish flexible category learning. To systematically isolate these effects, we then train a 68M model from scratch with precise control over the categorical information each sees in their training data, confirming that verbatim repetition reduces flexible learning but mixture of diverse knowledge expressions lead to more robust category learning. Together, our findings highlight that while contextual flexibility is persistently difficult for models, how category knowledge is expressed in pretraining greatly impacts models' acquisition of robust category knowledge.

## Quote from the paper

Jimin Mun, Maarten Sap, Yanai Elazar (2026). LECAT: Measuring LLM Category Learning from Pretraining Data. arXiv:2611.18419v1. https://arxiv.org/abs/2611.18419v1

**BibTeX**

```
@misc{mun2026lecat,
  title = {{LECAT: Measuring LLM Category Learning from Pretraining Data}},
  author = {Jimin Mun and Maarten Sap and Yanai Elazar},
  year = {2026},
  eprint = {2611.18419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18419v1}
}
```

## Other paper commentary

- [Right Token, Right Time: From Per-Token Gating to Trajectory-Aware Activation Steering](https://refivu.com/en/papers/0f4151bb-65f7-42ff-9693-d1cea802586a-right-token-right-time-from-per-token-gating.md)
- [GraphScent: Calibrating Directional Relevance Signals for Bounded-Context Code Localization](https://refivu.com/en/papers/f485b130-6849-48e3-832f-e8d259afa756-graphscent-calibrating-directional-relevance-signals-for.md)
- [Superfluid: Local AI Server for Distributed LLM Inference](https://refivu.com/en/papers/8e6a37d1-98da-443c-a248-1340a46ef81c-superfluid-local-ai-server-for-distributed-llm-inference.md)
- [V-JEPA-LM: Video-Language Models That Read Dynamics Beyond Static, Text-Aligned Representations](https://refivu.com/en/papers/c436a528-5f97-4e2f-810b-9095107f034a-v-jepa-lm-video-language-models-that-read.md)
- [Certified Improvements to Best-Known Thomson-Problem Configurations with a Search Pipeline Built with Large Language Model Agents](https://refivu.com/en/papers/b18a5aa7-16d6-47d1-bbee-295dfbb69469-certified-improvements-to-best-known-thomson-problem.md)
- [Learning When Diffusion Language Models Should Regenerate](https://refivu.com/en/papers/a1c3cee4-780d-4f0c-9468-c116bf020727-learning-when-diffusion-language-models-should-regenerate.md)
- [BLiMP-RO: A Benchmark of Linguistic Minimal Pairs for Romanian](https://refivu.com/en/papers/08dabea6-d4d2-4848-af54-4ec2088d0cde-blimp-ro-a-benchmark-of-linguistic-minimal-pairs.md)
- [Aligning AI Teams](https://refivu.com/en/papers/a04c980b-fca1-4279-82a8-70ecffb29c95-aligning-ai-teams.md)
- [Causally Constrained and Uncertainty-Aware Cardiopulmonary Risk Prediction](https://refivu.com/en/papers/2c2b5714-498e-4c41-a2bc-142d04049204-causally-constrained-and-uncertainty-aware-cardiopulmonary.md)
- [Emulating physics-based XCO2 retrievals across OCO-2 viewing modes with compact neural networks](https://refivu.com/en/papers/6eac8a41-4497-46c1-a78e-3b47e416ce0a-emulating-physics-based-xco2-retrievals-across-oco-2.md)
- [Experts Across Schemas: Agent-Guided Mixture-of-Relational-Experts for Cross-Database Generalization](https://refivu.com/en/papers/76b43bb6-c77c-4c61-9629-5e9b2ce3f959-experts-across-schemas-agent-guided-mixture-of-relational.md)
- [PROOF: Perceptive Robustness via Out-of-Distribution Fallback for Legged Locomotion](https://refivu.com/en/papers/279ca1a1-82a3-47dc-b2cc-f17e67e707ed-proof-perceptive-robustness-via-out-of-distribution-fallback.md)

## Terms in this paper

- [The Pile](https://refivu.com/en/terms/fd2fd47693ec-the-pile)
- [LLM-as-a-Judge](https://refivu.com/en/terms/ab8377a00158-llm-as-a-judge)
- [memorization](https://refivu.com/en/terms/71212e2920ee-memorization)
- [generalization](https://refivu.com/en/terms/e48ace30330d-generalization)
- [evenness](https://refivu.com/en/terms/66aeba6c533b-evenness)
- [OLMo 3](https://refivu.com/en/terms/d131ec3986a1-olmo-3)
- [PMI](https://refivu.com/en/terms/4391587254aa-pmi)
- [TinyStories](https://refivu.com/en/terms/f9ee43c48137-tinystories)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/a9acf13c-34dc-44f5-b84d-62a081413434-lecat-measuring-llm-category-learning-from-pretraining-data)
