[Paper Review] Edit Distance of Finite State Transducers
This paper introduces a metric-based framework to compare finite state transducers beyond functional equivalence by defining the edit distance between transductions as the supremum of edit distances between their outputs across all inputs. For common integer-valued edit distances—such as Hamming, transposition, conjugacy, and Levenshtein family—the closeness and k-closeness problems are decidable for functional transducers, and the distance is computable, with the problem lying in co-NP ∩ NP.
We lift metrics over words to metrics over word-to-word transductions, by defining the distance between two transductions as the supremum of the distances of their respective outputs over all inputs. This allows to compare transducers beyond equivalence. Two transducers are close (resp. $k$-close) with respect to a metric if their distance is finite (resp. at most $k$). Over integer-valued metrics computing the distance between transducers is equivalent to deciding the closeness and $k$-closeness problems. For common integer-valued edit distances such as, Hamming, transposition, conjugacy and Levenshtein family of distances, we show that the closeness and the $k$-closeness problems are decidable for functional transducers. Hence, the distance with respect to these metrics is also computable. Finally, we relate the notion of distance between functions to the notions of diameter of a relation and index of a relation in another. We show that computing edit distance between functional transducers is equivalent to computing diameter of a rational relation and both are a specific instance of the index problem of rational relations.
Motivation & Objective
- To develop a formal framework for comparing transducers based on edit distances between their outputs, extending beyond mere functional equivalence.
- To investigate the decidability of closeness and k-closeness problems for functional transducers under various integer-valued edit metrics.
- To relate transducer distance to broader automata-theoretic concepts such as the diameter of rational relations and the index of one relation in the composition closure of another.
- To establish computational complexity bounds for the distance computation problem, showing it lies in co-NP ∩ NP for key edit distances.
Proposed method
- Define the distance between two transductions as the supremum of edit distances between their output words over all common inputs.
- Reduce the problem of computing transducer distance to deciding closeness and k-closeness under integer-valued edit metrics.
- Construct polynomial-sized acyclic automata from strongly connected components of transducer automata to simulate output transformations.
- Use forward and backward gadgets per SCC to track edit operations (e.g., substitutions or adjacent transpositions) during path traversal.
- Leverage topological sorting and state merging to ensure acyclicity and enable bounded path analysis.
- Reduce the distance computation to a boundedness problem in NP and co-NP, using iterative k-closeness checks.
Experimental results
Research questions
- RQ1Is the distance between two functional finite state transducers computable under common edit distances such as Hamming, transposition, conjugacy, and Levenshtein?
- RQ2Can the closeness and k-closeness problems for transducers be decided for these edit metrics?
- RQ3Is the problem of computing the edit distance between transducers in co-NP ∩ NP for these metrics?
- RQ4How is the distance between transducers related to the diameter of rational relations and the index of one relation in the composition closure of another?
- RQ5Can the framework be extended to two-way or polyregular transducers, or to infinite words?
Key findings
- The closeness and k-closeness problems are decidable for functional transducers under Hamming, transposition, conjugacy, and Levenshtein family edit distances.
- Computing the edit distance between transducers is equivalent to deciding closeness and k-closeness for integer-valued metrics.
- The distance computation problem lies in co-NP ∩ NP for Hamming and transposition distances, with a polynomial-time construction of an acyclic automaton for bounded analysis.
- The diameter of a rational relation is computable and equivalent to the distance between two transductions via Nivat’s theorem.
- The problem reduces to checking bounded edit operations on paths in an acyclic automaton derived from SCCs of the transducer’s state graph.
- The framework generalizes to rational relations, showing that transducer distance is a special case of the index problem and diameter computation in rational relations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.