Carrying the Alignment: A Forward-Only Recurrent Pointer Against Attention Loops in Speech Recognition

Attention-based speech recognizers produce text by letting the decoder, which writes one output token at a time, look back at the whole audio at every step and choose where to read. Nothing in this process records where the decoder has already been. On clean, in-domain audio the model tracks its place well. On noise, unfamiliar accents, silence, or recordings longer than anything seen in training, it can lose its place. It then skips words, stops early, or gets stuck re-reading the same few frames and emits hundreds of repeated syllables. Keung et al. documented this last failure and named it "echographic transcription." They also observed that old hidden-Markov-model recognizers are immune, because those recognizers are forced to move through the audio frame by frame. Their own remedy only truncates the output after a loop has happened, and they explicitly call for designs that enforce forward progress structurally.

We propose to give the decoder a memory of its position. Each step, the decoder keeps a probability distribution over audio frames saying "where I am now." That distribution is carried from one output token to the next by a gated recurrence that can only move probability mass forward, and it is allowed to stay on any frame for at most a bounded number of tokens. The end-of-sentence token is emitted only when the mass has reached the end of the audio. With these rules, looping, backward jumps, and early stopping become impossible by construction, not merely unlikely. Content matching between the decoder state and the audio is kept: it decides how far the pointer advances. The update is linear in the carried distribution, so training can run as a parallel scan over frames, the way linear recurrent layers do.

Core Claim

The pathologies of attention in speech recognition come from position being re-inferred from content at every step instead of being carried as state. A forward-only recurrent pointer has three properties:

  • it is kept soft at inference time;
  • its width grows and shrinks with the model's uncertainty, not with a hand-set window;
  • it is capped in how long it can dwell.

We claim such a pointer eliminates echographic loops and long-form collapse without an auxiliary CTC decoder, a length guardrail, or overlapping-window inference, and without costing in-domain accuracy.

Concretely, let $h_1,\dots,h_T$ be the encoder frames and $d_i$ the decoder state when writing token $i$. The decoder computes a stop probability $s_{i,j} = \sigma(\mathrm{score}(d_i, h_j))$, the chance that the pointer halts at frame $j$ for token $i$. It then updates its position distribution $a_i$ from the previous one $a_{i-1}$ by a left-to-right scan:

$$q_i(j) = (1 - s_{i,j-1})\, q_i(j-1) + a_{i-1}(j), \qquad a_i(j) = s_{i,j}\, q_i(j).$$

Here $q_i(j)$ is the mass that has arrived at frame $j$ and not yet stopped. Mass can only travel to frames at or after its previous location. The recurrence is first-order and linear in $q$ once the gates are fixed, so it admits an associative parallel scan over $j$.

Two further pieces complete the mechanism. First, the state is augmented with a dwell counter capped at $K$, so mass that has stopped on the same frame for $K$ consecutive tokens must advance. This bounds output length by $K$ tokens per encoder frame, with $K$ set from the maximum observed in training alignments. Second, the probability of end-of-sentence is tied to the mass on the final frames. The context vector is a local content softmax over a short window ending at each frame, weighted by $a_i$. As a result, the effective window is wide when $a_i$ is spread out and narrow when it is sharp.

Relation to Prior Work

The expected-alignment scan above is the training-time recurrence of Monotonic Chunkwise Attention, which we reuse as a method. MoChA, however, switches to hard, thresholded stopping at inference and uses a fixed chunk size; its authors' attempt to learn chunk size (MAtChA) did not help. We keep the distribution soft at test time, which removes the train/test mismatch. We let the spread of the carried distribution play the role of an adaptive chunk. We also add the dwell cap and end-of-sentence coupling that MoChA lacks.

Two parametric location mechanisms carry a pointer forward but represent it as one or a few Gaussians:

Our pointer is nonparametric over frames and driven by content. It can therefore represent a bimodal belief after an ambiguous stretch of noise.

Monotonic Location Attention for Length Generalization motivates the design. Its OneStep and monotonic pointers inside recurrent sequence-to-sequence models generalized perfectly to 10× longer synthetic inputs, but it was never tested on speech. MonoAttn-Transducer is the closest neighbor. It infers a posterior alignment by running the forward-backward algorithm over a transducer lattice, but only for simultaneous translation, and it depends on a diagonal prior early in training.

Several soft-penalty approaches constrain the design, because they show that losses help but guarantee nothing:

These leave the attention free to loop on out-of-domain inputs. Zhao et al. also found hard windows brittle, since one misplaced anchor causes cascading deletions. That finding is why our pointer stays soft.

The Whisper study's "monotonicity trap" is a warning we take seriously: forward-only alignment hurts translation between languages with different word order. We therefore scope the claim to speech recognition, where frame order and token order agree.

Research Program

We will implement the pointer as a drop-in replacement for cross-attention in two recognizers:

  • a streaming-capable model with a unidirectional LSTM encoder and LSTM decoder, which isolates the recurrent setting;
  • a Conformer encoder with a Transformer decoder, which tests whether the idea survives multi-head decoders.

For the Transformer decoder, one pointer is shared per layer, not one per head. This sidesteps the per-head loss balancing that Monotonic Multihead Attention and the Whisper work needed.

The analysis has three parts. The first verifies the structural bound on output length empirically. The second measures how the spread of $a_i$ tracks acoustic difficulty; we expect it to widen on noise and silence, which would count as the learned alignment tolerance that fixed-buffer methods lack. The third reports the compute of the banded scan against full attention. At inference we truncate $a_i$ to frames whose mass exceeds a small threshold, which gives decoding cost roughly independent of utterance length.

Baselines

The naive reference is the same encoder-decoder with standard content-based cross-attention, trained on identical data. On LibriSpeech 100h, Zhao et al. report 12.0% / 29.7% WER (test-clean / test-other) for such a Speech Transformer, and 9.0% / 25.4% with their monotonic Gaussian bias. We will rerun both rather than rely on these numbers.

The strongest competitor for loop elimination is joint CTC/attention training with CTC prefix-scored beam search, following Hori et al. and Kim et al.. It is strongest because CTC's lattice directly prunes backward and looping hypotheses. For in-domain accuracy with a monotonic bias, the strongest is SMA loss on a Conformer. Miao et al. report 3.18% test-clean and 8.41% test-other WER on full LibriSpeech. On noisy CHiME-4, Kim et al. report 44.99% CER for joint CTC-attention, against 47.58% attention-only and 48.79% CTC-only. We found no reported result on Lacuna for Hori-style joint decoding on the out-of-domain loop sets.

For long-form audio, Chiu et al. report on their YouTube set 12.0% WER for raw RNN-T, 67.1% for raw soft attention, and 11.7% for MILK attention with 2×-cost overlapping inference. That set is not public, so we will retrain an RNN transducer on our data. For out-of-domain loops, the reference is the Poisson guardrail of Keung et al., which caught 160 of 170 problematic British National Corpus utterances.

All systems share the following controls:

  • encoder, encoder downsampling rate, parameter count within 5%, and training data;
  • an equal hyperparameter-search budget, where the search covers CTC weight, SMA bound $D$, guardrail threshold, and our $K$;
  • beam width 10;
  • no external language model.

Beating the field means three things together:

  • in-domain WER within 0.2 absolute of the best baseline;
  • strictly fewer looping outputs than joint CTC/attention decoding on the out-of-domain sets;
  • raw long-form WER within the RNN transducer's, without overlap.

Four ablations isolate the key ingredients:

  • hard thresholded stopping at inference (MoChA-style) versus soft;
  • dwell cap removed;
  • end-of-sentence coupling removed;
  • the nonparametric pointer replaced by a single Gaussian with fixed width, as in Tjandra et al.

Why not just…?

Why not just use joint CTC/attention decoding? It already suppresses loops in practice, and it is the real threat here. Its guarantee lives in the search, not in the attention distribution. The attention decoder alone remains unconstrained, and decoding must synchronize a frame-level prefix search with token-level beam search. If joint decoding matches our loop rate and long-form WER at comparable decoding cost, the structural pointer is unnecessary. The head-to-head on the stress sets and long-form sets, with decoding cost reported, settles this directly.

Why not just add a soft monotonic loss such as SMA? A penalty shapes behavior on training-like data but guarantees nothing where the model is most confused, which is precisely the out-of-domain regime Keung et al. describe. We will count loops for SMA-trained models on the stress sets. If SMA also produces near-zero loops, our claim reduces to a modest in-domain difference, and we will say so.

Why not just use an RNN transducer, which is monotonic and already robust on long audio? Chiu et al.'s 12.0% raw long-form WER makes this a serious option. Battenberg et al. found that attention aggregates better than frame-local models under aggressive downsampling, and that transducers lose substantially with forward-only encoders. Ar-RNN-T shows that unidirectional LSTM transducers delay emissions badly enough to need external forced alignments. We will compare at 4× and 8× downsampling with unidirectional encoders. If the transducer wins everywhere, the contribution narrows to making attention decoders, including foundation models like Whisper, safe.

Why not just use overlapping windows or a length guardrail? Overlap doubles inference cost, per Chiu et al. A guardrail detects loops but cannot recover the transcript, since truncation leaves gibberish. We report both, and we score the correctness of the recovered words, not just loop detection.

Proposed Experiments

We will train on LibriSpeech 100h and 960h and evaluate on test-clean and test-other, on CHiME-4 for noise, and on AISHELL-1 to check a second language.

For long-form evaluation we build a public set by concatenating consecutive LibriSpeech test utterances from the same chapter into 1–10 minute recordings, keeping the natural pauses. Models see only standard-length utterances in training. We report WER and deletion rate as a function of length.

The out-of-domain stress set follows Keung et al.: British National Corpus audio, plus synthetic probes of pure silence, stationary noise, and sustained vowels, all passed to LibriSpeech-trained models. On these sets we measure two things: the loop rate, defined as the share of outputs exceeding 1.3× the reference length or emitting more than 25 characters per second of audio, and WER on the non-silent items.

Four checks are decisive:

  • zero outputs violating the dwell-derived length bound, which is structural and must hold exactly;
  • a loop rate below joint CTC/attention decoding;
  • a flat curve of long-form WER against length for the pointer, where content attention is expected to degrade sharply;
  • measured decoding cost per token that stays constant as recordings lengthen.

A negative control on CoVoST-2 Japanese→English is expected to show degradation, consistent with the monotonicity trap. This confirms that the method's scope is recognition.