Trie Automata for Constrained Decoding over Large Finite Sets
12 Aug · Xingzi Xu, Karim Bouyarmane · arXiv:2608.12574
Large language models increasingly need to generate structured outputs that conform to predefined schemas, with one common constraint being selection from a finite set of valid strings. Current constrained decoding systems handle this through general-purpose grammar compilation, which becomes prohibitively slow as the number of valid values grows into the thousands, a cardinality wall. We introduce the trie…