﻿# SepFormer source order: separated outputs are not persistent speaker identities

Understand permutation-invariant SepFormer separation, and align output sources across independently processed chunks before assigning persistent speaker labels.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-sepformer-permutation-source-identity-tracking/
Language: en

## Start with source separation rather than naming

The [SepFormer paper](https://arxiv.org/abs/2010.13154) studies separating speech mixtures into source signals. Producing those signals is different from assigning persistent human identities or diarization labels. A source-axis position is an output slot in the chosen inference call. Without an additional identity contract, its numerical index should not be displayed as a named person or assumed to refer to the same speaker in an independently processed recording segment.

## Read the training assignment rule

The [official WHAMR training recipe](https://raw.githubusercontent.com/speechbrain/speechbrain/develop/recipes/WHAMandWHAMR/separation/hparams/sepformer-whamr.yaml) selects a permutation-invariant SI-SNR loss. Such a criterion allows source estimates to be matched to references under an appropriate permutation. It does not impose the product convention that a particular person must always occupy the first output slot. This explains why good separation quality and unstable slot identity can coexist rather than being contradictory observations.

## Check the actual released interface

The [published SepFormer model card](https://huggingface.co/speechbrain/sepformer-whamr) demonstrates saving individual source-axis outputs and states the expected recording contract. Preserve that contract when preparing test mixtures. A file called source-A can be a valid separated estimate without establishing a durable identity A across calls. Do not confuse output filenames chosen by an application with learned guarantees supplied by the checkpoint; those labels belong to the wrapper unless independently verified.

## Diagnose cross-chunk speaker swaps

Consider independently separating adjacent portions of an overlapping conversation and then concatenating matching output indices. If source assignments swap between calls, that naive concatenation joins different speakers into one track. Evaluate candidate assignments using suitable overlap evidence or an independently validated speaker-comparison stage. Preserve uncertainty when evidence is weak. This is an application design derived from the permutation-invariant objective, not a promise that a simple similarity heuristic solves every overlap, silence, or changing-speaker case.

## Evaluate recovery and continuity separately

Report source reconstruction quality separately from persistent track identity. Record artifact, source count, input preparation, chunk boundaries, assignment method, and any identity evidence. Guides to [speaker turns versus identity](/journal/pyannote-exclusive-diarization-speaker-identity/) and [inference evaluation](/journal/inference-benchmark-method/) explain related boundaries. A complete meeting workflow needs explicit handling of segmentation, separation, and assignment. Passing an acoustic separation benchmark does not by itself validate stable labels, correct turn timing, or the continuity of an assembled long-form speaker track.
