REVIEW 4 major objections 5 minor 1 cited by
SwiftF0: Fast and Accurate Monophonic Pitch Detection
T0 review · 4 major / 5 minor · reviewed 2026-08-05 · deepseek-v4-flash
Pith's one-line read A 95,842-parameter CNN that reads a band-limited STFT spectrogram and decodes pitch by a local expected value is claimed to beat CREPE on monophonic pitch estimation, with the largest gains under added noise and a 42x CPU speed-up.
desk verdict Compact, fast pitch tracker with a useful open benchmark; the SOTA claim currently leans too hard on a self-generated test set and missing per-dataset numbers. read the letter →
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
The reading
What carries the argument
The load-bearing mechanism is the local expected-value decoder applied to a softmax distribution over 200 logarithmically spaced pitch bins. At inference, the model finds the argmax bin, normalizes probabilities within a window of plus or minus nine bins, and computes a weighted average of bin frequencies as the continuous pitch estimate. The training objective includes an L1 loss in log-frequency space on exactly this expected value, so the model is directly optimized for its decoding procedure; the same probability mass near the peak also yields a voicing confidence score.
What would settle it
Run SwiftF0 and CREPE on an independent held-out natural speech corpus with reliable pitch ground truth (for example, laryngograph-based recordings not used in training) and on a standard music pitch dataset, computing the same harmonic mean at 10 dB SNR. If the gap to CREPE falls substantially below the reported 12 percentage points, or if CREPE's harmonic mean exceeds SwiftF0's on those sets, the claimed state-of-the-art advantage is benchmark-dependent.
Extended reading notes
Core claim
The paper's central claim is that a lightweight STFT-CNN with 95,842 parameters can set a new state of the art for monophonic pitch estimation, beating CREPE by more than 12 percentage points in harmonic mean at 10 dB SNR and degrading only slightly from clean conditions. The architecture selects only STFT bins between 46.875 Hz and 2093.75 Hz, reducing input size by 74%, then passes a log-compressed spectrogram through five 2D convolutional layers before projecting to 200 logarithmically spaced pitch bins. Training combines categorical cross-entropy over bins with an L1 loss on expected log-frequency, so the model is explicitly optimized for the local expected-value decoder used at inferenc
Load-bearing premise
SwiftF0's claimed lead over CREPE rests on the assumption that the averaged three-dataset benchmark, which includes a synthetic speech test set generated by the same TTS-family approach used in training, fairly represents monophonic pitch estimation across real speech and music.
Editorial extensions
If this is right
- If the reported results hold, monophonic pitch estimation can be both highly accurate under noise and fast enough for real-time or embedded deployment on a CPU.
- The combination of band-limited STFT input and an expected-value decoder trained with a matching loss offers a concrete design template for other frequency-estimation tasks.
- SpeechSynth-style synthetic data with exact ground-truth pitch could support training and evaluation for speech applications where algorithmic pitch labels are unreliable.
- The harmonic-mean metric, by combining raw pitch accuracy, cents accuracy, voicing precision and recall, octave accuracy, and gross-error accuracy, discourages models from optimizing one metric at the expense of others.
- The reported stability under noise suggests that aggressive augmentation with mixed environmental and white noise can transfer to held-out domains.
Reading between the lines
- The claimed 12-point lead over CREPE may be sensitive to benchmark composition: two of the three evaluation sets are synthetic, and the SpeechSynth test set is generated with the same TTS-family approach used for training, so a comparison on natural speech and music could shrink the gap.
- The harmonic-mean metric's exponential weightings (e.g., 500 for cents error, 10 for octave errors, 5 for gross errors) are design choices; reweighting these factors could change relative rankings among the evaluated methods.
- The local expected-value decoder plus log-frequency L1 loss is a transferable mechanism: it could plausibly improve other pitch- or frequency-estimation networks without architectural changes.
- A natural next test is to evaluate SwiftF0 under non-stationary noise, reverberation, and varying SNR levels beyond the single 10 dB condition used in the paper.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper presents SwiftF0, a lightweight STFT-CNN pitch tracker (95,842 parameters) that predicts pitch via a learned softmax over 200 log-spaced bins and decodes with a local expected value. Training combines cross-entropy with an L1 loss on expected log-frequency and uses a large, augmented multi-dataset corpus. The authors claim a new state-of-the-art for monophonic pitch estimation, reporting a harmonic mean (HM) of 91.80% at 10 dB SNR, roughly 12 percentage points above CREPE, with only a 2.3-point drop from clean conditions. They also introduce SpeechSynth, a synthetic Mandarin TTS speech dataset with exact ground-truth F0, and a new six-metric harmonic-mean evaluation score. The paper includes open-source code and a benchmark suite.
Significance. If the reported results hold, SwiftF0 would be a practically valuable contribution: it is very compact, fast on CPU, robust to noise, and the synthetic dataset idea addresses a real weakness in current speech pitch labels. The open-source implementation and benchmark suite are important reproducibility assets. However, the headline 'state-of-the-art' claim is not currently supported by the evidence, because the evaluation is averaged over only three datasets, one of which is generated by the same TTS pipeline used for training, and the aggregate metric is author-defined with unexamined constants. The core method is plausible and the work is not internally contradictory, but the strength of the empirical claims substantially exceeds what the paper currently demonstrates.
major comments (4)
- [§4, Tables 1–2] All results are reported as averages over only three datasets, with no per-dataset breakdown, no variance, and no confidence intervals. Since one of those datasets (SpeechSynth) is generated by the same LightSpeech pipeline family used for training, the reader cannot determine whether the 91.80% HM and the >12-point margin over CREPE are driven by an in-distribution benchmark. Please report per-dataset scores for every metric (at least for SwiftF0 and CREPE), add variability estimates over held-out segments, and include an evaluation on a natural-speech corpus with reference pitch that was not used in training. Without this, the 'new state-of-the-art' claim is not empirically verifiable.
- [§3.8, HM metric] The harmonic mean HM = 6 / Σ(1/c_i) uses author-chosen constants (500, 10, 5) and an author-selected set of six components. The text says 500 was chosen to prevent HM from dropping to zero and 10/5 were chosen to weight octave and gross errors, but no sensitivity analysis is given. The paper's central comparison is based on this metric, so the ranking may not be robust to reasonable alternative coefficient choices. Please provide a sensitivity analysis over these constants (e.g., vary each by a factor of 2) and show that the ranking of SwiftF0 versus CREPE and pYIN is unchanged. In addition, report the six component metrics per dataset, not only as averages.
- [§3.6, SpeechSynth test set] The SpeechSynth test set is described only as 'independently generated' and 'not seen during training.' This guarantees non-overlap of instances, not independence of distribution: training and test come from the same LightSpeech generator trained on the same speech corpora. A model can learn TTS artifacts rather than general pitch structure and still look strong on this test set. Please provide evidence of distribution shift, such as per-dataset results on a held-out natural-speech dataset (e.g., a PTDB-TUG/MIR-1k split excluded from training), or a comparison of SwiftF0's performance on SpeechSynth versus natural speech. This is a generalization-risk concern, not an internal inconsistency, but it is load-bearing for the headline claim.
- [§3.4 vs §3.5] The training loss Lcents minimizes L1 error on the expected log-frequency, log(f) = Σ p_b log(f_b). At inference, however, the local expected value is computed as a weighted average of linear bin center frequencies, f = Σ p̃_b f_b. The paper states that 'the continuous estimate ... is computed using the same expected log-frequency formulation as in the regression loss,' which is inaccurate. This mismatch means the training objective does not directly optimize the inference decoding. Please either align the inference equation with the training objective (e.g., use the expected log-frequency and exponentiate), or add a loss term that matches the local expected-value decoding, and re-run the experiments if this changes results.
minor comments (5)
- [§3.5] The voicing confidence threshold is given only as 'approximately 90%.' The exact value should be specified for reproducibility, and the sensitivity to this threshold should be reported since voicing F1 is part of HM.
- [Figure 1] The bar chart labels in Figure 1 are confusing: the axis and legend mix 'Raw Chroma Accuracy,' 'Note Accuracy,' and 'Octave Accuracy.' Clarify which metric each panel shows.
- [References] The Biaobei reference appears as '[bia, 2017]' in the text but the bibliography entry lacks a key in the reference list; also check the citation key consistency for all URLs (e.g., the [SPTK developers, 2025] entry).
- [§3.3] The local expected value window half-width w=9 is stated without justification. A sentence on how this was chosen, or a small ablation, would strengthen the method section.
- [§4.3] Runtime results are given only as averages with no indication of variance or the specific CPU model. Since speed is a major contribution, report at least the hardware details and ideally standard deviations over repeated runs.
Circularity Check
No significant circularity: the derivation is self-contained and the evaluation, while having validity limitations, does not reduce to the paper's own inputs by construction.
full rationale
I walked the paper's claimed derivation chain: SwiftF0 is a trained STFT-CNN with a classification-plus-regression objective, and its reported accuracy is measured against held-out audio (Vocadito, Bach10-mf0-synth, and an independently generated SpeechSynth test set) using a six-component harmonic mean. I found no step where a prediction is equivalent to a fitted input by construction. The harmonic mean constants (500, 10, 5) are author-chosen metric weights, not parameters fitted to SwiftF0's outputs, and the paper does not claim to derive them from first principles. The fact that SpeechSynth is generated by the same TTS family used in training makes the test split distributionally close to training, and the lack of per-dataset breakdowns and confidence intervals is a legitimate external-validity concern, but it is not circularity: the test instances are distinct and the model's outputs are not defined in terms of the test labels. The local expected value at inference is aligned with the regression loss, but this is an optimization-design choice, not a reduction of the reported result to the loss definition. There are no load-bearing self-citations, no imported uniqueness theorems, and no ansatz smuggled in via citation. The central accuracy claim therefore has independent empirical content, even though its generalization beyond the evaluated domains remains uncertain.
Assumptions & free parameters
free parameters (8)
- STFT window length and hop =
N=1024, H=256
- Frequency band =
fmin=46.875 Hz, fmax=2093.75 Hz
- Number of pitch bins =
B=200 (approx. 33.1 cents per bin)
- Loss weight =
lambda=1
- Local expected value window half-width =
w=9
- Voicing confidence threshold =
~0.90
- HM metric coefficients =
CA decay 500, OA scale 10, GEA scale 5, RPA tolerance 50 cents, gross error threshold 200 cents
- Augmentation ranges =
gain [-6,+6] dB, SNR [10,30] dB, alpha in [0,1]
assumptions (5)
- domain assumption STFT magnitude spectrogram is a sufficient input representation for pitch estimation.
- domain assumption Algorithmically-derived labels in PTDB-TUG (RAPT), MIR-1k (YIN), and Vocadito (pYIN) are accurate enough to serve as training targets.
- domain assumption LightSpeech-generated phoneme-level TTS provides exact ground-truth pitch contours.
- ad hoc to paper The harmonic mean of six metrics with the chosen constants is a valid single measure of pitch tracker quality.
- domain assumption Training only on voiced frames, with a fixed confidence threshold at inference, is sufficient for unvoiced handling.
invented entities (1)
-
SpeechSynth synthetic speech dataset
Cite this review
Pith. "Pith review of SwiftF0: Fast and Accurate Monophonic Pitch Detection." pith.science (2026). https://pith.science/paper/VOS22KH7
@misc{pith2026250818440,
author = {Pith},
title = {Pith review of: SwiftF0: Fast and Accurate Monophonic Pitch Detection},
year = {2026},
howpublished = {\url{https://pith.science/paper/VOS22KH7}},
note = {Machine review of arXiv:2508.18440}
}
read the original abstract
Accurate and real-time monophonic pitch estimation in noisy conditions, particularly on resource-constrained devices, remains an open challenge in audio processing. We present \emph{SwiftF0}, a novel, lightweight neural model that sets a new state-of-the-art for monophonic pitch estimation. Through training on diverse speech, music, and synthetic datasets with extensive data augmentation, SwiftF0 achieves robust generalization across acoustic domains while maintaining computational efficiency. SwiftF0 achieves a 91.80\% harmonic mean (HM) at 10 dB SNR, outperforming baselines like CREPE by over 12 percentage points and degrading by only 2.3 points from clean audio. SwiftF0 requires only 95,842 parameters and runs approximately 42x faster than CREPE on CPU, making it ideal for efficient, real-time deployment. To address the critical lack of perfectly accurate ground truth pitch in speech corpora (which typically rely on algorithmic estimators or laryngograph signals), we introduce \emph{SpeechSynth}. This synthetic speech dataset, generated by a phoneme-level TTS model, provides exact, on-demand ground-truth pitch curves, enabling more robust model training and evaluation. Furthermore, we propose a unified metric, combining six complementary performance measures for comprehensive and reliable pitch evaluation, and release an open-source pitch benchmark suite. A live demo of SwiftF0 is available at https://swift-f0.github.io/, the source code at https://github.com/lars76/swift-f0, and the benchmark framework at https://github.com/lars76/pitch-benchmark.
Figures
Figures from the paper (1 more)
Forward citations
Cited by 1 Pith paper
-
Is Natural Always Appropriate? Investigating Naturalness and Appropriateness Across Different Domains for TTS Evaluation
Appropriateness of TTS varies independently across domains while naturalness scores penalize stylized speech and reward spontaneity.
Reference graph
Works this paper leans on
-
[7]
Yi Ren, Chenxu Hu, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu
doi:10.1109/ICASSP.2014.6854950. Yi Ren, Chenxu Hu, Xu Tan, Tao Qin, Sheng Zhao, Zhou Zhao, and Tie-Yan Liu. FastSpeech 2: Fast and high-quality end-to-end text to speech,
-
[8]
Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Jinzhu Li, Sheng Zhao, Enhong Chen, and Tie-Yan Liu
URL https://arxiv.org/abs/2006.04558. Renqian Luo, Xu Tan, Rui Wang, Tao Qin, Jinzhu Li, Sheng Zhao, Enhong Chen, and Tie-Yan Liu. LightSpeech: Lightweight and fast text to speech with neural architecture search,
arXiv 2006
-
[11]
URL https://arxiv.org/abs/2010.11567. Biaobei dataset. https://www.data-baker.com/datasets/freeDatasets,
arXiv 2010
-
[14]
doi:10.1016/j.wocn.2018.07.001. SPTK developers. Speech Signal Processing Toolkit (SPTK),
-
[2002]
Matthias Mauch and Simon Dixon
doi:10.1121/1.1458024. Matthias Mauch and Simon Dixon. pYIN: A fundamental frequency estimator using probabilistic threshold distributions. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) , pages 659–663,
-
[2008]
doi:10.1121/1.2916590. URL https://asa.scitation. org/doi/10.1121/1.2916590. Max Morrison, Caedon Hsieh, Nathan Pruyne, and Bryan Pardo. Cross-domain neural pitch and periodicity estimation,
-
[2010]
doi:10.1109/TASL.2009.2026503. Justin Salamon, Rachel M. Bittner, Jordi Bonada, Juan J. Bosch, Emilia Gómez, and Juan P. Bello. An analysis/synthesis framework for automatic F0 annotation of multitrack datasets. In Proceedings of the 18th International Society for Music Information Retrieval Conference (ISMIR) , Suzhou, China, October
-
[2014]
URL https://ieeexplore.ieee.org/document/ 6853681
doi:10.1109/ICASSP.2014.6853681. URL https://ieeexplore.ieee.org/document/ 6853681. David Talkin. A robust algorithm for pitch tracking (RAPT). In W. B. Kleijn and K. K. Paliwal, editors, Speech Coding and Synthesis, pages 495–518. Elsevier, Amsterdam,
Show all 15 references
-
[2015]
Yannick Jadoul, Benjamin Thompson, and Bas de Boer
doi:10.1109/W ASPAA.2015.7336899. Yannick Jadoul, Benjamin Thompson, and Bas de Boer. Introducing Parselmouth: A Python interface to Praat. Journal of Phonetics, 71:1–15,
2015
-
[2017]
Peter Foster, Siddharth Sigtia, Sacha Krstulovic, Jon Barker, and Mark D
DataBaker (Beijing) Technol- ogy Co., Ltd. Peter Foster, Siddharth Sigtia, Sacha Krstulovic, Jon Barker, and Mark D. Plumbley. Chime-home: A dataset for sound source recognition in a domestic environment. In 2015 IEEE Workshop on Applications of Signal Processing to Audio and ...
2015
-
[2018]
12 SwiftF0 A PREPRINT Paul Boersma and David Weenink
URL https://arxiv.org/abs/1802.06182. 12 SwiftF0 A PREPRINT Paul Boersma and David Weenink. Praat: doing phonetics by computer [Computer program] ,
-
[2021]
Yao Shi, Hui Bu, Xin Xu, Shaoji Zhang, and Ming Li
URL https://arxiv.org/abs/2110.05580. Yao Shi, Hui Bu, Xin Xu, Shaoji Zhang, and Ming Li. AISHELL-3: A multi-speaker mandarin TTS corpus and the baselines,
-
[2022]
org/abs/2203.09893
URL https://arxiv. org/abs/2203.09893. Sander Dieleman and Benjamin Schrauwen. End-to-end learning for music audio. In 2014 IEEE In- ternational Conference on Acoustics, Speech and Signal Processing (ICASSP) , pages 6964–6968,
2014 arXiv
-
[2023]
URL https://zenodo.org/doi/10.5281/zenodo. 7499098. 14
-
[2025]
Version 6.4.39, retrieved 13 July 2025 from https://praat.org
URL https: //praat.org. Version 6.4.39, retrieved 13 July 2025 from https://praat.org. Alain de Cheveigné and Hideki Kawahara. YIN, a fundamental frequency estimator for speech and music. The Journal of the Acoustical Society of America , 111(4):1917–1930,
2025
Reviewed August 5, 2026 · model on record in the stance chip above.
Discussion (0). Sign in to comment.