HARP: Harmonic-Aware Residual Partitioning for Neural Audio Codecs
Paper β’ 2607.16657 β’ Published
HARP is a neural audio codec that partitions residual vector quantization (RVQ) across harmonically meaningful frequency bands, giving high-quality, variable-bitrate audio compression from a single model. A harmonic-aware partitioning distributes codebook capacity across perceptually meaningful bands, so one model serves multiple bitrates by decoding a growing number of codebook groups.
| Group | Band | Codebooks |
|---|---|---|
| 0 | Bass (~0β1 kHz) | 3 |
| 1 | Low-mid (~1β4 kHz) | 2 |
| 2 | High-mid (~4β10 kHz) | 2 |
| 3 | Treble (~10β22 kHz) | 2 |
The bass group is always decoded; adding groups raises quality and bitrate.
With 9 codebooks @ 1024 entries and a ~86 Hz frame rate:
| Groups | Codebooks | Approx. bitrate |
|---|---|---|
| 1 | 3 | ~2.6 kbps |
| 2 | 5 | ~4.3 kbps |
| 3 | 7 | ~6.0 kbps |
| 4 | 9 | ~7.7 kbps (full) |
harp.ckpt β slim, inference-ready weights (~293 MB, weights only).Set up the GitHub repo (uv sync),
download this checkpoint, and reconstruct audio:
uv pip install "huggingface_hub[cli]"
hf download KelvinYang/harp-codec harp.ckpt --local-dir checkpoints
python entry.py -i --input audio.wav --output recon.wav # full rate
python entry.py -i --input audio.wav --n-groups 2 --output out.wav # lower bitrate (1..4)
Each run reports SI-SDR, multi-scale mel loss, LSD, and SNR.
@inproceedings{harp2026,
title = {HARP: Harmonic-Aware Residual Partitioning for Neural Audio Codecs},
author = {Yang, Qiaoyu and He, Lixing and Deng, Binyue and Zhao, Weifeng},
booktitle = {Interspeech},
year = {2026}
}
MIT