English

Exploring the Sharpened Cosine Similarity

Computer Vision and Pattern Recognition 2023-07-27 v1 Machine Learning

Abstract

Convolutional layers have long served as the primary workhorse for image classification. Recently, an alternative to convolution was proposed using the Sharpened Cosine Similarity (SCS), which in theory may serve as a better feature detector. While multiple sources report promising results, there has not been to date a full-scale empirical analysis of neural network performance using these new layers. In our work, we explore SCS's parameter behavior and potential as a drop-in replacement for convolutions in multiple CNN architectures benchmarked on CIFAR-10. We find that while SCS may not yield significant increases in accuracy, it may learn more interpretable representations. We also find that, in some circumstances, SCS may confer a slight increase in adversarial robustness.

Keywords

Cite

@article{arxiv.2307.13855,
  title  = {Exploring the Sharpened Cosine Similarity},
  author = {Skyler Wu and Fred Lu and Edward Raff and James Holt},
  journal= {arXiv preprint arXiv:2307.13855},
  year   = {2023}
}

Comments

Accepted to I Can't Believe It's Not Better Workshop (ICBINB) at NeurIPS 2022

R2 v1 2026-06-28T11:40:10.495Z