Tracking Universal Features Through Fine-Tuning and Model Merging
Niels Horn, Desmond Elliott

TL;DR
This paper investigates how features in a Transformer language model evolve, disappear, or remain stable when fine-tuned on different text domains and then merged, providing insights into feature stability in transfer learning.
Contribution
It introduces a method to analyze feature dynamics across fine-tuning and merging in small-scale models, revealing patterns of feature stability and transformation.
Findings
Features can be stable or change significantly across domains.
Model merging via spherical interpolation preserves some features while altering others.
Insights into feature behavior aid understanding of transfer learning processes.
Abstract
We study how features emerge, disappear, and persist across models fine-tuned on different domains of text. More specifically, we start from a base one-layer Transformer language model that is trained on a combination of the BabyLM corpus, and a collection of Python code from The Stack. This base model is adapted to two new domains of text: TinyStories, and the Lua programming language, respectively; and then these two models are merged using these two models using spherical linear interpolation. Our exploration aims to provide deeper insights into the stability and transformation of features across typical transfer-learning scenarios using small-scale models and sparse auto-encoders.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗nilq/baby-python-mistral-1L-tiny-basemodel· 4 dl4 dl
- 🤗nilq/baby-python-mistral-1L-tiny-TinyStories-ftmodel· 8 dl· ♡ 18 dl♡ 1
- 🤗nilq/baby-python-mistral-1L-tiny-lua-ftmodel· 6 dl6 dl
- 🤗nilq/baby-python-1L-mistral-lua-stories-slerpmodel· 7 dl7 dl
- 🤗RichardErkhov/nilq_-_baby-python-mistral-1L-tiny-TinyStories-ft-ggufmodel· 10 dl10 dl
- 🤗RichardErkhov/nilq_-_baby-python-mistral-1L-tiny-base-ggufmodel· 12 dl12 dl
- 🤗RichardErkhov/nilq_-_baby-python-mistral-1L-tiny-lua-ft-ggufmodel· 15 dl15 dl
Videos
Taxonomy
TopicsSemantic Web and Ontologies
MethodsAttention Is All You Need · Dropout · Layer Normalization · Adam · Dense Connections · Residual Connection · Position-Wise Feed-Forward Layer · Linear Layer · Byte Pair Encoding · Absolute Position Encodings
