arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2607.26575v1 [eess.AS] 29 Jul 2026

Unfolded Recursive Expectation-Maximization Neural Network for Speaker Tracking

Abstract

We propose a deep unfolded Recursive EM (REM) network for robust tracking of a single moving speaker in mild reverberant environments. Unlike classical REM algorithms, which rely on fixed-step-size decay schedules, the proposed architecture learns an adaptive update policy by unfolding the iterative procedure into differentiable layers. We introduce a Step Size Network that leverages Feature-wise Linear Modulation (FiLM) and Positional Encoding (PE) to dynamically adjust the recursion weights based on temporal context and convergence state. Experimental results for tracking a single speaker under reverberant conditions demonstrate that the proposed unfolded network outperforms the classical Cappé and Moulines REM (CREM) baseline, which employs a spatial grid search to map the estimated centroids to physical positions. In the single-speaker tracking task, the proposed method achieves a lower Root Mean Square Error (RMSE) than the CREM baseline, highlighting its potential for dynamic acoustic scenarios.

Index Terms—  Sound source tracking; Unfolding neural network; Recursive Expectation-Maximization; Pair-wise relative phase ratio.

1 Introduction

Sound Source Localization (SSL) is a fundamental task in modern audio applications, ranging from autonomous robots to smart-home consumer electronics. In realistic environments, estimating the spatial coordinates of a source is significantly complicated by reverberation and ambient noise. Traditional methods, such as Steered Response Power with Phase Transform (SRP-PHAT), Multiple Signals Classification (MUSIC), and Maximum Likelihood Estimation (MLE) [7, 15], often struggle in these adverse conditions. This has motivated a shift toward Deep Neural Network (DNN)-based approaches, which offer superior robustness in complex acoustic scenes [2, 5].

However, purely data-driven DNNs are often criticized for their lack of interpretability. Algorithm unfolding (or unrolling) bridges this gap by casting the iterations of classical algorithms as differentiable network layers [4, 10]. In our previous work [14], we successfully employed an unfolded network to estimate static multi-speaker positions by integrating the batch Expectation-Maximization (EM) procedure—previously used for Pair-Wise Relative Phase Ratio (PRP) clustering [16, 9]—into an unrolled architecture. While effective for static sources, batch-oriented methods lack the temporal consistency required for dynamic speaker tracking.

To address moving-source scenarios, recursive variants of the EM algorithm, e.g., the algorithm proposed by Cappé and Moulines [1] (henceforth denoted the CREM algorithm), update parameters frame-by-frame using recursively accumulated sufficient statistics. Several studies have integrated EM iterations into unfolding frameworks for image segmentation and clustering [3, 13]. Although recursive, a major limitation in the application of CREM is the selection of the step-size parameter γt\gamma_{t}, which governs the trade-off between past information and current observations. In static scenarios, a fixed decay schedule should be used. However, in tracking scenarios, where the speaker position changes over time, the step size should adapt to the underlying dynamics and is therefore often chosen empirically.

In this paper, we introduce a deep Unfolded CREM network embedded within an encoder-decoder architecture that learns an adaptive, data-driven step-size policy. By incorporating a conditioning sub-network based on FiLM [12] and sinusoidal PE [17], our model dynamically adjusts the recursion weights based on the current tracking state and temporal context. We demonstrate that this hybrid approach improves tracking accuracy and convergence speed compared to the classical recursive method.

2 Problem Formulation

Consider a single speaker moving in a reverberant enclosure, whose activity is captured by an array of MM microphone pairs. We assume the speaker moves at a constant velocity along either a linear or a circular path. The analysis is carried out in the Short-Time Fourier transform (STFT) domain. The signal captured at the jjth microphone of the pair mm, where j=1,2j=1,2 and m=1,,Mm=1,\ldots,M, at time-frame tt and frequency bin kk is modeled as:

zm,j(t,k)=am,j(t,k)s(t,k)+nm,j(t,k)z_{m,j}(t,k)=a_{m,j}(t,k)\cdot s(t,k)+n_{m,j}(t,k) (1)

where s(t,k)s(t,k) is the source signal, nm,j(t,k)n_{m,j}(t,k) is additive noise, and am,j(t,k)a_{m,j}(t,k) are the Acoustic Transfer Functions relating the source positions and the microphone positions. The ATFs vary over time as the speaker moves along its trajectory 𝐩(t)\mathbf{p}(t). Similar to our previous work [16, 14], we employ the PRP as the localization feature to improve robustness to signal-power variations. The observed PRP for pair mm is defined as:

ϕm(t,k)zm,2(t,k)zm,1(t,k)|zm,1(t,k)||zm,2(t,k)|,\phi_{m}(t,k)\triangleq\frac{z_{m,2}(t,k)}{z_{m,1}(t,k)}\cdot\frac{|z_{m,1}(t,k)|}{|z_{m,2}(t,k)|}, (2)

and the observation vector at each time-frequency bin is

ϕ(t,k)=[ϕ1(t,k),,ϕM(t,k)].\boldsymbol{\phi}(t,k)=\left[\phi_{1}(t,k),\dots,\phi_{M}(t,k)\right]^{\top}. (3)

To model the received PRP, we adopt a Complex Gaussian Mixture Model (CGMM) with two components (C=2C=2): one associated with the moving speaker (c=1c=1) and the other with noise or spurious estimates (c=2c=2). The Probability Density Function (p.d.f.) for a single observation ϕ(t,k)\boldsymbol{\phi}(t,k) is given by:

f(ϕ(t,k))=c=12ψc(t)𝒩c(ϕ(t,k);ϕ~k(𝐩c(t)),𝚺c)f(\boldsymbol{\phi}(t,k))=\sum_{c=1}^{2}\psi_{c}(t)\cdot\mathcal{N}^{c}\left(\boldsymbol{\phi}(t,k);\tilde{\boldsymbol{\phi}}^{k}(\mathbf{p}_{c}(t)),\mathbf{\Sigma}_{c}\right) (4)

where ψc(t)\psi_{c}(t) is the prior probability of the cc-th cluster. For the speaker cluster (c=1c=1), the mean ϕ~k(𝐩(t))\tilde{\boldsymbol{\phi}}^{k}(\mathbf{p}(t)) should be the expected PRP analytically derived from the current position 𝐩(t)\mathbf{p}(t), where each element mm is calculated as:

ϕ~mk(𝐩(t))exp(j2πkK|𝐩(t)𝐩m,2||𝐩(t)𝐩m,1|vTs)\tilde{\phi}_{m}^{k}(\mathbf{p}(t))\triangleq\exp\left(-j\frac{2\pi k}{K}\frac{|\mathbf{p}(t)-\mathbf{p}_{m,2}|-|\mathbf{p}(t)-\mathbf{p}_{m,1}|}{v\cdot T_{s}}\right) (5)

where vv represents the sound velocity, and TsT_{s} the sampling time of the continuous-time signal. For the noise cluster (c=2c=2), the mean ϕ~k(𝐩(t))\tilde{\boldsymbol{\phi}}^{k}(\mathbf{p}(t)) does not originate from a specific point source, and hence, we expect this cluster to have a larger variance compared to the speaker’s variance.

Following [16], we assume independence of the PRP features across microphone pairs. We further simplify each covariance matrix to a scaled identity matrix, i.e., 𝚺c=σc2𝐈M\mathbf{\Sigma}_{c}=\sigma_{c}^{2}\mathbf{I}_{M}. Finally, the p.d.f. of the entire observation set is given by

f(ϕ;𝜽(t))=t,k[c=12ψc(t)m=1M𝒩c(ϕm(t,k);ϕ~mk(𝐩c(t)),σc2(t))],f(\boldsymbol{\phi};\boldsymbol{\theta}(t))=\\ \prod_{t,k}\left[\sum_{c=1}^{2}\psi_{c}(t)\prod_{m=1}^{M}\mathcal{N}^{c}\left(\phi_{m}(t,k);\tilde{\phi}_{m}^{k}(\mathbf{p}_{c}(t)),\sigma_{c}^{2}(t)\right)\right], (6)

where 𝜽(t)\boldsymbol{\theta}(t) denotes the set of time-varying parameters, comprising the Gaussian means, the priors, and variances. In the following section, we derive the REM algorithm, which updates 𝜽^(t)\hat{\boldsymbol{\theta}}(t) by accumulating the score of the log-likelihood over time, and demonstrate how this procedure is unfolded into a deep neural network to learn optimal, time-adaptive update steps.

3 Proposed Method

For online tracking of a moving speaker, we develop a recursive framework based on the CREM algorithm, which we subsequently unfold into a deep neural network.

The EM Algorithm: The EM algorithm requires defining three components and their probability models: the observations (ϕ\boldsymbol{\phi}), the target parameters (𝜽\boldsymbol{\theta}), and the hidden data (𝐱\mathbf{x}). In our case, we define the hidden data 𝐱\mathbf{x} to be the association of each Time-Frequency (TF) bin with either the source at a particular location or the background noise. Given the hidden data, the probability log-likelihood function of the observations is given by:

f(𝐱,ϕ;𝜽)=t,kcψcx(t,k,c)m𝒩c(ϕm(t,k);ϕ~mk(𝐩𝐜),σc2).f(\mathbf{x},\boldsymbol{\phi};\boldsymbol{\theta})=\\ \prod_{t,k}\sum_{c}\psi_{c}\cdot x(t,k,c)\prod_{m}\mathcal{N}^{c}\left(\phi_{m}(t,k);\tilde{\phi}_{m}^{k}(\mathbf{p_{c}}),\sigma_{c}^{2}\right). (7)

The E-step is therefore given by:

Q(𝜽|𝜽(1))E{logf(𝐱,ϕ;𝜽)|ϕ;𝜽(1)}.Q(\boldsymbol{\theta}|\boldsymbol{\theta}^{(\ell-1)})\triangleq E\left\{\log f(\mathbf{x},\boldsymbol{\phi};\boldsymbol{\theta})\Big|\boldsymbol{\phi};\boldsymbol{\theta}^{(\ell-1)}\right\}. (8)

For implementing the E-step, it is sufficient to evaluate μ(1)(t,k,c)E{x(t,k,c)|ϕ(t,k);𝜽(1)}\mu^{(\ell-1)}(t,k,c)\triangleq E\{x(t,k,c)|\boldsymbol{\phi}(t,k);\boldsymbol{\theta}^{(\ell-1)}\}, given by:

ψc(1)m𝒩c(ϕm(t,k);ϕ~mk(𝐩c)(1),(σc2)(1))cψc(1)m𝒩c(ϕm(t,k);ϕ~mk(𝐩c)(1),(σc2)(1)).\frac{\psi_{c}^{(\ell-1)}\prod_{m}\mathcal{N}^{c}\left(\phi_{m}(t,k);\tilde{\phi}_{m}^{k}(\mathbf{p}_{c})^{(\ell-1)},(\sigma_{c}^{2})^{(\ell-1)}\right)}{\sum_{c}\psi_{c}^{(\ell-1)}\prod_{m}\mathcal{N}^{c}\left(\phi_{m}(t,k);\tilde{\phi}_{m}^{k}(\mathbf{p}_{c})^{(\ell-1)},(\sigma_{c}^{2})^{(\ell-1)}\right)}. (9)

Maximizing (9) with respect to the parameters 𝜽()\boldsymbol{\theta}^{(\ell)} constitutes the M-step. We stress that this batch formulation assumes static speakers and operates entirely offline, making it unsuitable for real-time tracking in dynamic, time-varying environments.

The CREM Algorithm: The CREM algorithm adapts the batch EM procedure to an online scenario by substituting the iteration index with the time-frame index tt. The core idea is to recursively estimate the auxiliary function, denoted QR(𝜽|𝜽(t))Q_{R}(\boldsymbol{\theta}|\boldsymbol{\theta}^{(t)}), using a stochastic approximation step:

QR(𝜽|𝜽(t))=(1γt)QR(𝜽|𝜽(t1))+γtQ(𝜽|𝜽(t)),Q_{R}(\boldsymbol{\theta}|\boldsymbol{\theta}^{(t)})=(1-\gamma_{t})Q_{R}(\boldsymbol{\theta}|\boldsymbol{\theta}^{(t-1)})+\gamma_{t}Q(\boldsymbol{\theta}|\boldsymbol{\theta}^{(t)}), (10)

where γt\gamma_{t} is a time-varying smoothing coefficient (step-size) that determines the balance between past information and the current observation. The complete data log-likelihood is given by:

logf(𝐱t,ϕt;𝜽)=k,cx(t,k,c)(logψc(t)+mlog𝒩c(ϕm(t,k);ϕ~mk(𝐩c(t)),σc2(t))).\log f(\mathbf{x}_{t},\boldsymbol{\phi}_{t};\boldsymbol{\theta})=\sum_{k,c}x(t,k,c)\cdot\\ \left(\log\psi_{c}(t)+\sum_{m}\log\mathcal{N}^{c}\left(\phi_{m}(t,k);\tilde{\phi}_{m}^{k}(\mathbf{p}_{c}(t)),\sigma_{c}^{2}(t)\right)\right). (11)

Given that our CGMM likelihood (11) belongs to the exponential family, the maximization of QRQ_{R} can be simplified by maintaining a recursive estimate of the sufficient statistics vector, 𝜼R(t)\boldsymbol{\eta}^{R}(t).111Due to space constraints, the derivation is significantly shortened. The update rule for the sufficient statistics at frame tt is:

𝜼R(t)=𝜼R(t1)+γt[𝜼¯(t)𝜼R(t1)],\boldsymbol{\eta}^{R}(t)=\boldsymbol{\eta}^{R}(t-1)+\gamma_{t}\left[\bar{\boldsymbol{\eta}}(t)-\boldsymbol{\eta}^{R}(t-1)\right], (12)

where 𝜼¯(t)\bar{\boldsymbol{\eta}}(t) is the expected sufficient statistics computed in the E-step, based on the posterior probability μ(t,k,c)\mu(t,k,c) that the kk-th frequency bin at time tt belongs to cluster cc. The term 𝜼¯(𝐱(t+1),ϕ(t+1)),ϵ(𝜽)\langle\boldsymbol{\overline{\eta}}(\mathbf{x}(t+1),\boldsymbol{\phi}(t+1)),\boldsymbol{\epsilon}(\boldsymbol{\theta})\rangle, required for the E-step,222ϵ(𝜽)\boldsymbol{\epsilon}(\boldsymbol{\theta}) is related to the definition of the exponential family. can be simplified by calculating:

μ(t+1,k,c)=E{x(t+1,k,c)|ϕm(t+1,k);𝜽R(t)}\mu(t+1,k,c)=E\{x(t+1,k,c)|\boldsymbol{\phi}_{m}(t+1,k);\boldsymbol{\theta}_{R}(t)\} (13)

which is readily given by (9). Using this definition, the expected sufficient statistic 𝜼¯(𝝁(t),ϕ(t))\bar{\boldsymbol{\eta}}(\boldsymbol{\mu}(t),\boldsymbol{\phi}(t)) can be written as:

𝜼¯(𝝁(t),ϕ(t))=(𝝁(t)𝝁(t)|ϕ(t)|2𝝁(t)ϕ(t)𝝁(t)ϕ(t))\bar{\boldsymbol{\eta}}(\boldsymbol{\mu}(t),\boldsymbol{\phi}(t))=\begin{pmatrix}\boldsymbol{\mu}(t)\\ \boldsymbol{\mu}(t)\odot|\boldsymbol{\phi}(t)|^{2}\\ \boldsymbol{\mu}(t)\odot\boldsymbol{\phi}^{*}(t)\\ \boldsymbol{\mu}(t)\odot\boldsymbol{\phi}(t)\end{pmatrix} (14)

where the Hadamard product \odot is applied with implicit broadcasting; specifically, when a dimension is absent in one of the tensors, it is replicated along that dimension to match the size of the other, followed by element-wise multiplication. The recursive sufficient statistic 𝜼R(𝝁(t+1),ϕ(t+1))\boldsymbol{\eta}^{R}(\boldsymbol{\mu}(t+1),\boldsymbol{\phi}(t+1)) is defined as:

𝜼R(𝝁(t+1),ϕ(t+1))(𝜼1R(t+1)𝜼2R(t+1)𝜼3R(t+1)𝜼4R(t+1))\boldsymbol{\eta}^{R}(\boldsymbol{\mu}(t+1),\boldsymbol{\phi}(t+1))\triangleq\begin{pmatrix}\boldsymbol{\eta}_{1}^{R}(t+1)\\ \boldsymbol{\eta}_{2}^{R}(t+1)\\ \boldsymbol{\eta}_{3}^{R}(t+1)\\ \boldsymbol{\eta}_{4}^{R}(t+1)\end{pmatrix} (15)

where the updates are:

𝜼1R(t+1)\displaystyle\boldsymbol{\eta}_{1}^{R}(t+1) =𝜼1R(t)+γt+1(𝝁(t+1)𝜼1R(t))\displaystyle=\boldsymbol{\eta}_{1}^{R}(t)+\gamma_{t+1}(\boldsymbol{\mu}(t+1)-\boldsymbol{\eta}_{1}^{R}(t)) (16a)
𝜼2R(t+1)\displaystyle\boldsymbol{\eta}_{2}^{R}(t+1) =𝜼2R(t)+γt+1(𝝁(t+1)|ϕ(t)|2𝜼2R(t))\displaystyle=\boldsymbol{\eta}_{2}^{R}(t)+\gamma_{t+1}(\boldsymbol{\mu}(t+1)\odot|\boldsymbol{\phi}(t)|^{2}-\boldsymbol{\eta}_{2}^{R}(t)) (16b)
𝜼3R(t+1)\displaystyle\boldsymbol{\eta}_{3}^{R}(t+1) =𝜼3R(t)+γt+1(𝝁(t+1)ϕ(t)𝜼3R(t))\displaystyle=\boldsymbol{\eta}_{3}^{R}(t)+\gamma_{t+1}(\boldsymbol{\mu}(t+1)\odot\boldsymbol{\phi}^{*}(t)-\boldsymbol{\eta}_{3}^{R}(t)) (16c)
𝜼4R(t+1)\displaystyle\boldsymbol{\eta}_{4}^{R}(t+1) =𝜼4R(t)+γt+1(𝝁(t+1)ϕ(t)𝜼4R(t)).\displaystyle=\boldsymbol{\eta}_{4}^{R}(t)+\gamma_{t+1}(\boldsymbol{\mu}(t+1)\odot\boldsymbol{\phi}(t)-\boldsymbol{\eta}_{4}^{R}(t)). (16d)

The maximization step in the REM is similar to the maximization step in the batch EM. The M-step 𝜽c,R(t+1)=argmax𝜽𝒄𝜼R(𝝁(t+1),ϕ(t+1)),ϵ(𝜽𝒄)\boldsymbol{\theta}_{c,R}(t+1)=\operatorname*{arg\,max}_{\boldsymbol{\theta_{c}}}\langle\boldsymbol{\eta}^{R}(\boldsymbol{\mu}(t+1),\boldsymbol{\phi}(t+1)),\boldsymbol{\epsilon}(\boldsymbol{\theta_{c}})\rangle yields the following parameter updates:

ψc(t+1)=1Kkμ(t+1,k,c).\psi_{c}(t+1)=\frac{1}{K}\sum_{k}\mu(t+1,k,c). (17)

The M-step and the E-step can be merged into one recursion:

𝝍R(t)=1Kk𝜼1R(t)\displaystyle\boldsymbol{\psi}_{R}(t)=\frac{1}{K}\sum_{k}\boldsymbol{\eta}_{1}^{R}(t) (18a)
and for the other parameters:
ϕ~R(𝐩(t))=𝜼4R(t)𝜼1R(t)\displaystyle\tilde{\boldsymbol{\phi}}_{R}(\mathbf{p}(t))=\boldsymbol{\eta}_{4}^{R}(t)\oslash\boldsymbol{\eta}_{1}^{R}(t) (18b)
𝝈R2(t)=1Mk𝜼1R(t,k)k,m(𝜼1R(t,k)|ϕ~mk(𝐩(t))|2+𝜼2R(t,k,m)𝜼3R(t,k,m)ϕ~mk(𝐩(t))𝜼4R(t,k,m)ϕ~mk(𝐩(t))),\displaystyle\begin{aligned} \boldsymbol{\sigma}_{R}^{2}(t)&=\frac{1}{M\cdot\sum_{k}\boldsymbol{\eta}_{1}^{R}(t,k)}\sum_{k,m}\Big(\boldsymbol{\eta}_{1}^{R}(t,k)\odot|\tilde{\boldsymbol{\phi}}_{m}^{k}(\mathbf{p}(t))|^{2}\\ &\qquad+\boldsymbol{\eta}_{2}^{R}(t,k,m)-\boldsymbol{\eta}_{3}^{R}(t,k,m)\cdot\tilde{\boldsymbol{\phi}}_{m}^{k}(\mathbf{p}(t))\\ &\qquad-\boldsymbol{\eta}_{4}^{R}(t,k,m)\cdot\tilde{\boldsymbol{\phi^{*}}}_{m}^{k}(\mathbf{p}(t))\Big),\end{aligned} (18c)

with \oslash is an element-wise division operation. To infer the speaker’s physical 2D position in Cartesian coordinates, denoted as 𝐩^(t)\hat{\mathbf{p}}(t), from the recursively updated parameters, a spatial grid search is performed at each time step. The estimated position is obtained by minimizing the squared error between the estimated PRP and the theoretical PRP:

𝐩^(t)=argmin𝐩k,m|ϕ~R,mk(𝐩(t))ϕ~mk(𝐩)|2,\hat{\mathbf{p}}(t)=\arg\min_{\mathbf{p}}\sum_{k,m}\left|\tilde{\phi}_{R,m}^{k}(\mathbf{p}(t))-\tilde{\phi}_{m}^{k}(\mathbf{p})\right|^{2}, (19)

where ϕ~mk(𝐩)\tilde{\phi}_{m}^{k}(\mathbf{p}) is the theoretical value for a candidate location 𝐩\mathbf{p} as defined in (5).

The performance of the CREM algorithm is highly dependent on the choice of the step size γt\gamma_{t}. Classic stochastic approximation results guarantee convergence to a (static) local optimum given γt=\sum\gamma_{t}=\infty and γt2<\sum\gamma_{t}^{2}<\infty. A common schedule is γt=(t+2)α\gamma_{t}=(t+2)^{-\alpha}, where 0.5<α10.5<\alpha\leq 1 balances the trade-off between convergence speed (smaller α\alpha) and estimation stability (larger α\alpha). To further enhance stability, we can adopt a mini-batch approach of size BB, which interpolates between pure online (B=1B=1) and batch (B=TB=T) estimation [8]. However, since fixed schedules struggle with dynamic trajectories, we propose an unfolded architecture that learns an adaptive, data-driven step size, as described in the next section.

Unfolding CREM Neural Network: Building upon the interpretable Batch-EM unfolding framework presented in our previous work [14], we propose a deep unfolded architecture for the CREM algorithm. The network embeds the recursive EM steps within an encoder-decoder structure and introduces a data-driven mechanism to learn the optimal time-varying step size γt\gamma_{t} (Figure 1).

Refer to caption

(a) Full Unfolded CREM Architecture

Refer to caption

(b) Step-Size Network

Fig. 1: Overview of the proposed tracking framework: (a) shows the unrolled EM layers within the encoder-decoder structure, and (b) details the FiLM-based adaptive step-size generation.

a) Encoder-decoder framework: The core of the architecture consists of an encoder and decoder. The encoder, implemented as a Fully Connected (FC) network, maps candidate spatial positions to an initial PRP vector. The decoder performs the inverse mapping, translating the refined PRP estimates back to spatial coordinates 𝐩^(t)\hat{\mathbf{p}}(t). By using the decoder at each time step, the network provides online tracking of the speaker’s trajectory. To enhance stability, each layer processes mini-batches of size BB by interpolating between the online and batch regimes.

b) Dynamic step-size learning via FiLM and PE: The primary innovation in this architecture is the Step-Size Network, which replaces the heuristic schedules of γt\gamma_{t} with a learned, adaptive function. Since the optimal update step depends on both the current convergence state and the temporal context, we employ FiLM [12] and PE [17]. To provide the network with information about the current iteration, we use a sinusoidal positional encoding, PE(t)\textrm{PE}(t).The step-size network receives a conditioning vector 𝐯t=[PE(t),𝝍(t1),𝝈2(t1),ϕ(t1)]\mathbf{v}_{t}=[\textrm{PE}(t),\boldsymbol{\psi}(t-1),\boldsymbol{\sigma}^{2}(t-1),\boldsymbol{\phi}(t-1)]^{\top}, which is processed through a Layer-Normalized Multi-Layer Perceptron (MLP) to generate the FiLM parameters, α\alpha (scaling) and β\beta (shifting). The intermediate features are extracted from the concatenation of the current observation ϕ(t)\boldsymbol{\phi}(t) and the temporal difference between successive observations Δϕ(t)=ϕ(t)ϕ(t1)\Delta\boldsymbol{\phi}(t)=\boldsymbol{\phi}(t)-\boldsymbol{\phi}(t-1). Then, the FiLM parameters modulate the intermediate features to produce the scalar step size γt\gamma_{t} used in (12). The architecture of the step-size network is shown in Figure 1.

c) Weighted loss: The network is trained using a time-weighted composite loss function. To account for the initial convergence period of the REM, we introduce a warmup weight w(t)w(t) that scales the loss at each time step. The spatial accuracy is governed by a logarithmic distance error, which provides a sub-linear penalty to stabilize gradients against large initial offsets:

=1Tt=0T1w(t)[(1λ)log(1+|𝐩^(t)𝐩true(t)|2)+λ(1CosSim(ϕ~(𝐩(t)),ϕ~(𝐩true(t)))]\begin{split}\mathcal{L}=&\frac{1}{T}\sum_{t=0}^{T-1}w(t)\Big[(1-\lambda)\log(1+|\hat{\mathbf{p}}(t)-\mathbf{p}_{\text{true}}(t)|^{2})\\ &+\lambda\cdot(1-\text{CosSim}(\tilde{\boldsymbol{\phi}}(\mathbf{p}(t)),\tilde{\boldsymbol{\phi}}(\mathbf{p}_{\text{true}}(t)))\Big]\end{split} (20)

where CosSim(,)\text{CosSim}(\cdot,\cdot) denotes the cosine similarity operator.

4 Experimental Study

Data Generation and Setup: We evaluated the proposed unfolded network using a synthetic dataset derived from the Wall Street Journal (WSJ) corpus [11]. The simulations were implemented in Python using the image-method-based signal generator [6]. We simulated a single moving speaker in rectangular rooms with random dimensions (height: 2.2–2.6 m; width/length: 5–7 m) with eight microphone pairs (intra-pair distance: 0.2 m). The speaker moves at a constant velocity of 0.50.5 m/s, following either a linear trajectory or a circular path with a radius ranging from 11 to 33 m. Acoustic conditions include either anechoic or reverberant environments with RT60=0.3\textrm{RT}_{60}=0.3 s and additive white noise at SNR=30\text{SNR}=30 dB. The dataset consists of 8,0008{,}000 training and 2,0002{,}000 validation samples.

Signal Processing and Data Flow: The input signals, sampled at 1616 kHz, feature durations of 55 seconds in anechoic scenarios and 99 seconds in reverberant conditions. Transformed into the TF domain using an STFT (window size of 10241024, hop size of 512512 samples), these configurations yield 157157 and 282282 time frames, respectively. To optimize efficiency, only frequency bins within the 5001500500-1500 Hz range are considered. Tracking is performed with a mini-batch size of B=10B=10 consecutive time frames at each step, employing a sliding window with a step size of 33 frames between consecutive CREM updates to maintain temporal continuity.

Encoder and Decoder Architectures: The FC encoder serves as the initialization block, mapping random room coordinates to the initial PRP vector through 77 layers with increasing widths: [6,48,192,384,768,1536,2080][6,48,192,384,768,1536,2080]. Each layer is followed by LayerNorm and Rectified Linear Unit (ReLU) activation, while the final output uses a tanh activation to ensure the stability of the PRP values. The decoder, which maps the refined PRP back to spatial coordinates, comprises 66 layers with decreasing dimensions: [1040,512,256,128,64,2][1040,512,256,128,64,2]. All layers utilize ReLU activation, except for the final output layer, which provides the continuous 22D coordinates.

Step-Size Network with FiLM: The adaptive step size γt\gamma_{t} is estimated using a multi-branch conditioning network. (i) Parameter Branch: 𝝍(t)\boldsymbol{\psi}(t) and 𝝈2(t)\boldsymbol{\sigma}^{2}(t) are mapped to a 1616-dimensional feature; (ii) Manifold Branch: The estimated ϕ~(𝐩(t))\tilde{\boldsymbol{\phi}}(\mathbf{p}(t)) passes through 44 layers ([512,256,128,64][512,256,128,64]) with ReLU; (iii) Temporal Branch: The time index tt is encoded via a 3232-dimensional PE. These three branches are concatenated and passed through LayerNorm to generate the FiLM parameters (α,β\alpha,\beta). Two separate generators are used: a 33-layer FC ([256,512,1024][256,512,1024]) for a 512512-dim modulation, and a 22-layer FC ([164,256][164,256]) for a 128128-dimensional modulation.

The main step-size estimation path concatenates the current observation ϕ(t)\boldsymbol{\phi}(t) and the temporal difference Δϕ(t)\Delta\boldsymbol{\phi}(t). This input is processed through a 512512-dimensional FC layer, followed by the first FiLM block, two FC layers ([256,128][256,128]), the second FiLM block, and finally 33 FC layers ([64,32,1][64,32,1]). A sigmoid activation is applied to the final scalar output to bound the learned step size γt[0,1]\gamma_{t}\in[0,1].

Training and Stability: Training was performed using the composite loss in (20) with λ=0.5\lambda=0.5. To handle the initial convergence period, we employed a linear warmup schedule for the loss weights w(t)w(t), increasing from 0.10.1 to 1.01.0 over the first 2020 time steps and remaining constant thereafter. To ensure numerical stability during the unfolding of recursive updates, we applied several regularization techniques: (i) gradient clipping with a threshold of 1.51.5; (ii) weight decay of 10410^{-4}; (iii) a clamp value of 5050 on the estimated variances σ2\sigma^{2}; and (iv) a small epsilon ϵ=108\epsilon=10^{-8} added to all denominators in the CREM update rules. The network was optimized using Adam with an initial learning rate of 10310^{-3}.

Results and Discussion: We evaluated the proposed approach against the CREM baseline using 100100 unseen speech signals. To demonstrate the impact of our learned model, the baseline performance was tested across multiple fixed step sizes, specifically evaluating γt{0.25,0.5,0.75}t\gamma_{t}\in\{0.25,0.5,0.75\}\ \forall\,t, coupled with a spatial grid search. These evaluation scenarios incorporated diverse room sizes and varying trajectory locations to assess localization accuracy, tracking adaptability, and robustness across different acoustic conditions. autoreftab:results summarizes the results. We report the warmup-weighted average RMSE between the estimated and ground-truth speaker positions, along with the percentage of test trajectories for which the time-averaged positional error exceeds 0.50.5 m.

Table 1: Average Localization Performance: Unfolded Network vs. CREM Baseline.
Rever. Level Unfolded CREM Network CREM Baseline (γ=[0.25,0.5,0.75]\gamma=[0.25,0.5,0.75])
RMSE (m) >0.5 m (%) RMSE (m) >0.5 m (%)
T60=0T_{60}=0 s 0.25 3 [0.28, 0.67, 1.44] [1, 29, 61]
T60=0.3T_{60}=0.3 s 0.55 56 [0.74, 0.81, 0.86] [87, 93, 97]

Under anechoic conditions, the unfolded network outperforms the baselines with larger fixed step sizes while achieving performance comparable to the γ=0.25\gamma=0.25 baseline. This is consistent with the learned step size dynamically converging to a similar low value. In the more challenging reverberant scenario (T60=0.3T_{60}=0.3 s), the proposed method continues to outperform all fixed-step baselines, although its performance degrades relative to the anechoic case. The advantage over the γ=0.5\gamma=0.5 baseline is further illustrated by the error distribution in Fig. 2, where the unfolded network (blue) exhibits a substantially higher concentration of trajectories with low RMSE than the baseline (orange).

Refer to caption
Fig. 2: Comparison of localization RMSE distribution between the unfolded network and the CREM baseline (γt=0.5\gamma_{t}=0.5). The proposed method’s error distribution is more concentrated at lower values; median (solid) and mean (dashed) lines are provided to illustrate the performance gap.
Refer to caption
(a) Speaker tracking in an anechoic room (RT60=0\textrm{RT}_{60}=0 s). Average RMSE =0.09=0.09 m
Refer to caption
(b) Speaker tracking in a reverberant room (RT60=0.3\textrm{RT}_{60}=0.3 s). Average RMSE =0.57=0.57 m
Fig. 3: Trajectory estimation examples from test data. True positions are marked by dots, and network estimates by ‘x‘ markers. The color gradient represents the progression of time and the accompanying plot displays the corresponding learned step-size values.

The network’s tracking capabilities are further qualitatively illustrated in Fig. 3, which shows the estimated trajectories under both anechoic and reverberant conditions.

5 Conclusion

We presented an unfolded REM network for speaker tracking that replaces fixed step-size schedules with a learned, adaptive update policy. Experimental results demonstrate that the proposed model outperforms the classical CREM baseline, achieving lower RMSE and improved stability in both anechoic and reverberant environments. Analysis of the learned parameters shows that the step size γt\gamma_{t} converges to a distinct range for each acoustic setting. In anechoic scenarios, γt\gamma_{t} fluctuates around 0.250.25 (peaking at 0.550.55), whereas in reverberant conditions it decreases to 0.020.020.10.1. The network learns to stabilize the step size, likely because the speaker velocity remains constant. Future work will focus on improving robustness under highly reverberant conditions and extending the model to more complex scenarios with variable speaker velocities and trajectories.

References

  • [1] O. Cappé and E. Moulines (2009) On-line expectation-maximization algorithm for latent data models. J. R. Statist. Soc.: Ser. B (Statist. Methodol.) 71 (3), pp. 593–613. Cited by: §1.
  • [2] S. Chakrabarty and E. A. Habets (2019) Multi-speaker DOA estimation using deep convolutional networks trained with noise signals. IEEE Journal of Selected Topics in Signal Processing 13 (1), pp. 8–21. Cited by: §1.
  • [3] K. Greff, S. van Steenkiste, and J. Schmidhuber (2017) Neural expectation maximization. In Proceedings of the 31st Conference on Neural Information Processing Systems (NeurIPS), pp. 6694–6704. Cited by: §1.
  • [4] K. Gregor and Y. LeCun (2010) Learning fast approximations of sparse coding. In Proceedings of the International Conference on Machine Learning (ICML), pp. 399–406. External Links: Document Cited by: §1.
  • [5] P. Grumiaux, S. Kitić, L. Girin, and A. Guérin (2022-07) A survey of sound source localization with deep learning methods. J. Acoust. Soc. Am. 152 (1), pp. 107–151. Cited by: §1.
  • [6] E. A. P. Habets (2006) Room impulse response generator. Technical report Technische Universiteit Eindhoven. Note: [Online]. Available: https://www.audiolabs-erlangen.de/fau/professor/habets/software/rir-generator Cited by: §4.
  • [7] C. H. Knapp and G. C. Carter (1976) The generalized correlation method for estimation of time delay. IEEE Transactions on Acoustics Speech and Signal Processing 24 (4), pp. 320–327. Cited by: §1.
  • [8] P. Liang and D. Klein (2009) Online EM for unsupervised models. In Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Boulder, Colorado, pp. 611–619. Cited by: §3.
  • [9] M. Mandel, D. Ellis, and T. Jebara (2007) An EM algorithm for localizing multiple sound sources in reverberant environments. In Advances in Neural Information Processing Systems, Vol. 19, pp. 953. Cited by: §1.
  • [10] V. Monga, Y. Li, and Y. C. Eldar (2021) Algorithm unrolling: interpretable, efficient deep learning for signal and image processing. IEEE Signal Processing Magazine 38 (2), pp. 18–44. External Links: Document Cited by: §1.
  • [11] D. B. Paul and J. M. Baker (1992) The design for the wall street journal-based csr corpus. In Proceedings of the workshop on Speech and Natural Language, pp. 357–362. Cited by: §4.
  • [12] E. Perez, F. Strub, H. De Vries, V. Dumoulin, and A. Courville (2018-04) FiLM: visual reasoning with a general conditioning layer. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 32. Cited by: §1, §3.
  • [13] Y. P. Pu, J. Sun, N. Tang, and Z. Xu (2023) Deep expectation-maximization network for unsupervised image segmentation and clustering. Image and Vision Computing 135, pp. 104717. Cited by: §1.
  • [14] V. Rina and G. Sharon (2026) Speakers localization using batch EM in unfolding neural network. arXiv preprint arXiv:2603.16278. External Links: Link Cited by: §1, §2, §3.
  • [15] R. Schmidt (1986) Multiple emitter location and signal parameter estimation. IEEE Transactions on Antennas and Propagation 34 (3), pp. 276–280. Cited by: §1.
  • [16] O. Schwartz and S. Gannot (2014-02) Speaker tracking using recursive EM algorithms. IEEE/ACM Transactions on Audio, Speech, and Language Processing 22 (2), pp. 392–402. External Links: Document Cited by: §1, §2, §2.
  • [17] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin (2017) Attention is all you need. In Advances in Neural Information Processing Systems, Vol. 30, pp. 5998–6008. Cited by: §1, §3.