Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficient

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, George, Hoogland, Jesse, van Wingerden, Stan, Furman, Zach, Murfet, Daniel
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917793921761280
author Wang, George
Hoogland, Jesse
van Wingerden, Stan
Furman, Zach
Murfet, Daniel
author_facet Wang, George
Hoogland, Jesse
van Wingerden, Stan
Furman, Zach
Murfet, Daniel
contents We introduce refined variants of the Local Learning Coefficient (LLC), a measure of model complexity grounded in singular learning theory, to study the development of internal structure in transformer language models during training. By applying these \textit{refined LLCs} (rLLCs) to individual components of a two-layer attention-only transformer, we gain novel insights into the progressive differentiation and specialization of attention heads. Our methodology reveals how attention heads differentiate into distinct functional roles over the course of training, analyzes the types of data these heads specialize to process, and discovers a previously unidentified multigram circuit. These findings demonstrate that rLLCs provide a principled, quantitative toolkit for \textit{developmental interpretability}, which aims to understand models through their evolution across the learning process. More broadly, this work takes a step towards establishing the correspondence between data distributional structure, geometric properties of the loss landscape, learning dynamics, and emergent computational structures in neural networks.
format Preprint
id arxiv_https___arxiv_org_abs_2410_02984
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficient
Wang, George
Hoogland, Jesse
van Wingerden, Stan
Furman, Zach
Murfet, Daniel
Machine Learning
Artificial Intelligence
We introduce refined variants of the Local Learning Coefficient (LLC), a measure of model complexity grounded in singular learning theory, to study the development of internal structure in transformer language models during training. By applying these \textit{refined LLCs} (rLLCs) to individual components of a two-layer attention-only transformer, we gain novel insights into the progressive differentiation and specialization of attention heads. Our methodology reveals how attention heads differentiate into distinct functional roles over the course of training, analyzes the types of data these heads specialize to process, and discovers a previously unidentified multigram circuit. These findings demonstrate that rLLCs provide a principled, quantitative toolkit for \textit{developmental interpretability}, which aims to understand models through their evolution across the learning process. More broadly, this work takes a step towards establishing the correspondence between data distributional structure, geometric properties of the loss landscape, learning dynamics, and emergent computational structures in neural networks.
title Differentiation and Specialization of Attention Heads via the Refined Local Learning Coefficient
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2410.02984