跳到正文
arXiv (AI + Vision + Imaging)· Scott M. Norton·· 1 天前AI 评分12

冻结随机编码器后层中单元为何死亡,以及存活单元数量衡量的是什么

Why Units Die in the Layer After a Frozen Random Encoder, and What the Number of Live Units Measures

AI 导读

研究发现,冻结随机权重的卷积编码器后接层中,输入相对其变化幅度的偏移量(offset)越大,死亡的ReLU单元越多,该规律在智能体、图像分类器、储备池计算机及GPT-2稀疏自编码器中均出现。在Pong中减去平均屏幕后,64个单元中存活数从3-6个升至59-63个,说明存活单元数量不能衡量游戏复杂度。在未处理屏幕上,无智能体能在5000万步内达到18分训练分数;减去均值后均在500万步内达标。

正文 · 原文

arXiv:2611.29752v1 Announce Type: new Abstract: Reinforcement-learning agents can learn Atari games through a convolutional encoder whose random weights are never trained. They reach expert play in Pong and, without random action repeats, in Breakout, but training takes far longer and few ReLU units in the layer after the encoder stay alive. A dead unit outputs zero for every input and cannot learn. In earlier work we took the number of live units to measure the game's complexity. Here we ask why units die and correct that conclusion. We find that more units die as the layer's inputs lie farther from zero relative to how much they vary. We call this ratio the offset. Earlier work showed this in sparse autoencoders at the start of training. We saw it after training in agents, image classifiers, a reservoir computer and sparse autoencoders on GPT-2. A random encoder leaves the offset of its input roughly unchanged, and a formula predicted its median offset within 25 percent in all 44 cases. So a game with a bright, mostly unchanging screen gives the next layer a large offset. In Pong, subtracting the average screen raised the number of live units from between 3 and 6 of 64 to between 59 and 63, so the number alone cannot show a game's complexity. On unaltered screens none of the agents reached a training score of 18 in 50 million steps. With the subtraction all did within 5 million, about as fast as a trained encoder on unaltered screens. In Breakout the subtraction left more units alive, but average training scores did not clearly improve, and a large gap to a trained encoder remained. So we do not treat their number as something to raise for its own sake. The evidence is from small networks and three games, and in agents and image classifiers changing the offset also changed the size of the inputs. We suggest measuring the offset before training a layer on a fixed front end and, if it is large, trying to subtract the mean input.

来源:arXiv (AI + Vision + Imaging) · arxiv.org