Soft Matching Across Two Cascades: Cross-Lingual Keyword Search over Speech Lattices

Suppose an analyst types an English keyword such as a person's name or a technical term, and wants to find where it is spoken in hours of Assamese or Spanish audio. Today's systems run two brittle steps in a row. A speech recognizer turns the audio into its single best transcript, and a translation system turns the query (or the transcript) into its single best rendering. The two outputs are then compared by exact string match. Each step discards its runner-up guesses. A name the recognizer has never seen cannot appear in its output at all, and a name the translator renders one way will never match a transcript that spells it another way. The failures multiply.

We propose a keyword-search scorer that keeps both kinds of uncertainty and compares them by sound rather than by spelling. On the speech side it keeps a confusion network, a compact record of every word the recognizer considered at each moment together with its probability. On the query side it keeps several translation and transliteration candidates with their probabilities. It matches the two with a small learned encoder over phoneme sequences, trained so that strings the recognizer tends to confuse sit close together. The detection score is the expected match probability, summed over both sets of alternatives. Because matching happens in a vector space, the index can be searched with nearest-neighbour lookup rather than edit-distance comparisons against every arc.

Core Claim

Our claim is that recognition errors and translation errors in spoken cross-lingual search should be handled in one place: a single score that marginalizes over speech hypotheses and query-translation hypotheses together, and compares them with a similarity learned from real recognizer confusions. Handling them in one place should recover a large share of misses on out-of-vocabulary words and named entities. For those terms, neither soft recognition alone nor soft translation alone helps much, because a hit needs both the right translation and a sound-alike match against words the recognizer did produce.

The closest existing work is Word-based probabilistic phonetic retrieval for low-resource spoken term detection. That paper converts both the query and the confusion-network words to phonemes and scores them with uniform-cost phoneme edit distance, weighted by recognizer probabilities. It works in a single language, so no translation is involved. It improved Assamese ATWV (Actual Term Weighted Value, the standard keyword-search metric that rewards hits and penalizes false alarms) from 0.2278 to 0.2451. Our proposal differs in three ways. The query arrives in another language and carries a translation distribution. The similarity is learned from confusions rather than fixed. Spans of several consecutive slots are matched, so an out-of-vocabulary word that the recognizer split into two short in-vocabulary words can still be found.

The expected detection score for English query $q$ against a candidate span $s$ of the confusion network is

$$S(q,s)=\sum_{k=1}^{K}\pi_k\sum_{c\in C(s)}p(c)\;g\big(\phi(t_k),\phi(c)\big),$$

where $t_k$ are the top $K$ target-language translation or transliteration candidates of $q$ with renormalized probabilities $\pi_k$. The inner sum runs over $C(s)$, the highest-posterior word sequences through span $s$, each with recognizer probability $p(c)$. The function $\phi$ maps a word string to phonemes through a grapheme-to-phoneme converter, and $g$ is a learned match probability computed as a calibrated sigmoid of the cosine between phoneme-encoder vectors. Reducing $K$ to 1 gives the usual one-best-translation pipeline. Reducing $C(s)$ to the one-best path gives transcript search. Replacing $g$ with a Levenshtein-based score gives Xu and Metze's method. This nesting of the baselines inside one formula is what makes the ablations clean.

Research Program

Phoneme encoder. The encoder is a character-style convolutional network, run over phoneme symbols instead of letters. We choose phonemes because the file documents why letters fail: Spoken SQuAD shows that sound-alike recognition errors such as "area" and "harry" share few letter n-grams. That paper's Phoneme-CNN, applied to one-best English transcripts, supplies the architecture we reuse. Confusion2Vec 2.0 supplies the training signal. It learns word vectors from which words compete in the same lattice slot, and its sub-word version reaches 51% on acoustic analogies against 0.9% for Word2Vec. Its vectors, however, are static, English-only, and built from letter n-grams. We depart from it in two ways. We train on aligned pairs of a reference word and the recognizer's hypothesis, mined from training-set lattices, with a contrastive loss. We also share one inventory of International Phonetic Alphabet symbols across Babel languages, so that languages with about ten hours of audio borrow confusion structure from each other.

Query side. Following Learning to Translate for Multilingual Question Answering, which showed that multi-view translation distributions recover answer-ranking MAP lost to one-best translation (Chinese BOLT MAP 0.416 to 0.451), we keep the translator's K-best output. For names, we add candidates from a transliteration model. This targets the failure documented by Adafre et al. and Foster et al., where one mistranslated key noun sinks retrieval.

Speech side. On the speech side we index confusion networks, and following Pal et al. we rely on them to hold far more hypotheses than an N-best list. We prune by posterior threshold. False alarms are the known cost of deep lattice search. We control them with Xu and Metze's classifier over duration and query-length features, optionally adding the conversational word-burst rescoring of Chiu et al..

Data. We use three testbeds. The first is Babel LimitedLP Assamese, Bengali and Lao, where recognizer error rates are 60 to 65%. We have the official in-language keyword lists translated into English by humans, creating English-to-X queries whose ground-truth locations are the official ones. The second is Fisher and Callhome Spanish–English. Because every Spanish utterance there has an English reference translation, an English keyword is relevant to an utterance whose reference contains it, which gives relevance labels at scale with no new annotation. The third is CoVoST 2, where we build queries the same way for several X→English directions to test breadth. We found no reported result on Lacuna for cross-lingual keyword search on any of these, so every number on the cross-lingual versions will be new.

Baselines

The naive reference point is a double one-best cascade. The query goes through one-best translation, the audio through one-best transcription, and the two are compared by exact word match. Everything we propose should beat it, and the margin tells us how much the two cascades cost together.

The strongest existing method for the monolingual part is Xu and Metze's probabilistic phonetic retrieval. We run it inside the cross-lingual pipeline by feeding it the one-best translated query, and again with our K translation candidates. It uses the same confusion networks, the same grapheme-to-phoneme models and the same false-alarm classifier as our system. Its reported monolingual ATWV is 0.2451 on Assamese and 0.2627 on Lao. We first reproduce these on the in-language queries, to confirm our recognizers are comparable, before comparing cross-lingually. Beating it means higher cross-lingual ATWV at matched false-alarm rate, with the gain concentrated on out-of-vocabulary and named-entity queries.

The strongest "translate the audio instead" competitor is the Lattice Transformer for Speech Translation. It translates recognizer lattices with lattice-constrained attention and reports 39.2 BLEU on Fisher/Callhome against 38.5 for a standard Transformer. We translate every utterance's lattice to English with it and search the output text with the English query. Its model is trained on the same Fisher/Callhome parallel data and tuned with the same number of development runs we allow ourselves.

A textless end-to-end speech-translation baseline from the CoVoST 2 recipe is included on CoVoST 2 and Fisher. Its translations are searched the same way.

Three ablations isolate our ingredients. The first swaps the learned encoder for uniform Levenshtein distance and, separately, for an edit distance whose substitution costs come from the phone-confusion matrix mined from the same training alignments. This cheap learned-cost matcher is the most serious threat to the encoder. The second swaps phoneme input for letter input. The third sets $K=1$ to remove translation uncertainty. All systems share one development set for threshold tuning.

Why not just…?

Why not just translate an N-best list of transcripts and pool the results? Pal et al. show that truncated N-best lists drop exactly the low-confidence alternatives that confusion networks keep, and translation cost grows linearly in N. We still run N-best at N equal to 10 as an extra point on the Fisher/Callhome curve. If it matches the confusion-network version on out-of-vocabulary queries, we will report that the lattice structure adds little in this setting.

Why not just use a phone-confusion-weighted edit distance instead of a neural encoder? This is a real threat. For single-word matching, a well-estimated confusion-cost edit distance may be nearly as accurate as our encoder. The ablation above settles it directly. If accuracy ties, the encoder's remaining case rests on two things. The first is indexing speed, which we measure as queries per second on a full Babel archive with approximate nearest-neighbour search versus exhaustive edit-distance scoring. The second is shared multilingual training for the lowest-resource language. If neither holds up, we will drop the encoder and present the contribution as joint marginalization over speech and translation hypotheses, which the $K$ and span ablations test independently.

Why not just use end-to-end speech translation and skip both cascades? CoVoST 2 reports only 15.9 average BLEU for a 956M-parameter model and 4.0 zero-shot. In ten-hour Babel conditions there is no speech-translation corpus to train one. We include it where data exists so the comparison is measured, not assumed.

Why not just paste flattened confusion networks into a large language model? Everson et al. report that this closes 81% of the exact-match gap on spoken question answering at about 20% error rate. The same paper reports that it falls below one-best when error exceeds 70% and fails for small models. Babel operates near 60 to 65% error, and archive-scale search rules out a prompt per utterance. DUAL's textless units cannot accept an English text query at all, so they are not a competitor for this task.

Proposed Experiments

The main result is cross-lingual ATWV on Babel Assamese, Bengali and Lao and on Fisher/Callhome, reported separately for in-vocabulary, out-of-vocabulary and named-entity queries. Two checks decide whether the core claim holds.

The first is a compounding test. For each query class we measure the hit rate with only translation made soft, with only recognition made soft, and with both. The claim predicts that for out-of-vocabulary names the joint gain exceeds the sum of the single gains, because a hit requires both to succeed. For common in-vocabulary words the gains should be roughly additive and small. If the joint gain turns out additive everywhere, the argument for a single unified score collapses, and the result reduces to two independent improvements.

The second check is the encoder ablation against confusion-weighted edit distance, run on Lao, the smallest language. There, shared multilingual training is the only plausible reason a learned encoder should win.

We also report false alarms per hour, and the latency of the Lattice Transformer route compared with ours. The Lattice Transformer paper reports roughly 40% extra inference time for translating lattices alone, and archive-scale search makes that cost matter.