SampleCNN
A deep 1D CNN that tags music directly from raw waveforms using filters only a few samples long.
Audio and speech · 47 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Audio and speech
- Parameters
- 1.9M
- Operations
- 47
- Framework
- PyTorch
- Recurrent
- No
- Published
- Sound and Music Computing Conference (SMC) 2017
- Cited by
- 107 (as of 26 October 2026)
- Authors
- Jongpil Lee, Jiyoung Park, Keunhyoung Luke Kim, Juhan Nam
- Source
- GitHub: jongpillee/sampleCNN
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m20247
- Graph hash
- a0bde315a8dc3e406f97790e8ec9aef38b5cddd6440c8d8c3eaeec7cf3f8de0d
- Skeleton hash
- 2ed466fc0edd694d7f11eb111d07f4a3f918760899335a3ed39e37f0ea1517ff
- Architecture hash
- c20f8f03483dad9243b86fa60ac53ab8f2845cd1f7049b93335e9b5733cc8b0b
- Diagram SHA-256
- 5b90f031eaffaa88e7ff0c8df4af01c5fc102fd4e84d711986fba2b6c5c8e3b9
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This model is a sample-level deep convolutional neural network for music auto-tagging. It learns from raw waveforms in grains as small as 2 or 3 samples, where typical models take frame-level inputs. The paper reports that deep architectures with these sample-level filters improve tagging accuracy, with results it calls comparable to the previous best on the MagnaTagATune dataset and the Million Song Dataset.
The basic building module is a single convolution layer paired with a max-pooling layer of the same size. The paper's example configuration has filter and pooling length 3 and nine such modules. It takes 59049 samples, or 2678 ms of audio, as input. Every convolution layer uses batch normalization and ReLU activation. The output layer uses sigmoid activation and is trained with binary cross entropy loss. Both datasets were reduced to their 50 most frequently labeled tags.
For the sample-level model the paper reports an AUC of 0.9055 on MagnaTagATune and 0.8812 on the Million Song Dataset. The authors also visualize the learned filters layer by layer and find them sensitive to log-scaled frequency, as a mel-frequency spectrogram is.
Key idea. The paper showed that deep networks with sample-level filters, as small as 2 or 3 samples, improve music auto-tagging accuracy from raw waveforms.
- samplecnn
- sample-level cnn
- sample-level dcnn
- music auto-tagging
- music tagging
- raw waveform
- raw audio cnn
- 1d convolution
- magnatagatune
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lee2017sampleleveldeepconvolutionalneural,
title={Sample-level Deep Convolutional Neural Networks for Music Auto-tagging Using Raw Waveforms},
author={Jongpil Lee and Jiyoung Park and Keunhyoung Luke Kim and Juhan Nam},
year={2017},
eprint={1703.01789},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/1703.01789},
}