NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HRTF Estimation using a Score-based Prior

Etienne Thuillier, Jean-Marie Lemercier, Eloi Moliner, Timo Gerkmann, Vesa Välimäki

TL;DR

This paper introduces a novel method to estimate a person's unique Head-Related Transfer Function (HRTF) from everyday binaural recordings (like listening to a podcast) in a standard room. By pairing a score-based diffusion model as an HRTF prior with a parametric room acoustics model, the system jointly solves for both the individual's anatomy-driven audio filters and the room's reverberation, significantly outperforming standard baselines at high frequencies.

What Problem Does This Paper Address?

To create immersive 3D spatial audio, systems rely on Head-Related Transfer Functions (HRTFs)—audio filters that capture how a person's unique anatomy (head, torso, and ear shape) alters sound arriving from different directions. Traditionally, measuring an HRTF requires a tedious procedure inside an anechoic chamber using specialized equipment and unpleasant synthetic audio sweeps.

While "in-the-wild" estimation methods have been proposed to democratize spatial audio, existing approaches face steep hurdles: they often require active user cooperation, only recover magnitude spectra (discarding crucial phase information), or struggle to capture the highly individualized high-frequency variations unique to each person. The authors tackle the challenge of blindly estimating a full (magnitude and phase) individualized HRTF using only a passive recording of natural speech in a normal, reverberant room.

Methods

The authors frame HRTF estimation as a blind inverse problem, aiming to retrieve both the optimal time-aligned HRTF ($\hat{\mathbf{a}}$) and the Binaural Room Impulse Response (BRIR) parameters ($\hat{\psi}$) from a reverberant measurement ($\mathbf{y}$) and a known source signal ($\mathbf{s}$).

The core architecture relies on two main components:

  1. Score-Based Diffusion Prior: The authors train a 1D-UNet score-based generative diffusion model on frequency-domain, time-aligned HRTFs conditioned on the Direction of Arrival (DoA). This model acts as a powerful data-driven prior, learning the underlying distribution of valid human HRTFs.
  2. Parametric BRIR Model: The room's acoustics are modeled as the sum of an anechoic component (the HRTF combined with time-of-flight and inter-aural time differences) and a reverberant component (a subband exponentially decaying magnitude model with flexible phase coefficients to capture diffuse reflections).

During inference, the algorithm uses an alternating optimization procedure. It updates the room parameters using gradient descent (Adam) on a magnitude-compressed STFT reconstruction loss, while simultaneously refining the HRTF estimate via posterior sampling (solving a reverse-time ordinary differential equation guided by both the diffusion prior and a log-likelihood approximation).

Diagram of the inference algorithm.

Datasets

  • HUTUBS Database: A dataset containing simulated HRTFs from 95 subjects. The authors used 85 subjects to train the score model, 2 for validation, and 6 for testing.
  • VCTK Database: Natural speech utterances from two speakers (p226 and p287) were utilized as the source excitation signals.
  • Simulated BRIRs: Evaluation data was synthesized using a publicly available shoebox room simulator (image-source method) to generate realistic reverberant environments with varying room dimensions, source locations, and absorption coefficients.

Key Insights and Ideas

  • Generative Modeling vs. Data Retrieval: Instead of simply picking the closest matching HRTF from a pre-existing database (like the Nearest Neighbour oracle baseline), the diffusion model actually generates custom high-frequency details. This demonstrates that the score-based prior possesses true interpolation capabilities for complex anatomical variations.
  • Decoupled Joint Optimization: By separating the room acoustics from the HRTF using a statistical parametric model, the system successfully strips away complex reverberation artifacts without needing explicit knowledge of the room's physical geometry.
  • Phase Retrieval: Unlike many deep learning approaches that only predict magnitude spectra, this method recovers both magnitude and phase, which is vital for accurate horizontal sound localization.

Key Results

The proposed method significantly outperformed all baselines in both Logarithmic Relative Error (LRE) and Log-Magnitude Distance (LMD).

Instrumental results obtained on simulated BRIR data.

Quantitatively, the proposed method achieved an LRE of -9.20 ± 5.64 dB and an LMD of 2.28 ± 1.11 dB, notably beating a quasi-oracle "Nearest Neighbour" baseline that selects the absolute best-matching subject from the training set.

Crucially, in the high-frequency range (8–17 kHz)—where human ear shapes cause the most volatile individual spectral variations—the diffusion prior improved upon the Nearest Neighbour baseline by at least 6 dB in LRE and 2 dB in LMD.

LRE as a function of frequency and azimuth. LMD as a function of frequency and azimuth.

Limitations and Future Work

  • Median Plane Performance: The method experiences a performance drop at the median plane (0° azimuth), particularly affecting phase estimation (as seen in the LRE spikes in Figure 2b). The authors note that modeling HRTFs at this specific spatial position presents inherent challenges that warrant further investigation.
  • A-Priori Assumptions: The current framework assumes that the source signal and its Direction of Arrival are known beforehand (e.g., a smart speaker playing a known podcast at a fixed location). Transitioning this to a completely unconstrained environment where the source signal and position are entirely unknown remains an open challenge.

Summary updated

BibTeX
@inproceedings{thuillier2025hrtf,
  author = {Etienne Thuillier and Jean-Marie Lemercier and Eloi Moliner and Timo Gerkmann and Vesa Välimäki},
  title = {{HRTF Estimation using a Score-based Prior}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10888032},
}
Figure