Prosody-Aware Surrogate Gradients for Spiking Expressive Speech

Spiking neural networks pass information between neurons as all-or-nothing pulses instead of real numbers. On neuromorphic chips this replaces most multiplications with additions, and that is where their energy savings come from. Because a pulse is a step function, which has no useful derivative, these networks are trained with surrogate gradients: the forward pass fires real binary spikes, and the backward pass substitutes the slope of a smooth curve. The approach is good enough to build a complete spiking text-to-speech system. SpikeVoice reaches a mean opinion score of 4.06 on LJSpeech against 4.10 for its non-spiking counterpart FastSpeech2, at about 10.5% of the energy. Its authors also report that quality drops in multi-speaker settings, and they never test expressive speech: emotion, emphasis, the shape of the pitch contour.

This note argues that the missing expressiveness is mainly a training problem, not a capacity problem. Prosody is carried by small, slowly varying quantities: pitch (F0), energy and timing that change over phonemes, words and phrases. A surrogate gradient tuned for classification, where only the sign of a large decision matters, may point in the wrong direction for exactly these fine regression targets. We propose to measure that bias separately for each prediction target. We then remove it with a small number of learned surrogate widths, one for each prosodic timescale, inside a frame/phoneme/word spiking prosody hierarchy. The test bed is emotional speech synthesis on the Emotional Speech Dataset (ESD).

Core Claim

Our claim has two parts. In a surrogate-gradient spiking speech generator trained with one fixed surrogate, the gradient for the pitch and energy losses agrees much less with the network's true loss landscape than the gradient for the spectrogram loss does. This is the first part, and it is a measurable diagnosis. The second part is the fix. Giving each prosodic timescale its own learned surrogate width, and initializing each level's adaptive neurons near that level's natural rhythm, recovers a substantial share of the F0 accuracy and emotion fidelity lost relative to an equal-size non-spiking network. The fix costs a handful of scalars rather than a per-layer architecture search.

This is not the obvious "spiking expressive TTS" combination of putting a hierarchical prosody module into SpikeVoice. That combination is our application vehicle. The contribution is to identify where and why spiking generators lose prosody, and to provide a cheap optimization remedy whose value can be checked against strong simpler alternatives.

Why This Gap Is Real

Three findings in the file motivate the claim. First, the forward-backward mismatch of surrogate training is known to introduce gradient bias and dead or exploding units in deep networks (Hybrid Macro/Micro Level Backpropagation; Differentiable hierarchical and surrogate gradient search).

Second, the reassuring result that surrogate shape barely matters comes from Spatio-Temporal Backpropagation, which trains spiking networks by backpropagating through both layers and time and compares rectangular, polynomial, sigmoid and Gaussian surrogates. It was obtained on MNIST-style classification. Nobody has checked whether it holds for continuous regression through long temporal unrollings. We treat that paper as the source of our method and as a claim to re-test, not as settled.

Third, Differentiable hierarchical and surrogate gradient search shows that learning surrogate temperatures layer by layer (the method called DGS) helps deep vision networks. It also reports that this was too expensive to run beyond the stem layer. That limit constrains our design: whatever we learn must be far cheaper than per-layer search.

On the speech side, hierarchical prosody modeling shows that a frame→phoneme→word pitch hierarchy matters for emotional speech. Removing it drops naturalness MOS from 3.62 to 3.49. That work uses continuous diffusion models, and we borrow its hierarchy as structure.

Spiking speech-perception work supplies the timescale prior. Bittar and Garner trained adaptive leaky integrate-and-fire (adLIF) networks, neurons whose firing threshold rises after recent activity, on recognition. Rhythms near the syllable rate (~4 Hz) and the phoneme rate (~40 Hz) emerged spontaneously (Exploring neural oscillations). Separately, non-recurrent adLIF networks beat larger recurrent non-spiking networks on spoken digits (surrogate gradient spiking baseline). Both studies are discriminative. Neither generates speech, and neither asks whether those rhythms help produce prosody.

Research Program

We first build a spiking acoustic model that follows SpikeVoice's design: a spiking phoneme encoder, a variance adaptor, a spiking mel decoder, and its two-stage temporal-and-sequential attention. We replace the flat variance adaptor with a three-level spiking prosody hierarchy that predicts F0 and energy at frame, phoneme and word resolution, as in the hierarchical prosody work, using adLIF neurons. Conditioning comes from a speaker embedding and an emotion embedding. In a second setting, conditioning comes from a reference utterance, for prosody transfer. Every model, spiking or not, uses the same vocoder, so vocoding artifacts do not differ across systems.

The diagnostic stage measures gradient fidelity separately for each loss term. For a trained checkpoint we compute the surrogate gradient of the F0 loss, the energy loss, the duration loss and the mel loss. We compare each against a reference direction obtained from directional finite differences on the actual binary-spike network, with the loss averaged over small input jitter so that the discrete loss surface is locally smooth. The reference is too costly to use in training but affordable on a few hundred mini-batches of a small model. The output is a cosine-agreement curve for each loss, plotted against network depth and against unroll length.

We also run a localization test, because it decides between our fix and a simpler alternative. We feed the spiking decoder ground-truth F0 and measure how faithfully pitch survives into the generated spectrogram. This separates prosody lost in prediction from prosody lost in rendering.

The remedy stage assigns one learnable surrogate width $\beta_k$ to each level $k \in \{\text{frame}, \text{phoneme}, \text{word}\}$, shared by all neurons at that level. The backward pass uses

$$\frac{\partial s}{\partial u} \approx \frac{1}{\beta_k}\,\sigma'\!\left(\frac{u-\theta}{\beta_k}\right),$$

where $s$ is the binary spike, $u$ the membrane potential, $\theta$ the firing threshold, and $\sigma$ a sigmoid. A small $\beta_k$ concentrates gradient on neurons near threshold; a large $\beta_k$ spreads it. Each $\beta_k$ is updated by the outer-loop gradient on a held-out loss, as DGS does. Because there are three scalars instead of one per layer, the search cost is essentially that of ordinary training.

The adLIF adaptation time constants at the word, phoneme and frame levels are initialized near syllable-, phoneme- and frame-rate dynamics respectively, and are then trained freely. We report whether they drift back toward the rates that Bittar and Garner observed emerging.

Baselines

The naive reference point is the spiking model above with one global boxcar surrogate of default width. This is the training recipe of the speech SNN papers in the file. It shows what plain transfer of SpikeVoice-style training to expressive data gives.

The strongest spiking baseline is our faithful reproduction of SpikeVoice with its flat variance adaptor, trained on the same data. The anchor is its reported LJSpeech MOS of 4.06 against 4.10 for FastSpeech2 (SpikeVoice). We first reproduce on LJSpeech and must land within listening-test noise of that gap before trusting the expressive runs. No reported result was found on Lacuna for SpikeVoice on ESD, or for any spiking model on emotional speech.

The ceiling is a non-spiking twin: an identical-size FastSpeech2-style network with the same hierarchical adaptor and real-valued activations. The gap between this twin and the naive spiking model is what the method must close. It counts as beating the baseline if it recovers a clearly larger share of the twin's F0 correlation and emotion-recognition recall than the global-surrogate model, at matched spike counts.

For context on expressive quality we cite continuous systems, but they are not directly comparable. Discl-VC reports F0 correlation 0.973 for prosody control on ESD, but that is voice conversion from a real source contour, not synthesis from text. The hierarchical prosody model reports NMOS 3.65 on a Mandarin internal emotional set.

Two ablations isolate the key ingredient. In the first, the per-scale widths are frozen at their initial values, which separates learning the widths from merely having the hierarchy. The second is DGS applied to the stem layer only, as its authors were limited to.

All systems share the ESD English training split, the vocoder and the training steps. Every surrogate-related hyperparameter of every system gets the same tuning budget, counted in full training runs.

Why not just…?

Why not just sweep a single global surrogate width more carefully? This is the most serious threat. If one well-chosen width matches three learned ones, the per-scale story collapses. We give the global-width baseline a grid search with the same number of training runs the proposed method consumes. The diagnostic predicts how this comparison should come out: if the best-agreeing width differs across the F0, energy and mel losses, no single width can serve all of them. If the agreement curves peak at the same width, we expect to lose this comparison and will report it.

Why not just make the prosody predictor a small non-spiking network? A hybrid with a continuous F0 head is cheap and might simply work. The localization test settles it. If F0 survives poorly even when the spiking decoder receives ground-truth pitch, the loss is in rendering, and a continuous predictor head cannot fix it. If the decoder renders ground-truth pitch faithfully, the hybrid becomes the recommended design and we will say so, reporting its energy cost honestly. The hybrid is trained under the same budget either way.

Why not just quantize a continuous expressive model to 8-bit integers? Quantized models still perform multiply-accumulates. The spiking advantage comes from replacing those with additions on event-driven hardware (SpikeVoice; Differentiable hierarchical and surrogate gradient search reports 6.7 mJ versus 174.4 mJ on stereo matching). We include an INT8 version of the non-spiking twin and report both quality and estimated energy. The estimate counts operations, using the same energy-per-addition and energy-per-multiply accounting SpikeVoice uses. We claim no win where the numbers do not show one.

Why not just convert a trained continuous model to spikes afterwards? Converted networks need long averaging windows and accumulate conversion error, a problem that is especially severe for large sequence generators (Distribution-Aware Multi-Granularity Phase Coding), and direct training has generally beaten conversion (Point-to-Spike Residual Learning). These are not speech results. We therefore convert the non-spiking twin at matched time steps as an additional point on the quality-versus-latency curve.

Proposed Experiments

The main benchmark is emotional TTS on the English half of ESD (Seen and Unseen emotional style transfer): ten speakers, five emotions and parallel sentences, which allows matched comparisons. It is evaluated with F0 RMSE and correlation against held-out parallel recordings, voiced/unvoiced error, mel cepstral distortion, and recall of a fixed speech-emotion classifier. Speaker similarity is measured as cosine similarity between speaker embeddings, and intelligibility as recognizer WER. Listening tests cover naturalness MOS and ABX emotion similarity. LJSpeech serves as the reproduction check. LibriTTS tests whether the fix also reduces the multi-speaker degradation SpikeVoice reports. Energy is estimated from measured spike counts. Every result comes from at least three seeds.

Three checks decide the outcome. The diagnosis holds if F0 and energy gradients agree measurably less with the finite-difference reference than mel gradients do under the global surrogate, and if that disagreement grows with unroll length. The remedy holds if per-scale widths raise F0 correlation and emotion recall over both the tuned global sweep and the frozen-width ablation at equal spike budget, and if that gain tracks an improvement in measured gradient agreement. The main hypothesis is falsified if agreement is equal across losses and the learned widths do nothing. In that case the spiking expressiveness gap is about representation capacity rather than optimization, and that negative result would redirect the field toward spike-coding schemes for continuous targets rather than better surrogates.