LMEnt: A Suite for Analyzing Knowledge in Language Models from Pretraining Data to Representations

Read full text
Authors: Daniela Gottesman, Alon Gilae-Dotan, I. Bernard Cohen, Yoav Gur-Arieh, Marius Mosbach, Ori Yoran, Mor Geva
Cited by: 0

Abstract

Abstract Language models (LMs) increasingly drive real-world applications that require world knowledge. However, the internal processes through which models turn data into representations of knowledge and beliefs about the world are poorly understood. To facilitate such studies, we present LMEnt, a suite including (1) a knowledge-rich pretraining corpus, fully annotated with entity mentions based on Wikipedia, (2) an entity-based retrieval method over pretraining data that outperforms existing tools by as much as 80.4%, and (3) 12 pretrained LMs with up to 1B parameters and 4K intermediate checkpoints, with comparable performance to popular open-source models on knowledge tasks. Together, these resources provide a controlled environment for analyzing connections between entity mentions in pretraining data and downstream performance. We show the utility of LMEnt by studying knowledge acquisition over training, finding that entity co-occurrence and mention forms—which are difficult to study with existing tools—affect learning trends. Moreover, as LMs form stronger associations between entities, their facts are harder to edit in-context, whereas inconsistencies in model predictions over training are indicative of editing success. We release LMEnt to support studies of knowledge in LMs, including knowledge representations, plasticity, editing, attribution, hallucinations, and learning dynamics. huggingface.co/LMEnt github.com/LMEnt

Fields of Study & Subjects

Topic Modeling Multimodal Machine Learning Applications Computational and Text Analysis Methods

Publication details

Journal / source
Transactions of the Association for Computational Linguistics
Volume
14
Pages
1654–1691
Publication date
1 January 2026
Language
EN