Inverse harmonic clustering for multi-pitch estimation: an optimal transport approach Thanks: The authors are with the Department of Information and Communications Engineering, Aalto University, Finland. Emails: firstname.lastname@aalto.fi Anton Björkman, Filip Elvander Abstract In this work, we consider the problem of multi-pitch estimation, i.e., identifying super-imposed truncated harmonic series from noisy measurements. We phrase this as recovering a harmonically-structured measure on the unit circle, where the structure is enforced using regularizers based on optimal transport theory. In the resulting framework, a signal’s spectral content is simultaneously inferred and assigned, or transported, to a small set of harmonic series defined by their corresponding fundamental frequencies. In contrast to existing methods from the compressed sensing paradigm, the proposed framework decouples regularization and dictionary design and mitigates coherency problems. As a direct consequence, this also introduces robustness to the phenomenon of inharmonicity. From this framework, we derive two estimation methods, one for stochastic and one for deterministic signals, and propose efficient numerical algorithms implementing them. In numerical studies on both synthetic and real data, the proposed methods are shown to achieve better estimation performance as compared to other methods from statistical signal processing literature. Furthermore, they perform comparably or better than network-based methods, except when the latter are specially trained on the data-type considered and are given access to considerably more data during inference. and I Introduction Fundamental frequency, or pitch, estimation is a common task in a variety of applications within signal processing, including speech processing [ 1 ] , music audio signal processing [ 2 , 3 ] , and biomedical modeling [ 4 ] . The task can be divided into two classes: single-pitch estimation, and multi-pitch estimation, with the latter being significantly more challenging, as well as less studied. Single-pitch estimation aims to identifying the fundamental frequency of one signal that consists of a single harmonic series, as seen in cases like a single instrument or for human speech with only one active speaker. In contrast, multi-pitch estimation arises naturally when there are multiple instruments playing or when there are several speakers. For the single-pitch problem, there are several methods available. Examples of these include YIN [ 5 ] , RAPT [ 6 ] and SWIPE [ 7 ] , where both YIN and RAPT are based on the autocorrelation of the signal. SWIPE instead attempts to find the best match for the fundamental frequency of a sawtooth waveform that best describes the spectrum of the input signal. For the multi-pitch problem (for a general overview, see [ 8 ] ), some recent methods are parametric methods based on dictionaries whose atoms correspond to harmonic series, such as PEBS [ 9 ] , and the signal components are identified by minimizing sparsity-promoting optimization criteria, often expressed as a regularized least-squares problem. An extension of PEBS was introduced in [ 10 ] as PEBS 2 TV, adding a total variation term to deal with subharmonic errors in the model. An additional method, PEBSI-lite, was introduced in [ 11 ] , improving upon PEBS 2 TV by better approximating one of the penalty terms as well as introducing self-regularization and an adaptive dictionary construction. Another method based on the same type of dictionary is PE-BSBL-Cluster (herein denoted PE-BSBL-C) [ 12 ] , which instead uses Bayesian learning with a block sparse prior, as well as intra-block clustering to deal with subharmonic errors. Here, the estimation is based on assumptions of the harmonic structure of the signal, such as an added penalty if the first harmonic is missing, or if nearby harmonics are missing. One of the drawbacks of these methods is that the dictionary atoms become highly coherent because of the overlap of the harmonics of different candidate pitches. Furthermore, these methods assume perfect harmonicity among each pitch, making them susceptible to errors in the face of inharmonicity, i.e., when individual sinusoids deviate from the harmonic model, as is the case, for example, with string instruments [ 13 , 14 , 15 ] and to some extent in human speech [ 16 ] . Recently, pitch estimators based on deep learning have been proposed, showing promising results both for the single-pitch and multi-pitch problems. Estimators for the single-pitch problem include CREPE [ 17 ] , Harmof0 [ 18 ] and SPICE [ 19 ] , while examples for the multi-pitch problem are DeepSalience [ 20 ] as well as three models from [ 21 ] , building upon the former. While these methods have proven effective for pitch estimation, they inherently impose certain limitations on the input. For example, if a model is trained on a specific type of data, such as speech, it may not be effectively detect pitches in other signal types like music. Moreover, parameters such as sampling rate, frame length, frequency range, and hop size are often enforced by the structure of the model itself, or required to match that of the training data. As a result, if one would want to change these parameters, the model would either need to be retrained, or a pre-processing step, such as re-sampling the signal, would need to be applied to the signal, as is commonly done for these estimators. In similarity to the previously mentioned dictionary-based multi-pitch estimators, our proposed work uses a similar dictionary in order to form our estimates. However, in contrast to the other dictionary-based methods, we in this work propose to both alleviate the need of pitch-based dictionaries by formulating the multi-pitch estimation through a dictionary, but instead of having the atoms correspond to complete harmonic series, the atoms in our dictionaries correspond to Fourier basis functions, thus removing the harmonic overlap between atoms. In particular, the aim is to infer the spectral content of the observed signal, i.e., the power (or amplitudes) and frequencies of individual sinusoids, while simultaneously assigning these into a small number of groups, corresponding to pitches. This grouping is performed on the basis of the Monge-Kantorovich problem of optimal transport (OT) [ 22 ] . OT-based problems have previously been used for spectral estimation (see, e.g., [ 23 , 24 , 25 , 26 ] ), as well as in the context of pitch estimation [ 27 , 28 , 29 , 30 ] . However, to the best of the authors’ knowledge, our previous work [ 31 ] was the first work to propose an OT-based estimator for solving the multi-pitch estimation as an inverse problem, where only noisy observations of the signal waveform are known, of which the work proposed herein is expanded upon. In this paper, we aim to build upon our prior work in [ 31 ] . This work differs from our previous work in the following aspects: firstly, we define the problem in a more general form, which not only allows us to more precisely articulate the specific problem we aim to solve, but also allows us to return to it later: we first solve the pitch estimation problem, return to the general form, and then re-estimate the frequency structure of the signal. Secondly, we introduce a new estimation formulation, based on the auto-covariance of the measurements. Thirdly, we conduct more thorough experiments than in our previous work, here including real data as well as a Monte Carlo type study. We also provide a comparison with deep network-based methods, which was not included in our previous work, wherever applicable. I-A Notation Unless explicitly stated otherwise, we denote scalars, column vectors, and matrices by lower-case, lower-case bold, and upper-case bold letters such as a , {\mathbf{a}} , and {\mathbf{A}} . Let (\cdot)^{T} , (\cdot)^{H} , and \overline{(\cdot)} denote transpose, Hermitian transpose, and complex conjugation, respectively. For F\in\mathbb{N} , we use the short-hand [\![F]\!]\triangleq\{1,2,\ldots,F\} . We let \mathbb{T}\triangleq[-\pi,\pi) , which we identify with the unit circle. Furthermore, let {\mathcal{C}_{\mathrm{per}}}(\mathbb{T}) be the set of continuous, complex-valued, 2 \pi -periodic functions on \mathbb{T} . We let {\mathbb{C}\mathcal{M}}(\mathbb{T}) denote the set of linear bounded functionals on {\mathcal{C}_{\mathrm{per}}}(\mathbb{T}) , i.e., the dual space of {\mathcal{C}_{\mathrm{per}}}(\mathbb{T}) . In particular, this is the set of complex-valued measures on \mathbb{T} with finite total variation. Let {\mathcal{M}_{+}}(\mathbb{T}) denote the subset of {\mathbb{C}\mathcal{M}} consisting of real, non-negative measures. For f\in{\mathcal{C}_{\mathrm{per}}}(\mathbb{T}) and \mu\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) , we use the notation \langle\mu,f\rangle for the application of the functional \mu on f , i.e., \displaystyle\langle\mu,f\rangle=\int_{\mathbb{T}}f(\omega)d\mu(\omega). For Hilbert spaces, we use \langle\cdot,\cdot\rangle to denote the standard inner product. In particular, for two matrices {\mathbf{A}},{\mathbf{B}}\in\mathbb{C}^{m\times n} , \langle{\mathbf{A}},{\mathbf{B}}\rangle=\text{trace}\left({\mathbf{A}}{\mathbf{B}}^{H}\right) . For scalars a , \left|a\right| denotes the absolute value, whereas for a vector {\mathbf{a}} , the absolute value is applied elementwise, as in \left|{\mathbf{a}}\right| . Furthermore, for \mu\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) , \left|\mu\right| denotes the variation, i.e., for any \mathcal{E}\subset\mathbb{T} \displaystyle\left|\mu\right|(\mathcal{E})=\sup\sum_{p}\left|\mu(\mathcal{E}_{p})\right|, where the supremum is over all partitions of \mathcal{E} . Note that \left|\mu\right|\in{\mathcal{M}_{+}}(\mathbb{T}) , and if \mu\in{\mathcal{M}_{+}}(\mathbb{T}) , then \left|\mu\right|=\mu . II Signal model Consider the discrete-time, complex-valued signal 1 1 1 For generality, we here consider the complex-valued representation. However, this can easily be formed as the discrete-time analytical version of a real-valued signal [ 32 ] . y on the form \displaystyle y_{t}=x_{t}+v_{t},\;t=0,1,2,\ldots (1) where x is the signal of interest, and v is an additive noise term, assumed to be circularly symmetric white Gaussian noise with some variance \sigma_{v}^{2} , i.e., v_{t}\sim\mathbb{C}\mathcal{N}(0,\sigma_{v}^{2}) and independent for different t . We here assume that x is an inharmonic multi-pitch signal. That is, x can be decomposed into K\in\mathbb{N} components according to \displaystyle x_{t}=\sum_{k=1}^{K}x_{t}^{(k)}, (2) where each x^{(k)} is an approximately periodic, or inharmonic , waveform. In particular, for some harmonic order L^{(k)}\in\mathbb{N} , each component is of the form \displaystyle x_{t}^{(k)}=\sum_{\ell=1}^{L^{(k)}}\alpha_{\ell}^{(k)}e^{i\omega_{\ell}^{(k)}t}, (3) where \alpha_{\ell}^{(k)}\in\mathbb{C} , \ell\in[\![L^{(k)}]\!] , are complex amplitudes, and the frequencies \omega_{\ell}^{(k)}\in\mathbb{T} form an approximately harmonic set: \displaystyle\omega_{\ell}^{(k)}\approx\ell\omega_{0}^{(k)} (4) for some \omega_{0}^{(k)}\in\mathbb{T} . The approximate equality in ( 4 ) should here be interpreted as the existence of so-called inharmonicity parameters \Delta_{\ell}^{(k)} , with \left|\Delta_{\ell}^{(k)}\right|\ll\omega_{0}^{(k)} , such that \displaystyle\omega_{\ell}^{(k)}=\ell\omega_{0}^{(k)}+\Delta_{\ell}^{(k)}. For an in-depth discussion on how to stringently define a concept of ”fundamental frequency” \omega_{0}^{(k)} for inharmonic signals, see [ 30 ] . Then, given a finite set of noisy samples of the signal waveform x , i.e., observations y_{t} from ( 1 ) for t=0,1,\ldots,N-1 for a finite N\in\mathbb{N} , we wish to find a decomposition ( 2 ) and to estimate the set of fundamental frequencies \{\omega_{0}^{(k)}\}_{k=1}^{K} . We refer to this problem as inharmonic multi-pitch estimation, where each component x^{(k)} is referred to as a pitch. II-A Prior art and motivation In the perfectly harmonic case, i.e., when the relation ( 4 ) holds with equality, the state-of-the-art methods for multi-pitch estimation in the statistical signal processing literature revolve around the idea of parsimonious signal representations, and in particular the concept of compressed sensing. In broad terms, many methods, such as the methods in [ 9 , 10 , 11 ] , solve problems of the form \displaystyle\underset{{\boldsymbol{\alpha}}}{\mathrm{minimize}}\quad\frac{1}{2}\left\lVert{\mathbf{y}}-{\mathbf{A}}{\boldsymbol{\alpha}}\right\rVert_{2}^{2}+\mathcal{R}({\boldsymbol{\alpha}}), (5) where {\mathbf{y}}=\begin{bmatrix}y_{0}&y_{1}&\ldots&y_{N-1}\end{bmatrix}^{T} is the collection of signal samples, {\mathbf{A}} is finite dictionary used for approximating the signal, and {\boldsymbol{\alpha}} is the corresponding set of coefficients. Furthermore, \mathcal{R} is a regularization function that, together with a properly chosen structure of {\mathbf{A}} , is designed to promote a sparse pitch-structure on the estimate {\mathbf{A}}{\boldsymbol{\alpha}} . Typically, the ”atoms” of the dictionary {\mathbf{A}} are blocks of column vectors corresponding to a truncated harmonic series. That is, for such a block {\mathbf{A}}^{(k)}\in\mathbb{C}^{N\times L^{(k)}} and a corresponding coefficient vector {\boldsymbol{\alpha}}^{(k)}\in\mathbb{C}^{L^{(k)}} , the vector {\mathbf{A}}^{(k)}{\boldsymbol{\alpha}}^{(k)} represents samples from (perfectly harmonic) signals on the form ( 2 ). The regularizer \mathcal{R} is then designed as to promote a block-sparse structure on the full coefficient vector {\boldsymbol{\alpha}} . The estimated fundamental frequencies \{\omega_{0}^{(k)}\}_{k=1}^{K} are simply found by identifying the corresponding non-zero blocks of {\boldsymbol{\alpha}} . Although the method presented in [ 12 ] does not follow the structure of ( 5 ), the same type of dictionary is used, with sparsity enforced in a similar manner, but through the use of a Bayesian framework. Figure 1: Example of the frequency grid point density. The case of uniform gridding is shown in blue, while the frequency grid used for the harmonic dictionaries is shown in red. Both grids have the same number of total grid points. Although these methods can yield high-accuracy estimates, they are susceptible to the well-known off-grid effect [ 33 ] . This may be countered by selecting a fine-enough set of atoms of {\mathbf{A}} , i.e., candidate pitch-blocks {\mathbf{A}}^{(k)} . However, achieving a desired coverage of the interval 2 2 2 It may be noted the sampling of the frequency axis implied by the full set of harmonics in {\mathbf{A}} is highly non-uniform. \mathbb{T} leads to a large and highly coherent dictionary {\mathbf{A}} . This affects both estimation performance, as well as computational burden when solving ( 5 ). Furthermore, this rigid structure does not allow for deviations from the perfectly harmonic assumption, such as the inharmonicities considered in this work. It may be noted that also grid-free and grid-less methods have been proposed, building on the ideas of atomic norm denoising [ 34 , 35 ] . These, however, require the solution of large semi-definite programs [ 36 ] or rely on non-convex heuristics [ 37 ] . Furthermore, neither these accommodate deviations from perfect harmonicity. In contrast, we in this work propose to phrase multi-pitch estimation as the problem of recovering a measure from noisy indirect measurements, where we design regularizing functions \mathcal{R} imposing a pitch structure on the sought measure. As will later be shown, by leveraging the concept of optimal transport, this allows us to decouple the measurement mechanism, i.e., the mapping taking the signal ”coefficients” to the observations, from the regularizer. This is in stark contrast with the above mentioned methods, in which both measurement and regularization are inherently linked to the structure of the dictionary {\mathbf{A}} . As an illustration, Figure 1 shows the sampling of the frequency axis resulting from dictionaries with harmonic series as atoms. As can be seen, this results in a highly non-uniform frequency gridding. In addition to this, it should be emphasized that this type of dictionary will also result in duplicated grid points due to harmonic overlap. As reference, the uniform sampling of a Fourier vector dictionary, as used by the methods proposed herein, is shown. As noted, we will construct our regularizer based on the concept of optimal transport. Before doing this, we will connect the signal x to complex-valued measures on \mathbb{T} , i.e., elements of {\mathbb{C}\mathcal{M}}(\mathbb{T}) . This will allow us to talk about notions of ”mass” for x , which naturally leads to transport formulations. We will do this in two different settings: one stochastic and one deterministic. Although related, the two different views ultimately lead to different regularizers and estimators. II-B Stochastic model Assume that the complex amplitudes \alpha_{\ell}^{(k)} in ( 3 ) are random variables parametrized as \alpha_{\ell}^{(k)}=\sigma_{\ell}^{(k)}z_{\ell}^{(k)} , where \sigma_{\ell}>0 are deterministic, and z_{\ell} are independent, zero-mean, circularly symmetric random variables with unit variance, i.e., \displaystyle\mathbb{E}\left(z_{\ell}^{(k)}\right)=0,\;\mathbb{E}\left(\left|z_{\ell}^{(k)}\right|^{2}\right)=1, where \mathbb{E}(\cdot) is the expectation operator. Then, the signal x is a wide-sense stationary stochastic process with covariance function r:\mathbb{Z}\to\mathbb{C} defined as \displaystyle r(\tau)\triangleq\mathbb{E}\left(x_{t}\overline{x_{t-\tau}}\right)=\sum_{k=1}^{K}\sum_{\ell=1}^{L^{(k)}}\ \sigma_{\ell}^{2}e^{i\omega_{\ell}^{(k)}\tau},\;\tau\in\mathbb{Z}. With this, we can associate x , or r , with a non-negative measure {\nu} on \mathbb{T} , i.e., {\nu}\in{\mathcal{M}_{+}}(\mathbb{T})\subset{\mathbb{C}\mathcal{M}}(\mathbb{T}) , in the sense that \displaystyle r(\tau)=\langle{\nu},e^{i(\cdot)\tau}\rangle=\int_{\mathbb{T}}e^{i\omega\tau}d{\nu}(\omega),\;\tau\in\mathbb{Z}. (6) That is, \nu generates the covariance function by acting on functions f_{\tau}(\omega)=e^{i\omega\tau} , indexed by \tau . Specifically, \displaystyle{\nu}=\sum_{k=1}^{K}\sum_{\ell=1}^{L^{(k)}}\left(\sigma_{\ell}^{(k)}\right)^{2}\delta_{\omega_{\ell}^{(k)}}, (7) where \delta_{q} is the Dirac measure at q\in\mathbb{T} . This is simply stating the Wiener-Khinchin theorem, and {\nu} is the power spectrum of x . Then, if we consider a finite set of observations at lags \tau=0,1,\ldots,\mathcal{T}-1 , with \mathcal{T}\in\mathbb{N} , for the covariance function r , we can define the linear operator {\cal A}:{\mathbb{C}\mathcal{M}}(\mathbb{T})\to\mathbb{C}^{\mathcal{T}} such that \left[{\cal A}({\nu})\right]_{\tau}=\langle{\nu},e^{i(\cdot)\tau}\rangle , i.e., \displaystyle\mathbf{r}={\cal A}({\nu}), (8) where \mathbf{r}=\begin{bmatrix}r(0)&r(1)&\ldots&r(\mathcal{T}-1)\end{bmatrix}^{T} . Thus, if we have access to \mathbf{r} , or an estimate there-of, one could imagine retrieving {\nu} , and thus the frequency content of x , by inverting the relation ( 8 ). If the observation \mathbf{r} is noise-free and if \mathcal{T}>\sum_{k=1}^{K}L^{(k)} , this is indeed possible by the Caratheodory-Fejér theorem [ 38 ] , as is done for instance in the MUSIC algorithm [ 39 ] . In practice, \mathbf{r} is subject to noise, and we need to regularize the relation in order to allow for inversion. Note here that the spectrum {\nu} can be interpreted as a distribution of mass over \mathbb{T} . Furthermore, {\nu} can be decomposed into K approximately harmonic component measures {\nu}^{(k)}\in{\mathcal{M}_{+}}(\mathbb{T}) as \displaystyle{\nu}=\sum_{k=1}^{K}{\nu}^{(k)},\text{ with }{\nu}^{(k)}=\sum_{\ell=1}^{L^{(k)}}\left(\sigma_{\ell}^{(k)}\right)^{2}\delta_{\omega_{\ell}^{(k)}}. (9) Note that from {\nu}^{(k)} , the frequency content of the corresponding x^{(k)} is directly available. This additive decomposition and mass distribution interpretation will allow us to leverage optimal transport theory in order to retrieve a ”multi-pitch structured” {\nu} . II-C Deterministic model Herein, we take the alternative view that the complex amplitudes \alpha_{l}^{(k)} are deterministic constants. Although we lose the concepts of covariance function and power spectrum, we can still associate the signal x with an element of {\mathbb{C}\mathcal{M}}(\mathbb{T}) . In fact, this measure {\mu}\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) now generates the signal samples themselves, i.e., \displaystyle x_{t}=\langle{\mu},e^{i(\cdot)t}\rangle=\int_{\mathbb{T}}e^{i\omega t}d{\mu}(\omega),\;t\in\mathbb{N}, by acting on the functions f_{t}(\omega)=e^{i\omega t} , indexed by the time t . Here, {\mu} is given by \displaystyle{\mu}=\sum_{k=1}^{K}\sum_{\ell=1}^{L^{(k)}}\alpha_{\ell}^{(k)}\delta_{\omega_{\ell}^{(k)}}, (10) where, similar to the stochastic case, we note that {\mu} may be decomposed into {\mu}^{(k)}\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) according to \displaystyle{\mu}=\sum_{k=1}^{K}{\mu}^{(k)},\text{ with }{\mu}^{(k)}=\sum_{\ell=1}^{L^{(k)}}\alpha_{\ell}^{(k)}\delta_{\omega_{\ell}^{(k)}}. If we have access to N\in\mathbb{N} observations of x_{t} , t=0,1,\ldots,N-1 , we may analogously to the stochastic case define a linear operator {\cal A}:{\mathbb{C}\mathcal{M}}(\mathbb{T})\to\mathbb{C}^{N} such that \displaystyle{\mathbf{x}}={\cal A}({\mu}) (11) where {\mathbf{x}}=\begin{bmatrix}x_{0}&x_{1}&\ldots&x_{N-1}\end{bmatrix}^{T} . It may here be noted that the problem of inverting the relation ( 11 ) under the assumption of \mu consisting of a small set of point-masses corresponds to the classical works on super resolution spectral estimation [ 40 ] via atomic norm/total variation minimization [ 41 ] . If \mathbb{T} is discretized, this simply corresponds to \ell_{1} minimization. For our purposes, we are interested in connecting the signal x to a mass distribution. It may be noted that although {\mu}\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) , it is not an element of {\mathcal{M}_{+}}(\mathbb{T}) . However, we may construct such an element by the variation \left|{\mu}\right|\penalty\ \in\penalty\ {\mathcal{M}_{+}}(\mathbb{T}) . Then, if the supports of the Dirac measures in ( 10 ) are completely disjoint, \left|{\mu}\right| is simply given by \displaystyle\left|{\mu}\right|=\sum_{k=1}^{K}\sum_{\ell=1}^{L^{(k)}}\left|\alpha_{\ell}^{(k)}\right|\delta_{\omega_{\ell}^{(k)}}. (12) If this is the case, then \left|{\mu}\right| can be decomposed into K component measures |{\mu}^{(k)}|\in{\mathcal{M}_{+}}(\mathbb{T}) as \displaystyle\left|{\mu}\right|=\sum_{k=1}^{K}|{\mu}^{(k)}| (13) where, as the notation suggests, |{\mu}^{(k)}| is indeed the variation of {\mu}^{(k)} . However, if the support of some Dirac measures would overlap, the representation in ( 12 ) is no longer valid, nor is the decomposition into the K components. Instead, we get the inequality \displaystyle\left|{\mu}\right|(\mathcal{E})\leq\sum_{k=1}^{K}|{\mu}^{(k)}|(\mathcal{E}) (14) which holds for any \mathcal{E}\subset\mathbb{T} . Although this is a subtle difference, it will have practical consequences in the design of the algorithms implementing our proposed estimators. To summarize, for both the stochastic and deterministic signal models, we can connect signal observations to elements of {\mathbb{C}\mathcal{M}}(\mathbb{T}) via relations ( 8 ) and ( 11 ), with complex measures encoding the signal’s frequency content. The aim is then to recover the (approximately) harmonic structures of {\nu} and {\mu} . The tool for achieving this will be regularizers constructed based on the concept of optimal transport, described next. III Optimal transport Consider two general, non-negative measures, or mass distributions, {\mu}_{1},{\mu}_{2}\in{\mathcal{M}_{+}}(X) defined on some space X , with same total mass, i.e., {\mu}_{1}(X)={\mu}_{2}(X) . Then, the Monge-Kantorovich problem of OT considers the most cost-efficient way of transporting, or morphing, {\mu}_{1} as to be identical to {\mu}_{2} . The cost of moving one unit-mass from a support-point \omega_{1} of {\mu}_{1} to a corresponding support-point \omega_{2} of {\mu}_{2} is given by c(\omega_{1},\omega_{2}) , where c:X\times X\to\mathbb{R} is a so-called ground-cost function. For example, if X=\mathbb{R}^{d} for some d\in\mathbb{N} , then c is typically picked as the squared Euclidean distance. The problem of minimizing the total cost of rearrangement is then stated as \displaystyle\underset{m\in{\mathcal{M}_{+}}(X\times X)}{\mathrm{minimize}} \displaystyle\left\{\langle m,c\rangle\triangleq\int_{X\times X}c(\omega_{1},\omega_{2})dm(\omega_{1},\omega_{2})\right\} (15) \displaystyle\text{s.t. } \displaystyle\int_{\mathcal{E}_{1}\times X}dm(\omega_{1},\omega_{2})=\int_{\mathcal{E}_{1}}d\mu_{1}(\omega), \displaystyle\int_{X\times\mathcal{E}_{2}}dm(\omega_{1},\omega_{2})=\int_{\mathcal{E}_{2}}d\mu_{2}(\omega), \displaystyle\text{for all sets }\mathcal{E}_{1},\mathcal{E}_{2}\subset X. Here, the transport plan m describes how mass is moved from {\mu}_{1} to {\mu}_{2} , with the constraints ensuring that m indeed describes transport between the two distributions. This can be phrased as m having margins \mu_{1} and \mu_{2} , and we use the short-hand {\mathcal{P}}_{1}(m)={\mu}_{1} and {\mathcal{P}}_{2}(m)={\mu}_{2} , where the projection operators {\mathcal{P}}_{1} and {\mathcal{P}}_{2} are uniquely defined by the constraints in ( 15 ). The minimal objective in ( 15 ) serves as a notion of distance or dissimilarity on {\mathcal{M}_{+}}(X) , which has been exploited in problem machine learning and signal processing (see [ 42 ] for a review). Most closely related to the multi-pitch estimation problem considered in this work, OT has been earlier used for solving inverse problems of spectral estimation [ 25 , 25 ] . In contrast to the problem ( 15 ), we are in this work interested in the setting where we can only observe one of the marginals indirectly according to ( 8 ) or ( 11 ) and where the second margin is free or unconstrained in the sense that it is not related to observations or measurements. Instead, we will extend the transport problem ( 15 ) as to allow us to ultimately recover decompositions on the form ( 9 ) or ( 13 ). IV Optimal transport for harmonic spectra Consider any {\mu}\in{\mathcal{M}_{+}}(\mathbb{T}) . Building on [ 30 ] , we may quantify how close {\mu} is to being the power spectrum of a harmonic signal with a certain fundamental frequency \omega_{0}^{\prime} by means of an OT problem. In particular, let c:\mathbb{T}\times\mathbb{T}\to\mathbb{R} be a ground-cost function, where c(\omega,\omega_{0}) is the cost of associating the frequency \omega with a fundamental frequency \omega_{0} . Then, we may formally solve \displaystyle\underset{m\in{\mathcal{M}_{+}}(\mathbb{T}\times\mathbb{T})}{\mathrm{minimize}}\quad\langle m,c\rangle,\text{ s.t. }{\mathcal{P}}_{1}(m)={\mu},\;{\mathcal{P}}_{2}(m)=\mu(\mathbb{T})\delta_{\omega_{0}^{\prime}}. (16) Note here that the first margin of the transport plan m co-incides with {\mu} , whereas the second margin has all its mass located at the single point \omega_{0}^{\prime} . Then, if m^{\star} is a solution to ( 16 ), S_{\mathrm{h}}^{c}(\omega_{0}^{\prime},{\mu})\triangleq\langle m^{\star},c\rangle serves as a notion of distance between {\mu} and (any) harmonic spectrum with fundamental frequency \omega_{0}^{\prime} . It may be noted that this minimal objective can be computed in closed form. In particular, \displaystyle S_{\mathrm{h}}^{c}(\omega_{0}^{\prime},{\mu})=\langle m^{\star},c\rangle=\int_{\mathbb{T}}c(\omega,\omega_{0}^{\prime})d{\mu}(\omega). It should here be stressed that {\mathcal{P}}_{2}(m^{\star}) is not the spectrum of a harmonic signal. However, such a spectrum can be recovered from the pair (m^{\star},c) , or from ({\mu},c) , and depends on the specific construction of the ground-cost c . In particular, in [ 30 ] , the squared distance to the closest harmonic was used, i.e., c=\hat{c} , where \displaystyle\hat{c}(\omega,\omega_{0})=\min_{k\in\mathbb{Z}_{+}}(\omega-k\omega_{0})^{2}, (17) where \mathbb{Z}_{+} is the set of positive integers. The implied harmonic spectrum is then given by \displaystyle{\mu}_{\text{h}}=\sum_{k}\sigma^{2}_{k}\delta_{k\omega_{0}},\text{ with }\sigma^{2}_{k}=\int_{(k-1/2)\omega_{0}}^{(k+1/2)\omega_{0}}d{\mu}(\omega). It may here be noted that if {\mu} contains point-masses on the interval edges, then {\mu}_{\text{h}} is not unique. The same ground-cost was used in [ 27 ] in the context of music transcription. Although the choice \hat{c} is intuitively reasonable, it leads to a strong preference for low fundamental frequencies \omega_{0} if one is to use S_{\mathrm{h}}^{\hat{c}} to choose between different \omega_{0} fitting {\mu} . In particular, it may be readily verified that for any {\mu}\in{\mathcal{M}_{+}}(\mathbb{T}) and \omega_{0}\in\mathbb{T} , \displaystyle S_{\mathrm{h}}^{\hat{c}}(\omega_{0}/2,{\mu})\leq S_{\mathrm{h}}^{\hat{c}}(\omega_{0},{\mu}), which is a direct consequence of \hat{c}(\omega_{0}/2,\omega)\leq\hat{c}(\omega_{0},\omega) for all \omega\in\mathbb{T} . This inevitably leads to so-called sub-octave errors and is typically countered using heuristic rules for limiting the maximal harmonic order or imposing additional structure on the implied spectrum {\mu}_{\text{h}} . In this work, we propose to remedy this by a simple normalization and define the ground-cost as \displaystyle c(\omega,\omega_{0})=\frac{1}{\omega_{0}^{2}}\hat{c}(\omega,\omega_{0})=\min_{k\in\mathbb{Z}_{+}}\left(\frac{\omega}{\omega_{0}}-k\right)^{2}. (18) Note that, just as for \hat{c} , c induces transport plans m where mass is transported to the closest harmonic of a given \omega_{0} . Thus, c and \hat{c} imply the same harmonic spectrum {\mu}_{\text{h}} . However, the corresponding S_{\mathrm{h}}^{{c}} shows preference for \omega_{0} over \omega_{0}/2 when applied to inharmonic signals. To see this, consider an inharmonic component located at \omega_{k}=k\omega_{0}+\Delta for some k , where \Delta , with \left|\Delta\right|<\omega_{0}/2 , is the inharmonic deviation. Then, we have that c(\omega_{k},\omega_{0}){\nu}(\omega), corresponding to the coefficient of the largest point-mass. It may be noted that this can be directly extended to the case when {\nu} also contains a component with a density. With this, we are ready to state our proposed multi-pitch estimator for the stochastic setting. We define it as the solution to the optimization problem \displaystyle\underset{m\in{\mathcal{M}_{+}}(\mathbb{T}\times\Omega_{G})}{\mathrm{minimize}}\>\frac{1}{2}\left\lVert\mathbf{r}\!-\!{\cal A}({\mathcal{P}}_{1}(m))\right\rVert_{2}^{2}+\zeta\!\left(\langle m,c\rangle+\eta\left\lVert m\right\rVert_{\infty,1}\right), (21) where \zeta and \eta are positive regularization parameters controlling the trade-off between data-fit and regularization, and sparsity of the transport plan. Note here that increasing \eta has the effect of promoting transport plans m concentrated to a small number of points of \Omega_{G} . Assume that an optimal m^{\star} have been obtained from solving ( 21 ). Then, by inspecting the restricted measures {\mathcal{P}}^{(g)}(m) we can identify the pitches present in the signal, and their corresponding fundamental frequencies \omega_{0}^{(g)} . Furthermore, we can then restrict the grid \Omega_{G} to contain only these active pitches and solve ( 20 ) as to obtain a debiased solution, countering the shrinkage towards zero caused by the \left\lVert\cdot\right\rVert_{\infty,1} -term. When designing an algorithm for solving ( 21 ), we will work with the equivalent formulation \displaystyle\underset{{\nu}\in{\mathcal{M}_{+}}(\mathbb{T})}{\mathrm{minimize}}\quad\frac{1}{2}\left\lVert\mathbf{r}-{\cal A}({\nu})\right\rVert_{2}^{2}+\zeta\mathcal{R}^{\mathrm{stoch}}({\nu}), (22) where \mathcal{R}^{\mathrm{stoch}}({\nu}) is defined as \displaystyle\mathcal{R}^{\mathrm{stoch}}({\nu})=\underset{m\in{\mathcal{M}_{+}}(\mathbb{T}\times\Omega_{G})}{\mathrm{min}} \displaystyle\langle m,c\rangle+\eta\left\lVert m\right\rVert_{\infty,1} (23) \displaystyle\text{s.t. } \displaystyle{\displaystyle\mathcal{P}}_{1}(m)={\nu}. When solving ( 22 ) in practice, we will discretize the operator {\cal A} . This highlights a key difference between the method proposed herein and other multi-pitch estimators: the measurement operator is independent of the set of pitch candidates, corresponding to the set \Omega_{G} . For methods such as [ 9 , 10 , 11 ] , the operator {\cal A} is constructed based on the set of candidate pitches, causing coherence problems as mentioned earlier. Figure 3: Illustrative example of a transport plan between a harmonic spectrum to a pitch spectrum. The upper plot is the pitch spectrum, while the rotated plot on the right-hand side displays the spectrum of the evaluated signal. V-B Modification for deterministic model Recall that for the deterministic model, the object of interest is {\mu}\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) . In order to arrive at an estimator analog to the stochastic one, we have to extend the formulation ( 22 ) rather than ( 21 ). The reason for this is that the projection of the transport plan m in ( 21 ) necessarily is an element of {\mathcal{M}_{+}}(\mathbb{T}) . However, the extending formulation ( 22 ) allows us to use the variation construction introduced earlier. Recall that if {\mu}\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) can be decomposed into as set of components {\mu}^{(k)} , then their corresponding variations \left|{\mu}\right|\in{\mathcal{M}_{+}}(\mathbb{T}) and |{\mu}^{(k)}|\in{\mathcal{M}_{+}}(\mathbb{T}) satisfy the inequality ( 14 ), where equality holds if the supports of the components {\mu}^{(k)} do not overlap, or have the same phase on any overlaping subset of \mathbb{T} . Now, consider a transport plan m\in{\mathcal{M}_{+}}(\mathbb{T}\times\Omega_{G}) . In analog to the interpretation of the restricted measure {\mathcal{P}}^{(g)}(m) as representing a component measure {\nu}^{(g)} in the stochastic case, we can in the deterministic case view {\mathcal{P}}^{(g)}(m) as representing the variation |{\mu}^{(k)}| of a component {\mu}^{(k)}\in{\mathbb{C}\mathcal{M}}(\mathbb{T}) . In view of this and the inequality ( 14 ), it becomes natural to replace the equality constraint in ( 23 ) with the inequality \displaystyle{\mathcal{P}}_{1}(m)\geq\left|{\mu}\right|, (24) which should be understood as a point-by-point inequality on \mathbb{T} . We can then define the regularizer \mathcal{R}^{\mathrm{det}}:{\mathbb{C}\mathcal{M}}(\mathbb{T})\to\mathbb{R} as \displaystyle\mathcal{R}^{\mathrm{det}}({\mu})=\underset{m\in{\mathcal{M}_{+}}(\mathbb{T}\times\Omega_{G})}{\mathrm{min}} \displaystyle\langle m,c\rangle+\eta\left\lVert m\right\rVert_{\infty,1} (25) \displaystyle\text{s.t. } \displaystyle{\displaystyle\mathcal{P}}_{1}(m)\geq\left|{\mu}\right|. It may be verified that \mathcal{R}^{\mathrm{det}} is a convex function on {\mathbb{C}\mathcal{M}}(\mathbb{T}) . Note also that convexity is lost if the inequality is replaced by equality in the constraint. With this, we can formulate the multi-pitch estimator for the deterministic model as the solution to \displaystyle\underset{{\mu}\in{\mathbb{C}\mathcal{M}}(\mathbb{T})}{\mathrm{minimize}}\quad\frac{1}{2}\left\lVert{\mathbf{y}}-{\cal A}({\mu})\right\rVert_{2}^{2}+\zeta\mathcal{R}^{\mathrm{det}}({\mu}). (26) As in the stochastic case, this is a convex optimization problem. Furthermore, we may retrieve the frequency content of the component pitches by inspecting the restricted measures {\mathcal{P}}^{(g)}(m) . It should however be noted that we in general can only hope to retrieve |{\mu}^{(k)}| rather than {\mu}^{(k)} as we lose phase-information at points in \mathbb{T} where the inequality in ( 24 ) is strict. However, at points where equality holds, which for example is the case when the support of the components do not overlap, the phase can also be retrieved. VI Discretization and entropy regularization Expanding upon the problems in ( 22 ) and ( 26 ), we here aim to discretize both problems, allowing for efficient implementations. To this end, we introduce the grid {\boldsymbol{\omega}}=\{\omega_{1},\ldots,\omega_{F}\}\subset[0,\pi) consisting of F frequencies, corresponding to a discretization of the frequency space, \mathbb{T} . Then, the problem in ( 22 ) can be written in vector form as \displaystyle\underset{\boldsymbol{\nu}\in\mathbb{R}^{F}_{+}}{\mathrm{minimize}} \displaystyle\frac{1}{\mathcal{T}}\left\lVert\mathbf{\hat{r}}-{\mathbf{A}}\boldsymbol{\nu}\right\rVert_{2}^{2}+\beta(\boldsymbol{\nu}^{T}\mathbf{1}_{F})+\zeta{\mathbf{S}}_{c}(\boldsymbol{\nu}), (27) where {\mathbf{A}}=\begin{bmatrix}{\mathbf{a}}(\omega_{1})&\dots&{\mathbf{a}}(\omega_{F})\end{bmatrix} is a dictionary matrix which is a matrix whose columns {\mathbf{a}}(\omega_{f})\in\mathbb{C}^{N} consists of Fourier vectors corresponding to frequencies \omega_{f} , f\in[\![F]\!] , over the sample time. The matrix multiplication {\mathbf{A}}\boldsymbol{\nu} here corresponds to the operation {\cal A}({\nu}) in ( 22 ), where \boldsymbol{\nu}\in\mathbb{R}_{+}^{F} is a vectorized version of {\nu} . Additionally, \mathbf{\hat{r}}\in\mathbb{C}^{\mathcal{T}} denotes the (partial) sample-auto-covariance vector, formed based on noisy measurements. 3 3 3 In practice when solving ( 27 ), we consider the equivalent purely-real problem where we stack the real- and imaginary parts according to \hat{\mathbf{r}}_{R}=\begin{bmatrix}\mathfrak{Real}(\hat{\mathbf{r}})&\mathfrak{Imag}(\hat{\mathbf{r}})\end{bmatrix}^{T} and correspondingly for {\mathbf{A}} . To combat the addition of noise, we propose an \ell_{1} -norm regularizer on \boldsymbol{\nu} . The \ell_{1} -term promotes sparsity in the frequency estimates, pushing the components driven only by noise down to 0 . Since \boldsymbol{\nu} contains only non-zero elements, the resulting \ell_{1} -norm term becomes \beta(\boldsymbol{\nu}^{T}\mathbf{1}_{F}) . We also introduce a normalizing factor of 2/\mathcal{T} for the first term. Lastly, the last regularizing term is defined as \displaystyle{\mathbf{S}}_{c}(\boldsymbol{\nu})=\min_{\mathbf{M}\in\mathbb{R}_{+}^{F\times G}} \displaystyle\langle\mathbf{C},\mathbf{M}\rangle+\epsilon D(\mathbf{M})+\eta\left\lVert\mathbf{M}\right\rVert_{\infty,1}, s.t. \displaystyle\mathbf{M}\mathbf{1}_{G}=\boldsymbol{\nu}, corresponding to a discretization of \mathcal{R}^{\mathrm{stoch}}({\nu}) , where \mathbf{M} is the discretized transport plan, \mathbf{C}\in\mathbb{R}_{+}^{F\times G} is the cost matrix , with \mathbf{C}_{f,g}=c(\omega_{f},\omega_{0}^{(g)}) , and where \left\lVert\cdot\right\rVert_{\infty,1} now denotes the regular mixed norm, i.e., \left\lVert\mathbf{M}\right\rVert_{\infty,1}=\sum_{g=1}^{G}\max_{f\in[\![F]\!]}\left|[\mathbf{M}]_{f,g}\right| . Furthermore, \epsilon D(\mathbf{M})=\epsilon\sum_{f,g}[\mathbf{M}]_{f,g}\log[\mathbf{M}]_{f,g}-[\mathbf{M}]_{f,g}+1 , with \epsilon>0 , is an entropic regularization term [ 44 ] which will allow us to derive efficient numerical solvers. It may be noted that the addition of \epsilon D(\mathbf{M}) renders ( 27 ) strictly convex. Similarly, we discretize the problem in ( 26 ), yielding \displaystyle\underset{\boldsymbol{\mu}\in\mathbb{C}^{F}}{\mathrm{minimize}}\quad\frac{1}{N}\left\lVert{\mathbf{y}}-{\mathbf{A}}\boldsymbol{\mu}\right\rVert_{2}^{2}+\beta\left\lVert\boldsymbol{\mu}\right\rVert_{1}+\zeta\mathcal{S}(\boldsymbol{\mu}), (28) where \displaystyle\mathcal{S}(\boldsymbol{\mu})\triangleq\underset{\mathbf{M}\in\mathbb{R}_{+}^{F\times G}}{\mathrm{min}} \displaystyle\langle\mathbf{C},\mathbf{M}\rangle+\epsilon D(\mathbf{M})+\eta\left\lVert\mathbf{M}\right\rVert_{\infty,1}, (29) \displaystyle\text{s.t. } \displaystyle\mathbf{M}\mathbf{1}_{G}\geq\left|\boldsymbol{\mu}\right|. The matrix multiplication {\mathbf{A}}\boldsymbol{\mu} here corresponds to the operation {\cal A}({\mu}) in ( 26 ), where \boldsymbol{\mu}\in\mathbb{R}_{+}^{F} is a vectorized version of {\mu} . As we again work with noisy measurements, the \ell_{1} -norm term is used here as well. However, as the elements of {\mu} are complex valued, the \ell_{1} -norm term is not simplified, as was the case for the stochastic problem. In the following section, we introduce efficient solvers for the estimator presented herein. VII Numerical algorithms In order to compute the solutions to ( 27 ) and ( 28 ), we use iterative algorithms. In particular, we in this work propose to use proximal gradient-type methods. As a brief general outline, consider the minimization problem \displaystyle\underset{x\in\mathbb{C}^{F}}{\mathrm{minimize}}\quad E(x)=e(x)+d(x), where e is a smooth convex function, and d is a (possibly non-differentiable) convex function. Under the assumption that e has a Lipschitz continuous gradient L , the problem can be solved through alternating between taking gradient steps with respect to e and computing the proximal mapping of the regularizer d , given by \displaystyle x^{(j+1)} \displaystyle=\mathrm{prox}_{\gamma d}(x^{(j)}-\gamma\nabla e(x^{(j)})) (30) \displaystyle\triangleq\underset{x}{\mathrm{argmin}}\quad\frac{1}{2}\|x-u\|_{2}^{2}+\gamma d(x). with 1/\gamma\geq L being the step size, u=(x^{(j)}-\gamma\nabla e(x^{(j)})) , and \mathrm{prox_{d}} is the proximal operator of d . A generalization of proximal gradient descent has been proposed (see, e.g., [ 45 , 46 , 47 ] ), where an approximation of the function e depends on a Bregman distance associated with a function \varphi . The iterations for this are then given by \displaystyle x^{(j+1)}=\underset{x\in\mathbb{C}^{F}}{\mathrm{argmin}}\left\{\gamma\langle\nabla e(x^{(j)}),x\rangle+\gamma d(x)+\mathcal{D}_{\varphi}(x,x^{(j)})\right\}, (31) where \displaystyle\mathcal{D}_{\varphi}(x,x^{(j)})=\varphi(x)-\varphi(x^{(j)})-\nabla\varphi(x^{(j)})(x-x^{(j)}). It should be noted that with \varphi(x)=\left\lVert x\right\rVert_{2}^{2} , the regular proximal gradient scheme is obtained. Furthermore, both descent methods have so-called accelerated versions, which speed up the convergence; see [ 48 , 47 ] for more information. Below, we first present the solver for the stochastic model, based on the Bregman proximal gradient schemes presented in this section. VII-A Stochastic model We herein propose to solve ( 27 ) using the Bregman proximal gradient scheme in ( 31 ), with e(\boldsymbol{\nu})=\frac{1}{\mathcal{T}}\left\lVert\mathbf{\hat{r}}-{\mathbf{A}}\boldsymbol{\nu}\right\rVert_{2}^{2}+\beta(\boldsymbol{\nu}^{T}\mathbf{1}_{F}) , and d(\boldsymbol{\nu})=\zeta{\mathbf{S}}_{c}(\boldsymbol{\nu}) . The function associated with the Bregman divergence we here use is \varphi(\boldsymbol{\nu})=\sum_{f=1}^{F}\boldsymbol{\nu}_{f}\log\boldsymbol{\nu}_{f} , yielding the Kullback-Leibler relative entropy, given by \displaystyle\mathcal{D}_{KL}(\boldsymbol{\nu},\boldsymbol{\nu}^{(j)})=\sum_{f=1}^{F}[\boldsymbol{\nu}]_{f}\log([\boldsymbol{\nu}]_{f}/[\boldsymbol{\nu}^{(j)}]_{f})+[\boldsymbol{\nu}^{(j)}]_{f}-[\boldsymbol{\nu}]_{f}. We here choose the step size to be \gamma=\frac{1}{L} , where L\penalty\ =\penalty\ 2\left\lVert{\mathbf{A}}\right\rVert^{2}/\mathcal{T} , and where \left\lVert\cdot\right\rVert is the operator norm, as is also the case for the other method presented later. For this method, this does not guarantee convergence, but was shown by empirical testing to be a sufficiently small step size. Inspired by the work in [ 49 ] , the iterates for the solution are, nonetheless, given by \displaystyle\boldsymbol{\nu}^{(j+1)}=\underset{\boldsymbol{\nu}\in\mathbb{R}_{+}}{\mathrm{argmin}}\quad \displaystyle\gamma\left\langle\mathbf{u},\boldsymbol{\nu}\right\rangle+\mathcal{D}_{KL}(\boldsymbol{\nu},\boldsymbol{\nu}^{(j)})+\gamma\zeta{\mathbf{S}}_{c}(\boldsymbol{\nu}), (32) where \mathbf{u}=\nabla\left(\frac{1}{\mathcal{T}}\|\mathbf{\hat{r}}-{\mathbf{A}}\boldsymbol{\nu}^{(j)}\|_{2}^{2}+\gamma\beta((\boldsymbol{\nu}^{(j)})^{T}\mathbf{1}_{F}\right) . For this minimization problem, the following proposition holds. Proposition 1 . Let \odot denote elementwise multiplication. Then, the update \boldsymbol{\nu}^{(j+1)} in ( 32 ) and corresponding transport plan \mathbf{M} are given by \displaystyle\boldsymbol{\nu} \displaystyle=\boldsymbol{\nu}^{(j)}\odot\exp\left(-\gamma\mathbf{u}-\gamma\zeta\boldsymbol{\lambda}\right), (33) \displaystyle\mathbf{M} \displaystyle=\mathrm{diag}(\mathbf{v})(\mathbf{K}\odot{\mathbf{W}}), (34) with \mathbf{v}\penalty\ \!=\!\penalty\ \exp\left(\frac{1}{\epsilon}\boldsymbol{\lambda}\right) , \mathbf{K}=\exp\left(-\frac{1}{\epsilon}\mathbf{C}\right) , {\mathbf{W}}=\exp\left(\frac{1}{\epsilon}\mathbf{\Psi}\right) , and where \boldsymbol{\lambda}\in\mathbb{R}^{F}_{+} and \mathbf{\Psi}\in\mathbb{R}^{F\times G} solve \displaystyle\underset{\begin{subarray}{c}\boldsymbol{\lambda},\;\mathbf{\Psi}\\ \|\mathbf{\Psi}\|_{1,\infty}\leq\eta\end{subarray}}{\mathrm{minimize}}\;\gamma\zeta\epsilon\langle\mathbf{K}\odot{\mathbf{W}},\mathbf{v}\mathbf{1}_{G}^{T}\rangle+\langle\boldsymbol{\nu}^{(j)},\exp\left(-\gamma\mathbf{u}-\gamma\zeta\boldsymbol{\lambda}\right)\rangle (35) Here, \|\mathbf{\Psi}\|_{1,\infty}=\max_{g}\sum_{f}\left|\Psi_{f,g}\right| is the dual norm of \|\cdot\|_{\infty,1} , and all exponentiation and powers are elementwise. Proof. See appendix. ∎ For solving the problem in ( 35 ), we use a block-coordinate descent scheme (see [ 49 , 25 ] ). The following proposition holds. Proposition 2 . Consider an iterative scheme with update in step k+1 given as \displaystyle\boldsymbol{\lambda}^{k+1} \displaystyle=\frac{\epsilon}{1+\gamma\zeta\epsilon}\left(\log(\boldsymbol{\nu}_{0})-\log(\boldsymbol{\xi}^{k})\right), \displaystyle\mathbf{\Psi}^{k+1} \displaystyle=\underset{\mathbf{\Psi}:\|\mathbf{\Psi}\|_{1,\infty}\leq\eta}{\mathrm{argmin}}\left\langle(\mathbf{v}^{k+1}\mathbf{1}_{G}^{T})\odot\mathbf{K},\exp\left(\frac{1}{\epsilon}\mathbf{\Psi}\right)\right\rangle, where \boldsymbol{\nu}_{0}=\boldsymbol{\nu}^{(j)}\odot\exp(-\gamma\mathbf{u}) , \boldsymbol{\xi}^{k}=\exp(-\frac{1}{\epsilon}\mathbf{C}+\frac{1}{\epsilon}\mathbf{\Psi}^{k})\mathbf{1}_{G} , and v^{k+1}=\exp(\frac{1}{\epsilon}\boldsymbol{\lambda}^{k+1}) Then, the iterates converge linearly to a solution of ( 35 ). Proof. The objective function of ( 35 ) is differentiable with respect to the dual variable \boldsymbol{\lambda} . For a fixed \mathbf{\Psi} , the stated update for \boldsymbol{\lambda} satisfies the zero-gradient equations and is this optimal. Then, for fixed \boldsymbol{\lambda} , we may minimize the objective with respect to \mathbf{\Psi} using [ 26 , Thm. 2] , which only requires a sorting operation. As the problem satisfies the assumptions of [ 50 , Thm. 2.1] , linear convergence follows directly. ∎ It may be noted that we may retrieve the distribution over \Omega , i.e., the set of candidate fundamental frequencies, as \displaystyle\mathbf{M}^{T}\mathbf{1}_{F}=(\mathbf{K}^{T}\odot{\mathbf{W}}^{T})\mathbf{v}. From inspecting the support of this vector, one can identify which pitches that are present in the signal. Furthermore, we may characterize the solution as the entropy regularization parameter \epsilon\to 0 . Proposition 3 . Let \{\epsilon_{p}\}_{p} be a sequence with \lim_{p\to\infty}\epsilon_{p}\to 0 . Then, the corresponding sequence \{\boldsymbol{\nu}_{p}\}_{p} of solutions to ( 27 ) has a limit point \boldsymbol{\nu}^{\star} satisfying \boldsymbol{\nu}^{\star}=\mathbf{M}^{\star}\mathbf{1}_{G} , where \mathbf{M}^{\star} is the unique maximum-entropy element among all transport plans solving ( 27 ) without entropy regularization. Proof. See appendix ∎ This result is a direct analog of the classic fact for the case of transport plans where the margins are observable. Furthermore, if we let \eta=0 , i.e., not enforce any group-sparsity among the pitches, then it follows directly that each row of \mathbf{M}^{\star} consists of only zeros and equal-magnitude elements. Specifically, an element [\mathbf{M}^{\star}]_{k,\ell} is non-zero only if [\mathbf{C}]_{k,\ell}=\min_{j}[\mathbf{C}]_{k,j} . For k with [\boldsymbol{\nu}^{\star}]_{k}>0 , the mass is split equally among the elements [\mathbf{M}]_{k,\ell} with \{\ell\mid[\mathbf{C}]_{k,\ell}=\min_{j}[\mathbf{C}]_{k,j}\} . Thus, when \eta=0 , the power corresponding to a certain frequency is distributed uniformly over the set of pitches most consistent with it. Next, we present the estimator for the deterministic model, where we instead use the regular proximal gradient scheme. VII-B Deterministic model We propose solving ( 28 ) through a proximal gradient scheme, alternating between taking gradient steps for the data-fit terms, and solving the proximal operator for the remaining terms. Here, in order to guarantee convergence, the stepsize is chosen to be \gamma=\frac{1}{L} , where L=2\left\lVert{\mathbf{A}}\right\rVert^{2}/N . Then, the iterates are given by \displaystyle\boldsymbol{\mu}^{(j+1)}\!\!=\!\mathrm{prox}_{\gamma\beta\left\lVert\cdot\right\rVert_{1}\!+\!\gamma\zeta\mathcal{S}_{1}(\cdot)}\!\!\left(\!\!\boldsymbol{\mu}^{(j)}\!-\!\gamma\nabla_{\boldsymbol{\mu}^{*}}\!\frac{1}{N}\left\lVert{\mathbf{y}}\!-\!{\mathbf{A}}\boldsymbol{\mu}^{(j)}\!\right\rVert_{2}^{2}\right) where \nabla_{{\boldsymbol{\alpha}}^{*}}(\cdot) denotes the (Wirtinger) gradient with respect to the complex conjugate \boldsymbol{\mu}^{*} . For the proximal operator, the following proposition holds. Proposition 4 . The proximal operator for \gamma\beta\left\lVert\cdot\right\rVert_{1}+\gamma\zeta\mathcal{S}(\cdot) is unique and given by \displaystyle\mathrm{prox}_{\gamma\beta\left\lVert\cdot\right\rVert_{1}+\gamma\zeta\mathcal{S}(\cdot)}(\mathbf{u})=e^{i\angle\mathbf{u}}\odot\left(\left(\left|\mathbf{u}\right|-\gamma\beta\mathbf{1}_{F}-\boldsymbol{\lambda}\right)_{+}\right) where \odot denotes elementwise multiplication, \angle\mathbf{u} denotes the phase angle of \mathbf{u} , (\cdot)_{+}=\max(\,\cdot\,,0) , and \boldsymbol{\lambda}\penalty\ \in\penalty\ \mathbb{R}_{+}^{F} solves \displaystyle\underset{\begin{subarray}{c}\boldsymbol{\lambda}\in\mathbb{R}_{+}^{F}\>,\>\mathbf{\Psi}\in\mathbb{R}^{F\times G}\\ \|\mathbf{\Psi}\|_{1,\infty}\leq\eta\end{subarray}}{\mathrm{minimize}}\gamma\zeta\epsilon\langle\mathbf{K}\odot{\mathbf{W}},\mathbf{v}\mathbf{1}_{G}^{T}\rangle+\frac{1}{2}\!\left(\left(\left|\mathbf{u}\right|\!-\!\gamma\beta\mathbf{1}_{F}\!-\!\boldsymbol{\lambda}\right)_{+}\right)^{2} (36) where \mathbf{v} , \mathbf{K} , and {\mathbf{W}} are as in Proposition 1 . The result can be proved in the same way as Proposition 1 . Furthermore, ( 36 ) can be solved using a block-coordinate descent scheme that by [ 50 , Thm. 2.1] enjoys linear convergence. The explicit iteration updates are summarized in the following proposition. Proposition 5 . Consider the iterates \displaystyle\boldsymbol{\lambda}^{(k+1)} \displaystyle=\frac{1}{\gamma\zeta}\left|\mathbf{u}\right|-\frac{\beta}{\zeta}\mathbf{1}_{F}-\epsilon\mathcal{W}\left(\boldsymbol{\xi}^{(k)}\right) \displaystyle\mathbf{\Psi}^{k+1} \displaystyle=\underset{\mathbf{\Psi}:\|\mathbf{\Psi}\|_{1,\infty}\leq\eta}{\mathrm{argmin}}\left\langle(\mathbf{v}^{k+1}\mathbf{1}_{G}^{T})\odot\mathbf{K},\exp\left(\frac{1}{\epsilon}\mathbf{\Psi}\right)\right\rangle. where \displaystyle\boldsymbol{\xi}^{(k)} \displaystyle=\log\left((\mathbf{K}\odot{\mathbf{W}}^{(k)})\mathbf{1}_{G}\right)+\frac{\left|\mathbf{u}\right|-\gamma\beta\mathbf{1}_{F}}{\gamma\zeta\epsilon}-\log\left(\gamma\zeta\epsilon\mathbf{1}_{F}\right), and \mathcal{W}(\cdot) denotes the (elementwise) Wright omega function [ 51 ] . Then, the iterates converge linearly to a solution of ( 36 ). The expressions are obtained by straight-forward algebraic manipulations of the first-order optimality conditions of ( 36 ) (see [ 49 ] for a treatment on the Wright-omega function in proximal operators). Remark 1 . A result analogous to Proposition 3 holds also for the deterministic model, i.e., the convergence, as \epsilon\to 0 , to the maximum entropy solution of the unregularized problem, with the proof just requiring a minor modification. VII-C Debiasing of \boldsymbol{\nu} and \boldsymbol{\mu} Once the problems in ( 22 ) or ( 26 ) have been solved, we can identify the pitch components by inspecting the support of (\mathbf{M}^{\star})^{T}\mathbf{1}_{F} , where \mathbf{M}^{\star} is the optimal transport plan. However, it should be noted that the corresponding \boldsymbol{\nu} and \boldsymbol{\mu} will be biased towards zero due to the sparsity-inducing mixed-norm term. In order to alleviate some of this bias, we can restrict the grid \Omega_{G} to contain only the identified pitches. We may then re-solve ( 22 ) and ( 26 ) with \eta=0 . In fact, it may be readily verified that the expressions in Proposition 2 hold for this case also, where we note that the iterations converge in one step as \mathbf{\Psi}\equiv 0 . Then, letting \epsilon\to 0 , it follows directly from Proposition 3 that the solution of ( 27 ) converges to the maximum-entropy solution of \displaystyle\underset{\boldsymbol{\nu}\in\mathbb{R}^{F}_{+}}{\mathrm{minimize}}\quad \displaystyle\frac{1}{\mathcal{T}}\left\lVert\mathbf{\hat{r}}-{\mathbf{A}}\boldsymbol{\nu}\right\rVert_{2}^{2}+\beta\boldsymbol{\nu}^{T}\mathbf{1}_{F}+\zeta\mathbf{c}_{\mathrm{min}}^{T}\boldsymbol{\nu}, (37) where \mathbf{c}_{\mathrm{min}}\in\mathbb{R}^{F} is the vector constructed as [\mathbf{c}_{\mathrm{min}}]_{k}=\min_{\ell}[\mathbf{C}]_{k,\ell} . This is a quadratic program with non-negativity constraint and may be solved either using Proposition 1 or off-the-shelf solvers. Furthermore, it may be noted that ( 37 ) is a discretized version of ( 20 ) (with fixed {\boldsymbol{\omega}}_{0} ) with the additional \beta -term for suppressing noise. Similarly, for the deterministic model in ( 28 ), one may use Propostion 4 as \epsilon\to 0 or consider the limiting problem \displaystyle\underset{\boldsymbol{\mu}\in\mathbb{C}^{F}}{\mathrm{minimize}}\quad \displaystyle\frac{1}{N}\left\lVert{\mathbf{y}}-{\mathbf{A}}\boldsymbol{\mu}\right\rVert_{2}^{2}+\beta\left\lVert\boldsymbol{\mu}\right\rVert_{1}+\zeta\mathbf{c}_{\mathrm{min}}^{T}\left|\boldsymbol{\mu}\right|. (38) Note here that the last term implies that any overlapping point-masses are phase-aligned. Furthermore, it may be noted that this can be understood as a LASSO problem with a non-uniformly weighted \ell_{1} -norm. As both estimators have now been obtained, in the following section we conduct experiments on both simulated and real data. VIII Numerical results We first evaluate the proposed methods on simulated data, followed by real data; the next section presents the results for the simulated data, and the following covers the real data. VIII-A Simulated data Figure 4: GER for simulated data, 4 pitches, with varying SNR. We first conduct a Monte Carlo simulation study in which each signal consists of 4 pitches, sampled at 8000 Hz and observed over 250 samples. The number of harmonics per pitch is randomly selected as an integer between 3 and 10 , the magnitudes are set to 1 and the initial phase is drawn uniformly at random, similar to what was done in [ 12 , 11 ] . The nominal fundamental frequencies are 176,197,240 and 272 Hz, respectively, and are perturbed in each simulation to avoid bias from grid effects. Unless otherwise stated, the signal-to-noise ratio (SNR) is set to 5 dB, with the SNR defined as \mathrm{SNR}=10\log_{10}\left((\sum_{k=1}^{K}\sum_{l=1}^{L^{(k)}}|\alpha_{l}^{(k)}|^{2})/\sigma^{2}\right) , and all harmonics up to maximum harmonic order are non-zero. In order to evaluate the pitch estimation with respect to inharmonicity, we let the inharmonicity parameter \kappa determine how much the harmonics of the nominal fundamental frequency are allowed to deviate from the harmonic model. The harmonics \omega are drawn uniformly at random in the interval \omega\pm\kappa\omega , where \kappa\in[0,1] . Here, again unless otherwise stated, the inharmonicity is set to 0 . The performance is evaluated in terms of the gross error rate (GER), defined as the percentage of pitch estimates that deviate by more than 50 cents 4 4 4 This corresponds to an error larger than a quarter note. from the reference pitch, i.e., \displaystyle\text{GER}=\frac{1}{K}\sum_{k=1}^{K}\left[\left|1200\cdot\log_{2}\left(\frac{\hat{\omega}_{0}^{(k)}}{\omega_{0}^{(k)}}\right)\right|>50\right], where \hat{\omega}_{k} is the pitch estimate [ 5 , 12 ] . We here denote the model from our previous work in [ 31 ] as PESCOT- 2 , where the 2 comes from its similarity to the problem in ( 29 ), with the difference being that the constraint is squared. For PE-BSBL-C [ 12 ] and PEBS 2 TV [ 10 ] , the maximum number of assumed harmonics of the signal is set to 10 , while for the proposed methods as well as PESCOT- 2 , the order is unrestricted. The proposed methods are denoted as Proposed 1 , corresponding to the estimator of the deterministic model, and Proposed c , corresponding to the estimator of the stochastic model. For all methods, the signal is normalized as to have unit variance. Figure 4 displays results for varying levels of noise in the perfectly harmonic case. As can be seen, all methods save PEBS 2 TV perform similarly in the high SNR regime. Figure 5 shows the impact of inharmonicity, where a fixed SNR \penalty\ =\penalty\ 5 dB is used. Although the results seem to imply that all methods are similarly robust to inharmonicity, a more nuanced picture emerges when studying the structure of the spectral estimates themselves, i.e., \boldsymbol{\nu} and \left|\boldsymbol{\mu}\right| , and not only the identified fundamental frequencies. To quantify this, we use the Wasserstein-2 distance [ 22 ] between estimated and ground truth spectra. In particular, the Wasserstein-2 distance is defined as the square-root of the minimal objective of ( 15 ), where c(\omega_{1},\omega_{2})=(\omega_{1}-\omega_{2})^{2} . Using this distance offers an alternative to, e.g., \ell_{2} -norms, as it is smooth with respect to perturbations such as peak shifts or splitting [ 23 ] . It should be stressed that this distance is not related to the transport problems used to define the proposed estimators. The upper subplot in Figure 6 shows the cumulative distribution function (CDF) of the Wasserstein-2 distance computed over 150 simulated signals, with inharmonicity 2% and SNR 5 dB, while the lower subplot shows the mean of these distances with varying inharmonicity. As may be noted, the OT-based methods yield spectral estimates concentrated closer to the ground truth as compared to the reference methods. Figure 5: GER for simulated data, 4 pitches, with varying inharmonicity. The SNR is set to 5 dB. Figure 6: In the upper subplot, the empirical CDF of the OT distance between the estimated amplitude spectrum and the real amplitude spectrum is shown, with inharmonicity set to 2\% . In the lower subplot, the median OT distance is shown as a function of the inharmonicity. The SNR for both plots is set to 5 , and the signals used are simulated with 4 pitches. Figure 7: GER for simulated data, 4 pitches, with varying number of uniformly spaced grid-points from 50 to 500 Hz used by the proposed methods and PESCOT-2. The SNR is set to 5 , and the inharmonicity is set to 0 %. In order to evaluate the impact of the frequency grid resolution, in Figure 7 we vary the total number of uniformly spaced grid points for the proposed methods and PESCOT- 2 . For all other experiments, this number is set to match the number of grid points for the reference methods, 2260 grid points. The frequency grid for the reference methods is based on integer multiples, up to the maximum allowed number of harmonics, of the pitch grid, while reference methods, and PESCOT- 2 , have the flexibility of choosing any frequencies for its grid, allowing for reduced complexity for each iteration. As shown, somewhere between 1000 and 1500 uniformly spaced grid points appear to be sufficient for the experiment, with most notably Proposed 1 being able to achieve a similar performance with around 400 grid points as it does with the full 2260 grid points, greatly reducing the complexity of the iterations in the simulated setting. This concludes all the experiments on simulated data, and in the following section, we move on to evaluating the estimators on real data. VIII-B Real data Figure 8: Boxplot of the GER for the Bach10 data. The proposed methods as well as PESCOT- 2 and PE-BSBL-C use one frame per estimate, while the estimates in purple and white use the entire signal. The estimates in gray use 3 frames per estimate. The next experiment is based on the Bach10 dataset used in [ 52 ] , where the pitch of 10 music pieces is evaluated. For each piece, the sampling rate is 44100 Hz. Here, the ground truth fundamental frequencies were obtained through the single-pitch YIN estimator, which was used for each channel of the recording, corresponding to different instruments, separately, and was manually corrected in the case of obvious errors. The maximum number of assumed harmonics of the signal is set to 10 for PE-BSBL-C, while for the network-based methods DeepSalience [ 20 ] and PolyVocals [ 21 ] , they were both trained on a maximum harmonic order of 5. For PolyVocals, there are several models available, where the one used here is the recommended model denoted as Deep/Late in the paper. For the proposed methods and PESCOT- 2 , the maximum order is unrestricted. As is shown in Figure 8 , all the proposed methods outperform the reference methods except PolyVocals. For the non-network methods, the signal is divided into 30 ms long frames of music ( 1323 samples), where each frame is evaluated independently of the others. Although this frame-wise setup can also be used with the network-based methods, they failed to produce meaningful estimates with such short input signals and were therefore not added to the figure. However, for PolyVocals, we also evaluate the performance when the entire input signal is split into non-overlapping sequences of three consecutive frames, i.e., 90 ms long segments (3969 samples). The result for this is shown in the gray box. For the white box, the entire signal is used. With this we note that PolyVocals does in fact outperform all the proposed methods; however, this is achieved by utilizing three times as much information as the proposed methods. The hyperparameters for the reference methods were set according to the recommendations in their respective papers. The hyperparameters for the proposed methods and PESCOT- 2 were chosen through empirical tuning, and can be seen in Table I and Table II , for the simulated and real data, respectively. The number of delays used for the auto-covariance was set to \mathcal{T}=\frac{2}{3}N for all data. Simulated data Parameter Proposed 1 PESCOT- 2 Proposed {}_{\text{c}} \eta 3\cdot 10^{-2} 1\cdot 10^{0} 1\cdot 10^{-1} \zeta 6\cdot 10^{0} 8\cdot 10^{3} 1\cdot 10^{1} \epsilon 1\cdot 10^{-5} 1\cdot 10^{-7} 1\cdot 10^{-6} \beta 8\cdot 10^{-2} 8\cdot 10^{-2} 1.5\cdot 10^{-2} Debiased estimate \zeta 6\cdot 10^{0} 8\cdot 10^{3} 1\cdot 10^{0} \beta 4\cdot 10^{1} 4.8\cdot 10^{1} 4.5\cdot 10^{-2} Table I: Parameter values for all proposed methods, for all the simulated data. Real data Parameter Proposed 1 PESCOT- 2 Proposed {}_{\text{c}} \eta 5\cdot 10^{-3} 4\cdot 10^{-2} 1\cdot 10^{-2} \zeta 1\cdot 10^{-1} 8\cdot 10^{0} 1\cdot 10^{-1} \epsilon 1\cdot 10^{-5} 1\cdot 10^{-7} 1\cdot 10^{-5} \beta 2.8\cdot 10^{-2} 3.6\cdot 10^{-2} 3.4\cdot 10^{-2} Table II: Parameter values for all proposed methods, for the real data. IX Conclusion This work addresses the problem of estimating pitch in multi-pitch signals. We show that the proposed methods achieves state-of-the-art performance on both simulated and real data in a frame-based setting setting, while, unlike existing non-network-based methods, it does not require prior knowledge of the harmonic order of the signal. The performance is surpassed only by network-based estimators. It should, however, be noted that those rely on access to a larger portion of the signal, while our approach operates in a setting where only a short portion of a signal is measured, not utilizing any previous information of the signal, and is better viewed as a building block for a recursive estimator, utilizing all or some of the prior measurements that are available. X appendix Proof of Proposition 1 . Introducing the auxiliary variable \mathbf{Q}=\mathbb{R}^{F\times G} , the minimization problem can equivalently be stated as \displaystyle\underset{\boldsymbol{\nu},\mathbf{M},\mathbf{Q}}{\mathrm{minimize}} \displaystyle\gamma\langle\mathbf{u},\boldsymbol{\nu}\rangle+\gamma\zeta\langle\mathbf{C},\mathbf{M}\rangle+\gamma\zeta\epsilon D(\mathbf{M}) \displaystyle+\gamma\zeta\eta\|\mathbf{Q}\|_{\infty,1}+\mathcal{D}_{KL}(\boldsymbol{\nu},\boldsymbol{\nu}^{(j)}) \displaystyle\text{s.t. } \displaystyle\boldsymbol{\nu}=\mathbf{M}\mathbf{1}_{F},\quad\mathbf{Q}=\mathbf{M}. The corresponding Lagrangian (scaled by 1/\gamma\zeta ) is \displaystyle\mathcal{L}(\boldsymbol{\nu},\mathbf{M},\mathbf{Q},\boldsymbol{\lambda},\mathbf{\Psi})= \displaystyle\frac{1}{\zeta}\langle\mathbf{u},\boldsymbol{\nu}\rangle+\left\langle\mathbf{C},\mathbf{M}\right\rangle+\epsilon D(\mathbf{M})+\eta\|\mathbf{Q}\|_{\infty,1} \displaystyle+\frac{1}{\gamma\zeta}\mathcal{D}_{KL}(\boldsymbol{\nu},\boldsymbol{\nu}^{(j)})+\left\langle\boldsymbol{\lambda},\boldsymbol{\nu}-\mathbf{M}\mathbf{1}_{F}\right\rangle+\left\langle\mathbf{\Psi},\mathbf{Q}-\mathbf{M}\right\rangle, where \boldsymbol{\lambda} and \mathbf{\Psi} are (scaled) dual variables. It may be readily verified (see [ 26 , Thm. 1] ) that the infimum of \mathcal{L} respect to \mathbf{Q} is finite if and only if \left\lVert\mathbf{\Psi}\right\rVert_{1,\infty}\leq\eta , in which case the terms related to \mathbf{Q} vanish. Furthermore, it may be noted that \mathcal{L} is strictly convex with respect to \mathbf{M} and \boldsymbol{\nu} . The expressions ( 33 ) and ( 34 ) are obtained by differentiating with respect to \boldsymbol{\nu} and \mathbf{M} and solving the corresponding zero-gradient equations. The dual problem in ( 35 ) is obtained by plugging these expressions into \mathcal{L} . ∎ Proof of Proposition 3 . Define the set \displaystyle U_{\rho}=\{\mathbf{M}\in\mathbb{R}_{+}^{F\times G}\mid\left\lVert\hat{\mathbf{r}}-{\mathbf{A}}(\mathbf{M}\mathbf{1}_{G})\right\rVert_{2}^{2}\leq\rho\}, parametrized by \rho>0 . As \mathbf{M} is constrained to the positive quadrant and as the first row of {\mathbf{A}} is all ones (corresponding to \tau=0 ), the set U_{\rho} is bounded. By the continuity of {\mathbf{A}} and the norm \left\lVert\cdot\right\rVert , U_{\rho} is closed. Thus, U_{\rho} is compact. Consider the problem \displaystyle\underset{\mathbf{M}\in U_{p}}{\mathrm{minimize}}\quad f(\mathbf{M})+\epsilon D(\mathbf{M}) (39) where \displaystyle f(\mathbf{M})=\langle\mathbf{C},\mathbf{M}\rangle+\beta\mathbf{1}_{F}^{T}\mathbf{M}\mathbf{1}_{G}+\eta\left\lVert\mathbf{M}\right\rVert_{\infty,1}. Let \{\epsilon_{p}\}_{p} be a sequence going to zero, and let \{\mathbf{M}_{p}\}_{p} be the corresponding sequence of solutions to ( 39 ). Then, as U_{p} is compact, there exists a convergent subsequence \{\mathbf{M}_{q}\}_{q} converging to some \mathbf{M}^{\star}\in U_{\rho} . Let \mathbf{M}_{o} be a solution to ( 39 ) for \epsilon=0 . Then, for any \epsilon_{q} , \displaystyle f(\mathbf{M}_{q})+\epsilon_{q}D(\mathbf{M}_{q})\leq f(\mathbf{M}_{o})+\epsilon_{q}D(\mathbf{M}_{o}). Furthermore, f(\mathbf{M}_{o})\leq f(\mathbf{M}_{q}) . Taken together, \displaystyle 0\leq f(\mathbf{M}_{q})-f(\mathbf{M}_{o})\leq\epsilon_{q}\left(D(\mathbf{M}_{o})-D(\mathbf{M}_{q})\right). As f and D are continuous, we by letting q\to\infty get that the right-hand side goes to zero and \lim_{q\to\infty}f(\mathbf{M}_{q})=f(\lim_{q\to\infty}\mathbf{M}_{q})=f(\mathbf{M}^{\star})=f(\mathbf{M}_{o}) . Thus, \mathbf{M}^{\star} solves ( 39 ) with \epsilon=0 . Furthermore, we have directly that D(\mathbf{M}^{\star})\geq D(\mathbf{M}_{o}) for any non-regularized solution \mathbf{M}_{o} . By the strict convexity of D , uniqueness of this maximum-entropy solution follows. Lastly, for any \zeta>0 , there exists a corresponding \rho>0 defining U_{\rho} , concluding the proof. ∎