Two things seem to be indisputable in the contemporary deep learning discourse: 1. The categorical cross-entropy loss after softmax activation is the method of choice for classification. 2. Training a CNN classifier from scratch on small datasets does not work well. In contrast to this, we show that the cosine loss function provides significantly better performance than cross-entropy on datasets with only a handful of samples per class. For example, the accuracy achieved on the CUB-200-2011 dataset without pre-training is by 30% higher than with the cross-entropy loss. Further experiments on other popular datasets confirm our findings. Moreover, we demonstrate that integrating prior knowledge in the form of class hierarchies is straightforward with the cosine loss and improves classification performance further.
Angular Triplet-Center Loss for Multi-view 3D Shape Retrieval
Beihang University(北京航空航天大学);Research Institute of Beihang University in Shenzhen(北京航空航天大学深圳研究院);Beijing Advanced Innovation Center for Big Data and Brain Computing(北京大数据与脑计算先进创新中心)
Source-Free Domain Adaptation by Optimizing Batch-Wise Cosine Similarity
Machine Learning and Vision Lab(机器学习与视觉实验室);Indian Institute of Technology Hyderabad(印度理工学院海得拉巴学院);Department of Computer Science and Engineering(计算机科学与工程系)
COSINE: Compressive Network Embedding on Large-scale Information Networks
Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系);Search Product Center, WeChat Search Application Department, Tencent(腾讯微信搜索应用部搜索产品中心)
The Hong Kong University of Science and Technology(香港科技大学);Alibaba Group(阿里巴巴集团);Huazhong University of Science and Technology(华中科技大学);Nanjing University(南京大学)