Ξ΅ar-VAE2

[Demo Page] - [Paper (coming soon)] - [Codebase]


Ξ΅ar-VAE2 Architecture

Overview

A spectral-domain music autoencoder compressing 48 kHz stereo audio into a 128-dimensional continuous latent sequence at 25 Hz β€” a 1920Γ— temporal downsampling β€” through two frequency-aware components: Spec-SnakeBeta (per-bin periodic activation with log-frequency initialization) and a Duplex-Aware Refiner (band-specific magnitude/phase correction motivated by psychoacoustic masking).

✨ Highlights

  • 🎡 Complex spectral domain β€” operates on STFT real/imag channels, not raw waveform
  • 🧬 Spec-SnakeBeta β€” per-(channel, frequency-bin) periodic activation with log-frequency initialization; each bin learns its own oscillatory bias
  • πŸŽ›οΈ Duplex-Aware Refiner β€” band-specific mag/phase correction following psychoacoustic dominance (phase-only < 1.5 kHz, joint mid-band, mag-only > 4 kHz)
  • πŸ“Š 1920Γ— compression β€” 48 kHz stereo β†’ 128-d Γ— 25 Hz continuous latent
  • πŸ† SOTA reconstruction on Song Describer Dataset across spectral metrics

Main Results

Reconstruction quality on Song Describer Dataset (546 full tracks, 48 kHz stereo):

System SI-SDR ↑ STFT Dist ↓ Mel Dist ↓ CCPC ↑
Ξ΅ar-VAE 12.4 0.880 0.509 0.973
SA-Open 6.7 1.016 0.612 0.933
Levo 2 8.1 0.971 0.599 0.947
SAME-L 12.5 0.986 0.539 0.970
Ξ΅ar-VAE2 (base) 10.9 0.916 0.572 0.966
Ξ΅ar-VAE2 (full) 11.3 0.870 0.461 0.973

Ξ΅ar-VAE2 (full) achieves the best spectral fidelity (STFT Dist, Mel Dist) among all systems while matching the phase coherence (CCPC) of the larger Ξ΅ar-VAE baseline.

Spec-SnakeBeta

Spec-SnakeBeta activation visualization

Per-(channel, frequency-bin) periodic activation with log-scale parameterization. Low-frequency bins stay near-identity; high-frequency bins become progressively oscillatory β€” providing a physically motivated inductive bias for spectral processing.

Input Representation

Five-paradigm input representation comparison

Complex STFT preserves organized high-frequency harmonic structure (panel A) where the same-backbone waveform-patch paradigm degrades (panel B). The spectral domain provides a physical frequency-axis inductive bias unavailable to waveform methods.

Installation

# Clone the repository
git clone https://github.com/Eps-Acoustic-Revolution-Lab/EAR_VAE2.git
cd EAR_VAE2

# Install dependencies
pip install -r requirements.txt

# Download pretrained weights (coming soon)
# huggingface-cli download eps-acoustic-revolution-lab/ear-vae2-small --local-dir checkpoints/

Usage

Python API

import torch
from ear_vae2 import EarVAE2

# Load model (full model, with refiner β€” see configs/ear_vae2.json)
config = {
    "C0": 64, "D": 128, "use_vae": True,
    "refiner": {"type": "banded", "dim": 256, "intermediate_dim": 1024,
                "num_layers": 12, "layer_norm_eps": 1e-5},
}
model = EarVAE2(config)
ckpt = torch.load("ear_vae2.pt", map_location="cpu")
model.load_state_dict(ckpt["gen"] if "gen" in ckpt else ckpt)
model.eval().cuda()

# Encode & decode
audio = torch.randn(1, 2, 48000 * 10).cuda()  # 10s stereo @ 48kHz
audio_padded, orig_len = model.preprocess_audio(audio)
latents = model.encode_audio(audio_padded, chunked=True, chunk_size=512, overlap=16, deterministic=True)
reconstructed = model.decode_audio(latents, chunked=True, chunk_size=512, overlap=16)
reconstructed = reconstructed[:, :, :orig_len]

Command Line

python inference.py --checkpoint ear_vae2.pt --config configs/ear_vae2.json --input input.wav --output output.wav
πŸ“ Project Structure
EAR_VAE2/
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ inference.py                 # CLI inference script
β”œβ”€β”€ configs/
β”‚   └── ear_vae2.json           # Full model config (with refiner)
β”œβ”€β”€ ear_vae2/
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── model.py                # Self-contained EarVAE2 model
β”‚                               #   (encoder, decoder, Spec-SnakeBeta,
β”‚                               #    refiner, STFT helpers)
β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ architecture.png
β”‚   β”œβ”€β”€ spec_snakebeta.png
β”‚   └── input_repr.png
└── docs/                       # Demo page (GitHub Pages, served from /docs)
    β”œβ”€β”€ index.html
    β”œβ”€β”€ config.js
    β”œβ”€β”€ css/
    β”œβ”€β”€ js/
    β”œβ”€β”€ assets/
    └── cases/

Model Details

Config Params (M) Latent dim Rate (Hz) Compression
Small (C0=64) ~42.6 128 25 1920Γ—
  • Sample rate: 48 kHz stereo
  • STFT: 3840-point FFT, 1920-sample hop β†’ 25 Hz frame rate
  • Latent: 128-d continuous (VAE with KL regularization)
  • Refiner: 12-layer banded Transformer (256-d, 1024 intermediate)

⚠️ Note on open-source weights: Due to data licensing constraints, the open-source model weights are retrained on publicly available datasets (not the full internal training corpus). Performance may differ from the numbers reported in the paper, which were obtained with the full-scale proprietary training data.


Citation

@inproceedings{earvae2,
  title     = {Frequency-Aware Spectral Autoencoding for High-Fidelity Music Reconstruction},
  author    = {Anonymous},
  booktitle = {International Conference on Learning Representations (ICLR)},
  year      = {2026}
}

Acknowledgements

We gratefully acknowledge the following projects that inspired components of Ξ΅ar-VAE2:

  • BigVGAN β€” SnakeBeta periodic activation design
  • Vocos β€” ConvNeXt block architecture for spectral modeling
  • Stable Audio Tools β€” Training infrastructure and audio pipeline patterns

License

This project is licensed under the Apache License 2.0.

Copyright 2026 Epsilon Acoustic Revolution Lab.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support