arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.09543cs.LG
收藏

训练动态的隐状态模型

Latent State Models of Training Dynamics

New York University(纽约大学);Prescient Design, Genentech(基因泰克公司前瞻设计部门);CIFAR LMB(加拿大高等研究院学习机器与大脑项目)

Michael Y. Hu, Angelica Chen, Naomi Saphra, Kyunghyun Cho

AI总结:

本文通过多随机种子训练、记录权重指标并拟合 HMM,将训练动态建模为隐状态转移,以分析相变并识别拖慢收敛的“绕行”状态。

摘要:

随机性对模型训练的影响目前仍缺乏充分理解。数据顺序和初始化方面的差异究竟如何在模型中体现,以至于某些训练运行优于其他运行或收敛更快?此外,我们应如何解释由此产生的训练动态以及刻画不同轨迹的相变?为理解随机性对神经网络训练动态和结果的影响,我们使用不同随机种子多次训练模型,并在整个训练过程中计算多种指标,例如神经网络权重的 $L_2$ 范数、均值和方差。随后,我们在所得指标序列上拟合隐马尔可夫模型(HMM)。HMM 将训练表示为隐状态之间转移的随机过程,从而直观概览训练期间的显著变化。利用该方法,我们在 grokking 任务、图像分类和掩码语言建模上生成了训练动态的低维离散表示。我们使用 HMM 表示研究相变,并识别出会减缓收敛的隐式“绕行”状态。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑