Abstract
In formal language theory, the transition from qualitative models (accepting or rejecting strings) to quantitative models (computing values) has led to a fragmented landscape of automata. This paper introduces Value Automata with Filters (VAF), a theoretical framework that unifies disparate models such as Weighted Automata, Cost Register Automata, and Parikh Automata. By incorporating a post-computation "filtering" mechanism, VAFs provide a robust lens through which to compare the expressive power and computational properties of these varied systems.
Introduction
Traditional automata theory is primarily concerned with the Boolean classification of strings. However, many modern applications—ranging from formal verification to natural language processing—require machines that output numerical values, such as costs, weights, or counts.
Two dominant paradigms have emerged for this purpose: Weighted Automata (WA), which are inherently nondeterministic and aggregate weights along paths, and Cost Register Automata (CRA), which are typically deterministic and utilize registers to store and update values. The gap between these models is significant: WA's nondeterminism is difficult to reconcile with the register-based updates of CRA without losing structural information. The VAF model bridges this gap by introducing a nondeterministic register machine equipped with a "filter" to prune invalid computation paths.
The VAF Framework
A Value Automaton with Filter (VAF) is defined by several core components that allow it to simulate a wide range of existing models:
- Semiautomaton: A standard finite-state transition system that governs the movement between states based on input symbols.
- Registers: A vector of values updated during each transition. These updates are governed by specific algebraic expressions.
- Update Classes: The complexity of the machine is often determined by its update rules. Common classes include Scale updates ($x \leftarrow x \times c$) and Affine updates ($x \leftarrow M\vec{x} + \vec{v}$).
- The Filter ($F$): This is the framework's primary innovation. After a computation path is completed, the machine checks if the final register vector resides within a specific set $F$. If the vector fails this check, the path is discarded.
- Aggregation: The values from all valid (filtered) paths are combined using a specific operation, such as addition, to produce the final output.
Key Insights: The Power of Filtering
The introduction of the filter allows VAFs to formalize the "sieve" process inherent in many complex automata. For instance, a Parikh automaton—which counts symbol occurrences and checks if the counts fall within a semilinear set—can be viewed as a VAF where the filter represents that semilinear set.
This unified view reveals that many complex models are essentially register machines where the final output is contingent upon the registers satisfying a specific end-of-computation condition (e.g., a counter returning to zero). By varying the Update Class and the Filter Class, researchers can recreate and compare existing models as specific instances of the VAF framework.
Expressiveness and Theoretical Results
The paper establishes several critical equivalences and hierarchical relationships:
- Equivalence to Weighted Automata: The authors prove that a restricted VAF using only "Scale" updates and no filtering is exactly equivalent to standard Weighted Automata.
- Simulation of Parikh Automata: The framework successfully maps deterministic, unambiguous, and nondeterministic Parikh automata to VAFs using "Trans" updates ($x \leftarrow x + c$) and first-order definable filters.
- Determinization: A significant portion of the research explores the boundaries of determinism. The authors demonstrate that if update functions are sufficiently powerful (e.g., allowing register-to-register moves like $x_i \leftarrow x_j$), nondeterminism does not necessarily increase the expressive power of the model.
- Expressiveness Hierarchy: Through Theorems 3.5 and 3.8, the paper establishes a clear hierarchy, showing how specific restrictions on register updates and filter conditions directly impact the machine's ability to compute complex value functions.
Conclusion and Future Work
Value Automata with Filters provide a long-sought unification of quantitative automata models. While the current framework is mathematically rigorous, the authors identify several avenues for future research. These include a more exhaustive analysis of the decidability and computational complexity of various VAF variants, as well as exploring the implications of relaxing algebraic constraints (such as commutativity and associativity) within the underlying value structures. As an ongoing work, the VAF model serves as a foundational step toward a more cohesive theory of quantitative formal languages.
Summary updated