arXiv:2610.34707cs.SDOct 2026

Manuscript Offprint

arXiv:2610.34707

S2SND-v2: Unified Online and Offline Speaker Diarization with Speaker-Adapted w2v-BERT 2.0

Jincheng Wang, Li Li, Weixin Zhu, Yannan Wang, Tao Yu, Juan Liu, Ming Li

ABSTRACT

This paper presents S2SND-v2, a unified online and offline speaker diarization framework built on S2SND that improves acoustic feature extraction and the use of the resulting representations. For acoustic feature extraction, we introduce a speaker-adapted w2v-BERT 2.0 front end and compare full and pruned construction routes. To better use these features, overlap-aware activity-query masking improves speaker embedding extraction under overlap, while late-speaker training aligns unknown-speaker training with online inference conditions. Combining these improvements, the pruned system achieves competitive average diarization error rates of 14.52% online and 12.03% offline across eight test sets.

Index Terms— Speaker Diarization, Online Speaker Diarization, Sequence-to-Sequence Neural Diarization

1. INTRODUCTION

Speaker diarization determines who spoke when in a recording and is a core component of meeting transcription. Early diarization systems mainly relied on cascaded pipelines comprising speech activity detection, segmentation, speaker embedding extraction, and clustering. More recently, end-to-end neural diarization models have directly predicted frame-level speaker activities, while hybrid methods have combined local neural predictions with embedding-based clustering for long-form recordings [1–3]. Sequence-to-sequence prediction has also been introduced for target-speaker voice activity detection [4]. For online diarization, additional mechanisms such as speaker-tracing buffers and global/local attractors have been introduced to maintain consistent speaker identities across successive chunks [5,6]. Although these advances have substantially improved diarization, many existing methods are still designed primarily for either offline or online use. A unified framework that supports both modes is therefore attractive in practice.

A recent development in this direction is sequence-to-sequence neural diarization (S2SND), which couples a detection decoder and a representation decoder within a single framework for online and offline inference [7]. In S2SND, speaker embeddings serve as queries for activity prediction, while activity queries guide speaker embedding extraction, allowing activity estimation and speaker representation learning to reinforce each other. Embeddings accumulated during the online pass are then reused for later blocks and for offline re-decoding. However, its overall performance still depends on two factors: the quality of the acoustic representations provided to the back end, and how effectively the back end extracts and uses speaker information under realistic online conditions.

One direction for further improving S2SND is to strengthen the acoustic representations provided by its front end. The original S2SND uses a ResNet front end, whereas self-supervised learning (SSL) has recently provided stronger and more transferable speech representations for speech and speaker tasks [8]. This trend has also reached diarization, where SSL encoders such as WavLM have been adopted in hybrid and neural systems [9, 10], and recent work has further adapted and compressed SSL encoders for speaker segmentation and verification [11–14]. In particular, Li et al. combine w2v-BERT 2.0 with layer adapters, multi-scale feature aggregation, low-rank adaptation (LoRA), and distillation-guided structured pruning, achieving strong speaker verification performance with both full and pruned models [14]. These results motivate revisiting the front end of S2SND with a stronger speaker-adapted SSL model that preserves frame-level temporal resolution for diarization.

Another direction is to improve how S2SND uses acoustic representations through query construction and training. Although S2SND uses non-overlapping speech duration to select and weight accepted embeddings, the activity queries used by its representation decoder can still contain overlapping frames [7]. Such overlap-contaminated queries may degrade target-speaker embedding extraction. In addition, the random speaker masking strategy used for unknown-speaker training does not reflect how unknown speakers are often encountered in online inference. In sliding-window processing, a new speaker is more likely to first become active in the latter part of the current input block, creating a mismatch between random masking during training and late-speaker conditions at test time. Together, these issues motivate improving S2SND through not only stronger acoustic representations but also cleaner embedding extraction and better-aligned unknown-speaker training.

In this work, we present S2SND-v2 and evaluate it on eight test sets. Our contributions are summarized as follows:

• We integrate speaker-adapted w2v-BERT 2.0 into S2SND and compare full and pruned front end construction routes for unified online and offline diarization.

• We introduce overlap-aware activity-query masking to suppress interference from concurrent speakers in the queries used by the representation decoder, improving activity-conditioned speaker embedding extraction.

• We introduce late-speaker training that combines late-onset mixture generation with onset-aware masked-speaker selection, increasing training exposure to unknown speakers with late activity onsets.

Corresponding Authors: Juan Liu and Ming Li.

Figure

Fig. 1. S2SND-v2 model framework.

References (29)