paper-with-me

홈 › Papers

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

2017-02-20 · Chunjie Luo, Jianfeng Zhan, Lei Wang, Qiang Yang

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 as well as convolutional networks on the data sets of MNIST, 20NEWS GROUP, CIFAR-10/100 and SVHN. Experiments show that cosine normalization achieves better performance than other normalization techniques.

📄 PDF Abstract BibTeX arXiv:1702.05870

Code (1)

iwyoo/tf_conv_cosnorm tf

Methods 이 논문이 사용한 방법론

Cosine Normalization Multi-layer neural networks traditionally use dot products between the output vector of previous layer and the incoming weight vector as the input to activation function. The…

Similar Papers 제목 키워드 기반

Is Cosine-Similarity of Embeddings Really About Similarity?

2024-03-08 · Harald Steck, Chaitanya Ekanadham, Nathan Kallus

Cosine-similarity is the cosine of the angle between two vectors, or equivalently the dot product between their normalizations. A popular application is to quantify semantic similarity between high-dimensional objects by…

Semantic SimilaritySemantic Textual Similarity

In Defense of Cosine Similarity: Normalization Eliminates the Gauge Freedom

2026-02-23 · Taha Bouhsine arxiv

Steck, Ekanadham, and Kallus [arXiv:2403.05440] demonstrate that cosine similarity of learned embeddings from matrix factorization models can be rendered arbitrary by a diagonal ``gauge'' matrix $D$. Their result is corr…

Sentiment Classification Using Document Embeddings Trained with Cosine Similarity

2019-07-01 · ACL 2019 7 · Tan Thongtan, Tanasanee Phienthrakul

In document-level sentiment classification, each document must be mapped to a fixed length vector. Document embedding models map each document to a dense, low-dimensional vector in continuous vector space. This paper pro…

ClassificationDocument EmbeddingGeneral ClassificationSentiment Analysis+1

When Does Embedding Magnitude Matter? A Cross-Task Functional-Symmetry Framework

2026-02-09 · Xincan Feng, Taro Watanabe arxiv

Cosine similarity normalizes both sides; dot product normalizes neither. We propose a 2x2 framework that independently controls query-side and document-side normalization, exposing two intermediate variants (QNorm, DNorm…

Semantic Textual SimilarityKnowledge Graph Completion

Variance-Adjusted Cosine Distance as Similarity Metric

2025-02-04 · Satyajeet Sahoo, Jhareswar Maiti

Cosine similarity is a popular distance measure that measures the similarity between two vectors in the inner product space. It is widely used in many data classification algorithms like K-Nearest Neighbors, Clustering e…

valid