The Sign Code: The Hidden Binary Nature of Deep Networks
Niclas Alexander Göring, Shuofeng Zhang, Roi Holtzman, Yoonsoo Nam, Ard A. Louis
TL;DR. Overparameterized neural networks classify through the binary sign patterns of their neurons rather than activation magnitudes, and generalisation requires same-class inputs to share similar sign codes.
Abstract. 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 -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 near 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 argument helps explain when the sign code suffices. The natural unit of analysis for these networks may not be through their continuous weight space but instead through their discrete sign codes.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (oral) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (oral)
Read decision
Meta-review
The reviewers are very positive but raise several concerns: (1) experiments are largely limited to CIFAR-10 and should be extended to larger/diverse datasets and models; (2) deeper analysis is needed on whether sign patterns are causally primary or a byproduct of magnitudes, especially in earlier layers; (3) a key related work citation is missing; and (4) more discussion on connections to quantization and other neuron architectures would strengthen the paper. The authors should take these into consideration and improve the paper.
Final justification
After the rebuttal, some of the reviewers' concerns have been further addressed. This paper seems to be clearly well written and valuable and I would recommend acceptance as oral presentation.
Read meta-review
Meta-review
The reviewers are very positive but raise several concerns: (1) experiments are largely limited to CIFAR-10 and should be extended to larger/diverse datasets and models; (2) deeper analysis is needed on whether sign patterns are causally primary or a byproduct of magnitudes, especially in earlier layers; (3) a key related work citation is missing; and (4) more discussion on connections to quantization and other neuron architectures would strengthen the paper. The authors should take these into consideration and improve the paper.
Final justification
After the rebuttal, some of the reviewers' concerns have been further addressed. This paper seems to be clearly well written and valuable and I would recommend acceptance as oral presentation.
- Rating
- 6/6
- Confidence
- 5/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper explores the roles of signs and magnitudes of the weight space. Finding that in neural networks, classification prediction depends far more on the sign structure than the magnitude values of the weight matrix, when using sign preserving activations and the model is overparameterized. Furthermore, the paper shows that learning can be attributed in part to class-coherent sign geometry.
Strengths and weaknesses
The paper provides strong and compelling theoretical and experimental evidence to support the findings. Hence, a quality score of 4. The paper is very well written and clear to follow. The causal interventions are explained thoroughly and clearly. The contributions are clear and concise, and the paper has a logical flow. The details provided are sufficient for replication. Hence, the clarity score of 4. The significance of this paper is large and could have impacts on a range of areas within deep learning. Hence, a score of 4. This work provides a new way to conceptualize parameterized neural networks, and a deeper understanding of the learning dynamics. Furthermore, providing a better understanding of the effectiveness of current activation functions. Hence, an originality score of 3. Overall a great paper.
Overall there are no clear weaknesses in the work, it could be argued that the results are on small datasets but given the depth on the analysis on width and depth, and activations I think this is strongly mitigated against. This is especially the case in light of the contribution type.
The paper does miss what could be argued as a key citation of Are All Layers Created Equal? [1] which shows that layers in neural networks can be completely randomized and the model can maintain comparable performance. In [1] they also make similar claims surrounding that parameter norms are not sufficient for identifying generalization.
[1] Zhang, C., Bengio, S. and Singer, Y., 2022. Are all layers created equal?. Journal of Machine Learning Research, 23(67), pp.1-28.
Questions
Why is , instead of drawing from the standard initialization, or more aptly the standard deviation of the layer? As this would ensure that magnitudes, do not have a disproportionate affect due to being substantially larger/smaller than the rest of the weights.
Could the authors provide more insight into how this work relates to quantization, and what they foresee as the potential implication of this work is in that field?
Limitations
yes
Final justification
The authors address the missing citation and appropriately included it within the context of there work. The next two questions where addressed, providing no reason for a reduction in score.
Formatting concerns
N/A
3 comments
Thank you for your response. It adequately addresses my questions.
A small note is that the missing citation shows that it is not always the early layers that are the critical exceptions to re-initialisation/re-randomisation. For example, see the results on the ResNet models and Transformer models (vision and language), where layers throughout the network can be re-initialisation/re-randomisation with a significant drop in performance.
We will correct it and thank the reviewer again for the positive response.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper shows that in reasonably large FFNNs based on McCullough&Pitts neurons, weight signs, not weight magnitude, hold the accuracy and generalisation power of the learning model when trained on small visual datasets. Theoretical and experimental work are provided in order to back the main idea together including some quantitative evidence.
Strengths and weaknesses
Strenghts: The work makes explicit three aspects to support the findings: information sufficiency, model sensitivity to weight sign and magnitude, and a connection between weight signs and generalisation. The three points are explored, discussed, and elaborated. Empirical results corroborates the role of the sign code.
Weaknesses: There was no demonstration and/or discussion if the findings would hold on datasets of different nature, e.g., tabular, temporal, multimodal etc, and/or larger sizes. Also, there was no development/discussion on how/if different quantization methods perform according to how weight signs are taken into account.
Questions
Can different quantization methods may present accuracy/generalisation performance related to the sign code of a target NN? Can you add evidence of that?
Limitations
Weightless neural networks (WNNs) are binary NNs based on binary neurons (RAM-based) that are NOT of the McCullough&Pitts (MC) type. Although WNNs are not based on synaptic weights, inter-neuron interaction is also binary and they have a much higher VC dimension. Kolmogorov-Arnold Networks is also not based on MC neurons. Further discussion on the relation of the neuron function (not MC neurons, such as ReLU, SiLU etc) in the scope of binarization of DNNs is missing.
Final justification
Thanks for sharing further views/implications of your work. I noticed I misclassified the contribution type of your work and I'll update it accordingly.
Formatting concerns
No concerns.
1 comment
Rebuttal
We thank the reviewer for the positive assessment.
W1 We agree. Because sign-kNN and the channel-isolating interventions are inference-only, we evaluated public ImageNet-1k checkpoints during the rebuttal (full 50k validation set): with every magnitude in every layer randomized and only the sign trajectory enforced, ResNet-50 and ViT-B/16 match their clean Top-1 (0.76 / 0.85), and the last-block sign code alone recovers most of the classification signal via kNN ( = 0.177 / 0.075). The full table is in our response to R-Lxbz (W3). Preliminary experiments with transformers on language data show the same qualitative behaviour. A systematic study across modalities (tabular, temporal, multimodal) is beyond the present scope (but we are currently working on this), and we will mention this in our limitation.
W2 / Q1 We agree and will add a more in-depth discussion of quantization in the paper. Our new results in the response to R-Lxbz provide some initial evidence. The new layerwise theorem (formal statement in our response to R-Lxbz, W1) is a certificate for extreme 1-bit activation quantization: imputing each magnitude by its per-neuron sign-conditional mean is precisely binarization with sign-conditional codebook values, and the certificate predicts where it is safe. It gives a principled account of two empirical regularities in the quantization literature: (i) why aggressive activation quantization can work at all in overparameterized networks, the forward pass is dominated by the sign channel. And (ii) why input-facing layers are conventionally kept at higher precision, the internal domination score is in width and magnitude dispersion is largest there, so is worst. The new experiments support both: on MNIST FFNNs, the fully sign-binarized forward pass retains 94.6% vs. 98.0% clean at width 1024 (but only 78.2% at width 128). Quantization robustness emerges with overparameterization, as the theorem predicts), and the measured falls monotonically with depth. The theorem also yields a testable prediction that differentiates quantization methods: schemes that preserve activation signs (rounding symmetric about the true zero) should degrade gracefully, whereas quantizers whose rounding flips signs near zero should incur disproportionate damage. Section 4 shows that even 20% sign flips are destructive. Conversely, the success of binarized networks is independent, large-scale evidence for sign-code dominance. We will add this to our discussion.
Limitation: WNNs, KANs. We thank the reviewer for this point, which we now discuss in the introduction and Appendix A. Weightless neural networks compute with binary inter-neuron signals and lookup-table neurons of much higher per-neuron VC dimension. Our results connect from the opposite direction: overparameterized MP networks with sign-preserving activations learn to behave like weightless machines. WNNs build in explicitly the binary computation that our networks discover implicitly, with the sign code acting as a learned binary address into representation space. Kolmogorov–Arnold networks depart from the MP template differently: spline edge functions are generally not sign-preserving, so the natural discrete object there is not a sign bit but the knot-interval code (which spline cell each coordinate occupies). This yields a concrete open question: whether interval codes show the same emergent dominance with overparameterization (this is testable with our experiments from Section 3, 4). We will add this to our discussion. On neuron functions more broadly: the sign-preserving family already includes the asymmetric gates dominating modern practice (SiLU, GELU) alongside ReLU and tanh. Appendix C treats a non-sign-preserving case (softplus) and the revision adds the discussion's hypothesis on why gated activations (GLU variants) dominate transformers. Attention blocks are already covered in the block-output codes of App. B.1.
We are happy to answer any follow-up questions during the discussion period.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents an interesting finding where the efficacy of a neural network is demonstrated to be related to the sign of the activation values of the neurons, rather than the actual magnitudes of the activation values. The authors present a sign-magnitude decomposition of the activations values to further establish the findings throug theoretical reasoning.
The authors use the activations of the last layer, drop the magnitudes and preserve the signs, and use a a KNN clasifier with very good results. Also experiments are done in which activation magnitudes and signs are replaced randomly in turn, with sign changes being mroe destructive for the inference accuracy.
This, very interesting aspect, is shown to hold true through multiple experiments, mainly done on the CIFAR-10 dataset, on a few models.
Strengths and weaknesses
Strengths:
- The paper is easy to read, for which the authors have my thanks.
- The work is an interesting addition to neural network analysis in an age where activations functions are no longer just switches.
- The experiments of showing knn performing well, and changing signs causing a degradation in performance show good thought invested in the experiments
- The theoretical presentation adds credence to the claims
Weaknesses:
-
One can read the paper and walk away with a feeling that "sign as the only important thing", completely missing the fact that the signs themselves may be a by-product of the magnitudes of the activations of the previous layer. I am not claiming this is the case, however what is not clear to me is whether activation signs of a layer_n can be faithfully found only from activations signes of layer_n-1. The paper, in fact does not make the claim, as far as I can see. However, the experiments are needed to see whether the activations signs of a layer can themselves be found from just the activations signs of the previous layer. If it is possible, then the work would immediately become more attractive. If not, then the causality claim seems less strong.
-
I feel like the paper can be helped by doing a bit more analysis of understanding the impact of the layer(s) that directly interacts with the input. Analysis of weights, activation signs and activation magnitudes. Are the immunity of the residual models related to direct interaction with the input being carried over, or does any residual layer carry over the required sign information?
-
While the experiments themselves have quite clear results, it may be worth carrying out some experiments on larger datasets, particularly also on larger models to show whether the behavior is preserved under model/data scaling. That demonstration may have consequences for modern AI/ML workloads.
-
The choice of running knn only the the last layer is an easy issue to spot and can be addressed by a few more experiments.
-
KNN results are good, but i have no idea what value(s) of k?
Questions
Can I request the authors to address the weaknesses.
Limitations
The authors have pointed out the immunity of residual architectures. However, I think a more thorough analysis could have been easily done to better isolate the true limitations, rather than just an observational one.
Final justification
The author's have addressed most of the points I had raised. I am changing my scores, also fixing the submission type mismatch issue.
Formatting concerns
None
3 comments
Rebuttal
We thank the reviewer for the careful reading and the interesting questions.
W1
The central question is: Are signs a byproduct of magnitudes? Can the signs of layer be found from the signs of layer alone?
We think this is a very interesting question, and two claims must be disentangled.
(i) The signs at layer are of course computed from real-valued pre-activations, i.e., with participation of layer- magnitudes. The paper's claim concerns the read-out: what the downstream computation is sensitive to. Intervention 2 settled the read-out direction as a causal-mediation result (sign trajectory fixed, magnitudes randomized, little loss). The reviewer correctly identifies what that leaves open: is the sign trajectory self-sustaining, i.e. can the signs of layer be recovered from the signs of layer alone?
(ii) We give experimental and theoretical evidence that it is, once the network is overparameterized.
New experiment: It completes the paper's intervention matrix: Interventions 1–2 covered (flipped , true ) and (enforced true , random ). This intervention adds the missing corner (free , sign-imputed ): at layer , replace by , where are per-neuron sign-conditional mean magnitudes estimated on the training set (the MMSE imputation of Eq. 9), then propagate with no caching or projection, every downstream sign must regenerate itself from the binarized code. Variants: binarize-once at each , and fully iterated (binarize at every layer). Setup: SiLU FFNNs, four hidden layers, MNIST, width 128 vs. 1024, we report test accuracy and sign agreement with the clean trajectory at the last hidden layer.
| MNIST, SiLU FFNN (depth 4) | fully iterated | ||||
|---|---|---|---|---|---|
| w=128: test acc. (clean 0.978) | 0.89 | 0.96 | 0.97 | 0.96 | 0.78 |
| w=128: final-layer sign agreement | 0.88 | 0.90 | 0.89 | 1.00* | 0.80 |
| w=1024: test acc. (clean 0.98) | 0.95 | 0.98 | 0.98 | 0.98 | 0.95 |
| w=1024: final-layer sign agreement | 0.96 | 0.98 | 0.97 | 1.00* | 0.97 |
*equal by construction when binarizing at the last hidden layer.
Two findings. (a) Self-sufficiency is emergent with overparameterization. Going from width 128 to 1024, the fully iterated sign-only network improves from 78.2% to 94.6% (clean: 98.0%). (b) Within each network the one-step error decreases with depth, early layers are indeed the most magnitude-dependent, and the code becomes progressively self-determined toward the read-out.
New theory: Theorem 6.1 is stated for logits, but the same proof technique applies to any hidden layer conditioned on the previous one. For hidden layer , define the sign-only pre-activation by imputing each upstream magnitude with its sign-conditional mean (the same MMSE imputation already used in Eq. (9)):
depends on only through the sign code , and because is sign-preserving.
Proposition. (i) Deterministic: if then — the sign at layer is correctly computed from the layer- sign code alone. (ii) Probabilistic: with finite and ties of measure zero,
and the expected one-step Hamming error obeys
The depth profile of is the central quantity: a large value near the input indicates genuine dependence on magnitudes, while a decreasing shows the sign code becoming progressively self-sufficient. Measured on the models above:
| layer | 2 | 3 | 4 |
|---|---|---|---|
| w=128: measured one-step / bound | 0.1587 / 0.7462 | 0.1211 / 0.7069 | 0.1071 / 0.6590 |
| w=1024: measured one-step / bound | 0.0827 / 0.5054 | 0.0413 / 0.4050 | 0.0262 / 0.3826 |
The certificate holds in every cell, and both the bound and the measured error fall with width and with depth, matching findings (a)–(b). The formal statement with proof will appear as a new subsection.
W2
Concerning the input facing layers, the proposition above predicts that the input-facing layer is the most magnitude-dependent point of the network: unlike the logit (Theorem 6.1(ii)), an internal neuron's domination score does not improve automatically with width, it is set by the sign-conditional magnitude concentration of the preceding representation, which is weakest at the input. The measured / profiles above confirm this quantitatively, and binarize-once is most costly at . We will add a closer analysis of why skip-connections allow for such strong immunity to replacing magnitudes.
W3
A central part of our analysis is how sign-kNN accuracy changes with depth and width. We cannot retrain such a sweep on ImageNet within the rebuttal window (we commit to it for the camera-ready if required). What we can test now is whether the phenomenon survives model/data scaling, because sign-kNN, the channel-isolating interventions are all inference-only. We therefore evaluated public ImageNet-1k pretrained checkpoints (torchvision ResNet-50; AugReg ViT-B/16) on the full 50k validation set, all 1000 classes. Setup: sign-kNN on the last-block code, , 2048-bit random projection (App. D.5), bank/query = 25k/25k; interventions on 4,000 images.
| Model (ImageNet-1k, pretrained) | Top-1 | sign-kNN (last block) | Interv. 2 acc. @ | |
|---|---|---|---|---|
| ResNet-50 | 0.76 | 0.58 | 0.177 | 0.76 |
| ViT-B/16 | 0.85 | 0.77 | 0.075 | 0.85 |
| This is in agreement with the data in the paper. |
W4
The last layer was a deliberately conservative choice, it is a strict subset of the full sign code (Eq. 4), but we agree per-layer results are informative. The revision adds sign-kNN per layer for all three architectures. The proposition above predicts the ordering: accuracy should rise with depth, mirroring the falling profile, and the binarize-once rows in the table above already show this ordering.
W5
All kNN hyperparameters are in Appendix E.4: the main-paper sweeps use a fixed with majority vote, Appendix E.4 also reports a sensitivity sweep over , within which accuracy varies by $\approx$1 point. We will state and point to the sensitivity table in the main text.
Limitations We agree, and will commit to a deeper block-resolved analysis for the camera ready version.
I thank the authors for the new experimental results and theory presentation. I would request that the results discussed here and the experiments and results agreed on but not done be included in the future version. Thanks for an interesting paper.
Thanks, we will include the new results.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the very positive assessment.
Missing citation Thanks. This is indeed a key reference and we now cite and discuss it in Section 1.1/Appendix A. Their finding that entire layers can be re-initialized with little loss in overparameterized networks, with early layers being the critical exceptions, is the parameter-space counterpart of the depth structure we measure in activation space (early layers most magnitude-dependent; deep layers redundant given the sign code, see the new layerwise certificate and depth profiles in our response to R-Lxbz). And their argument that parameter norms cannot identify generalization motivates exactly the alternative coarse-graining we propose in Section 7: complexity measured on the discrete sign code rather than in continuous weight space.
Q1 Within Intervention 2 as reported in the paper, the projection enforces the clean sign code at every layer, which largely neutralizes scale mismatch: the corrupted magnitudes never get to destroy the trajectory, and ∣N(0,1)∣ was chosen as a maximally class-agnostic, information-free draw. We will add the control where we draw from ∣N(0,1/σl)∣ (σl is the std of the layer).
Q2 We will add a more in-depth discussion of quantization in the paper. Our new results in the response to R-Lxbz provide some initial evidence. We think the sign code gives a principled account of two empirical regularities in the quantization literature: (i) why aggressive activation quantization works at all in overparameterized networks. The forward pass is dominated by the binary sign channel, so magnitude precision is largely redundant. And (ii) why input-facing layers are conventionally kept at higher precision, our layerwise certificate κ(ℓ) (response to R-Lxbz) is worst at the input, where sign formation genuinely depends on magnitudes.
Implications we foresee: (i) κ(ℓ)-guided mixed-precision allocation, (ii) quantizer designs that protect the sign channel, (iii) allocating resolution near zero so that rounding never flips signs, since Section 4 shows sign flips are the disproportionately destructive failure mode. And, conversely, reading the success of binarized networks as independent large-scale evidence for sign-code dominance. We will discuss this in a new appendix and the discussion.