Papers

arXiv 论文:用训练时损失与梯度范数的时间序列估计 MG 维度,可反映网络内部状态

What Can a Time Series of Loss, Weight Norm, or Neuron Activation Reveal About a Neural Network?

Why we picked it

这篇论文的思路挺有意思:不看模型内部,只把训练时损失或梯度范数当成一条时间序列算维度,就能区分 ResNet-18 是不是冻结了特征提取器。对做无监督训练的人来说,还能用 MG 在 SimCLR 和 BYOL 这些编码器里挑效果最接近最优的那个,实验里只差 0.41 个百分点。

一篇 arXiv 论文提出,只需记录训练过程中损失、权重范数或梯度范数等标量随时间的变化,就可能推断网络内部正在发生什么。方法是对标量时间序列按固定时间滞后构造延迟向量,再用 Levina-Bickel 估计器的 MacKay-Ghahramani(MG)变体,聚合最近邻距离对数比来估计局部内在维度,作者称之为 x 的 MG。

Body

实验给出几组具体结果:循环网络学会周期运动后,单个隐藏神经元激活时间序列的 MG 接近 1,符合周期轨道的特征;ResNet-18 中冻结特征提取器会降低权重范数的 MG,并把权重更新集中到更少方向;文本变分自编码器中,固定句子的重构损失 MG 在解码器较少依赖潜变量时更低。

论文还用 MG 在 SimCLR、SimSiam、BYOL、VICReg 四种无监督 MNIST 编码器间做选择:对每个冻结编码器拟合逻辑回归预测数字标签,初步实验中训练后期梯度范数的 MG 与分类器准确率正相关;在每次 held-out 运行中选 MG 最高者,测试准确率平均只比该组最大值低 0.41 个百分点。

Original · arXiv cs.LG

What Can a Time Series of Loss, Weight Norm, or Neuron Activation Reveal About a Neural Network?

It is easy to record the loss or weight norm at each step of neural network training. Can one such time series reveal what is changing inside the network? For a scalar quantity $x$ recorded over time, we form delay vectors from samples taken at fixed time lags. We estimate the local intrinsic dimension of their distribution with the MacKay-Ghahramani (MG) variant of the Levina-Bickel estimator, which pools log ratios of nearest-neighbor distances across the delay vectors. We call this estimate the MG of $x$. After a recurrent network learns periodic motion, MG from the activation time series of one hidden neuron is close to one, as expected for a periodic orbit. In ResNet-18, freezing the feature extractor lowers the MG of the weight norm and concentrates weight updates in fewer directions. In a text variational autoencoder, the MG of reconstruction loss on fixed sentences is lower under settings where the decoder relies less on the latent code. We also use MG to select among candidate encoders trained on unlabeled MNIST digits with SimCLR, SimSiam, BYOL, and VICReg. For each frozen encoder, we fit a logistic regression classifier to predict digit labels from its features. In initial experiments, the MG of the gradient norm late in training correlated positively with classifier accuracy across encoders. When we selected the encoder with the highest MG of the gradient norm in each held-out run, its test accuracy averaged only 0.41 percentage points below the maximum for that set of encoders.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Levina-Bickel, SimCLR, BYOL, ResNet-18.

Source attribution: curated from arXiv cs.LG (@Nickolay Karlov, Alexey Kravatskiy).