Cosine Normalization: Using Cosine Similarity Instead of Dot Product in Neural Networks

By Chunjie Luo, Jianfeng Zhan, Lei Wang, Qiang Yang. 2017

246 citations recorded by the source corpus.

Traditionally, multi-layer neural networks use dot product between the output vector of previous layer and the incoming weight vector as the input to activation function. The result of dot product is unbounded, thus increases the risk of large variance. Large variance of neuron makes the model sensitive to the change of input distribution, thus results in poor generalization, and aggravates the internal covariate shift which slows down the training. To bound dot product and decrease the variance, we propose to use cosine similarity or centered cosine similarity (Pearson Correlation Coefficient) instead of dot product in neural networks, which we call cosine normalization. We compare cosine normalization with batch, weight and layer normalization in fully-connected neural networks, convolutional networks on the data sets of MNIST, 20NEWS GROUP, CIFAR-10/100, SVHN. Experiments show that cosine normalization achieves better performance than other normalization techniques.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Representation & Self-Supervised Learning, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Matthieu Cord
  2. Arthur Douillard
  3. Bernt Schiele
  4. Chen Change Loy
  5. Dacheng Tao
  6. Han-Jia Ye
  7. De-chuan Zhan
  8. Xuming He

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Bernt Schiele
  4. Ming-Hsuan Yang
  5. Trevor Darrell
  6. Xiaogang Wang
  7. Chen Change Loy
  8. Jitendra Malik

In Representation & Self-Supervised Learning

  1. Matthieu Cord
  2. Chen Change Loy
  3. David G. Lowe
  4. Ling Shao
  5. Li Liu
  6. Shipeng Yan
  7. Arthur Douillard
  8. Yifu Chen

In Optimization & Training

  1. Julian Salazar
  2. Ling Shao
  3. Jie Qin
  4. Matthew A. Brown
  5. Lu Yuan
  6. Richard E. Turner
  7. Eduardo Valle
  8. Yifu Chen

Citations in the corpus