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

HRTF Field: Unifying Measured HRTF Magnitude Representation with Neural Fields

You Zhang, Yuxiang Wang, Zhiyao Duan · DOI

Abstract

Head-related transfer functions (HRTFs) are a set of functions describing the spatial filtering effect of the outer ear (i.e., torso, head, and pinnae) onto sound sources at different azimuth and elevation angles. They are widely used in spatial audio rendering. While the azimuth and elevation angles are intrinsically continuous, measured HRTFs in existing datasets employ different spatial sampling schemes, making it difficult to model HRTFs across datasets. In this work, we propose to use neural fields, a differentiable representation of functions through neural networks, to model HRTFs with arbitrary spatial sampling schemes. Such representation is unified across datasets with different spatial sampling schemes. HRTFs for arbitrary azimuth and elevation angles can be derived from this representation. We further introduce a generative model named HRTF field to learn the latent space of the HRTF neural fields across subjects. We demonstrate promising performance on HRTF interpolation and generation tasks and point out potential future work.

The Challenge of Personalized Spatial Audio

To experience truly immersive 3D audio in VR or AR, headphones must filter sound exactly the way a user's unique ears, head, and torso do. These filters are known as Head-Related Transfer Functions (HRTFs). However, measuring a person's HRTF is a complex process requiring specialized anechoic chambers.

While many public datasets exist, they are "grid-locked": each uses a different spatial sampling scheme, such as geodesic grids or polar coordinates. This inconsistency makes it nearly impossible to combine datasets to train large-scale machine learning models. Most existing methods are restricted to training on small datasets of just a few dozen people, leading to overfitting and poor generalization for new users.

Datasets and Grid Agnosticism

The study leverages 10 publicly available far-field HRTF databases, including 3D3A, Aachen, ARI, BiLi, CIPIC, Crossmod, HUTUBS, Listen, RIEC, and SADIE II. These datasets vary wildly in density—ranging from 187 to 2818 locations per subject—and utilize diverse coordinate systems.

Spatial sampling schemes across various public HRTF datasets, illustrating the lack of a unified grid.

Methods: HRTFs as Neural Fields

The authors propose representing HRTFs as Neural Fields—a differentiable representation where a neural network parameterizes a continuous function. This provides a "universal language" for HRTFs by ignoring discrete points and modeling the underlying continuous field.

  1. SIREN Architecture: Instead of standard ReLU networks, the model uses Sinusoidal Representation Networks (SIREN). SIRENs use sine activation functions, which are mathematically superior at capturing the complex, high-frequency "peaks and notches" in HRTF spectra that are vital for vertical sound localization.
  2. Generative HRTF Field: They implement an Implicit Gradient Origin Network (IGON) that maps a subject-specific latent code ($z$) and spatial coordinates (azimuth $\theta$, elevation $\phi$) to the corresponding HRTF magnitude.
  3. Manifold Learning: By modeling the HRTF as a continuous function $F(\theta, \phi)$, the model can learn what a human HRTF looks like across hundreds of subjects from different labs, effectively learning a low-dimensional manifold of human ear acoustics.

Key Results

The neural field approach acts as a smart prior, maintaining spectral cues even when data is sparse.

  • Cross-Dataset Generalization: A model trained on nine datasets performed nearly as well on a tenth, unseen dataset as a model trained specifically on that dataset. This demonstrates that the model learns general human acoustics rather than dataset-specific quirks.
  • Interpolation Performance: The model outperformed Vector Base Amplitude Panning (VBAP) and matched or exceeded bilinear interpolation, particularly in the high-frequency range (>10 kHz) critical for pinpointing sound height.
  • Sparse Data Reconstruction: In a conditional generation task, the model was given less than 25% of a subject's HRTF measurements. It successfully reconstructed the remaining 75% with significantly lower Log-Spectral Distance (LSD) than standard mathematical baselines.
Performance evaluation on RIEC interpolation task. (a) Observed and desired locations. (b) Reconstruction error on observed locations. (c) Interpolation error on desired locations.

Limitations and Future Work

This work focuses strictly on HRTF magnitude. Future research will explore incorporating phase information or modeling the Head-Related Impulse Response (HRIR) in the time domain. Additionally, while the current model infers latent codes from sparse acoustic measurements, the ultimate goal is to map a user's physical features—such as ear photos or 3D head scans—directly to this latent space, enabling instant HRTF personalization without the need for acoustic measurements.

Summary updated

BibTeX
@misc{zhang2022hrtf,
  author = {You Zhang and Yuxiang Wang and Zhiyao Duan},
  title = {{HRTF Field: Unifying Measured HRTF Magnitude Representation with Neural Fields}},
  year = {2022},
  eprint = {2210.15196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.15196},
}
Figure