Accept the terms to download the SNL laughter model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This model is released under CC BY-NC 4.0. By downloading it you agree to: (1) use it, and anything you make from it, for non-commercial purposes only; (2) credit the SNL Audience Study and its release (0-dev.2026-11-29, https://huggingface.co/datasets/dinoclub/snl-audience-study) in any work that uses it or a model fine-tuned from it; (3) not redistribute these weights, or weights derived from them, under any other licence. The base model's MIT notice (NOTICE) travels with the weights.
Log in or Sign Up to review the conditions and access this model content.
Pre-publication: open for review. These files and figures may change before publication. Corrections are welcome at fb9542@wayne.edu.
snl-laughter-ft: laughter, applause and cheering in SNL broadcast audio (ATST-F)
The listening model of the SNL Audience Study: a sound-event model that marks, every 40 ms, how likely the audio holds laughter, applause and cheering. It is the measure behind the study's release 0-dev.2026-11-29 (dataset), shipped with a standalone copy of the reader the study uses, its frozen operating points and, separately, the study's per-chain corrections.
The previous version of this model, a fine-tuned MobileNet (frame_mn10), the measure of releases up to 0-dev.2026-11-23, stays
on this repository at tag 0-dev.2026-11-23. The main
branch holds the ATST-F version only.
What it does
- Input: audio (any file ffmpeg reads, or a 16 kHz mono float32 numpy array).
- Output, per 40 ms frame: P(laughter), P(applause), P(cheering) between 0 and 1; and, for each kind, the seconds and spans at its frozen operating point (laughter 0.5430, applause 0.1989, cheering 0.3005).
- Model: ATST-F (ATST-Frame, a frame-level audio transformer, about 85 million parameters) as released, pre-trained on AudioSet Strong, in PretrainedSED, fine-tuned with a new five-output frame head. Two checkpoints (training seeds 0 and 2) are averaged.
- The reading (
snl_atstf_reader.py, as the study reads a broadcast): each checkpoint reads 10 s segments on a grid that starts at 0, 3.32 and 6.64 s (frame offsets 0, +83, +166), in batches of 16; the three reads are averaged in probability, then the two checkpoints. A span is on at the point and off below it, gaps under 0.2 s are merged and spans under 0.3 s dropped. - Two further outputs, P_R (an auxiliary training target) and P_K (claps), are produced by the head but were never validated. Do not use them.
How it was trained (the recipe, f0_base_lr3e5)
- Fine-tuned from PretrainedSED's
ATST-F_strong_1.pton the study's hand-coded windows of SNL broadcast tape: second-by-second codes of laughter, applause, cheering and claps made by ear (label set b), 10 s training clips, each shifted in time and passed through one of five recording chains (clean, MP3 80 and 128 kb/s, AC-3 64 kb/s, AAC 96 kb/s). - Layer-wise learning-rate decay (LLRD) over the transformer's 12 blocks: learning rate 3e-5 at the top block, times 0.85 for each block deeper; 3e-4 for the head; weight decay 1e-4.
- Laughter in laughs shorter than one second was weighted three times in the loss.
- The new head's rows started from the base model's AudioSet rows for Laughter, Applause, Cheering and Clapping.
- Two training seeds (0 and 2), averaged; each read at offsets 0, 83 and 166 frames.
- The training settings are kept in each checkpoint (
args). - No audio, labels or transcripts are shipped, here or in the dataset.
How good it is
Measured against the ear on 573 hand-coded windows, each window read by a model that never trained on its broadcast (cross-fitted, by fold). E = sum |model - ear| / sum ear per window, corrected by chain out of fold; lower is better.
The recipe was picked on fold 0 of those windows, and the model is not blind-tested. Its gain on folds 1 to 4, which played no part in the choice, is the fairer figure. A further set of hand-coded windows is held back, sealed and unscored, for a later test.
| Figure (laughter unless named) | ATST-F (this model) | MobileNet (previous) | Key |
|---|---|---|---|
| Error against the ear, E, all 573 windows | 0.2014 (0.1853 to 0.2192) | 0.2305 (0.2111 to 0.2513) | bl15.card.E.row=ft_atstf_s0s2@0-dev.2026-11-29 |
| Gain in E over the previous model, folds 1-4 (460 windows) | +0.0236 (+0.0107 to +0.0377) | bl15.card.folds14.d_prev_minus_row.row=ft_atstf_s0s2@0-dev.2026-11-29 |
|
| Gain in E, fold 0 (113 windows; the fold the recipe was picked on) | +0.0543 (+0.0206 to +0.0942) | bl15.card.fold0.d_prev_minus_row.row=ft_atstf_s0s2@0-dev.2026-11-29 |
|
| Whole laughs the ear coded that the model's marks touch | 95.9% (94.9% to 96.9%) | 96.3% | bl15.card.ev_all.row=ft_atstf_s0s2@0-dev.2026-11-29 |
| Laughter seconds on applause, cheering or claps the ear did not code as laughter | 2.2% | 2.9% | bl15.card.share_A_lfl.row=ft_atstf_s0s2@0-dev.2026-11-29 |
| Talk lean (talk read against the ear, over the rest), raw | 0.88 (0.84 to 0.93) | 0.83 | bl5.talk_lean.cut=none.instrument=ft_atstf_s0s2@0-dev.2026-11-29 |
| Talk lean under the study's correction (chain x talk/rest) | 0.98 (0.93 to 1.04) | 0.97 | bl5.talk_lean.cut=chain_talk.instrument=ft_atstf_s0s2@0-dev.2026-11-29 |
| Applause, error against the ear (254 windows) | 0.458 (0.406 to 0.525) | 0.435 (0.384 to 0.498) | bl15.kinds.applause.E.row=ft_atstf_s0s2@0-dev.2026-11-29 |
| Cheering, error against the ear (166 windows) | 0.551 (0.476 to 0.640) | 0.612 (0.530 to 0.717) | bl15.kinds.cheering.E.row=ft_atstf_s0s2@0-dev.2026-11-29 |
Intervals are 95%. The MobileNet's E is on the same scoring as this model's (bl15.card.E.row=ft_bsx_shift3.scoring=card). "Talk"
is Weekend Update and the monologue. Applause is slightly worse than the previous model's, cheering better: the gain in E over the previous
model is -0.023 (-0.049 to +0.003) for applause (bl15.kinds.applause.d_prev_minus_row.row=ft_atstf_s0s2) and +0.061 (+0.011 to
+0.111) for cheering (bl15.kinds.cheering.d_prev_minus_row.row=ft_atstf_s0s2).
Reproducing the study's read. On a five-minute excerpt of one broadcast the study read, this reader on Apple MPS gives the study's stored probabilities at their stored float16 precision (largest difference 0.00024; all but one of 21,750 cells equal after rounding) and identical seconds at all three points. On CPU, 99.6% to 99.8% of cells are equal after rounding and the seconds are identical.
Limits
- One show's room and microphones. Trained and checked only on Saturday Night Live broadcasts: one studio audience, its mics and its mix, over five decades of broadcast and recording chains. It is not a general laughter detector; check it against your own ear before using it on other audio.
- Not blind-tested. The recipe was chosen on fold 0 of the same hand-coded windows it is scored on; see above.
- Broadcast chains. Its raw seconds over-mark relative to the ear and the amount depends on the recording chain (mono, stereo MP3,
other stereo, 5.1). The study corrects for this with factors fitted on its own windows (
corrections_snl_chains.json). Those factors are not part of the model's output and do not transfer to other recordings. - Talk. Uncorrected, it reads talk (Weekend Update, monologues) at 0.88 of the ear relative to the rest of the show.
- Level. It reads audio at the broadcast's own level (leave
--gain-dbat 0 for ordinary files). - Devices. The study's reads ran on Apple MPS; other devices agree to float rounding, which can move a frame that sits exactly at a point.
How to run it
git clone https://github.com/fschmid56/PretrainedSED
git -C PretrainedSED checkout 1aa47e482f7e89904cba2338999345025d8b4e36
pip install -r requirements.txt # plus ffmpeg on your PATH
python snl_atstf_reader.py your_audio.wav --pretrainedsed PretrainedSED --out frames.csv
It prints the seconds and span counts of each kind at its frozen point and writes per-frame probabilities to frames.csv. From
Python:
import snl_atstf_reader as R
dev = R.pick_device() # mps, cuda or cpu
models = R.load_models("PretrainedSED", dev)
t, P = R.read(y, models, dev) # y: float32, 16 kHz mono; P columns: R, L, A, C, K
print(R.seconds(t, P)) # laughter (P_L), applause (P_A), cheering (P_C)
The PretrainedSED code supplies the ATST-Frame architecture only. Its base checkpoint (ATST-F_strong_1.pt) is not needed: the
two files in checkpoints/ hold every weight, and the reader loads them strictly.
Files
| File | What it is | md5 |
|---|---|---|
checkpoints/seed0.pt |
fine-tuned ATST-F, seed 0 (state_dict and training settings) |
032a3092ae84e7121098c0a9bae48393 |
checkpoints/seed2.pt |
the same, seed 2 | 7fbd806b5d76d86834729e552fe967a9 |
snl_atstf_reader.py |
the reader | |
operating_points.json |
the frozen points, the reading and the span rule | |
freeze_atstf_s0s2.json |
the study's freeze record of this model (recipe, points, per-chain c, md5s), machine paths removed | |
corrections_snl_chains.json |
the study's per-chain corrections, not part of the model's output | |
requirements.txt |
pinned versions the reader was tested with | |
LICENSE, NOTICE |
CC BY-NC 4.0; the base model's MIT notice, ATST-Frame credit and AudioSet attribution |
The checkpoints' weights are the frozen ones, tensor for tensor: the study's frozen files (md5 04ca3eb4e8c744c31ce520ab4a474bce and
503fa606565c47349421371b0e0a1e92, as in the freeze record) were re-saved with the machine paths taken out of their training
settings; nothing else changed. The fine-tune started from PretrainedSED's ATST-F_strong_1.pt (md5
cbba1216dc924ee31c77cbd383a6c33b).
How to fine-tune it further
Pointers only. Build the model as build_model in the reader does, load a checkpoint, and train the strong head and body on your own
frame labels. PretrainedSED's ex_dcase2016task2.py shows a downstream fine-tuning loop for these models, with layer-wise
learning-rate decay. Fine-tuned models stay under CC BY-NC 4.0 and must credit the study.
Credits
- Architecture: ATST-Frame, by Xian Li, Nian Shao and Xiaofei Li: "Self-supervised Audio Teacher-Student Transformer for Both Clip-level and Frame-level Tasks", IEEE/ACM Transactions on Audio, Speech, and Language Processing, 2024, arXiv:2306.04186.
- Base model and code: ATST-F pre-trained on AudioSet Strong, from PretrainedSED, MIT licence, copyright (c) 2024 Florian Schmid (https://github.com/fschmid56/PretrainedSED); licence text in NOTICE. Please also cite: F. Schmid, T. Morocutti, F. Foscarin, J. Schlüter, P. Primus and G. Widmer, "Effective Pre-Training of Audio Transformers for Sound Event Detection", ICASSP 2025, arXiv:2409.09546.
- Base model's training labels: Google's AudioSet Strong labels, CC BY 4.0.
- This fine-tune, its reader, points and corrections: the SNL Audience Study, release 0-dev.2026-11-29, CC BY-NC 4.0. The study's data: https://huggingface.co/datasets/dinoclub/snl-audience-study (access by request while hand alignment is under way).
Cite as: The SNL Audience Study, snl-laughter-ft (release 0-dev.2026-11-29), https://huggingface.co/dinoclub/snl-laughter-ft.
Contact
Errors, questions and attribution help: fb9542@wayne.edu.