Neural Induction of Finite-State Transducers
Michael Ginn, Alexis Palmer, Mans Hulden
TL;DR
This work introduces a pipeline to automatically induce unweighted finite-state transducers (FSTs) from recurrent neural networks by capitalizing on the geometry of hidden states. The method aligns input-output pairs with CRPAlign, trains a one-layer Elman RNN with a transduction objective augmented by a spectral-norm penalty, collects hidden activations (including synthetic data to cover the input domain), clusters activations into FST states, and applies a state-splitting/minimization process to enforce determinism. Across morphological inflection, grapheme-to-phoneme, and historical normalization tasks, the extracted transducers achieve high accuracy and generally outperform traditional OSTIA-based baselines, approaching or matching human-expert performance in some cases. The results demonstrate the practicality of deriving high-performance symbolic transducers from neural models and highlight avenues for extending the approach with bidirectional architectures or transformers to handle more complex dependencies more effectively.
Abstract
Finite-State Transducers (FSTs) are effective models for string-to-string rewriting tasks, often providing the efficiency necessary for high-performance applications, but constructing transducers by hand is difficult. In this work, we propose a novel method for automatically constructing unweighted FSTs following the hidden state geometry learned by a recurrent neural network. We evaluate our methods on real-world datasets for morphological inflection, grapheme-to-phoneme prediction, and historical normalization, showing that the constructed FSTs are highly accurate and robust for many datasets, substantially outperforming classical transducer learning algorithms by up to 87% accuracy on held-out test sets.
