Redesigning the classification layer by randomizing the class representation vectors
arXiv:2011.08704
Abstract
Neural image classification models typically consist of two components. The first is an image encoder, which is responsible for encoding a given raw image into a representative vector. The second is the classification component, which is often implemented by projecting the representative vector onto target class vectors. The target class vectors, along with the rest of the model parameters, are estimated so as to minimize the loss function. In this paper, we analyze how simple design choices for the classification layer affect the learning dynamics. We show that the standard cross-entropy training implicitly captures visual similarities between different classes, which might deteriorate accuracy or even prevents some models from converging. We propose to draw the class vectors randomly and set them as fixed during training, thus invalidating the visual similarities encoded in these vectors. We analyze the effects of keeping the class vectors fixed and show that it can increase the inter-class separability, intra-class compactness, and the overall model accuracy, while maintaining the robustness to image corruptions and the generalization of the learned concepts.
arXiv comment11 pages, 9 tables, 5 figures
References in corpus (7)
- SphereReID: Deep Hypersphere Manifold Embedding for Person Re-Identification
- Do CIFAR-10 Classifiers Generalize to CIFAR-10?
- Out-of-Distribution Detection using Multiple Semantic Label Representations
- Fix your classifier: the marginal value of training the last weight layer
- Actigraphy-based Sleep/Wake Pattern Detection using Convolutional Neural Networks
- Joint Visual-Textual Embedding for Multimodal Style Search
- Generating Diverse and Informative Natural Language Fashion Feedback