Papers › Neural Similarity Learning

Neural Similarity Learning

28 Oct 2019NeurIPS 2019 12arXiv:1910.13003archive 2025-07-28

Weiyang Liu, Zhen Liu, James M. Rehg, Le Song

Inner product-based convolution has been the founding stone of convolutional neural networks (CNNs), enabling end-to-end learning of visual representation. By generalizing inner product with a bilinear matrix, we propose the neural similarity which serves as a learnable parametric similarity measure for CNNs. Neural similarity naturally generalizes the convolution and enhances flexibility. Further, we consider the neural similarity learning (NSL) in order to learn the neural similarity adaptively from training data. Specifically, we propose two different ways of learning the neural similarity: static NSL and dynamic NSL. Interestingly, dynamic neural similarity makes the CNN become a dynamic inference network. By regularizing the bilinear matrix, NSL can be viewed as learning the shape of kernel and the similarity measure simultaneously. We further justify the effectiveness of NSL with a theoretical viewpoint. Most importantly, NSL shows promising performance in visual recognition and few-shot learning, validating the superiority of NSL over the inner product-based convolution counterparts.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1910.13003")

Code

Syntology Ran 0 of 9 code samples harvested from 1 repository linked to this paper; 9 have no recorded run.

By repository: official repository: 9 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

wy1iu/NSL officialmentioned in papermentioned on GitHubtfMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

9 samples harvested; 0 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

9unverified

Licence: 0 of the 9 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from wy1iu/NSL. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

distorted_inputs wy1iu/NSL/nsl_global_ns/cifar10_input.py official repository unverified MIT (permissive) · 4319edefc1377d2b · report
distorted_inputs wy1iu/NSL/nsl_image_recog/nsl_fspherenet/cifar100_input.py official repository unverified MIT (permissive) · db351dee13022e90 · report
distorted_inputs wy1iu/NSL/nsl_image_recog/nsl_fspherenet/cifar10_input.py official repository unverified MIT (permissive) · bc68079bf939c329 · report
inputs wy1iu/NSL/nsl_global_ns/cifar10_input.py official repository unverified MIT (permissive) · 950dbedeeb8cfd93 · report
inputs wy1iu/NSL/nsl_image_recog/nsl_fspherenet/cifar100_input.py official repository unverified MIT (permissive) · 76df9f0846ab5570 · report
loss2 wy1iu/NSL/nsl_global_ns/loss.py official repository unverified MIT (permissive) · 059480856cbbff38 · report
loss2 wy1iu/NSL/nsl_image_recog/nsl_fspherenet/loss.py official repository unverified MIT (permissive) · 7bb2163a72b8b7cc · report
read_cifar10 wy1iu/NSL/nsl_global_ns/cifar10_input.py official repository unverified MIT (permissive) · 969bfd9c98f79209 · report
read_cifar10 wy1iu/NSL/nsl_image_recog/nsl_fspherenet/cifar100_input.py official repository unverified MIT (permissive) · 31e2b07fd9e3c442 · report

Tasks

Few-Shot Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Convolution

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections