[Paper Review] Input Similarity from the Neural Network Perspective
The paper defines a neural-network–driven notion of input similarity, analyzes its mathematical properties, and uses it to estimate sample density and study self-denoising under noisy labels. It also explores enforcing similarity during training and practical applications to remote sensing image alignment.
We first exhibit a multimodal image registration task, for which a neural network trained on a dataset with noisy labels reaches almost perfect accuracy, far beyond noise variance. This surprising auto-denoising phenomenon can be explained as a noise averaging effect over the labels of similar input examples. This effect theoretically grows with the number of similar examples; the question is then to define and estimate the similarity of examples. We express a proper definition of similarity, from the neural network perspective, i.e. we quantify how undissociable two inputs $A$ and $B$ are, taking a machine learning viewpoint: how much a parameter variation designed to change the output for $A$ would impact the output for $B$ as well? We study the mathematical properties of this similarity measure, and show how to use it on a trained network to estimate sample density, in low complexity, enabling new types of statistical analysis for neural networks. We analyze data by retrieving samples perceived as similar by the network, and are able to quantify the denoising effect without requiring true labels. We also propose, during training, to enforce that examples known to be similar should also be seen as similar by the network, and notice speed-up training effects for certain datasets.
Motivation & Objective
- Define an intrinsic network-centric notion of input similarity that reflects how inputs influence each other through parameter updates
- Analyze mathematical properties of similarity measures for vanilla and parameter-sharing networks
- Develop fast, low-complexity estimators to quantify sample neighborhoods from trained networks
- Demonstrate how similarity measures can quantify self-denoising effects under label noise
- Investigate training-time enforcement of similarity to accelerate learning and improve robustness
- Apply the framework to analyze a remote sensing image alignment task with noisy labels
Proposed method
- Define similarity as the influence of one input on another via parameter updates, leading to kernels based on gradients: k^N_theta(x,x') = (∇_θ f_θ(x) · ∇_θ f_θ(x')) / ||∇_θ f_θ(x)||^2
- Introduce symmetric, bounded correlation kernel k^C_theta(x,x') = (∇_θ f_θ(x)/||∇_θ f_θ(x)||) · (∇_θ f_θ(x')/||∇_θ f_θ(x')||
- Extend to higher output dimension with kernel K_theta and its normalized variant K^C_theta; define k^C_theta(x,x') = (1/d) Tr K^C_theta(x,x')
- Propose a fast, low-complexity density estimator N_S(x) = sum_{x'} k^C_theta(x,x') under linear-time computation when output is 1D (and scalable to higher d)
- Discuss classification using a simplified binary view and connections to Fisher information when outputs are probabilistic
- Examine training-time enforcement of similarity by adding a loss term proportional to -k^C_theta(x,x') and analyze its computational aspects (double backpropagation)
Experimental results
Research questions
- RQ1What precise notion of input similarity is intrinsic to a neural network, and how can it be quantified from gradients?
- RQ2How does this similarity relate to sample density and the network’s denoising behavior under noisy labels?
- RQ3Can we efficiently estimate neighbor counts and densities using the proposed similarity measures?
- RQ4What are the effects and potential benefits of enforcing similarity during training?
- RQ5How can the similarity framework be applied to analyze and improve real-world tasks with noisy annotations, such as remote sensing image alignment?
Key findings
- A gradient-based similarity measure (k^C_theta) provides a meaningful, symmetric notion of input similarity bounded in [-1,1] and grounded in the network’s behavior
- The framework explains and quantifies a self-denoising effect when training with noisy labels, as similar inputs cause aligned outputs and variance reduction
- A fast estimator (N_S) computes neighborhood density in linear time for 1D outputs and scales to higher outputs with modest complexity
- Similarity statistics reveal how training rounds alter input neighborhoods, indicating evolving discriminability of inputs during learning
- Enforcing similarity during training can accelerate convergence on certain datasets (e.g., MNIST) and can influence learning dynamics
- The approach is applied to a remote sensing image alignment task, demonstrating that network-perceived similarities align with intuitive neighborhood structure beyond perceptual loss baselines
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.