TruncProof is a grammar-constrained decoding method that enforces token-length limits on LLM-generated JSON by using LL(1) parser lookahead to estimate remaining tokens needed for syntactic validity.
Lark - A Parsing Toolkit for Python
1 Pith paper cite this work. Polarity classification is still indexing.
1
Pith paper citing it
fields
cs.CL 1years
2026 1verdicts
UNVERDICTED 1representative citing papers
citing papers explorer
-
TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints
TruncProof is a grammar-constrained decoding method that enforces token-length limits on LLM-generated JSON by using LL(1) parser lookahead to estimate remaining tokens needed for syntactic validity.