Heat Capacity and Entropy of Speaker Graphs for Overlap-Aware Diarization

Speaker diarization answers "who spoke when." A common way to do it cuts a recording into short segments, turns each segment into a voice fingerprint (a speaker embedding), links segments by how similar their fingerprints are, and splits the resulting graph into speakers using its eigenvectors (spectral clustering). Overlapping speech breaks this pipeline. A segment where two people talk at once yields a fingerprint that mixes both voices. That blended node sits between two speaker clusters and pulls them toward each other. We propose to borrow two quantities from network thermodynamics, the field that treats a graph's Laplacian eigenvalues as the energy levels of a physical system. The first is the graph's heat capacity as temperature varies. It should peak at the scale where speaker clusters become distinct, which would let it choose the clustering resolution and the number of speakers. The second is each segment's share of the graph's entropy at that temperature. It should be high exactly for blended segments that straddle two clusters. The clustering then down-weights those segments' links and lets them belong to two speakers.

The opportunity is narrow and specific. Multi-Class Spectral Clustering with Overlaps for Speaker Diarization already allows overlap segments to join two clusters, using an acoustic overlap detector. The authors report that speaker confusion goes up when they do this, because the embeddings from overlap regions remain noisy mixtures. Even a perfect detector only moves their AMI error from 24.0% to 21.5% DER. A better acoustic detector does not fix contaminated graph structure. A structural signal computed on the graph itself might.

Core Claim

Let $\lambda_1 \le \dots \le \lambda_N$ be the eigenvalues and $u_k$ the eigenvectors of the Laplacian of the segment-affinity graph, where $N$ is the number of segments. Treat the eigenvalues as energy levels populated at inverse temperature $\beta$, as in Thermodynamic Analysis of Time Evolving Networks:

$$p_k(\beta) = \frac{e^{-\beta\lambda_k}}{\sum_j e^{-\beta\lambda_j}}, \qquad C(\beta) = \beta^2\left(\sum_k p_k\lambda_k^2 - \Big(\sum_k p_k\lambda_k\Big)^2\right).$$

Here $p_k$ is the occupation of mode $k$, and $C(\beta)$ is the heat capacity, which is $\beta^2$ times the energy variance.

A graph with $K$ well-separated speakers has $K$ near-zero eigenvalues and then a jump. The energy variance is largest when the temperature is comparable to that jump, so $C(\beta)$ has a peak near $\beta^\ast \sim 1/\text{gap}$. That peak gives a resolution parameter $\beta^\ast$. The low modes that remain occupied at $\beta^\ast$ give the speaker count.

We then project the entropy onto segments:

$$s_i(\beta^\ast) = -\sum_k p_k \ln p_k \,\, u_k(i)^2,$$

where $u_k(i)$ is entry $i$ of the eigenvector $u_k$. This is a node-level analogue of the edge projection in Network Edge Entropy from Maxwell-Boltzmann Statistics. A segment that belongs cleanly to one speaker loads on a single low mode. A blended segment spreads across several low modes and their mixing modes, so it should receive a high $s_i$.

The claim we will test has two parts. First, $s_i$ identifies contaminated segments better than simple geometric scores. Second, using it to reweight edges before the overlap-aware clustering of Multi-Class Spectral Clustering with Overlaps for Speaker Diarization reduces speaker confusion. That second outcome is the failure mode that paper left open.

Relation to Prior Work

Two diarization papers motivate this work, and two network-thermodynamics papers supply the method.

Auto-Tuning Spectral Clustering for Speaker Diarization Using Normalized Maximum Eigengap (NME-SC) picks a top-$p$ binarization threshold and the speaker count by minimizing an empirical $p/g_p$ eigengap ratio. It is strictly single-speaker. The heat-capacity criterion uses the whole spectrum rather than one gap, and it replaces a discrete threshold with a continuous temperature. NME-SC is the direct competitor for that half of the proposal. The overlap-aware clustering paper above reuses NME-SC's tuning, and it supplies both our clustering backbone and the documented gap we target.

Speaker Diarization with Overlapping Community Detection Using Graph Attention Networks and Label Propagation Algorithm refines affinities with a graph attention network and finds multi-speaker communities by label propagation. Its authors report sensitivity to a fusion coefficient, a path length, and an iteration cap. Our approach has one physically interpreted parameter, chosen without supervision, and no learned graph module.

On the method side, Thermodynamic Network Analysis with Quantum Spin Statistics shows that Laplacian partition functions discriminate graph topologies. Weighted Network Analysis Using the Debye Model shows that temperature acts as a scale lens, with low temperature freezing out weak edges, and that weighted graphs show temperature-driven structural transitions. That observation is the basis for expecting a heat-capacity peak at the speaker scale.

None of these thermodynamic works has been applied to speech. None uses node-level entropy to flag mixed entities. Reformulating DOVER-Lap Label Mapping as a Graph Partitioning Problem works only on finished hypotheses, so it is complementary rather than competing.

Cost is not a barrier here. The limitation flagged for network thermodynamics is the cubic cost of a full spectrum, and the Taylor shortcut in ESSEN loses global spectral structure. A meeting graph has a few thousand segments, and the overlap-aware clustering method already computes this spectrum, so we use the exact spectrum.

Research Program

The pipeline keeps everything fixed except the graph treatment. It uses the same voice activity detection, the same x-vector extractor, and the same HMM-DNN overlap detector as the overlap-aware spectral clustering system.

First, we build a continuous affinity graph and compute $C(\beta)$ on a log grid of temperatures. From its peak we take $\beta^\ast$ and the speaker count. We also check whether using the heat kernel $e^{-\beta^\ast L}$ as the affinity outperforms top-$p$ binarization.

Second, we compute $s_i(\beta^\ast)$ for each segment. We also compute a Bose-Einstein variant, since Thermodynamic Network Analysis with Quantum Spin Statistics reports that Bose-Einstein statistics are more sensitive to the low eigenvalues that encode cluster structure.

Third, we combine the score with the detector. A segment's edges are scaled by $1-\sigma(a\, s_i + b\, o_i)$, where $o_i$ is the detector's overlap posterior and $a, b$ are fitted on the dev set. Segments with high combined scores are allowed two labels under the sum-to-one-plus-overlap constraint.

We will report diagnostics before any final DER. These include how well $s_i$ separates frames labeled as overlap from single-speaker frames on the ground truth, and how stable $\beta^\ast$ is across recordings.

Baselines

The naive reference is agglomerative hierarchical clustering of x-vectors with no overlap handling. On LibriCSS at 40% overlap, the overlap-aware spectral clustering paper reports 28.8% DER for this baseline. On AMI it reports its own system as a 15.2% relative improvement over it. We rerun it on our embeddings so that all systems share one front end.

NME-SC is the strongest competitor for the speaker-count and resolution half of the proposal. We run it with the same embeddings and the same search range over its $p$ threshold as our grid over $\beta$. For AMI, LibriCSS, or DIHARD-III, there is no reported result found on Lacuna for NME-SC alone, so it is reproduced. Beating it means lower DER, and lower absolute speaker-count error, across recordings.

The strongest existing overlap-aware method is Multi-Class Spectral Clustering with Overlaps for Speaker Diarization. It reports 24.0% DER on the AMI mixed-headset test set, 21.5% with oracle overlap detection, and 15.2% on LibriCSS at 40% overlap. We reproduce it with identical components, so the only difference is our edge reweighting and our choice of temperature. Beating it means lower DER on AMI test, and a measurable drop in the speaker-confusion component specifically. That component is the error the method's authors saw rise.

The key ablation replaces $s_i$ with cheap geometric contamination scores while keeping the reweighting mechanism. The first is the cosine margin between a segment's two nearest cluster centroids. The second is degree-normalized betweenness. The third is the overlap posterior alone. If any of these matches $s_i$, the thermodynamic ingredient adds nothing.

We will also report end-to-end neural diarization (EEND-EDA, as used in The Hitachi-JHU DIHARD III System) where we can run it. No reported result was found on Lacuna for it on these splits, so we treat it as context rather than as the target.

Why not just…?

Why not just down-weight segments using the overlap detector's posterior? This is the most direct alternative, and it is a real threat. Its limitation is what it measures: it reports acoustic overlap, not whether the embedding is actually blended. Short or dominant-speaker overlaps can yield clean embeddings, and some single-speaker segments with noise or a far-field channel are contaminated. The oracle-detection result bounds what better detection alone can buy on AMI, at 2.5 points DER. The ablation that uses only $o_i$ settles the question. If adding $s_i$ gives no gain over it, we drop the thermodynamic score.

Why not just use the distance margin to the two nearest centroids? A blended embedding should sit between two centroids, so this score is cheap and plausible. It depends on the centroids already being correct, however, and blended nodes are precisely what distort the centroids. The entropy score uses the spectrum before any clustering and spreads its evidence across all low modes. The ablation compares the two at equal overlap recall. If the margin matches $s_i$, we will report that outcome rather than the thermodynamic version.

Why not just keep NME and skip the heat capacity? For well-separated graphs, both criteria may pick the same scale, because the heat-capacity peak is a smoothed eigengap. We expect the difference to appear only where the spectrum has several moderate gaps, as in many-speaker or high-overlap recordings. We will therefore report agreement broken down by speaker count and overlap ratio. If the two criteria never disagree in a way that matters for DER, the temperature half of the proposal reduces to a reparameterization, and we will say so.

Why not just train an end-to-end model such as EEND on WavLM features? WavLM learns overlap robustness during pre-training, and EEND handles overlap natively. The motivating overlap-aware clustering paper notes that end-to-end models struggle with long recordings containing many speakers, and clustering pipelines remain in use for that regime. This proposal targets the clustering stage and does not claim to beat end-to-end systems outright. Its output can also feed hypothesis ensembling with them.

Proposed Experiments and Decisive Checks

We evaluate on the AMI mixed-headset split for comparison with the reported 24.0% and 21.5% figures, and on LibriCSS across its 0–40% overlap conditions. We add DIHARD-III for domain breadth if the components transfer. Metrics are DER with its missed-speech, false-alarm, and confusion components, plus Jaccard Error Rate. For the contamination score we report precision and recall against ground-truth overlap and speaker-count accuracy.

Three checks decide the outcome. First, $s_i$ must separate overlap segments from single-speaker segments better than the centroid-margin and detector-posterior scores. Second, adding $s_i$ to the overlap-aware clustering must reduce speaker confusion on AMI test relative to that method's 24.0% system. Gains should grow with overlap ratio on LibriCSS, and the 40% condition, where the reported figure is 15.2%, is the hardest test. Third, the heat-capacity peak must estimate speaker count at least as accurately as NME on recordings where the two criteria disagree. If the first check fails, the proposal reduces to a temperature-tuned NME. If the second fails, the contamination problem is not structural and needs a cleaner embedding instead.