Manuscript Offprint
arXiv:2608.22399Dual-Scale State-Space Modeling with Speaker-Wise Dynamic CRF for Speech Emotion Recognition in Conversation
DUAL-SCALE STATE-SPACE MODELING WITH SPEAKER-WISE DYNAMIC CRF FOR CONVERSATIONAL SPEECH EMOTION RECOGNITION
Guan-Hua Wen
Hou-Chiang Tseng
Kuan-Yu Chen
National Taiwan University of Science and Technology, Taipei, Taiwan
ABSTRACT
Conversational speech emotion recognition requires both dialogue-wide contextual modeling and speaker-specific emotion tracking. We propose DSSM-CRF, an audio-only framework that separates the structural roles of these two dependencies. Self-supervised speech representations are processed by bidirectional state-space encoders at frame and dialogue scales to capture local acoustic dynamics and conversational context. The contextualized utterances are then organized into separate speaker-wise chains for structured decoding. A dynamic conditional random field combines a global transition matrix with pair-conditioned transition residuals, while an auxiliary emotion-shift objective supervises the shared edge representation during training. This design allows interlocutor turns to influence contextual representations without treating them as transitions in another speaker's emotion trajectory. DSSM-CRF achieves 75.81% UA and 74.90% WA on IEMOCAP, and 54.72% WA and 49.31% WF1 on MELD. Ablations and matched controls support the contributions of speaker-wise factorization, contextual transition modeling, and structured decoding.
Index Terms— speech emotion recognition, conversational speech, state-space models, conditional random fields, emotion shift
A central challenge is that dialogue context and emotion evolution play different structural roles: an interlocutor's response can inform the current emotion but is not part of that speaker's trajectory. Existing recurrent speaker-state models [3], interaction graphs [4], and dialogue-aware pretrained models [5] capture intra- and inter-speaker dependencies [6], while CRF-based methods model dependencies among emotion labels [7], including emotion shifts [8]. However, a single dialogue-level CRF chain conflates cross-speaker responses with within-speaker transitions, and a shared transition matrix cannot adapt to individual utterance pairs. SCoPE's speaker-conditioned priors and shift-aware fusion further highlight the importance of speaker-specific emotion history [9].

Fig. 1. Overview of DSSM-CRF. Frame- and utterance-level representations are fused, augmented with dialogue cues, and contextualized by the dialogue BiSSM. Speaker-wise CRF decoding uses emotion emissions and pair-conditioned transitions along each speaker's chain.
We therefore use all turns for dialogue-wide contextualization but restrict structured transitions to each speaker's own sequence. These dependencies also span different temporal resolutions, from short prosodic patterns within utterances to long conversational context. Hierarchical speech models have explored multi-scale temporal modeling [10, 11, 12], while structured and selective state-space models provide efficient sequence modeling [13, 14].
Based on this formulation, we propose DSSM-CRF, an audio-only framework that applies bidirectional state-space encoders to WavLM representations [15] at frame and dialogue scales before forming same-speaker CRF chains. Each edge combines a global transition matrix with a pair-conditioned residual, while an auxiliary emotion-shift objective supervises the shared edge representation.
Our main contributions are:
• We formulate conversational SER by separating dialogue-wide contextual influence from speaker-specific emotion evolution: all turns contribute to contextual representations, while structured transitions follow each speaker’s own trajectory.
• We propose a speaker-wise dynamic CRF that combines a global transition matrix with pair-conditioned residual transitions and auxiliary emotion-shift supervision.
• We develop dual-scale bidirectional state-space modeling for frame-level acoustic dynamics and dialogue-level context, and validate the framework on IEMOCAP and MELD through component ablations, matched structural controls, and backbone analyses.
2. METHODOLOGY
2.1. Problem formulation
Let a dialogue be , where is the waveform of turn , denotes its speaker, and is its emotion label. Given the waveforms and speaker identities of all turns, the goal is to infer while exploiting dialogue-wide contextual information and modeling emotion transitions along each speaker's own trajectory.
2.2. Acoustic representation
For utterance with frames, WavLM-Large [15] produces hidden sequences. Denoting its final twelve hidden layers as , , DSSM-CRF learns their convex combination:
where is a learned scalar and is the fused frame sequence.
To preserve coarse temporal structure within an utterance, multiscale attentive statistics pooling divides the frame sequence into one, two, and four contiguous temporal partitions. For each partition, attention-weighted mean and standard deviation are computed. The seven descriptors from the partitions are concatenated and projected to obtain an utterance representation .
2.3. Dual-scale state-space modeling
At the frame scale, is projected to the common model dimension and processed by a bidirectional Mamba-2-style state-space encoder [16]. Independent forward and backward stacks process the sequence in opposite directions, and the backward output is restored to chronological order. Attentive pooling of the contextualized frame sequence produces , which is fused with :
At the dialogue scale, each utterance representation is augmented with three structural cues. The normalized dialogue position is . Let denote the preceding dialogue position spoken by the same speaker when it exists. The same-speaker turn gap is , with for the speaker's first turn, and is normalized as . We further define the speaker-change indicator as and for . The dialogue input is
where are learned projections and is a learned speaker-change embedding.
Given the ordered dialogue sequence , the dialogue-level contextual representation is
Both the frame- and dialogue-level encoders contain independent two-layer forward and backward state-space stacks. The frame recurrence is reset for each utterance, whereas the dialogue recurrence spans the complete ordered conversation. The outputs of the forward and backward stacks are concatenated after restoring the backward sequence to chronological order, and are mapped from 2d to d by a linear–GELU–dropout–layer-normalization fusion. Consequently, each incorporates contextual information from both the current speaker and interlocutors before structured decoding.
2.4. Speaker-wise dynamic CRF
For each speaker , let denote the ordered dialogue positions of that speaker's utterances. Each defines a separate CRF chain for structured decoding. The emotion emission scores at turn are
For each consecutive same-speaker pair , we construct an edge representation as
where is a linear–GELU–dropout projection. The edge representation predicts both a pair-conditioned transition residual and an emotion-shift logit:
where , , and . The flattened transition residual is reshaped as . Here is a learned transition matrix shared across all same-speaker edges, while provides pair-dependent adjustments based on the contextualized utterances.
For a label sequence along speaker chain , its score is
The normalized CRF negative log-likelihood is
where S denotes the set of speakers. For , the transition term is empty and decoding depends only on the emission score. Viterbi decoding is performed independently for each speaker chain.
This factorization preserves interlocutor information because each is contextualized using the complete dialogue. It restricts only the structured transition edges to a speaker's own utterance sequence, while cross-speaker interactions can still affect both emotion emissions and pair-conditioned transition scores through the contextualized representations.
2.5. Training objective
For each same-speaker edge , the shift target is derived only from training labels as . For a dialogue with same-speaker edges, including shift cases and inertia cases, we use the balanced auxiliary loss
(10)
When and , and . We set when and use unweighted binary cross entropy when only one edge type is present.
The overall training objective is
The shift objective supervises the edge representation during training but does not participate in Viterbi inference.
3. EXPERIMENTAL SETUP
3.1. Datasets and evaluation
IEMOCAP [17] is evaluated in the four-class setting with angry, happy (including excited), sad, and neutral emotions. We use five-fold session rotation with three sessions for training, one for validation, and one for testing. Utterances are ordered by timestamp within each recording, and dialogue modeling and CRF edges do not cross recording boundaries. MELD [18] uses its official seven-class split. Only audio and speaker identities are used; transcripts, sentiment annotations, and visual information are excluded.
We report unweighted accuracy (UA), weighted accuracy (WA), and weighted F1-score (WF1). Utterances with a same-speaker predecessor are additionally divided into Shift and Inertia subsets according to whether the gold emotion changes. Model selection uses validation UA on IEMOCAP and WA on MELD.
3.2. Implementation details
Training consists of two stages. First, a class-weighted cross-entropy objective adapts the layer fusion, pooling, classifier, and progressively unfrozen speech encoder, using with on IEMOCAP and validation-selected on MELD. The first three epochs train only task-specific modules, followed by five epochs with the upper half of the speech encoder unfrozen; the entire speech encoder is subsequently unfrozen if the validation score improves. This stage runs for at most 30 epochs with patience 6.
The selected speech encoder is then frozen and the BiSSMs and CRF are trained for at most 50 epochs with patience 8. Each forward and backward state-space stack contains two layers with RMS normalization, a depthwise convolution with kernel size 4, state size 16, expansion factor 2, gated output projection, and residual connections. The model dimension and dropout rate are 256 and 0.1, respectively. Across the two training stages, AdamW uses learning rates of for unfrozen speech-backbone parameters and for task-specific modules, with weight decay , gradient clipping at 1.0, and a 120-s effective audio batch. Audio inputs are truncated to 30 s; waveform augmentation uses random gain up to 6 dB and 0.2-s time masking.
For ablations, we individually remove the frame-level SSM, dialogue-level SSM, transition residual, or shift supervision. Speaker-wise topology is isolated by comparing the speaker-wise CRF and a matched single-chain CRF with for both, while structured decoding is compared with a retrained no-CRF model using utterance-level cross entropy while retaining the auxiliary shift objective. We evaluate with fixed WavLM-Large representations and use 0.2 for the reported models. Backbone robustness is evaluated with wav2vec 2.0 Large [19], HuBERT-Large [20], and WavLM-Large [15].
Table 1. Performance comparison on IEMOCAP. denotes the second-best result.
| Model | UA(%) | WA(%) |
|---|---|---|
| ADAN [21] | 64.51 | 66.92 |
| Zou et al. [22] | 71.05 | 69.80 |
| DST [10] | 73.60 | 71.80 |
| DWFormer [11] | 73.90 | 72.30 |
| Mel-MViTv2 [23] | - | 64.03 |
| SCQT-MaxViT [24] | - | 62.49 |
| SpeechFormer++ [12] | 71.50 | 70.50 |
| TIM-Net [25] | 72.50 | 71.65 |
| Vesper [26] | ||
| DFSD-EMO [27] | 72.35 | 72.36 |
| DSSM-CRF (ours) | 75.81 | 74.90 |
Table 2. Performance comparison on MELD. denotes the second-best result.
| Model | WA(%) | WF1(%) |
|---|---|---|
| DST [10] | - | |
| DWFormer [11] | - | 48.50 |
| SpeechFormer++ [12] | 51.00 | 47.00 |
| Vesper [26] | 53.50 | 48.00 |
| DFSD-EMO [27] | 47.60 | |
| DSSM-CRF (ours) | 54.72 | 49.31 |
4. RESULTS AND ANALYSIS
4.1. Overall performance
Tables 1 and 2 compare DSSM-CRF with published systems on IEMOCAP and MELD, respectively. With , DSSM-CRF achieves UA, WA, and WF1 on the five-fold IEMOCAP evaluation. On MELD, using the validation-selected class-weight exponent , the model achieves WA and WF1 on the official test set. These results show consistent improvements over the compared audio-based systems across the two datasets despite their different class distributions and conversational structures.
4.2. Ablation study
Table 3 evaluates the contribution of individual components and matched structural controls. On IEMOCAP, removing the contextual transition residual causes the largest degradation among the component ablations, reducing UA and WA by 1.72 and 2.11 points, respectively, and lowering Inertia UA by 2.44 points. Removing the dialogue-level SSM or shift supervision also decreases overall performance, while the frame-level SSM has a smaller effect on IEMOCAP.
On MELD, the frame-level SSM contributes most strongly to overall performance: removing it reduces WA and WF1 by 3.53 and 2.94 points, respectively. Removing the dialogue-level SSM, contextual transition residual, or shift supervision also lowers WA. However, some subset and WF1 results do not follow the same trend; in particular, removing the dialogue-level SSM slightly improves WF1 and Shift WA. These results indicate that the proposed components primarily improve overall recognition accuracy while exhibiting dif-
Table 3. Component ablations and matched controls. S and I denote the Shift and Inertia subsets, respectively; IEMOCAP reports subset UA and MELD reports subset WA. Bold indicates the best result in each column.
| (a) IEMOCAP | ||||
|---|---|---|---|---|
| Configuration | UA(%) | WA(%) | S-UA(%) | I-UA(%) |
| Full DSSM-CRF | 75.81 | 74.90 | 59.17 | 79.06 |
| - frame-level SSM | 75.67 | 74.37 | 57.53 | 79.07 |
| - dialogue-level SSM | 75.31 | 73.88 | 59.06 | 78.19 |
| - transition residual | 74.09 | 72.79 | 59.74 | 76.62 |
| - shift supervision | 75.44 | 74.45 | 58.19 | 78.58 |
| Single-chain CRF () | 74.45 | 73.54 | 59.66 | 77.09 |
| No-CRF (retrained) | 74.64 | 73.11 | 61.03 | 77.25 |
| (b) MELD | ||||
|---|---|---|---|---|
| Configuration | WA(%) | WF1(%) | S-WA(%) | I-WA(%) |
| Full DSSM-CRF | 54.72 | 49.31 | 41.77 | 66.32 |
| - frame-level SSM | 51.19 | 46.37 | 38.29 | 64.69 |
| - dialogue-level SSM | 53.37 | 50.00 | 42.27 | 64.92 |
| - transition residual | 53.83 | 48.78 | 41.57 | 65.71 |
| - shift supervision | 53.30 | 47.94 | 41.97 | 65.16 |
ferent trade-offs across class-weighted and shift-specific metrics. The differing ablation patterns suggest complementary, corpus-dependent roles for fine-grained acoustic modeling and contextual transitions.
4.3. Shift and inertia behavior
The full model achieves 59.17% Shift UA and 79.06% Inertia UA on IEMOCAP, showing substantially lower recognition accuracy for within-speaker emotion shifts than for persistence. Shift supervision raises Shift and overall UA from 58.19% and 75.44% to 59.17% and 75.81%, respectively. Removing the contextual transition residual raises Shift UA by 0.57 points but lowers overall and Inertia UA by 1.72 and 2.44 points. Shift performance should therefore be interpreted jointly with overall and Inertia performance.
The matched topology comparison further examines the effect of speaker-wise structured decoding. Without auxiliary shift supervision, the speaker-wise CRF improves UA and WA by 0.99 and 0.91 points over the matched single-chain CRF and improves Inertia UA by 1.49 points, although the single-chain model achieves 1.47 points higher Shift UA. Compared with the retrained no-CRF baseline, the full DSSM-CRF improves UA, WA, and WF1 by 1.17, 1.79, and 2.01 points, respectively. CRF decoding also improves Inertia UA by 1.81 points while reducing Shift UA by 1.86 points, again demonstrating a persistence–shift trade-off. Overall, these matched controls support the benefit of modeling structured emotion transitions along speaker-specific trajectories rather than a single dialogue-wide chain.
4.4. Sensitivity and backbone analysis
Figure 2 shows validation performance across the evaluated shift-loss weights. Both UA and WA peak at , reaching and , respectively. Across the complete sweep, performance varies by only 0.44 UA and 0.40 WA points, indicating limited sensitivity to the choice of within the evaluated range.
Table 4 evaluates DSSM-CRF with three self-supervised speech backbones. Relative to the corresponding adapted classifiers, DSSM- CRF improves UA and WA by 15.22 and 18.61 percentage points, respectively, with wav2vec 2.0 Large; by 10.90 and 13.10 points with HuBERT-Large; and by 13.54 and 14.12 points with WavLM-Large. The consistent gains across all three encoders indicate that the proposed conversational modeling framework is not specific to WavLM. The particularly large improvement with wav2vec 2.0 further suggests that dialogue-level contextualization and structured decoding can compensate, at least in part, for weaker utterance-level representations.

Fig. 2. Validation UA and WA across different shift-loss weights on IEMOCAP.
Table 4. Backbone robustness on IEMOCAP. Bold indicates the better result for each backbone.
| Backbone | Setting | UA(%) | WA(%) |
|---|---|---|---|
| wav2vec 2.0 Large | Adapted classifier | 53.83 | 48.27 |
| + DSSM-CRF | 69.05 | 66.88 | |
| HuBERT-Large | Adapted classifier | 60.59 | 57.41 |
| + DSSM-CRF | 71.49 | 70.51 | |
| WavLM-Large | Adapted classifier | 62.27 | 60.78 |
| + DSSM-CRF | 75.81 | 74.90 |
5. CONCLUSION
We presented DSSM-CRF, an audio-only framework that separates the structural roles of dialogue-wide contextualization and speaker-specific emotion evolution. Dual-scale bidirectional state-space encoders capture frame-level acoustic dynamics and dialogue-level context, while a speaker-wise dynamic CRF models each speaker's emotion trajectory using a global transition matrix and pair-conditioned residual transitions. Experiments on IEMOCAP and MELD demonstrate strong performance across dyadic and multi-party conversations. Ablations and matched controls support the contributions of contextual transition modeling, speaker-wise chain factorization, and structured CRF decoding, while consistent gains across three self-supervised speech encoders demonstrate backbone robustness. The remaining gap between Shift and Inertia performance highlights emotion transitions as an important direction for further improvement.
6. REFERENCES
[1] Moataz El Ayadi, Mohamed S. Kamel, and Fakhri Karray, “Survey on speech emotion recognition: Features, classification schemes, and databases,” Pattern Recognition, vol. 44, no. 3, pp. 572–587, 2011.
[2] Leonardo Pepino, Pablo Riera, and Luciana Ferrer, “Emotion recognition from speech using wav2vec 2.0 embeddings,” in Proc. Interspeech, 2021, pp. 3400–3404.
[3] Navonil Majumder, Soujanya Poria, Devamanyu Hazarika, Rada Mihalcea, Alexander Gelbukh, and Erik Cambria, “DialogueRNN: An attentive RNN for emotion detection in conversations,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, no. 1, pp. 6818–6825, 2019.
[4] Deepanway Ghosal, Navonil Majumder, Soujanya Poria, Niyati Chhaya, and Alexander Gelbukh, “DialogueGCN: A graph convolutional neural network for emotion recognition in conversation,” in Proc. EMNLP-IJCNLP, 2019, pp. 154–164.
[5] Weizhou Shen, Junqing Chen, Xiaojun Quan, and Zhixian Xie, "DialogXL: All-in-one XLNet for multi-party conversation emotion recognition," Proceedings of the AAAI Conference on Artificial Intelligence, vol. 35, no. 15, pp. 13789–13797, 2021.
[6] Soujanya Poria, Navonil Majumder, Rada Mihalcea, and Eduard Hovy, “Emotion recognition in conversation: Research challenges, datasets, and recent advances,” IEEE Access, vol. 7, pp. 100943–100953, 2019.
[7] John D. Lafferty, Andrew McCallum, and Fernando C. N. Pereira, “Conditional random fields: Probabilistic models for segmenting and labeling sequence data,” in Proc. 18th Int. Conf. Machine Learning, 2001, pp. 282–289.
[8] Chun-Yu Chen, Yun-Shao Lin, and Chi-Chun Lee, “Emotion-shift aware CRF for decoding emotion sequence in conversation,” in Proc. Interspeech, 2022, pp. 1148–1152.
[9] Burak Can Kaplan and Stefan Wermter, “SCoPE: Shift-aware speaker-conditioned priors for emotion recognition in conversations,” 2026.
[10] Weidong Chen, Xiaofen Xing, Xiangmin Xu, Jianxin Pang, and Lan Du, “DST: Deformable speech transformer for emotion recognition,” in Proc. IEEE Int. Conf. Acoustics, Speech and Signal Processing (ICASSP), 2023, pp. 1–5.
[11] Shuaiqi Chen, Xiaofen Xing, Weibin Zhang, Weidong Chen, and Xiangmin Xu, “DWFormer: Dynamic window transformer for speech emotion recognition,” in Proc. IEEE Int. Conf. Acoustics, Speech and Signal Processing (ICASSP), 2023, pp. 1–5.
[12] Weidong Chen, Xiaofen Xing, Xiangmin Xu, Jianxin Pang, and Lan Du, “SpeechFormer++: A hierarchical efficient framework for paralinguistic speech processing,” IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 31, pp. 775–788, 2023.
[13] Albert Gu, Karan Goel, and Christopher Ré, “Efficiently modeling long sequences with structured state spaces,” in Proc. Int. Conf. Learning Representations, 2022.
[14] Albert Gu and Tri Dao, “Mamba: Linear-time sequence modeling with selective state spaces,” in Proc. First Conf. Language Modeling (COLM), 2024.
[15] Sanyuan Chen et al., “WavLM: Large-scale self-supervised pre-training for full stack speech processing,” IEEE Journal of Selected Topics in Signal Processing, vol. 16, no. 6, pp. 1505–1518, 2022.
[16] Tri Dao and Albert Gu, “Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality,” in Proceedings of the 41st International Conference on Machine Learning. 2024, vol. 235 of Proceedings of Machine Learning Research, pp. 10041–10071, PMLR.
[17] Carlos Busso et al., “IEMOCAP: Interactive emotional dyadic motion capture database,” Language Resources and Evaluation, vol. 42, no. 4, pp. 335–359, 2008.
[18] Soujanya Poria, Devamanyu Hazarika, Navonil Majumder, Gautam Naik, Erik Cambria, and Rada Mihalcea, “MELD: A multimodal multi-party dataset for emotion recognition in conversations,” in Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, 2019, pp. 527–536.
[19] Alexei Baevski, Yuhao Zhou, Abdelrahman Mohamed, and Michael Auli, “wav2vec 2.0: A framework for self-supervised learning of speech representations,” in Advances in Neural Information Processing Systems, 2020, vol. 33, pp. 12449–12460.
[20] Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdelrahman Mohamed, "HuBERT: Self-supervised speech representation learning by masked prediction of hidden units," IEEE/ACM Transactions on Audio, Speech, and Language Processing, vol. 29, pp. 3451–3460, 2021.
[21] Lu Yi and Man-Wai Mak, “Improving speech emotion recognition with adversarial data augmentation network,” IEEE Transactions on Neural Networks and Learning Systems, vol. 33, no. 1, pp. 172–184, 2022, Early Access, 2020.
[22] Heqing Zou, Yuke Si, Chen Chen, Deepu Rajan, and Eng Siong Chng, “Speech emotion recognition with co-attention based multi-level acoustic information,” in Proc. IEEE Int. Conf. Acoustics, Speech and Signal Processing (ICASSP), 2022, pp. 7367–7371.
[23] Kah Liang Ong, Chin Poo Lee, Heng Siong Lim, Kian Ming Lim, and Ali Alqahtani, “Mel-MViTv2: Enhanced speech emotion recognition with mel spectrogram and improved multiscale vision transformers,” IEEE Access, vol. 11, pp. 108571–108579, 2023.
[24] Kah Liang Ong, Chin Poo Lee, Heng Siong Lim, Kian Ming Lim, and Takeki Mukaida, “SCQT-MaxViT: Speech emotion recognition with constant-q transform and multi-axis vision transformer,” IEEE Access, vol. 11, pp. 63081–63091, 2023.
[25] Jiaxin Ye, Xin-Cheng Wen, Yujie Wei, Yong Xu, Kunhong Liu, and Hongming Shan, “Temporal modeling matters: A novel temporal emotional modeling approach for speech emotion recognition,” in Proc. IEEE Int. Conf. Acoustics, Speech and Signal Processing (ICASSP), 2023, pp. 1–5.
[26] Weidong Chen, Xiaofen Xing, Peihao Chen, and Xiangmin Xu, “Vesper: A compact and effective pretrained model for speech emotion recognition,” IEEE Transactions on Affective Computing, vol. 15, no. 3, pp. 1711–1724, 2024.
[27] Haixiang Yu and Yuan Ning, “Decoupled feature and self-knowledge distillation for speech emotion recognition,” IEEE Access, vol. 13, pp. 33275–33285, 2025.