符号编码:深度网络中隐藏的二值本质 The Sign Code: The Hidden Binary Nature of Deep Networks 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-16
👁️ 预览文献
💡 AI 中文简介
这项研究发现,训练好的神经网络中每个神经元的输出可以分解为符号(正负)和幅度(绝对值)。对于过参数化的视觉分类器,分类结果几乎完全由符号编码决定。仅使用符号编码的k近邻分类器能达到与完整模型相当的准确率;将幅度替换为随机噪声而保留符号,残差网络性能几乎不变;但翻转20%的符号,准确率就降到随机水平。这表明网络泛化的关键可能是符号编码的相似性,而非连续的权重空间。
领域深度学习理论/神经网络可解释性
适合谁读需要一定专业背景(机器学习、深度学习基础)
核心贡献1. 揭示了深度网络分类主要依赖神经元输出的符号编码而非幅度,挑战了传统连续权重空间的分析视角。2. 通过实验证明仅用符号编码的简单分类器即可达到与完整模型相当的准确率,且符号翻转对性能影响巨大,而幅度扰动影响甚微。
关键数据仅用符号编码的k近邻分类器准确率与完整模型相当;幅度替换为随机噪声后残差网络性能几乎不变;翻转20%符号准确率降至随机水平;符号贡献随网络宽度以√d增长并主导幅度残差。
推荐理由如果你好奇神经网络为何能泛化,这项研究用简单实验揭示了符号编码的关键作用,可能会颠覆你对网络表示的理解。
关键词["符号编码", "二值本质", "神经网络", "泛化", "k近邻分类器"]

原文摘要

查看英文原文摘要

Every neuron in a trained network outputs a number that can be separated into its sign (positive or negative) and its magnitude (absolute size). We call the set of all neuron signs the \textit{sign code}. This raises a key question: does classification depend more on the sign code or on the magnitudes? For overparameterized vision classifiers with sign-preserving activations, the answer is overwhelmingly the sign code. A $k$-nearest neighbor classifier operating only on this binary sign code achieves accuracy comparable to the full model across different architectures, activation functions, and datasets. Moreover, replacing all magnitudes in every layer with random noise while keeping the original signs barely changes residual network performance. In contrast, flipping just 20\% of the signs reduces accuracy to chance. Models generalize well when same-class inputs share similar sign codes. When this overlap is disrupted by a regularizer, training accuracy remains high, but test performance collapses. A margin decomposition helps explain these results: the sign-only contribution to each logit grows as $\sqrt{d}$ in network width, dominating the magnitude residual. The natural unit of analysis for these networks may not be through their continuous weight space but instead through their discrete sign codes.