Abstract
We propose an algorithm to find the best path through an intersection of arbitrarily many weighted automata, without actually performing the intersection. The algorithm is based on dual decomposition: the automata attempt to agree on a string by communicating about features of the string. We demonstrate the algorithm on the Steiner consensus string problem, both on synthetic data and on consensus decoding for speech recognition. This involves implicitly intersecting up to 100 automata.
Introduction
In natural language processing, constraints and models are frequently represented as weighted finite-state automata (WFSAs). To find a solution satisfying multiple models, we typically perform an intersection. However, intersection is multiplicative: intersecting $K$ automata with $n$ states each can result in a machine with $n^K$ states. This "state explosion" makes standard shortest-path algorithms infeasible for large $K$. This problem is exemplified by the Steiner consensus string problem—finding a string with minimum total edit distance to a set of given strings—which is NP-hard.
Methodology: Dual Decomposition for Strings
The proposed method avoids explicit intersection by employing dual decomposition, a technique from combinatorial optimization.
Decomposition and Agreement
Instead of solving one massive problem, the task is decomposed into $K$ independent subproblems, one for each WFSA. To ensure these subproblems converge on a single shared string, an "agreement machine" ($G$) is defined. This machine tracks specific features of the strings, such as n-gram counts.
Lagrangian Relaxation
The algorithm uses Lagrangian relaxation to introduce penalties or rewards ($\lambda$) that encourage consensus. If one automaton selects a string containing a specific n-gram while others do not, the algorithm adjusts the weights for that n-gram in subsequent iterations.
Incremental Feature Expansion
To maintain efficiency, the agreement machine starts with simple features (unigrams and bigrams). More complex features (e.g., trigrams) are added incrementally only when subproblems agree on short contexts but disagree on the full string. This process continues via subgradient descent until all subproblems settle on the same string, providing a mathematical certificate of global optimality.
Experimental Evaluation
The approach was evaluated on synthetic data and real-world speech recognition (ASR) tasks.
Datasets
- ASR Consensus: 226 lattices from the Broadcast News dataset (NIST dev04f), aiming to find the consensus string among the top $K=25$ hypotheses.
- Synthetic Data: Randomly generated base strings mutated via a noisy channel, with $K$ up to 100, varying string lengths, and vocabulary sizes.
Key Results
The algorithm successfully scaled to intersecting 100 automata on synthetic data, a task impossible via explicit intersection. In ASR tasks, it converged to an exact solution in 85% of cases within 1,000 iterations.
The incremental feature expansion proved significantly faster than fixed high-order models, reducing average runtime from 32 seconds to 19 seconds in one test set. Convergence was found to be more challenging when input strings were highly dissimilar or when the alphabet size was small, leading to n-gram collisions.
Discussion and Future Work
A key innovation of this work is negotiating via n-gram counts rather than position-specific characters, which allows for effective consensus even with unaligned strings of different lengths. Unlike heuristic methods like beam search, this approach provides a certificate of optimality upon convergence.
Limitations include the lack of worst-case runtime guarantees and the potential for negative weight cycles in cyclic automata. Future research may explore non-deterministic agreement machines to handle latent variables like alignments, and applications in biological sequence alignment.
Summary updated