Table of Contents
Fetching ...

Minimizing Cost Register Automata over a Field

Yahia Idriss Benalioua, Nathan Lhote, Pierre-Alain Reynier

TL;DR

This work addresses the problem of minimizing Cost Register Automata (CRA) over a field by exploiting invariants of Weighted Automata (WA), specifically the strongest Z-linear (linear) or Z-affine invariants (linear/affine hulls). It establishes a rigorous correspondence between WA invariants and the state and register requirements of linear/affine CRA, enabling precise minimization results: register minimization is decidable in 2-ExpTime and state-register minimization in NExpTime, with improvements to ExpTime in special cases such as commuting transition matrices or unary alphabets. The authors introduce two new algorithms to compute the invariants (and thus the CRA) and extend the framework to affine CRA, offering a coherent view of the tradeoffs between states and registers via the invariant dimensions and lengths. This yields practical decision procedures for WA/CRA minimization and deepens the theoretical understanding of how algebraic invariants govern automata expressiveness and resource use.

Abstract

Weighted automata (WA) are an extension of finite automata that define functions from words to values in a given semiring. An alternative deterministic model, called Cost Register Automata (CRA), was introduced by Alur et al. It enriches deterministic finite automata with a finite number of registers, which store values, updated at each transition using the operations of the semiring. It is known that CRA with register updates defined by linear maps have the same expressiveness as WA. Previous works have studied the register minimization problem: given a function computable by a WA and an integer k, is it possible to realize it using a CRA with at most k registers? In this paper, we solve this problem for CRA over a field with linear register updates, using the notion of linear hull, an algebraic invariant of WA introduced recently by Bell and Smertnig. We then generalise the approach to solve a more challenging problem, that consists in minimizing simultaneously the number of states and that of registers. In addition, we also lift our results to the setting of CRA with affine updates. Last, while the linear hull was recently shown to be computable by Bell and Smertnig, no complexity bounds were given. To fill this gap, we provide two new algorithms to compute invariants of WA. This allows us to show that the register (resp. state-register) minimization problem can be solved in 2-ExpTime (resp. in NExpTime).

Minimizing Cost Register Automata over a Field

TL;DR

This work addresses the problem of minimizing Cost Register Automata (CRA) over a field by exploiting invariants of Weighted Automata (WA), specifically the strongest Z-linear (linear) or Z-affine invariants (linear/affine hulls). It establishes a rigorous correspondence between WA invariants and the state and register requirements of linear/affine CRA, enabling precise minimization results: register minimization is decidable in 2-ExpTime and state-register minimization in NExpTime, with improvements to ExpTime in special cases such as commuting transition matrices or unary alphabets. The authors introduce two new algorithms to compute the invariants (and thus the CRA) and extend the framework to affine CRA, offering a coherent view of the tradeoffs between states and registers via the invariant dimensions and lengths. This yields practical decision procedures for WA/CRA minimization and deepens the theoretical understanding of how algebraic invariants govern automata expressiveness and resource use.

Abstract

Weighted automata (WA) are an extension of finite automata that define functions from words to values in a given semiring. An alternative deterministic model, called Cost Register Automata (CRA), was introduced by Alur et al. It enriches deterministic finite automata with a finite number of registers, which store values, updated at each transition using the operations of the semiring. It is known that CRA with register updates defined by linear maps have the same expressiveness as WA. Previous works have studied the register minimization problem: given a function computable by a WA and an integer k, is it possible to realize it using a CRA with at most k registers? In this paper, we solve this problem for CRA over a field with linear register updates, using the notion of linear hull, an algebraic invariant of WA introduced recently by Bell and Smertnig. We then generalise the approach to solve a more challenging problem, that consists in minimizing simultaneously the number of states and that of registers. In addition, we also lift our results to the setting of CRA with affine updates. Last, while the linear hull was recently shown to be computable by Bell and Smertnig, no complexity bounds were given. To fill this gap, we provide two new algorithms to compute invariants of WA. This allows us to show that the register (resp. state-register) minimization problem can be solved in 2-ExpTime (resp. in NExpTime).
Paper Structure (28 sections, 23 theorems, 8 equations, 6 figures, 1 algorithm)

This paper contains 28 sections, 23 theorems, 8 equations, 6 figures, 1 algorithm.

Key Result

Proposition 3

Let $\mathcal{R} = (u,\mu,v)$ be a $d$-dimensional $\mathrm{WA}$ and let $\textup{LR}\left(\mathcal{R}\right) = u \mu(\Sigma^*) = \left\{ u \mu(w) \,\middle|\, w \in \Sigma^* \right\}$ be its (left) reachability set and $\textup{RR}\left(\mathcal{R}\right) = \mu(\Sigma^*) v$ be its right reachabilit

Figures (6)

  • Figure 1: The WA of Example \ref{['ex:WA']}.
  • Figure 2: Two CRA detailed in Example \ref{['ex:CRA']}. Registers are denoted by letters $X,Y$.
  • Figure 3: Two CRA detailed in Example \ref{['ex:sumPow2CRA']}.
  • Figure 4: Reachability set of the $\mathrm{WA}\xspace$ of Example \ref{['ex:sumPow2']}.
  • Figure 5: Tradeoff between number of states and registers: drawing the shape of the set of optimal pairs.
  • ...and 1 more figures

Theorems & Definitions (48)

  • Definition 1: Weighted Automaton
  • Example 2
  • Proposition 3
  • Definition 4: Cost Register Automaton
  • Example 5: Example \ref{['ex:WA']} continued
  • Definition 6: Linear/Affine $\mathrm{CRA}$
  • Remark 7
  • Proposition 8: AlurDDRY13
  • Example 9: Example \ref{['ex:WA']} continued
  • Remark 10
  • ...and 38 more