Do Looped Transformers Forget More? Weight Sharing and Catastrophic Forgetting in Continual Pretraining
Looped transformers apply a set of layers multiple times, thereby achieving the depth of a large-scale model while maintaining the parameter count of a smaller model. We investigate whether this weight sharing alters the extent of forgetting in a language model when it undergoes continued training on new data. We pre-trained three GPT-2-style models using 1 billion tokens from the FineWeb-Edu dataset: a 3-layer dense model; the same set of 3 layers applied in a loop 4 times; and a 12-layer dense model, configured to have the same computational cost as the looped model. Subsequently, we trained each of these models on data comprising four months of Wikipedia edits, measuring forgetting via the increase in validation loss on FineWeb-Edu, and learning via the decrease in loss on a held-out test set of Wikipedia articles. At the same continual learning rate, the looped model exhibits greater forgetting than the 3-layer model; a result consistent across three experimental seeds. Compared to the 12-layer model, which starts from a lower initial loss, no consistent pattern is observed. The looped model also demonstrates the highest level of learning across all tested rates; it achieves as much learning as the 3-layer model, yet with one-third of the learning rate and less forgetting (across all seeds). When the continual learning rate for each model is set to the same fraction of its respective pre-training learning rate, the looped model exhibits a level of forgetting similar to that of the 3-layer model, while maintaining a higher degree of learning. Mixing pretraining data into 25% of each training batch removes between 85% and 91% of the forgetting in all models. In this scenario, we found no evidence that weight sharing causes a model to forget more relative to how much it learns. This record contains the paper (PDF) and the weights of all 48 models: 9 pretrained and 39 continual runs, fp32 PyTorch state dicts, with a config file for each. MANIFEST.md describes the weight files, and SHA256SUMS has a checksum for each of them.
Authors
- Vincent Larkin (ORCID: https://orcid.org/0009-0005-2620-5869)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-03
- DOI
- https://doi.org/10.5281/zenodo.24766446
- Primary Topic
- Domain Adaptation and Few-Shot Learning
- Type
- preprint