Exploring the Sharpened Cosine Similarity

Skyler Wu, Fred Lu, Edward Raff, James Holt
7/25/2023
cs.CVcs.LG

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{wu2023exploring,
  title  = {Exploring the Sharpened Cosine Similarity},
  author = {Skyler Wu and Fred Lu and Edward Raff and James Holt},
  year   = {2023},
  eprint = {2307.13855},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.13855v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.13855.svg)](https://codeofpaper.com/paper/2307.13855)

Discussion