AudioMosaic
Collection
ICML2026 AudioMosaic: Contrastive Masked Audio Representation Learning • 15 items • Updated • 3
AudioMosaic: Contrastive Masked Audio Representation Learning
Code: https://github.com/HanxunH/AudioMosaic
Pretrained encoder: hanxunh/AudioMosaic-vit-b16-pretrained
This is the AudioMosaic ViT-B/16 encoder fine-tuned on the EnvSDD (TTA) train split for binary real/fake environmental-sound spoof detection. Evaluated on four test splits.
| Test Split | EER (%) |
|---|---|
| test01 | 0.00 |
| test02 | 0.06 |
| test03 | 0.37 |
| test04 | 4.50 |
EER values are reported as percentages; lower is better.
import sys, torch
from huggingface_hub import snapshot_download
local_dir = snapshot_download("hanxunh/AudioMosaic-vit-b16-finetune-envsdd-tta")
sys.path.insert(0, local_dir)
from load_model import load_classifier
model = load_classifier(device="cuda")
# Forward a log-mel spectrogram batch of shape [B, 1, 1024, 128]
fbank = torch.randn(2, 1, 1024, 128).cuda()
with torch.no_grad():
logits = model(fbank) # [B, 2]
probs = logits.softmax(-1) # [P(real), P(fake)]
The release contains:
model.safetensors — fine-tuned classifier weightsconfig.json — architecture hyperparametersmodeling.py — vendored model architecture (no need to install AudioMosaic)load_model.py — convenience loaderRequired dependencies: torch, timm, torchlibrosa, safetensors, huggingface_hub.
@inproceedings{huang2026audiomosaic,
title={AudioMosaic: Contrastive Masked Audio Representation Learning},
author={Hanxun Huang and Qizhou Wang and Xingjun Ma and Cihang Xie and Christopher Leckie and Sarah Erfani},
booktitle={ICML},
year={2026}
}
Base model
hanxunh/AudioMosaic-vit-b16-pretrained