The Cost of Down-Scaling Language Models: Fact Recall Deteriorates before In-Context Learning

Tian Jin, Nolan Clement, Xin Dong, Vaishnavh Nagarajan, Michael Carbin, Jonathan Ragan-Kelley, Gintare Karolina DziugaitearXiv 2023 · DOI · arXiv

Abstract

Scaling down Large Language Models (LLMs) through pruning or smaller dense training does not affect all capabilities equally. This study identifies a "dichotomy of scale": while a model’s ability to recall facts from its pre-training is highly sensitive and deteriorates after losing just 30% of its parameters, its ability to learn and process information "in-context" remains robust even after a 60–70% reduction in size. These findings suggest that factual storage is parameter-intensive, while the "logic" circuits for in-context learning are significantly more compact.

Introduction

As Large Language Models (LLMs) scale to hundreds of billions of parameters, the computational cost of deployment becomes a major bottleneck. To mitigate this, researchers employ "down-scaling" techniques such as weight pruning (removing specific weights) or dense scaling (training smaller models from scratch). While standard metrics like perplexity indicate that smaller models generally perform worse, they fail to distinguish between different types of cognitive failure. Specifically, does a smaller model lose its reasoning engine, or does it simply run out of "storage" for factual data?

This paper disentangles two core capabilities: Fact Recall (retrieving specific information learned during pre-training) and In-Context Learning (ICL) (the ability to use information provided in the immediate prompt to solve tasks).

Methodology

The authors evaluate two primary down-scaling methods:

  1. Weight Pruning: Utilizing one-shot algorithms like SparseGPT and Wanda to remove weights from the OPT and LLaMA families without retraining.
  2. Dense Scaling: Comparing independently trained models of varying sizes (e.g., OPT-30B vs. OPT-6.7B) trained on identical data volumes.

To isolate these skills, the study employs a diverse suite of benchmarks:

  • Fact Recall: TriviaQA and WebQuestions (closed-book).
  • ICL Retrieval: NaturalQuestions and open-book TriviaQA.
  • Overriding Q&A: DissentQA, which uses synthetic contexts to provide "fake" facts that contradict real-world knowledge, forcing the model to prioritize context over internal memory.
  • Algorithmic ICL: Synthetic tasks requiring the model to learn functions (e.g., Linear Classification, Decision Trees) from prompt examples.

The Dichotomy of Scale

The central finding is a massive gap in resilience between factual memory and reasoning logic. Fact recall begins to decline significantly once more than 30% of weights are removed. In contrast, ICL capabilities—the "logic" of the model—survive until the model reaches 60–70% sparsity.

Figure 1: Comparison of Fact Recall (TriviaQA) and ICL (Linear Classification) robustness across sparsity levels.

This suggests that storing a vast library of independent facts requires a linear increase in parameters, whereas ICL may be handled by a smaller, "universal" circuit. Furthermore, the study found that Feed-Forward (FFW) layers are significantly more critical for fact recall than attention layers, whereas both are equally important for ICL.

Figure 2: Performance across Close-book, Open-book, and Overriding tasks, highlighting the resilience of context-driven tasks.

Key Results

  • Fact Recall Sensitivity: Models could only be pruned to 30% sparsity for TriviaQA before suffering a 5% relative drop in accuracy.
  • ICL Robustness: Under the same criteria, models maintained performance up to 60% sparsity for linear classification and 70% for overriding tasks (DissentQA).
  • Dense Scaling Parity: Moving from a 30B to a 13B model (~56% reduction) caused a significant drop in closed-book fact recall but had a negligible effect on open-book or algorithmic ICL tasks.
  • Pruning as Denoising: In some instances, pruning actually improved ICL performance, suggesting that removing "noisy" factual weights can make a model more sensitive to the provided context.

Discussion and Future Work

These results strongly advocate for Retrieval-Augmented Generation (RAG). Since down-scaled models excel at using context but struggle with internal memory, delegating fact storage to an external database is the most efficient deployment strategy.

Future work may explore whether fine-tuning after pruning can recover lost factual knowledge. Additionally, the finding that ICL relies on a compact subset of weights opens new avenues for interpretability research, potentially allowing researchers to isolate the specific neurons responsible for reasoning.

Summary updated

Abstract

How does scaling the number of parameters in large language models (LLMs) affect their core capabilities? We study two natural scaling techniques -- weight pruning and simply training a smaller or larger model, which we refer to as dense scaling -- and their effects on two core capabilities of LLMs: (a) recalling facts presented during pre-training and (b) processing information presented in-context during inference. By curating a suite of tasks that help disentangle these two capabilities, we find a striking difference in how these two abilities evolve due to scaling. Reducing the model size by more than 30\% (via either scaling approach) significantly decreases the ability to recall facts seen in pre-training. Yet, a 60--70\% reduction largely preserves the various ways the model can process in-context information, ranging from retrieving answers from a long context to learning parameterized functions from in-context exemplars. The fact that both dense scaling and weight pruning exhibit this behavior suggests that scaling model size has an inherently disparate effect on fact recall and in-context learning.
BibTeX
@misc{jin2023cost,
  author = {Tian Jin and Nolan Clement and Xin Dong and Vaishnavh Nagarajan and Michael Carbin and Jonathan Ragan-Kelley and Gintare Karolina Dziugaite},
  title = {{The Cost of Down-Scaling Language Models: Fact Recall Deteriorates before In-Context Learning}},
  year = {2023},
  eprint = {2310.04680},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.04680},
}
Figure