Search papers, labs, and topics across Lattice.
The paper investigates the problem of fact memorization in LLMs, showing that fact accuracy is limited by the information content and frequency distribution skew of training data exceeding model capacity. They propose data selection schemes based on training loss to limit the number of facts and flatten their frequency. Experiments on semi-synthetic and real-world Wikipedia datasets demonstrate that their pruning method improves fact memorization, allowing a smaller model to match the performance of a 10x larger model trained on the full dataset.
Training a smaller LLM on a carefully pruned dataset lets it memorize as many facts as a model 10x larger trained on everything.
Large language models (LLMs) can struggle to memorize factual knowledge in their parameters, often leading to hallucinations and poor performance on knowledge-intensive tasks. In this paper, we formalize fact memorization from an information-theoretic perspective and study how training data distributions affect fact accuracy. We show that fact accuracy is suboptimal (below the capacity limit) whenever the amount of information contained in the training data facts exceeds model capacity. This is further exacerbated when the fact frequency distribution is skewed (e.g. a power law). We propose data selection schemes based on the training loss alone that aim to limit the number of facts in the training data and flatten their frequency distribution. On semi-synthetic datasets containing high-entropy facts, our selection method effectively boosts fact accuracy to the capacity limit. When pretraining language models from scratch on an annotated Wikipedia corpus, our selection method enables a GPT2-Small model (110m parameters) to memorize 1.3X more entity facts compared to standard training, matching the performance of a 10X larger model (1.3B parameters) pretrained on the full dataset.