Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hu, Michael Y., Chen, Angelica, Saphra, Naomi, Cho, Kyunghyun
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:https://arxiv.org/abs/2308.09543
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916099484811264
author Hu, Michael Y.
Chen, Angelica
Saphra, Naomi
Cho, Kyunghyun
author_facet Hu, Michael Y.
Chen, Angelica
Saphra, Naomi
Cho, Kyunghyun
contents The impact of randomness on model training is poorly understood. How do differences in data order and initialization actually manifest in the model, such that some training runs outperform others or converge faster? Furthermore, how can we interpret the resulting training dynamics and the phase transitions that characterize different trajectories? To understand the effect of randomness on the dynamics and outcomes of neural network training, we train models multiple times with different random seeds and compute a variety of metrics throughout training, such as the $L_2$ norm, mean, and variance of the neural network's weights. We then fit a hidden Markov model (HMM) over the resulting sequences of metrics. The HMM represents training as a stochastic process of transitions between latent states, providing an intuitive overview of significant changes during training. Using our method, we produce a low-dimensional, discrete representation of training dynamics on grokking tasks, image classification, and masked language modeling. We use the HMM representation to study phase transitions and identify latent "detour" states that slow down convergence.
format Preprint
id arxiv_https___arxiv_org_abs_2308_09543
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Latent State Models of Training Dynamics
Hu, Michael Y.
Chen, Angelica
Saphra, Naomi
Cho, Kyunghyun
Machine Learning
The impact of randomness on model training is poorly understood. How do differences in data order and initialization actually manifest in the model, such that some training runs outperform others or converge faster? Furthermore, how can we interpret the resulting training dynamics and the phase transitions that characterize different trajectories? To understand the effect of randomness on the dynamics and outcomes of neural network training, we train models multiple times with different random seeds and compute a variety of metrics throughout training, such as the $L_2$ norm, mean, and variance of the neural network's weights. We then fit a hidden Markov model (HMM) over the resulting sequences of metrics. The HMM represents training as a stochastic process of transitions between latent states, providing an intuitive overview of significant changes during training. Using our method, we produce a low-dimensional, discrete representation of training dynamics on grokking tasks, image classification, and masked language modeling. We use the HMM representation to study phase transitions and identify latent "detour" states that slow down convergence.
title Latent State Models of Training Dynamics
topic Machine Learning
url https://arxiv.org/abs/2308.09543