---
title: 'PeakNetFP: Sparse Neural Audio Fingerprinting'
url: https://www.emergentmind.com/topics/peaknetfp
type: topic
---

# PeakNetFP: Sparse Neural Audio Fingerprinting

PeakNetFP is a neural audio fingerprinting (AFP) system designed around sparse spectral peaks rather than dense spectrogram patches. Introduced in "PeakNetFP: Peak-based Neural Audio Fingerprinting Robust to Extreme Time Stretching" [2506.21086], it combines peak-based AFP, PointNet++-style hierarchical point-feature extraction, and NeuralFP-style contrastive learning to produce compact fingerprint embeddings that remain robust under severe tempo modification. The central claim of the method is that it preserves the lightweight, sparse, and privacy-friendlier character of traditional peak-based pipelines while approaching the retrieval robustness of dense neural AFP, particularly for time stretching from \(0.5\times\) to \(2\times\) [2506.21086].

## 1. Problem domain and design objective

Audio fingerprinting identifies a query excerpt by matching it against a reference database. PeakNetFP targets a failure mode that is especially difficult for conventional peak-based AFP: time stretching, defined as changing tempo without changing pitch. The paper focuses on stretch factors from \(0.5\times\) to \(2.0\times\), corresponding to half speed through double speed, and frames this regime as relevant to DJs, remixes, mashups, licensing circumvention, and broadcast audio [2506.21086].

Classical peak-based systems such as Shazam-style methods, Panako, and QuadFP are described as efficient and scalable, but under strong stretching their geometric peak relationships drift, fewer valid peak constellations survive, and matching degrades sharply. PeakNetFP addresses this by avoiding brittle hand-crafted hashing rules alone. Instead, it keeps the sparse peak representation, learns a neural embedding over peaks, and uses contrastive learning so that stretched and unstretched versions of the same audio are mapped nearby in embedding space [2506.21086].

The paper characterizes this as a hybridization of three lines of work: traditional peak-based AFP, neural AFP, and point-cloud learning. This suggests that PeakNetFP is best understood not as a replacement for peak extraction, but as a learned representation layer built on top of a peak pipeline that would already be familiar in industrial AFP settings.

## 2. Sparse spectral representation

PeakNetFP operates on sparse spectral coordinates extracted from a mel-spectrogram. For each 1-second segment, the system extracts local maxima using a \(3 \times 3\) kernel with stride 1 and retains the 256 highest-amplitude peaks per second. These peaks are described in the paper as 3-dimensional coordinates, used directly as input in place of dense spectrogram patches [2506.21086].

This input choice is the defining representational difference between PeakNetFP and dense neural AFP. QuadFP also uses peaks directly, but does so in a rule-based hashing scheme; PeakNetFP uses the same sparse peaks as the substrate for a learned encoder. The paper emphasizes several consequences of this representation: less data to transmit from client to server, reduced memory and inference cost, more privacy-preserving behavior than dense spectrograms, and compatibility with systems that already precompute peaks [2506.21086].

A key reported quantitative comparison is input size. Dense spectrograms are described as roughly \(11\times\) larger than the sparse 256-peak input used by PeakNetFP. This is not merely a storage observation; it also conditions the architecture. Because the input is sparse, irregularly distributed, and unordered, the encoder cannot assume the regular grid structure exploited by CNN-based spectrogram models.

## 3. PointNet++-style architecture

PeakNetFP’s encoder is explicitly inspired by PointNet++, treating spectral peaks as a point cloud in time-frequency space. The paper states that the network uses hierarchical point feature extraction with two Set Abstraction (SA) layers employing Multi-Scale Grouping (MSG), followed by a final global abstraction that yields a 128-dimensional fingerprint vector [2506.21086].

At each SA layer, the model performs sampling, grouping plus feature extraction, and multi-scale grouping. Sampling selects the top-\(N\) peaks by amplitude as anchor points, with \(N^{(1)} = 200\) in the first SA layer and \(N^{(2)} = 100\) in the second. Grouping is implemented through a query ball that collects nearby peaks within a radius, and each local neighborhood is processed by a 3-layer MLP and summarized by max pooling. Each SA layer contains three parallel grouping branches with different radii and group sizes, so the network can learn local structure at multiple scales simultaneously [2506.21086].

| Layer | Reported parameters | Output role |
|---|---|---|
| SA + MSG 1 | \(N=200\); \(R=[0.1,0.2,0.3]\); \(G=[4,8,16]\); MLPs \((16,16,32)\), \((32,32,64)\), \((32,48,64)\) | First-stage local and multi-scale feature extraction |
| SA + MSG 2 | \(N=100\); \(R=[0.2,0.3,0.4]\); \(G=[4,8,16]\); MLPs \((32,32,64)\), \((64,64,128)\), \((64,64,128)\) | Deeper regional aggregation |
| Final SA | MLP \((128,256,128)\) | Global 128-dimensional fingerprint vector |

The rationale given in the paper is that peaks are sparse, irregularly distributed, and unordered, so a point-set encoder is a more natural fit than a grid-based CNN. The hierarchical, multi-scale construction is presented as important for time-stretch robustness because exact local spacing may vary under stretching, while broader structural regularities can remain informative [2506.21086].

## 4. Contrastive training and retrieval pipeline

PeakNetFP uses the same contrastive learning framework as NeuralFP, but replaces dense spectrogram input and a CNN encoder with sparse peak coordinates and a PointNet++-style point-set encoder. Training operates on 1-second windows with 50% overlap. Positive pairs are constructed by applying time stretching to audio snippets, and each mini-batch contains \(N\) samples together with their \(N\) augmented replicas, for a total size of \(2N\) [2506.21086].

The training objective is the normalized temperature-scaled cross-entropy loss (NT-Xent), with pairwise similarity defined by inner product:
$$
l(i,j) = - \log \frac{\exp(a_{i,j} / \tau)}{\sum_{k=1}^{2N} \mathbbm{1}_{[k \neq i]} \exp(a_{i,k} / \tau)}
$$
where
$$
a_{i,j} = \mathbf{z}_i^T \mathbf{z}_j
$$
and the full loss averages both directions across positive pairs:
$$
\mathcal{L} = \frac{1}{2N} \sum_{k=1}^{N} l(2k-1,2k) + l(2k,2k-1)
$$
[2506.21086]

At inference time, embeddings are indexed with Faiss IVFPQ, the top 20 candidates are retrieved, and sequence matching ranks query-candidate pairs by inner product. The paper therefore places PeakNetFP within the same retrieval paradigm as NeuralFP while changing the representational substrate and encoder family. A plausible implication is that the method is intended to preserve operational compatibility with neural AFP retrieval workflows even as it reduces input and model size.

## 5. Empirical performance under extreme stretching

The evaluation compares PeakNetFP with QuadFP, identified as the strongest conventional peak-based baseline for time stretching, and with NeuralFP, identified as the spectrogram-based neural state of the art in the paper’s framing. The reported setup uses Test-Query/DB tracks, a dummy reference database of 100,000 tracks, query lengths of 2, 3, 5, 6, and 10 seconds, and stretch factors including speed-up values \(1.05, 1.1, 1.2, 1.4, 1.6, 1.8, 2.0\) and slow-down values \(0.975, 0.95, 0.9, 0.8, 0.7, 0.6, 0.5\) [2506.21086].

The key metric is Top-1 hit rate, denoted \(\mathrm{HR}@1\). Because the neural systems always return a match, the paper notes that in this setup \(\mathrm{HR}@1\) is effectively both precision and recall. PeakNetFP’s headline result is that it maintains over 90% Top-1 hit rate across the full stretch range \(0.5\times\) to \(2\times\). For 10-second queries in the commonly studied range \(0.7\) to \(1.4\), it achieves over 98% \(\mathrm{HR}@1\). Under more extreme stretching, performance decreases somewhat but remains above 90% \(\mathrm{HR}@1\) [2506.21086].

Against QuadFP, the improvement is large at the extremes. The paper reports that QuadFP collapses badly under severe stretch and reaches only 3.6% \(\mathrm{HR}@1\) at factor \(0.5\). Against NeuralFP, PeakNetFP is described as very close: for stretch factors \(0.7\) to \(1.4\), the difference is at most \(\pm 0.7\%\) \(\mathrm{HR}@1\), and at the most extreme factor \(0.5\), the maximum gap is 1.85% \(\mathrm{HR}@1\) in favor of NeuralFP [2506.21086].

The paper also identifies an important limitation. PeakNetFP requires at least 5-second queries to keep performance consistently above 0.9 under extreme stretch factors. This constrains its operating regime: it is strong for short-to-medium query-by-example, but the reported evidence does not support the same robustness for very short queries under the harshest tempo deformations.

## 6. Efficiency profile, claimed contributions, and disambiguation

One of PeakNetFP’s strongest reported advantages is efficiency. The model has 169k trainable parameters, compared with 16.9M for NeuralFP, corresponding to \(100\times\) fewer parameters. Its sparse input is described as \(11\times\) smaller than NeuralFP’s \(256 \times 32\) spectrogram input. The paper also reports lower inference memory usage, measured with batch size 125 on a single RTX 3090: 800 MiB for PeakNetFP and 2338 MiB for NeuralFP [2506.21086].

These measurements support the paper’s broader positioning of PeakNetFP as easier to deploy, more scalable for catalog embedding generation, more suitable for client/server setups with limited bandwidth, and attractive for AFP pipelines where sparse peaks are already available. The paper correspondingly presents several firsts or contributions: the first neural AFP built specifically around spectral peaks, the first use of a point-cloud network for AFP, and a hybrid system that merges classical sparse peak input, PointNet++ hierarchical point-feature learning, and NeuralFP-style contrastive training [2506.21086].

PeakNetFP should be distinguished from the unrelated XFEL serial crystallography system PeakNet. "PeakNet: An Autonomous Bragg Peak Finder with Deep Neural Networks" [2303.15301] concerns autonomous Bragg peak finding in diffraction images, not audio fingerprinting. In that crystallography paper, the term “PeakNetFP” does not appear explicitly; the safest inference there is that it would refer to false-positive reduction behavior or to an informal variant label rather than to a separately defined architecture [2303.15301]. In current usage, PeakNetFP denotes the audio fingerprinting model introduced in 2025 [2506.21086].

Overall, PeakNetFP occupies a specific position in AFP research: it is a sparse-input neural embedding system optimized for robustness to extreme time stretching. Its reported significance lies in showing that a peak-based representation, when paired with point-set learning and contrastive training, can closely approach dense neural AFP on a demanding deformation class while materially reducing parameter count, input size, and memory footprint [2506.21086].

Source: https://www.emergentmind.com/topics/peaknetfp