Our contributions
What HRIR-Former does
Direct time-domain reconstruction
- HRIRs are reconstructed directly as time-domain waveforms.
- Magnitude and phase are reconstructed together, with no minimum-phase assumption or separate timing model.
Arbitrary directions in 3D space
- Query any direction in 3D space.
- Grid-free, continuous reconstruction.
- Supports datasets with different measurement configurations.
- Enabled by sinusoidal geometric embeddings of the direction coordinates (Figure 4).
As few as 3 measured directions
- Only 3 measured directions of a listener are needed to query HRIRs at any other direction.

Listening demo
Ground truth vs. HRIR-Former
In each example, a mono source circles the head of a subject from the SONICOM dataset [1] in the horizontal plane. HRIR-Former only sees M = 19 measured HRIRs (orange diamonds in the video) and reconstructs the other 774 directions.
- Nearly identical. The HRIR-Former rendering is almost indistinguishable from the ground-truth rendering: same source position, movement and timbre.
- Sometimes even smoother. Measured HRIRs carry small, unavoidable errors, e.g. from slight head movements of the subject during the measurement. They show up as tiny discontinuities between neighbouring directions (see Figure 3). HRIR-Former does not reproduce them, so the moving source can sound smoother than with the measured HRIRs.
- Close in the numbers, too. Each example lists the NMSE and cosine distance between the two renderings (details below).
You are viewing this page from a local file. Browsers block audio loading from file://. To preview locally, run python3 -m http.server in this folder and open http://localhost:8000. On GitHub Pages it works as-is.
02Pink noise
03Speech[2]
Conditions. Audio: 48 kHz AAC.
Objective metrics
Waveform differences in the listening demos above
NMSE = ‖ŷ − y‖² / ‖y‖² and cosine distance (CD) = 1 − cos∠(ŷ, y), where ŷ and y are the HRIR-Former and ground-truth renderings. Lower is better for both.
| NMSE (dB) ↓ | NMSE ↓ | Cosine distance ↓ | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Example | Subject | Left | Right | Mean | Left | Right | Mean | Left | Right | Mean |
| Music | P0189 | −15.456 | −16.262 | −15.859 | 0.0285 | 0.0236 | 0.0261 | 0.0127 | 0.0119 | 0.0123 |
| Pink noise | P0187 | −13.121 | −11.724 | −12.423 | 0.0487 | 0.0672 | 0.0580 | 0.0243 | 0.0325 | 0.0284 |
| Speech | P0188 | −16.145 | −14.302 | −15.224 | 0.0243 | 0.0371 | 0.0307 | 0.0114 | 0.0119 | 0.0116 |
M = 19 measured directions for all three subjects.
A closer look
Reconstructed HRIRs


Method
HRIR-Former pipeline
Overview: Input: M measured HRIRs and their directions → Output: HRIRs at N arbitrary target directions.
Sinusoidal direction encoding: Encodes spatial coordinates so that any direction in the continuous 360° space can be queried.
Spatial self-attention: Captures information across directions.
Auxiliary ITD/ILD heads: Supervise binaural timing (ITD) and level (ILD) cues.
Binaural HRIR decoder: Directly predicts the left- and right-ear HRIR waveforms.
1D convolutional refinement: Enhances local connections and smooths out measurement errors and misalignment in the input data.
Abstract
Individualized head-related impulse responses (HRIRs) enable binaural rendering, but dense per-listener measurements are costly. We address HRIR spatial up-sampling from sparse per-listener measurements: given a few measured HRIRs for a listener, predict HRIRs at unmeasured target directions. Prior learning methods often work in the frequency domain, rely on minimum-phase assumptions or separate timing models, and use a fixed direction grid, which can degrade temporal fidelity and spatial continuity. We propose HRIR-Former, a time-domain, grid-free binaural Transformer for reconstructing HRIRs at arbitrary directions from sparse inputs. It uses sinusoidal spatial features, a Conv1D refinement module, and auxiliary interaural time difference (ITD) and interaural level difference (ILD) heads. On SONICOM, it improves normalized mean squared error (NMSE), cosine distance, and ITD/ILD errors over prior methods; ablations validate modules and show minimum-phase preprocessing is unnecessary.
Citation
BibTeX
@inproceedings{xu26c_interspeech,
title = {{HRIR-Former: Grid-Free Time-Domain Reconstruction of Head-Related Impulse Responses with a Spatially Encoded Transformer}},
author = {Shaoheng Xu and Chunyi Sun and Jihui Zhang and Amy Bastine and Prasanga N. Samarasinghe and Thushara D. Abhayapala and Hongdong Li},
year = {2026},
booktitle = {{Interspeech 2026}},
pages = {690--695},
doi = {10.21437/Interspeech.2026-702},
issn = {2958-1796},
}
References
- I. Engel, R. Daugintis, T. Vicente, A. O. T. Hogg, J. Pauwels, A. J. Tournier, and L. Picinali, “The SONICOM HRTF Dataset,” Journal of the Audio Engineering Society, vol. 71, no. 5, pp. 241–253, 2023. doi:10.17743/jaes.2022.0066
- C. K. A. Reddy, E. Beyrami, J. Pool, R. Cutler, S. Srinivasan, and J. Gehrke, “A Scalable Noisy Speech Dataset and Online Subjective Test Framework,” in Proc. Interspeech, 2019, pp. 1816–1820. doi:10.21437/Interspeech.2019-3087 (MS-SNSD)