arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.08171cs.LGcs.AI
收藏

通信动力学神经网络:用于改进Hessian条件数并减少参数数量的FFT对角化层

Communication Dynamics Neural Networks: FFT-Diagonalized Layers for Improved Hessian Conditioning at Reduced Parameter Count

University of California, Berkeley(加州大学伯克利分校)

Lurong Pan

AI总结:

提出CDLinear块循环线性层,通过FFT对角化Hessian矩阵,在参数减少3.8倍下保持高精度,并给出显式条件数分析。

摘要:

通信动力学神经网络(CDNNs)将通信动力学框架的循环谱机制应用于神经网络层设计。我们引入了CDLinear,一种块大小为B=2l+1的块循环线性层,其参数数量仅为具有相同输入输出维度的稠密层的1/B。该构造为优化提供了显式的傅里叶域诊断:对于均方损失,权重Hessian矩阵通过离散傅里叶变换对角化,特征值直接由输入块的傅里叶谱决定。在输入预白化下,总体Hessian条件数恰好为1,经验条件数对于N个样本被界定为1+O(sqrt(B/N))。我们使用纯NumPy实现CDLinear,并手工推导反向传播,通过有限差分验证梯度。在8x8 MNIST数字基准上,三个随机种子下,使用B=4的CDLinear MLP以2,380个参数达到97.50%±0.23%的测试准确率,而使用8,970个参数的稠密基线为98.15%±0.47%。这实现了3.8倍的参数减少,准确率损失0.65%。CD-MLP的平均Hessian条件数为1.9e4,比稠密基线的5.9e6小约310倍。我们将CDLinear定位为结构化矩阵神经网络层的一个特例,主要贡献包括闭式Hessian谱诊断、原则性的块多重性离散序列以及显式的条件数分析。我们还发布了一个参考PyTorch实现,将CDLinear集成到DeepSeek-V3风格的混合专家Transformer中,用于未来大规模基准测试。

英文摘要:

Communication Dynamics Neural Networks (CDNNs) apply the circulant-spectral machinery of the Communication Dynamics framework to neural-network layer design. We introduce CDLinear, a block-circulant linear layer with block size B = 2l + 1 that uses 1/B the parameters of a dense layer with the same input and output dimensions. The construction gives an explicit Fourier-domain diagnostic for optimization: for mean-squared loss, the weight Hessian is diagonalized by the discrete Fourier transform, with eigenvalues determined directly by the Fourier spectrum of the input blocks. Under input pre-whitening, the population Hessian condition number is exactly 1, and the empirical condition number is bounded by 1 + O(sqrt(B/N)) for N samples. We implement CDLinear in pure NumPy with hand-derived backward passes and verify gradients by finite differences. On the 8x8 MNIST digits benchmark, across three random seeds, a CDLinear MLP with B = 4 reaches 97.50% +/- 0.23% test accuracy using 2,380 parameters, compared with 98.15% +/- 0.47% for a dense baseline using 8,970 parameters. This gives a 3.8x parameter reduction at a 0.65% accuracy cost. The CD-MLP's mean Hessian condition number is 1.9e4, about 310x smaller than the dense baseline's 5.9e6. We position CDLinear as a special case of structured matrix neural-network layers, with the main contributions being a closed-form Hessian-spectrum diagnostic, a principled discrete sequence of block multiplicities, and an explicit conditioning analysis. We also release a reference PyTorch implementation integrating CDLinear into a DeepSeek-V3-style mixture-of-experts transformer for future large-scale benchmarks.

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

↑