The Sign Code: The Hidden Binary Nature of Deep Networks
Not on the map. Why?
Abstract (arXiv)
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 textitsign 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 √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.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 37 of its 47 references that are in the map. Submitted 16 Oct 2026.
Builds on
37 of 47 references.
References · 37
- 2015Deep Residual Learning for Image Recognitioncited by 53,116
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 31,279
- 2016Gaussian Error Linear Units (GELUs)cited by 3,745
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,399
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,314
- 2019Similarity of Neural Network Representations Revisitedcited by 1,880
- 2016Understanding deep learning requires rethinking generalizationcited by 1,739
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,398
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 993
- 2018Reconciling modern machine learning practice and the bias-variance trade-offcited by 947
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 750
- 2017Spectrally-normalized margin bounds for neural networkscited by 703
25 more
- 2019Deep Double Descent: Where Bigger Models and More Data Hurtcited by 697
- 2017The Implicit Bias of Gradient Descent on Separable Datacited by 678
- 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 559
- 2017Sharp Minima Can Generalize For Deep Netscited by 492
- 2014On the Number of Linear Regions of Deep Neural Networkscited by 398
- 2019Gradient Descent Maximizes the Margin of Homogeneous Neural Networkscited by 339
- 2018Stronger generalization bounds for deep nets via a compression approachcited by 316
- 2016On the Expressive Power of Deep Neural Networkscited by 314
- 2015Norm-Based Capacity Control in Neural Networkscited by 306
- 2020Implicit Bias of Gradient Descent for Wide Two-layer Neural Networks Trained with the Logistic Losscited by 273
- 2019Complexity of Linear Regions in Deep Networkscited by 176
- 2017Bounding and Counting Linear Regions of Deep Neural Networkscited by 172
- 2021Neural Collapse Under MSE Loss: Proximity to and Dynamics on the Central Pathcited by 168
- 2018Towards Understanding the Role of Over-Parametrization in Generalization of Neural Networkscited by 144
- 2015Path-SGD: Path-Normalized Optimization in Deep Neural Networkscited by 133
- 2013On the number of response regions of deep feed forward networks with piece-wise linear activationscited by 100
- 2019Understanding Generalization through Visualizationscited by 57
- 2019Decoupling Gating from Linearitycited by 15
- 2022Are All Linear Regions Created Equal?cited by 14
- 2022Towards Reliable Neural Specificationscited by 13
- 2023A path-norm toolkit for modern networks: consequences, promises and challengescited by 11
- 2020Neural Path Features and Neural Path Kernel : Understanding the role of gates in deep learningcited by 10
- 2021Unsupervised Representation Learning via Neural Activation Codingcited by 7
- 2026Path-conditioned training: a principled way to rescale ReLU neural networkscited by 7
- 2021Neural networks behave as hash encoders: An empirical studycited by 4
Built on by
Not cited yet.