Impact of Pretraining Term Frequencies on Few-Shot Reasoning
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
Pretrained Language Models (LMs) have demonstrated ability to perform numerical reasoning by extrapolating from a few examples in few-shot settings. However, the extent to which this extrapolation relies on robust reasoning is unclear. In this paper, we investigate how well these models reason with terms that are less frequent in the pretraining data. In particular, we examine the correlations between the model performance on test instances and the frequency of terms from those instances in the pretraining data. We measure the strength of this correlation for a number of GPT-based language models (pretrained on the Pile dataset) on various numerical deduction tasks (e.g., arithmetic and unit conversion). Our results consistently demonstrate that models are more accurate on instances whose terms are more prevalent, in some cases above 70% (absolute) more accurate on the top 10% frequent terms in comparison to the bottom 10%. Overall, although LMs exhibit strong performance at few-shot numerical reasoning tasks, our results raise the question of how much models actually generalize beyond pretraining data, and we encourage researchers to take the pretraining data into account when interpreting evaluation results.
Key facts. Cited by 142 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 40 of its 55 references that are in the map. First posted on arXiv 15 Feb 2022.
Builds on
40 of 55 references.
References · 40
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2018Datasheets for Datasetscited by 1,371
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 864
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2018Annotation Artifacts in Natural Language Inference Datacited by 656
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
28 more
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2018Gender Bias in Coreference Resolutioncited by 438
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2018Hypothesis Only Baselines in Natural Language Inferencecited by 291
- 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 246
- 2019Commonsense Knowledge Mining from Pretrained Modelscited by 189
- 2021Masked Language Modeling and the Distributional Hypothesis: Order Word Matters Pre-training for Littlecited by 176
- 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
- 2021Counterfactual Memorization in Neural Language Modelscited by 155
- 2020Question and Answer Test-Train Overlap in Open-Domain Question Answering Datasetscited by 137
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2019End-to-End Bias Mitigation by Modelling Biases in Corporacited by 127
- 2020Birds have four legs?! NumerSense: Probing Numerical Commonsense Knowledge of Pre-trained Language Modelscited by 110
- 2021Competency Problems: On Finding and Removing Artifacts in Language Datacited by 91
- 2021What's in the Box? A Preliminary Analysis of Undesirable Content in the Common Crawl Corpuscited by 79
- 2016A Thorough Examination of the CNN/Daily Mail Reading Comprehension Taskcited by 71
- 2020We Need to Talk About Random Splitscited by 70
- 2021Memorization vs. Generalization: Quantifying Data Leakage in NLP Performance Evaluationcited by 69
- 2018What Makes Reading Comprehension Questions Easier?cited by 59
- 2021Frequency Effects on Syntactic Rule Learning in Transformerscited by 59
- 2019What's in a Name? Reducing Bias in Bios without Access to Protected Attributescited by 51
- 2018Numeracy for Language Models: Evaluating and Improving their Ability to Predict Numberscited by 42
- 2020Temporal Common Sense Acquisition with Minimal Supervisioncited by 38
- 2021Evaluating Entity Disambiguation and the Role of Popularity in Retrieval-Based NLPcited by 30
- 2020Poison Attacks against Text Datasets with Conditional Adversarially Regularized Autoencodercited by 27
- 2020Know thy corpus! Robust methods for digital curation of Web corporacited by 6
Built on by
Citing papers per year: 2022: 47; 2023: 45; 2024: 22; 2025: 22; 2026: 6.
142 papers.
Sort:
By area:
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022Towards Reasoning in Large Language Models: A Surveycited by 593
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 334
38 more
- 2023Data Selection for Language Models via Importance Resamplingcited by 322
- 2022Large Language Models Are Reasoning Teacherscited by 318
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2022Data Contamination: From Memorization to Exploitationcited by 234
- 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 221
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2023Time Travel in LLMs: Tracing Data Contamination in Large Language Modelscited by 175
- 2022Language models show human-like content effects on reasoning taskscited by 171
- 2023Birth of a Transformer: A Memory Viewpointcited by 154
- 2023Supervised Pretraining Can Learn In-Context Reinforcement Learningcited by 137
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
- 2022GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Modelscited by 127
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2023Teaching Arithmetic to Small Transformerscited by 121
- 2023ReviewerGPT? An Exploratory Study on Using Large Language Models for Paper Reviewingcited by 118
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
- 2022State-of-the-art generalisation research in NLP: A taxonomy and reviewcited by 97
- 2023Mitigating Label Biases for In-context Learningcited by 88
- 2022Mind's Eye: Grounded Language Model Reasoning through Simulationcited by 83
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2023In-Context Learning through the Bayesian Prismcited by 78
- 2023How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with Representationscited by 72
- 2023Generative Speech Recognition Error Correction with Large Language Models and Task-Activating Promptingcited by 71
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2022A Causal Framework to Quantify the Robustness of Mathematical Reasoning with Language Modelscited by 68
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scalecited by 64
- 2023Understanding In-Context Learning in Transformers and LLMs by Learning to Learn Discrete Functionscited by 62
- 2023In-context Example Selection with Influencescited by 60
- 2023GPT4AIGChip: Towards Next-Generation AI Accelerator Design Automation via Large Language Modelscited by 59
- 2022Prototypical Calibration for Few-shot Learning of Language Modelscited by 58
- 2022Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictionscited by 57
- 2022Can Large Language Models Truly Understand Prompts? A Case Study with Negated Promptscited by 56
- 2025FineVision: Open Data Is All You Needcited by 51
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 47
50 most cited of 142 All 142 (JSON)
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMs28 Sep 2026
- 2026What Really Improves Mathematical Reasoning: Structured Reasoning Signals Beyond Pure Code19 May 2026
- 2026X-RAY: Mapping LLM Reasoning Capability via Formalized and Calibrated Probes5 Mar 2026
- 2026Where Do Images Come From? Analyzing Captions to Geographically Profile Datasets10 Feb 2026
- 2026AfroScope: A Framework for Studying the Linguistic Landscape of Africa19 Jan 2026
- 2026Large Language Models and Algorithm Execution: Application to an Arithmetic Function12 Jan 2026
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformers21 Dec 2025
- 2025MERGE: Minimal Expression-Replacement GEneralization Test for Natural Language Inference28 Oct 2025
- 2025FineVision: Open Data Is All You Need20 Oct 2025
- 2025Beyond prior knowledge: The predictive role of knowledge-building in Tutor Learning25 Aug 2025
- 2025The Variance Paradox: How AI Reduces Diversity but Increases Novelty20 Aug 2025
- 2025Strategic Intelligence in Large Language Models: Evidence from evolutionary Game Theory3 Jul 2025
38 more
- 2025Thinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Models30 Jun 2025
- 2025Improving Rationality in the Reasoning Process of Language Models through Self-playing Game28 Jun 2025
- 2025The Automated LLM Speedrunning Benchmark: Reproducing NanoGPT Improvements27 Jun 2025
- 2025Generative or Discriminative? Revisiting Text Classification in the Era of Transformers13 Jun 2025
- 2025Benford's Curse: Tracing Digit Bias to Numerical Hallucination in LLMs2 Jun 2025
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases23 May 2025
- 2025Boosting In-Context Learning in LLMs Through the Lens of Classical Supervised Learning22 May 2025
- 2025ICL CIPHERS: Quantifying "Learning" in In-Context Learning via Substitution Ciphers28 Apr 2025
- 2025Style over Substance: Distilled Language Models Reason Via Stylistic Replication2 Apr 2025
- 2025Lost in Cultural Translation: Do LLMs Struggle with Math Across Cultural Contexts?23 Mar 2025
- 2025Emergent Abilities in Large Language Models: A Survey28 Feb 2025
- 2025Exposing Numeracy Gaps: A Benchmark to Evaluate Fundamental Numerical Abilities in Large Language Models16 Feb 2025
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Features13 Feb 2025
- 2025On the Reasoning Capacity of AI Models and How to Quantify It23 Jan 2025
- 2025UGMathBench: A Diverse and Dynamic Benchmark for Undergraduate-Level Mathematical Reasoning with Large Language Models23 Jan 2025
- 2025Randomly Sampled Language Reasoning Problems Elucidate Limitations of In-Context Learning6 Jan 2025
- 2024Emergence and Effectiveness of Task Vectors in In-Context Learning: An Encoder Decoder Perspective16 Dec 2024
- 2024VASCAR: Content-Aware Layout Generation via Visual-Aware Self-Correction5 Dec 2024
- 2024Relations, Negations, and Numbers: Looking for Logic in Generative Text-to-Image Models26 Nov 2024
- 2024Understanding Chain-of-Thought in LLMs through Information Theory18 Nov 2024
- 2024Can Large Language Models generalize analogy solving like children can?4 Nov 2024
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models7 Oct 2024
- 2024Quantifying Generalization Complexity for Large Language Models2 Oct 2024
- 2024InstaTrans: An Instruction-Aware Translation Framework for Non-English Instruction Datasets2 Oct 2024
- 2024Mitigating Copy Bias in In-Context Learning through Neuron Pruning2 Oct 2024
- 2024LlamaDuo: LLMOps Pipeline for Seamless Migration from Service LLMs to Small-Scale Local LLMs24 Aug 2024
- 2024On Mitigating Code LLM Hallucinations with API Documentation13 Jul 2024
- 2024Understanding Finetuning for Factual Knowledge Extraction20 Jun 2024
- 2024Uncovering Latent Memories: Assessing Data Leakage and Memorization Patterns in Frontier AI Models20 Jun 2024
- 2024Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activations17 Jun 2024
- 2024Estimating the Hallucination Rate of Generative AI11 Jun 2024
- 2024Explicitly Encoding Structural Symmetry is Key to Length Generalization in Arithmetic Tasks4 Jun 2024
- 2024Exploring prompts to elicit memorization in masked language model-based named entity recognition5 May 2024
- 2024PhonologyBench: Evaluating Phonological Skills of Large Language Models3 Apr 2024
- 2024Laying Anchors: Semantically Priming Numerals in Language Modeling2 Apr 2024
- 2024IsoBench: Benchmarking Multimodal Foundation Models on Isomorphic Representations1 Apr 2024
- 2024Towards an Understanding of Stepwise Inference in Transformers: A Synthetic Graph Navigation Model12 Feb 2024
- 2024Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths Aggregation5 Feb 2024
50 newest of 142 All 142 (JSON)
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022Towards Reasoning in Large Language Models: A Surveycited by 593
- 2024GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Modelscited by 533
- 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 334
- 2022Large Language Models Are Reasoning Teacherscited by 318
- 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 221
- 2022Language models show human-like content effects on reasoning taskscited by 171
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2022Text and Patterns: For Effective Chain of Thought, It Takes Two to Tangocited by 128
- 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
- 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
- 2022Mind's Eye: Grounded Language Model Reasoning through Simulationcited by 83
12 most cited of 37 All 37 (JSON)
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMs28 Sep 2026
- 2026What Really Improves Mathematical Reasoning: Structured Reasoning Signals Beyond Pure Code19 May 2026
- 2026X-RAY: Mapping LLM Reasoning Capability via Formalized and Calibrated Probes5 Mar 2026
- 2025Thinking About Thinking: SAGE-nano's Inverse Reasoning for Self-Aware Language Models30 Jun 2025
- 2025Improving Rationality in the Reasoning Process of Language Models through Self-playing Game28 Jun 2025
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases23 May 2025
- 2025Style over Substance: Distilled Language Models Reason Via Stylistic Replication2 Apr 2025
- 2025Lost in Cultural Translation: Do LLMs Struggle with Math Across Cultural Contexts?23 Mar 2025
- 2025On the Reasoning Capacity of AI Models and How to Quantify It23 Jan 2025
- 2025UGMathBench: A Diverse and Dynamic Benchmark for Undergraduate-Level Mathematical Reasoning with Large Language Models23 Jan 2025
- 2025Randomly Sampled Language Reasoning Problems Elucidate Limitations of In-Context Learning6 Jan 2025
- 2024Understanding Chain-of-Thought in LLMs through Information Theory18 Nov 2024
12 newest of 37 All 37 (JSON)
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2024Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activationscited by 32
- 2023Safer-Instruct: Aligning Language Models with Automated Preference Datacited by 27
- 2024Safety Arithmetic: A Framework for Test-time Safety Alignment of Language Models by Steering Parameters and Activations17 Jun 2024
- 2023Safer-Instruct: Aligning Language Models with Automated Preference Data15 Nov 2023
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions20 Dec 2022
- 2025FineVision: Open Data Is All You Needcited by 51
- 2025FineVision: Open Data Is All You Need20 Oct 2025
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 2023Data Selection for Language Models via Importance Resamplingcited by 322
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 291
- 2022Data Contamination: From Memorization to Exploitationcited by 234
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
- 2022Exploring Length Generalization in Large Language Modelscited by 204
12 most cited of 97 All 97 (JSON)
- 2026Where Do Images Come From? Analyzing Captions to Geographically Profile Datasets10 Feb 2026
- 2026AfroScope: A Framework for Studying the Linguistic Landscape of Africa19 Jan 2026
- 2026Large Language Models and Algorithm Execution: Application to an Arithmetic Function12 Jan 2026
- 2025From Shortcut to Induction Head: How Data Diversity Shapes Algorithm Selection in Transformers21 Dec 2025
- 2025MERGE: Minimal Expression-Replacement GEneralization Test for Natural Language Inference28 Oct 2025
- 2025Beyond prior knowledge: The predictive role of knowledge-building in Tutor Learning25 Aug 2025
- 2025The Variance Paradox: How AI Reduces Diversity but Increases Novelty20 Aug 2025
- 2025Strategic Intelligence in Large Language Models: Evidence from evolutionary Game Theory3 Jul 2025
- 2025The Automated LLM Speedrunning Benchmark: Reproducing NanoGPT Improvements27 Jun 2025
- 2025Generative or Discriminative? Revisiting Text Classification in the Era of Transformers13 Jun 2025
- 2025Benford's Curse: Tracing Digit Bias to Numerical Hallucination in LLMs2 Jun 2025
- 2025Boosting In-Context Learning in LLMs Through the Lens of Classical Supervised Learning22 May 2025
12 newest of 97 All 97 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Physics of Language Models: Part 2.2, How to Learn From Mistakes on Grade-School Math Problems
- 2024Procedural Knowledge in Pretraining Drives Reasoning in Large Language Models
- 2022Large Language Models are Zero-Shot Reasoners
- 2025Reasoning Capabilities and Invariability of Large Language Models
- 2024What Do Learning Dynamics Reveal About Generalization in LLM Reasoning?
- 2023Specializing Smaller Language Models towards Multi-Step Reasoning
- 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges
- 2025Front-Loading Reasoning: The Synergy between Pretraining and Post-Training Data