Neural networks behave as hash encoders: An empirical study
Fengxiang He, Shiye Lei, Jianmin Ji, Dacheng Tao

TL;DR
This empirical study reveals that neural networks with ReLU-like activations encode data in a way similar to hash functions, with properties influenced by model size, training, and regularization, enabling simple algorithms to classify data effectively.
Contribution
The paper demonstrates that trained neural networks act as hash encoders, providing a new perspective on their data representation and categorization capabilities.
Findings
Neural networks partition input space into regions with unique activation patterns.
Simple algorithms perform well using neural codes for classification.
Model size, training time, and regularization significantly influence encoding properties.
Abstract
The input space of a neural network with ReLU-like activations is partitioned into multiple linear regions, each corresponding to a specific activation pattern of the included ReLU-like activations. We demonstrate that this partition exhibits the following encoding properties across a variety of deep learning models: (1) {\it determinism}: almost every linear region contains at most one training example. We can therefore represent almost every training example by a unique activation pattern, which is parameterized by a {\it neural code}; and (2) {\it categorization}: according to the neural code, simple algorithms, such as -Means, -NN, and logistic regression, can achieve fairly good performance on both training and test data. These encoding properties surprisingly suggest that {\it normal neural networks well-trained for classification behave as hash encoders without any extra…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Adversarial Robustness in Machine Learning
