The Sign Code: The Hidden Binary Nature of Deep Networks
Niclas A Göring, Shuofeng Zhang, Roi Holtzman, yoonsoo nam, Ard Louis
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Neural Generalization and Memorization Geometry · Type: empirical study · Keywords: sign code, binary activation, network analysis, image classification, theoretical insights
Areas: Model Architectures & Sequence Modeling › Neural and brain architectures › Recurrent dynamics; Interpretability › Neural Representation Analysis › Representational Geometry
Summary
The paper demonstrates that binary sign patterns of neuron outputs (the sign code) dominate classification in overparameterized vision networks, while magnitudes play a minor role.
Explained to a 5-year-old
Deep computer programs called neural networks make decisions by using numbers inside tiny units called neurons. Each number can be positive or negative, like a tiny sign. The paper finds that the signs (positive or negative) are more important than how big the numbers are. Even if we hide the sizes and replace them with random numbers, the network still works. But if we change many signs, the network gets confused and makes random guesses.
Explained to a 5-year-old, longer
Computers sometimes use networks of tiny decision makers to recognize pictures. Each decision maker outputs a number that can be either positive or negative. The paper looks at whether the sign of these numbers matters more than their size. It discovers that the signs alone are enough to tell pictures apart. A simple classifier that only looks at signs works as well as the whole network. Even if we replace the sizes with random numbers, the network still works fine. Changing a few signs doesn't hurt much, but flipping many signs makes the network guess randomly. The network also learns that similar pictures have similar signs. When we force signs to be different, the network still learns but fails on new pictures. The authors explain why signs become more important as the network gets wider. They show that the sign contribution grows with the square root of the width. This gives a new way to understand how deep networks think.
For a technical reader
The study shows that in large image classification networks, the binary sign of each neuron’s activation is the primary driver of the final prediction, far outweighing the magnitude of those activations. A simple nearest-neighbor classifier built only from these signs achieves the same accuracy as the full network across multiple architectures and datasets. Even when the actual activation values are replaced by random noise, the network’s performance remains largely unchanged, whereas altering a modest fraction of signs drastically reduces accuracy. The authors provide a theoretical analysis indicating that the sign-only contribution scales with the square root of network width, dominating the magnitude term. This insight suggests that future optimizations could focus on preserving or exploiting sign patterns rather than fine-tuning continuous values.
Problem
It is unclear whether the continuous magnitudes of neuron outputs or their binary sign patterns drive the predictions of deep neural networks.
Method
The authors investigate the role of sign codes by constructing a k-nearest neighbor classifier that uses only the binary signs of neuron outputs and by ablating magnitudes with random noise while preserving signs.
Results
The sign-only classifier matches full model accuracy, randomizing magnitudes has little effect, but flipping 20% of signs drops performance to chance, and disrupting sign overlap harms test accuracy despite high training accuracy.
Contributions
It reveals that binary sign patterns dominate classification in overparameterized vision networks, provides empirical evidence for the sufficiency of sign codes, and offers a margin decomposition explaining the observed scaling behavior.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction