We release bigram subnetworks as described in Chang and Bergen (2025).
These are sparse subsets of model parameters that recreate bigram predictions (next token predictions conditioned only on the current token) in Transformer language models.
This repository contains the bigram subnetwork for EleutherAI/pythia-1b.
Format
A subnetwork file is a pickled Python dictionary that maps the original model parameter names to numpy binary masks with the same shapes as the original model parameters (1: keep, 0: drop).
For details on usage, see: https://github.com/tylerachang/bigram-subnetworks.
For details on how these subnetworks were trained, see Chang and Bergen (2025).
@article{chang-bergen-2025-bigram,
title={Bigram Subnetworks: Mapping to Next Tokens in Transformer Language Models},
author={Chang, Tyler A. and Bergen, Benjamin K.},
journal={Preprint},
year={2025},
url={https://arxiv.org/abs/2504.15471},
}