Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
Grammar-constrained decoding (GCD) forces LLM outputs to conform to a specified grammar. During sampling, GCD applies a mask to the model’s next-token distribution, ruling out tokens that would leave no grammar-valid continuation. For context-free grammars, token admissibility under this mask depends on the parser state. Existing CFG-capable systems commonly resolve this dependence by exploring parser behavior online during mask generation. For delimiter-rich JSON-schema workloads this online work is often small enough that optimized systems are already practical; it becomes a sharper issue for tail predictability and for grammars whose lexer/parser interactions are less JSON-like. This paper presents GLRMask, a GCD system that compiles the parser-state-dependent part of token admissibility ahead of time. Given a grammar and a vocabulary, GLRMask constructs a deterministic weighted automaton, the Parser DWA, whose input symbols are parser-stack symbols and whose weights are Boolean masks over lexer-state/token pairs. At runtime, mask generation traverses the graph-structured parser stack through this automaton one symbol at a time, with each transition’s Boolean weight narrowing a running set of allowed tokens as it is taken. The traversal treats the parser stack as read-only. State-mutating parser actions are confined to commit, which advances the parser with the sampled token. On 2,925,983 aligned token positions from JSONSchemaBench, Static GLRMask has a median Time Between Masks of 2.54 µs, a p99 of 9.54 µs and a maximum of 59.3 µs, compared with 8.71 µs, 379.6 µs and 7.84 ms for llguidance.
DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) 2023 · 2023 · 79073 citations90% match
Journal of Machine Learning Research 2003 · 2003 · 27075 citations90% match
2014 · 24939 citations90% match
2001 · 21904 citations90% match
arXiv (Cornell University) 2013 · 2013 · 18054 citations90% match
arXiv (Cornell University) 2014 · 2014 · 14617 citations90% match
Communications of the ACM 1995 · 1995 · 14194 citations90% match
No comments yet — start the discussion below.
Journal of Cross-Cultural Psychology 1970 · 1970 · 13711 citations90% match
ScholarlyCommons (University of Pennsylvania) 2001 · 2001 · 12994 citations90% match
Language 2000 · 2000 · 11686 citations90% match