Skip to content
IanMGriffPublic

About

Auditory SSL models

Resources

Stars

3 stars

Watchers

2 watching

Forks

Repository files navigation

Toward Human-aligned Universal Audio Representations with Contrastive-Equivariant Self-Supervised Learning

Official repo for the CCN 2026 Proceedings paper Toward Human-aligned Universal Audio Representations with Contrastive-Equivariant Self-Supervised Learning.

This repository implements CE-SSL training and evaluation, including linear-probe transfer, zero-shot triplet tasks, parameter decoding, and fMRI analyses reported in the paper.

CE-SSL schematic

Getting Started

Clone with submodules, then create the conda environment:

git clone --recurse-submodules https://github.com/Feather-Lab/audio-ssl.git ce_audio_ssl
cd ce_audio_ssl
mamba env create -f environment.yml -n ce_audio_ssl
mamba activate ce_audio_ssl
pip install -e ".[hub]"

Dependencies

  • auditory_brain_dnn/ — brain–model comparison (fork extended for CE-SSL model lists and activations)
  • byol-a/ — BYOL-A baseline model training and evaluation (pretrained weights released in this parent repo)
  • robustness/ — Based on MadryLab/robustness, with changes for model architectures and audio augmentations.

Navigating the Code

Pretrained models

The eight CochCNN9 checkpoints from the paper's data-scaling experiments are in one Hugging Face repo: imgriff/ce-ssl-ccn2026.

Plot name Folder
Supervised word cochcnn9-supervised-word
Supervised auditory events cochcnn9-supervised-auditory-events
Supervised multi-task cochcnn9-supervised-multitask
Scaled supervised auditory events cochcnn9-supervised-auditory-events-scaled
iSSL cochcnn9-issl
CE-SSL cochcnn9-ce-ssl
Scaled iSSL cochcnn9-issl-scaled
Scaled CE-SSL cochcnn9-ce-ssl-scaled
from lightning_scripts.zero_shot_utils import load_single_cochdnn_model

encoder, name, layers = load_single_cochdnn_model(
    "ce_ssl", from_hub=True, device="cpu",
)

Keys match COCHDNN_MODEL_REGISTRY (word, aud_events, multitask, scaled_aud_events, issl, ce_ssl, scaled_issl, scaled_ce_ssl). Install Hub extras with pip install -e ".[hub]".

Data

Datasets are available upon request. Once obtained, set paths with COCHDNN_* environment variables (see default_paths.py). The key training variables are COCHDNN_JSIN_TRAIN_H5, COCHDNN_JSIN_VALID_H5, COCHDNN_AUDIONOISE_TRAIN_H5, COCHDNN_AUDIONOISE_VALID_H5, and COCHDNN_AUDIOSET_TRAIN_H5; evaluation scripts also use paths such as COCHDNN_CHECKPOINT_DIR, COCHDNN_ESC50_DIR, COCHDNN_NSYNTH_DIR, COCHDNN_TONE_PERFECT_DIR, and COCHDNN_JSIN_DIR.

Evaluation And Notebooks

Transfer, zero-shot, parameter-decoding, and fMRI analysis entry points are in lightning_scripts/ and fmri_analysis/. Start with the demo notebooks in notebooks/demo_notebooks/: audio_transforms_demo.ipynb shows the matched CE-SSL audio transforms, and zero_shot_eval_demo.ipynb runs the NSynth melody-match triplet evaluation path.

Paper figure notebooks are under notebooks/, including figure_2.ipynb, figure_3_parameter_decoding.ipynb, figure_3_zero_shot.ipynb, and figure_4_plot_fmri_components.ipynb. These notebooks expect generated evaluation outputs such as eval_jsin_results/, eval_nsynth_results/, and parameter_decoding_v2/.

Citation

This repository was released with the following proceedings paper. If you use this repository in your research, please cite as:

@inproceedings{griffith2026humanaligned,
  title={Human-aligned Universal Audio Representations with Contrastive-Equivariant Self-Supervised Learning},
  author={Ian M. Griffith and Thomas Edward Yerxa and Josh McDermott and Jenelle Feather},
  booktitle={9th Annual Conference on Cognitive Computational Neuroscience},
  year={2026},
  doi={10.32470/uqprhu8},
  url={https://openreview.net/forum?id=qaNtSV4PGm}
}

About

Auditory SSL models

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages