Algorithms for Acyclic Weighted Finite-State Automata with Failure Arcs

01/17/2023
by   Anej Svete, et al.
0

Weighted finite-state automata (WSFAs) are commonly used in NLP. Failure transitions are a useful extension for compactly representing backoffs or interpolation in n-gram models and CRFs, which are special cases of WFSAs. The pathsum in ordinary acyclic WFSAs is efficiently computed by the backward algorithm in time O(|E|), where E is the set of transitions. However, this does not allow failure transitions, and preprocessing the WFSA to eliminate failure transitions could greatly increase |E|. We extend the backward algorithm to handle failure transitions directly. Our approach is efficient when the average state has outgoing arcs for only a small fraction s ≪ 1 of the alphabet Σ. We propose an algorithm for general acyclic WFSAs which runs in O(|E| + s |Σ| |Q| T_maxlog|Σ|), where Q is the set of states and T_max is the size of the largest connected component of failure transitions. When the failure transition topology satisfies a condition exemplified by CRFs, the T_max factor can be dropped, and when the weight semiring is a ring, the log|Σ| factor can be dropped. In the latter case (ring-weighted acyclic WFSAs), we also give an alternative algorithm with complexity O(|E| + |Σ| |Q| min(1,sπ_max) ), where π_max is the size of the longest failure path.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/10/2020

A translation of weighted LTL formulas to weighted Büchi automata over ω-valuation monoids

In this paper we introduce a weighted LTL over product ω-valuation monoi...
research
08/27/2023

An Analysis of On-the-fly Determinization of Finite-state Automata

In this paper we establish an abstraction of on-the-fly determinization ...
research
07/23/2018

Simulation Algorithms for Symbolic Automata (Technical Report)

We investigate means of efficient computation of the simulation relation...
research
11/27/2017

Efficient reduction of nondeterministic automata with application to language inclusion testing

We present efficient algorithms to reduce the size of nondeterministic B...
research
10/13/2022

Algorithms for Weighted Pushdown Automata

Weighted pushdown automata (WPDAs) are at the core of many natural langu...
research
10/16/2019

On the complexity of acyclic modules in automata networks

Modules were introduced as an extension of Boolean automata networks. Th...
research
11/13/2021

Improving the Otsu Thresholding Method of Global Binarization Using Ring Theory for Ultrasonographies of Congestive Heart Failure

Ring Theory states that a ring is an algebraic structure where two binar...

Please sign up or login with your details

Forgot password? Click here to reset