Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
153 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
45 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Approximating probabilistic models as weighted finite automata (1905.08701v3)

Published 21 May 2019 in cs.CL, cs.FL, cs.IT, and math.IT

Abstract: Weighted finite automata (WFA) are often used to represent probabilistic models, such as $n$-gram LLMs, since they are efficient for recognition tasks in time and space. The probabilistic source to be represented as a WFA, however, may come in many forms. Given a generic probabilistic model over sequences, we propose an algorithm to approximate it as a weighted finite automaton such that the Kullback-Leiber divergence between the source model and the WFA target model is minimized. The proposed algorithm involves a counting step and a difference of convex optimization step, both of which can be performed efficiently. We demonstrate the usefulness of our approach on various tasks, including distilling $n$-gram models from neural models, building compact LLMs, and building open-vocabulary character models. The algorithms used for these experiments are available in an open-source software library.

Citations (10)

Summary

We haven't generated a summary for this paper yet.