Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior

Rahul Nadkarni, Yanai Elazar, Hila Gonen, Noah A. Smith


Abstract
We present an experimental recipe for studying the relationship between training data and language model (LM) behavior. We outline steps for intervening on data batches – i.e., “rewriting history” – and then retraining model checkpoints over that data to test hypotheses relating data to behavior. Our intervention recipe’s stages are (1) selecting evaluation items from a benchmark that measures model behavior, (2) matching relevant documents to those items, and (3) modifying those documents before retraining and measuring the effects. We demonstrate the utility of our recipe through case studies on factual knowledge acquisition and gender bias in LMs, using both cooccurrence statistics and information retrieval methods to identify documents that might contribute to model behavior. Our results supplement past observational analyses that link cooccurrence to model behavior, while demonstrating that extant methods for identifying relevant training documents do not fully explain an LM’s abilities and biases. Researchers can follow the recipe to test further hypotheses about how training data affects model behavior. Our code is made publicly available to promote future work.1
Anthology ID:
2026.tacl-1.70
Volume:
Transactions of the Association for Computational Linguistics, Volume 14
Month:
Year:
2026
Address:
Cambridge, MA
Venue:
TACL
SIG:
Publisher:
MIT Press
Note:
Pages:
1562–1588
Language:
URL:
https://aclanthology.org/2026.tacl-1.70/
DOI:
10.1162/tacl.a.740
Bibkey:
Cite (ACL):
Rahul Nadkarni, Yanai Elazar, Hila Gonen, and Noah A. Smith. 2026. Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior. Transactions of the Association for Computational Linguistics, 14:1562–1588.
Cite (Informal):
Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior (Nadkarni et al., TACL 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.tacl-1.70.pdf