DST-ser
A Transformer that classifies emotion in speech using attention windows whose size and position adapt to the input.
Audio and speech · 471 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
- 23.8M
- Operations
- 471
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICASSP 2023
- Cited by
- 44 (as of 28 October 2026)
- Authors
- Weidong Chen, Xiaofen Xing, Xiangmin Xu and others
- Source
- GitHub: HappyColor/DST
- 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
- m15766
- Graph hash
- cf03d9ddf64635a831af0398da7c9c2a79af14faf3e82b7c921ed6c9be1240b1
- Skeleton hash
- dbac33792e73b28a9a35e2c67f9da6c56b6628d3081344e5a02645761ff282e1
- Architecture hash
- 5ba87248f651dd4af50aa307fa44575149a1c4f9cce1c63be26a337bc0a9d9af
- Diagram SHA-256
- d7f85cf99cd6ec1ceb64f3d4dddd3b48089456578b2a63fa30fb2db7faab29cb
- 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
DST (Deformable Speech Transformer) is a Transformer for speech emotion recognition, the task of telling a speaker's emotion from audio. Window-based attention limits each position to a fixed local window, but the paper argues that emotional cues appear at several granularities, so a fixed window reduces the model's flexibility. DST instead lets the attention windows change with the input.
Each DST block consists mainly of a deformable speech attention (DSA) module and a feed-forward network. The only difference from the vanilla Transformer is that DSA replaces the multi-head self-attention module. A light-weight decision network sets the window sizes from the input speech, and data-dependent offsets derived from the acoustic features adjust the positions of the windows. The decision network is optimized jointly with the rest of the model, end to end.
The paper extracts acoustic features with pre-trained WavLM and sets the maximum sequence length to 326 for the IEMOCAP dataset. This model follows the repository's usage example: 4 layers, 8 attention heads and 4 output classes, applied to a sequence of 326 feature frames of 1024 dimensions. Those four classes match the paper's IEMOCAP setup, which uses 5,531 utterances from the happy, angry, sad and neutral classes. On IEMOCAP the paper reports a weighted accuracy of 0.718 and an unweighted accuracy of 0.736.
Key idea. DST replaces fixed attention windows with deformable ones whose sizes and positions are predicted from the input speech by a light-weight decision network trained end to end.
- dst
- dst-ser
- deformable speech transformer
- speech emotion recognition
- ser
- emotion recognition
- deformable speech attention
- iemocap
- meld
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{chen2023dstdeformablespeechtransformer,
title={DST: Deformable Speech Transformer for Emotion Recognition},
author={Weidong Chen and Xiaofen Xing and Xiangmin Xu and Jianxin Pang and Lan Du},
year={2023},
eprint={2302.13729},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2302.13729},
}