On deterministic weighted automata☆
Introduction
Classical nondeterministic finite automata admit a well known extension, in which each transition is weighted (typically) by an element of some semiring [7], [22]. Such automata – usually known as weighted automata – realise formal power series instead of recognising languages, and they have been studied extensively both from the theoretical point of view and in connection with their practical applications. The reader might consult [7] for an overview of some of the most important research directions.
For applications such as natural language processing [16], [20], input-determinism of weighted automata often turns out to be crucial. This basically means that the automaton has precisely one state with nonzero initial weight and there is at most one transition for each input symbol leading from each state. However, it is well known that not all weighted automata can be determinised [19], [21]. The research has thus focused mainly on providing sufficient conditions – both on the automaton and the underlying semiring – under which a weighted automaton admits a deterministic equivalent, and on devising efficient determinisation algorithms for automata satisfying such conditions [1], [15], [20], [21].
We shall focus here on a slightly different question: over which semirings all weighted automata can be determinised? This in fact amounts to the study of deterministic weighted automata from a negative point of view, as we shall see that the class of such semirings is fairly constrained.
More precisely, we shall deal with this question for two classes of deterministic weighted automata: for purely sequential weighted automata, in which terminal weights of states might only be chosen as zero or unity of the underlying semiring, and for sequential weighted automata, in which terminal weights can be arbitrary (the term “deterministic weighted automata” usually refers to the latter [21]). This terminology follows Lombardy and Sakarovitch [19]; it may differ significantly in other sources (in particular, purely sequential automata are often called sequential, while sequential automata are called subsequential [20]).
We shall prove that weighted automata over S always admit purely sequential equivalents if and only if S is a locally finite division semiring. Moreover, local finiteness of S is known to be sufficient to guarantee that all weighted automata over S have sequential equivalents [19]. We shall prove that if S has no element with infinitely many multiplicative left inverses, then this is also a necessary condition. In particular, if S is commutative or a division semiring, then weighted automata over S can always be sequentialised if and only if S is locally finite.
Finally, let us mention that there is a branch of research motivated by quantitative formal verification dealing with weighted – or quantitative – automata over various structures beyond semirings [2], [3], [4], [5], [6], [8], [9], [10], [11], [18]. We shall nevertheless confine ourselves to the classical setting of semirings in this article, making theoretical analysis more tractable. Possible extensions of the results presented herein to structures more general than semirings are left for further research.
Section snippets
Preliminaries
A monoid is a triple , where M is a set, ⋅ is an associative binary operation on M, and 1 is a neutral element with respect to ⋅. A commutative monoid is a monoid such that ⋅ is commutative. A semiring is a quintuple such that is a commutative monoid, is a monoid, the operation ⋅ distributes over + both from left and from right, and holds for all a in S. A commutative semiring is a semiring such that the monoid is commutative. A
Locally finite semirings
We shall now gather some simple facts about locally finite semirings. First, let us observe that local finiteness of a semiring is in fact equivalent to local finiteness of its multiplicative monoid.
Proposition 3.1 Let be a semiring. Then S is locally finite if and only if the monoid is locally finite. Proof The “only if” part of the statement is trivial. For the converse, let us assume that the monoid is locally finite. We shall prove that the semiring is locally finite
Purely sequential weighted automata
We shall now fully characterise the class of semirings S such that all weighted automata over S admit purely sequential equivalents by proving that this is the case if and only if S is a locally finite division semiring. We shall also observe that this property remains true after restricting the universe to unambiguous automata: purely sequential automata over S are strictly less powerful than unambiguous weighted automata over S whenever they are strictly less powerful than (general) weighted
Sequential weighted automata
Let us now consider sequential weighted automata. We shall prove that if S is a semiring that contains no element with infinitely many multiplicative left inverses (in particular, this is the case when S is a commutative semiring or a division semiring), then all weighted automata over S have sequential equivalents if and only if S is locally finite. We shall leave open the question if the assumption of S not containing elements with infinitely many multiplicative left inverses can be weakened
References (22)
- et al.
Weighted finite automata over hemirings
Theor. Comput. Sci.
(2013) - et al.
Weighted automata and weighted MSO logics for average and long-time behaviors
Inf. Comput.
(2012) - et al.
Alternating weighted automata over commutative semirings
Theor. Comput. Sci.
(2018) - et al.
Sequential?
Theor. Comput. Sci.
(2006) - et al.
Efficient algorithms for testing the twins property
J. Autom. Lang. Comb.
(2003) - et al.
Regular functions and cost register automata
- et al.
Value automata with filters
- et al.
Expressiveness and closure properties for quantitative languages
Log. Methods Comput. Sci.
(2010) - et al.
Quantitative languages
ACM Trans. Comput. Log.
(2010)