The Sign Code: The Hidden Binary Nature of Deep Networks

Niclas Göring, Shuofeng Zhang, Roi Holtzman, Yoonsoo Nam, Ard A. Louis
10/16/2026
cs.LG

No confident code implementation found for this paper.

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}.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gring2026sign,
  title  = {The Sign Code: The Hidden Binary Nature of Deep Networks},
  author = {Niclas Göring and Shuofeng Zhang and Roi Holtzman and Yoonsoo Nam and Ard A. Louis},
  year   = {2026},
  eprint = {2610.23616},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.23616v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.23616.svg)](https://codeofpaper.com/paper/2610.23616)

Discussion