r/speechtech • • 6d ago

Using Rumble-2-Flash's built-in CTC head for forced alignment instead of a separate aligner – some numbers

I've been building a transcription pipeline on Reson8's Rumble-2-Flash and tried using its CTC head for word timestamps. Haven't seen anyone write about it, so figured I'd share.

The checkpoint has a CTC head next to the decoder, just one linear layer on the encoder's ln_post output, and its classes are the decoder vocab plus a blank. Since the encoder already runs during generate(), you can hook ln_post, Viterbi the decoder's own tokens against the head and get word times without a second model or a second pass. On 20-60 min files that took 0.3-0.9 s per file, vs 7-17 s for WhisperX's alignment step on the same files.

The problem is the head is really peaky. 60-76% of frames are blank, a token is about 1.2 frames, and it's only ~13 frames/s. Starts are fine, but the last spike of a word says almost nothing about where it ends. I tried a few end rules against MFA alignments on LibriSpeech (picked on dev-clean, reported on test-clean):

  • end at the last spike: 115 ms MAE
  • end at the next word's start: 75 ms
  • next word's start, but cut at the first silence (30 ms, 25 dB below speech level): 57 ms

Vs WhisperX on the same 200 utterances: starts 58 vs 75 ms, ends 57 vs 34 ms. So better starts, worse ends, which makes sense with 13 vs 50 frames/s.

Also, padded batching changed the encoder output until I trimmed clips to whole mel hops, padded with a bit of silence and zeroed the masked frames. And my FLEURS Dutch WER was 9.2% vs 6.05% on the model card, which turned out to be almost all the normaliser. With the Open ASR Leaderboard's scoring the same transcripts give 6.24% (WhisperX large-v3 goes 7.05% -> 4.43%).

MFA isn't human labels btw, it's another forced aligner.

Code and raw results: https://github.com/EdwardGlockner/rumblex

Has anyone found a better way to get word ends out of a peaky CTC head? "Next start, cut at silence" works but feels hacky.

Edit: tried a blank penalty before Viterbi after a suggestion in the comments. Starts went 57 -> 52 ms on test-clean, ends unchanged.

5 Upvotes

8 comments sorted by

2

u/fasttosmile 6d ago

Sad how this sub has just become a sea of AI slop

1

u/EdwardGlockner 6d ago

Just built something I thought was cool and wanted people's opinion on it.

1

u/nshmyrev 5d ago

Let me know what to do about it please I'd be happy to fix, already deleting 50% submissions

1

u/weiwchu 6d ago

u/EdwardGlockner write-up. That peaky CTC spike behavior is actually a classic known quirk—Alex Graves noted it back in the original 2006 CTC paper, since CTC only optimizes sequence likelihood rather than frame-level boundaries.

Also, since you mentioned the caveat about MFA not being human ground truth, you might want to test your end-boundary rules on FA-Bench (it's Apache 2.0). It evaluates word and phone timestamps directly against human labels—if you don't have TIMIT, you can run it on Buckeye instead, across both clean and noisy conditions. Would be interesting to see how your start/end MAEs hold up against human annotations.

1

u/EdwardGlockner 5d ago

Thanks! Havent heard about FA-Bench, but human labels would be very nice compared to MFA. Will try Buckeye!

0

u/SoundwaverHQ 6d ago

Two things usually beat "next start, cut at silence": fix the frame math, then let a duration prior decide the end instead of a spike.

At 13 fps one frame is 77 ms, so 57 ms MAE is close to the quantisation floor; the last spike is just the final frame where blank probability drops. Viterbi with a per-class duration penalty, or a length prior from phone statistics, pulls the boundary to the token's expected length - which is roughly what your silence-cut rule is doing by hand.

If one cheap second pass is acceptable, give a small forced aligner the CTC starts plus +/-200 ms windows and trust it only for ends. Also worth trying: temperature-smooth the head's logits before Viterbi, since peaky posteriors over-commit on the final frame.

1

u/EdwardGlockner 6d ago

Tried the temperature thing but it didn't change anything, Viterbi picks the same path whatever T is. A blank penalty actually helped though, word starts went from 57 to 52 ms on LibriSpeech test-clean, ends about the same.

0

u/EdwardGlockner 6d ago edited 6d ago

Oh thanks! I've only tried the energy cut so far. Smoothing the logits sounds easiest to test, so I'll try that first.

Not sure about the length prior though. It's BPE tokens, not phones, so I don't really know what the expected duration would be. Chars per token maybe?