PESTO (pitch estimation)
PESTO (Pitch Estimation with Self-supervised Transposition-equivariant Objective) is a small neural network that estimates the pitch of monophonic audio and is trained without pitch labels. Alain Riou, Stefan Lattner, Gaëtan Hadjeres and Geoffroy Peeters presented it at the ISMIR conference in 2023,[1:1] and a 2025 journal version added real-time streaming with a latency under 10 ms.[2:1] With fewer than 30,000 parameters in its first version and 130,000 in the second, it came close to or exceeded the supervised CREPE, which has 22.2 million.[1:2][2:2]
Background
PESTO's authors describe supervised neural pitch trackers such as CREPE as heavy, dependent on annotated data that is hard to obtain, poor at generalizing beyond the kind of audio they were trained on, and unsuited to real time because they use non-causal convolutions with large kernels.[2:3] PESTO follows SPICE in learning pitch from transposed copies of the same audio, but treats pitch estimation as classification over pitch bins rather than as regression.[1:3]
Method
A Siamese network receives two versions of the same audio's constant-Q transform, shifted in pitch relative to each other. A class-based objective requires the network's outputs to move with the shift, which captures pitch and keeps the network from collapsing to a trivial answer, and learnable Toeplitz matrices make the architecture preserve transpositions.[1:1] The output is a probability distribution over pitch bins, three to a semitone; absolute pitch is fixed, as in SPICE, by an offset set once with synthetic sounds of known pitch.[1:4] The journal version works on a variable-Q transform and computes it in a stream with cached convolutions.[2:1]
Evaluation
Trained on MIR-1K, PESTO reached raw pitch accuracy of 96.1% on MIR-1K and 94.6% on MDB-stem-synth, against 90.6% and 89.1% for SPICE; CREPE, supervised and with 750 times more parameters, reached 97.8% and 96.7%.[1:2] Trained on clean vocals, PESTO fell from 94.8% to 50.0% when backing music was added at equal level; trained on vocals mixed with their backing tracks, it held up much better and outperformed SPICE in noise.[1:5]
In the journal version, PESTO reached 97.7% on MIR-1K (CREPE 97.5%), 89.7% on the PTDB speech dataset (CREPE 87.1%) and 97.0% on MDB-stem-synth (CREPE 97.3%). PENN did better when trained on matching data, with 99.6% on MDB-stem-synth and 95.1% on PTDB.[2:2] Across domains PESTO generalized better: trained on music it reached 88.3% on speech, where PENN reached 63.2%, and trained on speech it reached 96.3% on music, where PENN reached 51.6%.[2:4] It was also the fastest model tested; PENN took about five times as long on a CPU, and PESTO ran about 60% faster than YIN.[2:5]
Other groups have measured it too. The authors of the FCPE pitch tracker count PESTO's parameters at 0.13 million, against 22.24 million for CREPE and 90.42 million for RMVPE.[3:1] In a community benchmark of 19 trackers on degraded recordings, PESTO scored 0.680, level with CREPE's 0.689 and behind RMVPE's 0.768, while running 20 times faster than real time on one CPU core against CREPE's 0.4.[4:1][4:2]
Use
Because it is small and needs no labels, its authors suggest training or fine-tuning PESTO on a small unlabelled dataset of a specific voice or instrument.[1:6] Its resolution is a sixth of a tone and it assumes no scale or temperament, which they suggest suits instruments using quarter tones or lacking annotated data.[1:7] The code, pretrained models and training pipeline are released as a pip-installable Python package.[2:6]
- ^a ^b ↗ pesto-abstract ^a ^b ↗ pesto-results ^ ↗ pesto-vs-spice ^ ↗ pesto-absolute ^ ↗ pesto-background ^ ↗ pesto-own-data ^ ↗ pesto-temperament Riou, Alain; Lattner, Stefan; Hadjeres, Gaëtan; Peeters, Geoffroy (2023). PESTO: Pitch Estimation with Self-supervised Transposition-equivariant Objective. Proceedings of the 24th International Society for Music Information Retrieval Conference (ISMIR 2023). Milan. https://arxiv.org/abs/2309.02265.
- ^a ^b ↗ pesto2-abstract ^a ^b ↗ pesto2-supervised ^ ↗ pesto2-crepe-limits ^ ↗ pesto2-cross ^ ↗ pesto2-speed ^ ↗ pesto2-release Riou, Alain; Torres, Bernardo; Hayes, Ben; Lattner, Stefan; et al. (2025). PESTO: Real-Time Pitch Estimation with Self-Supervised Transposition-Equivariant Objective. Transactions of the International Society for Music Information Retrieval. https://doi.org/10.5334/tismir.251 https://transactions.ismir.net/articles/10.5334/tismir.251.
- ^ ↗ fcpe-rmvpe-cost Luo, Yuxin; Zhang, Ruoyi; Liu, Lu-Chuan; Li, Tianyu; et al. (2025-09). FCPE: A Fast Context-based Pitch Estimation Model. arXiv. https://arxiv.org/abs/2509.15140.
- ^ ↗ bench-scope ^ ↗ bench-ranking Nieradzik, Lars. Pitch Detection Benchmark (README, version 2.1). GitHub: lars76/pitch-benchmark. https://github.com/lars76/pitch-benchmark.