Retrieval-Augmented Neural Field for HRTF Upsampling and Personalization

Yoshiki Masuyama, Gordon Wichern, François G. Germain, Christopher Ick, Jonathan Le Roux

Abstract

Personalizing Head-Related Transfer Functions (HRTFs) is essential for immersive 3D audio but typically requires dense, time-consuming measurements. This paper introduces Retrieval-Augmented Neural Field (RANF), a framework that predicts a subject's full HRTF from sparse data by retrieving similar subjects from a database. By utilizing a Transform-Average-Concatenate (TAC) module and Low-Rank Adaptation (LoRA), RANF provides a robust "prior" that enhances prediction accuracy. Evaluation on the SONICOM dataset shows that RANF significantly outperforms standard neural fields, particularly when only 3 to 5 measurements are available, effectively capturing critical high-frequency spectral features. This approach served as the core component of the winning solution for Task 2 of the Listener Acoustic Personalization (LAP) Challenge 2024.

Introduction

To achieve realistic spatial audio, devices must account for an individual's unique Head-Related Transfer Function (HRTF), which describes how their anatomy filters sound coming from different directions. However, measuring a dense HRTF is logistically challenging, often requiring specialized equipment and anechoic environments. While researchers have turned to Neural Fields (NF)—networks that map directions to audio filters—these models often fail when data is extremely sparse (e.g., 3 to 5 measurements) because they lack sufficient context to generalize to unmeasured directions.

Methodology

The proposed RANF system addresses the data sparsity problem by incorporating a retrieval mechanism inspired by Retrieval-Augmented Generation (RAG) in Large Language Models. The process involves four key stages:

  1. Retrieval: The system identifies $K$ "neighbor" subjects from a database whose HRTFs most closely match the target user's sparse measurements. The researchers found that using Interaural Time Difference (ITD) as the retrieval criterion worked better than using spectral magnitude, as timing is a robust proxy for head size and shape.
  2. Augmentation: The HRTFs of these neighbors at the target direction are fed into the network. To handle a variable number of neighbors efficiently, a Transform-Average-Concatenate (TAC) module is employed. Originally designed for speech separation, this module ensures the network remains permutation-invariant to the order of retrieved subjects.
  3. Personalization via LoRA: Low-Rank Adaptation (LoRA) is used to fine-tune a small subset of parameters for the specific user, allowing the model to adapt while keeping the bulk of the general spatial knowledge frozen.
  4. Residual Prediction: For timing (ITD), the model predicts the residual difference between the target user and the average of the retrieved neighbors, rather than the absolute value, which improves stability.
High-level block diagram of the RANF system, illustrating the retrieval and prediction pipeline.

Experimental Results

The model was evaluated using the SONICOM HRTF dataset, which contains high-quality measurements for 200 subjects (179 for training, 20 for testing). Performance was measured across various levels of sparsity: 3, 5, 19, and 100 measurements.

RANF demonstrated significant improvements over baseline LoRA-based Neural Fields. In the most challenging scenario with only 3 measurements, RANF reduced ITD error to 20.5 $\mu s$, compared to 28.6 $\mu s$ for the standard NF. Spectral accuracy also improved; at 100 measurements, RANF achieved a Log-Spectral Distortion (LSD) of 3.0 dB, outperforming the 3.8 dB achieved by standard models.

Quantitative comparison of RANF against baseline methods, showing superior performance in ITD, ILD, and LSD across different measurement counts.

A key qualitative advantage of RANF is its ability to preserve high-frequency "notches" around 10 kHz, which are vital for vertical sound localization. While standard NFs tend to smooth these features, RANF "borrows" sharp spectral details from retrieved neighbors to maintain high-fidelity reconstruction.

Conclusion

RANF successfully applies retrieval-augmented generation principles to the domain of spatial audio. By leveraging existing datasets as a source of high-fidelity priors, it enables accurate HRTF personalization from minimal user input. Future work will focus on optimizing computational overhead and handling cases where retrieval databases are themselves sparse.

Summary updated

BibTeX
@inproceedings{masuyama2025retrieval,
  author = {Yoshiki Masuyama and Gordon Wichern and François G. Germain and Christopher Ick and Jonathan Le Roux},
  title = {{Retrieval-Augmented Neural Field for HRTF Upsampling and Personalization}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10889481},
}
Figure