arXiv:2609.39852eess.ASSep 2026

Manuscript Offprint

arXiv:2609.39852

Pitch Smoothing Using Relative Interval Networks

Chin-Yun Yu, Chi-Jen Peng, Li Su, György Fazekas

ABSTRACT

Pitch tracking systems typically couple a per-frame fundamental frequency ( F0F_{0}) estimator with a temporal smoothing stage to obtain continuous trajectories. Conventional Viterbi smoothers enforce first-order continuity but lack long-term temporal awareness and could lock into octave errors across corrupted frames. We propose Relative Interval Networks (RIN), a trajectory smoothing framework that reconciles per-frame pitch estimates with data-driven multi-hop pitch differences. We extract robust relative pitch intervals across arbitrary frame offsets using Variable-Q Transform cross-correlation. We formulate pitch smoothing as an L1L_{1}-norm optimization problem and prove its equivalence to a minimum cost circulation problem, solved efficiently via linear programming. Evaluations across speech, singing, and instrumental datasets show that RIN substantially improves weak estimators, matches or outperforms Viterbi decoding at a comparable computational cost, and provides superior robustness under certain acoustic degradation.

Index Terms— Pitch tracking, pitch smoothing, relative pitch intervals, variable-Q transform, minimum cost network flow

1. INTRODUCTION

Fundamental frequency ( F0F_{0}) estimation, commonly referred to as pitch estimation in audio signal processing, is a core task in speech and music analysis. Numerous algorithms have been proposed, from classical methods such as YIN [1], and SWIPE [2], to deep neural models like CREPE [3], DeepF0 [4], FCNF0++ [5], YOLOPitch [6], SLASH [7], and PESTO [8]. While modern neural models demonstrate strong resilience against noise [3,9], standalone per-frame estimators cannot exploit the rich temporal structure of audio signals. Consequently, pitch tracking, defined as the extraction of temporally coherent F0F_{0} trajectories over time, typically couples front-end pitch estimation with back-end pitch smoothing [9–11]. Temporal trajectory smoothing is therefore essential to ensure physically consistent contours, which forms the focus of this work.

To enforce temporal continuity, conventional systems rely on heuristics such as median filtering [12], or on dynamic programming (DP) [13, 14], which minimizes a sum of local and transition costs over a discretized state space [11, 13, 15]. Viterbi decoding is the DP recursion for the case where these costs are the log-likelihoods of a hidden Markov model (HMM) [9, 16, 17], a combination that significantly reduces pitch errors. Its limitations arise at three distinct layers of this construction. The chain structure of DP penalizes only immediately adjacent frames, so consecutive corrupted frames can lock the contour into an incorrect octave, as illustrated in Fig. 1. The HMM adds static, signal-agnostic transition penalties, assigning low probability to rare but legitimate transitions. The trellis requires a fine pitch grid, which incurs substantial computational cost.

Figure

Fig. 1. A failure case of Viterbi decoding on an MIR-1K excerpt.

In this work, we propose Relative Interval Networks (RIN), a trajectory smoothing framework that overcomes these bottlenecks. RIN extends our prior work on time-of-arrival estimation in spatial audio [18] by adapting measurements of relative differences to pitch smoothing. We propose a robust pitch difference estimator using the Variable-Q Transform (VQT) [19] and aggregating multi-hop observations beyond immediate neighbors. By combining these pitch differences with a given per-frame pitch estimator, our framework constructs a global optimization problem that minimizes the overall discrepancy between observations from the signal. As illustrated in Fig. 1, long-range relative measurements transport true pitch intervals across corrupted regions. We also show that this problem is equivalent to a minimum cost circulation problem, for which efficient implementations exist. Experiments on speech and musical signals show performance comparable to the Viterbi algorithm in clean conditions and superior robustness when low-SNR white noise presents, while remaining computationally efficient. Our implementation is open source and available on GitHub 1^{1}.

References (30)