Speech LLM-based ASR often struggles with named entities and long-tail words due to strong internal language-model priors. Retrieval-augmented biasing can help, but its effectiveness depends on accurate hotword localization in full-utterance speech under weak supervision. We propose CLAR, a dual-encoder speech-text retriever that uses Continuous Integrate-and-Fire (CIF) to learn monotonic token-level alignments without timestamps. With length-aware localized matching, CLAR anchors short-entity acoustic cues and reduces representation dilution and attention drift. The retriever is trained with a multi-granularity objective combining global and local segment-level contrastive losses and a CIF quantity constraint. At inference, top-ranked hotwords are injected as contextual prompts for the Speech LLM, improving recognition without shallow fusion. Experiments show that CLAR significantly improves hotword retrieval and reduces both CER and B-WER against strong contextual ASR baselines.
Figures & tables
Figure 1: CLAR retrieval-augmented contextual ASR: CIF-Localized Alignment retriever for localized hotword matching and prompt-based decoding with a Speech LLM.
Figure 2: The CLAR retriever with dual encoders, CIF-based monotonic alignment, and length-aware localized matching for hotword retrieval.
Algorithm 1: CIF-Localized Alignment CLAR for hotword retrieval
Input: speech features X , hotword candidates {yj}j=1M , candidate token lengths Lj , and top- K .
Output: ranked hotword list CK .
1. Encode speech and predict CIF alignment: H←SpeechEnc(X) , α←CIFPred(H) , and obtain token boundaries {(bs,es)}s=1S .
2. Project and normalize embeddings: at←Norm(fa(ht)) and ej←Norm(ft(TextEnc(yj))) .