Generative retrieval is an emerging paradigm for LLM-based recommendation, where the model generates item identifiers directly. In industrial settings, however, the output space often needs to be restricted to a constrained subset of items, which requires specialized decoding procedures.
Constrained decoding typically relies on a trie — a tree structure that encodes valid output sequences. While effective, trie traversal can be poorly suited to the parallel, vectorized execution models of modern accelerators, creating a performance bottleneck.
The paper introduces a vectorized trie representation that aligns constrained decoding with accelerator hardware. By restructuring trie operations as dense, batched computations, the method aims to make constrained generation faster and more practical for large-scale recommender systems.