动态批处理:类循环训练如何塑造神经网络的内部结构
Dynamical Batching: How Class-Cycling Training Shapes the Internal Structure of Neural Networks
AI总结:
该研究提出动态批处理(DB),通过周期性强调训练批次中的类,在标准训练失败场景中提升了容量受限模型的拟合能力,还改变了神经网络的内部权重结构并适度提升了CIFAR-10上的测试准确率。
摘要:
我们研究周期性改变训练批次的类组成是否能同时修改神经网络的性能和内部组织。受非平衡系统的启发,在这类系统中,在相关子目标之间循环切换可提升其解决方案间的切换效率,我们提出动态批处理(Dynamical Batching, DB),这是一种采样协议,会周期性地强调每个类,同时保持损失函数和优化器不变,并将其与均匀批处理(Uniform Batching, UB,即每个小批次具有相等类比例的采样协议)进行比较。在标准训练失败的场景中,DB改变了结果:在三臂螺旋任务中,容量受限的多层感知机(MLP)在UB下的准确率远低于完美水平,而在DB下能拟合训练数据。追踪单个权重后发现,在DB下,类专用状态间的变化由比UB更少的权重集承载,且该权重集在各周期间明显更具持久性,这一现象在我们测试的所有合成数据集以及在两种协议下均能拟合数据的更大网络中均存在。这种组织是协议的特征而非其益处的预测因子:在DB未改变准确率的场景中也同样存在。在CIFAR-10数据集上,相同协议适度提升了通道缩减版ResNet-10(一种标准残差架构)和第二个容量受限卷积网络的测试准确率。这些结果表明,类强调的时间分布方式可同时塑造网络达到的解决方案及其内部结构。
英文摘要:
We investigate whether cyclically varying the class composition of training batches can modify both the performance and the internal organization of neural networks. Motivated by nonequilibrium systems, in which cycling between related sub-goals can make switching between their solutions increasingly efficient, we introduce Dynamical Batching (DB), a sampling protocol that periodically emphasizes each class while leaving the loss and the optimizer unchanged, and compare it with Uniform Batching (UB), in which every mini-batch has equal class proportions. In the regime where standard training fails, DB changes the outcome: on a three-arm spiral, a capacity-limited MLP that plateaus far below perfect accuracy under UB fits the training data under DB. Tracking individual weights, we find that under DB the change between class-specialized states is carried by a smaller set of weights than under UB, and that this set is markedly more persistent from cycle to cycle, on every synthetic dataset we test and in a wider network that fits the data under both protocols. This organization is a signature of the protocol rather than a predictor of its benefit: it appears equally where DB leaves accuracy unchanged. On CIFAR-10, the same protocol modestly improves the test accuracy of a channel-narrowed ResNet-10, a standard residual architecture, and of a second capacity-limited convolutional network. These results show that how class emphasis is distributed in time can shape both the solution a network reaches and the internal structure of the network.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。