GramDelta
An incremental constrained decoding framework for append-only runtime grammar updates. By incrementally propagating grammar differences and using compilation-free factorized projection, it avoids reparsing the committed prefix and reduces the latency of dynamically grammar-constrained decoding.
Timeline (last 90 days)
The paper proposes GramDelta, an incremental constrained decoding framework for append-only runtime grammar updates.
The core idea of GramDelta is to avoid prefix replay: it maintains the parse state over the committed prefix and, when new grammar rules are added, propagates only the changes along the historical dependency graph.
GramDelta adopts a compilation-free factorized projection that maps the updated parse state to an exact next-token mask, avoiding recompiling the mask cache on every update.
While guaranteeing the same results as full rebuilding, GramDelta makes the update cost proportional to the impact scope of the actual grammar change rather than linearly proportional to the prefix length.
When there are no grammar updates, the additional overhead introduced by GramDelta is negligible.
Under continuous runtime grammar evolution, GramDelta reduces the median latency of first-appearing grammar updates by 10.7–11.5 times relative to the strongest rebuilding baseline.
GramDelta reduces the additional TPOT overhead relative to unconstrained decoding by 53.1–81.9%.
The paper's experiments cover four model configurations, but no specific model names or parameter scales are mentioned.
The paper does not discuss GramDelta's performance under very large grammars or extreme update frequencies.
The GramDelta framework is not yet open-sourced.
1 more timeline events
All Facts (11)
The paper proposes GramDelta, an incremental constrained decoding framework for append-only runtime grammar updates.
50%UnverifiedThe core idea of GramDelta is to avoid prefix replay: it maintains the parse state over the committed prefix and, when new grammar rules are added, propagates only the changes along the historical dependency graph.
50%UnverifiedGramDelta adopts a compilation-free factorized projection that maps the updated parse state to an exact next-token mask, avoiding recompiling the mask cache on every update.
50%UnverifiedWhile guaranteeing the same results as full rebuilding, GramDelta makes the update cost proportional to the impact scope of the actual grammar change rather than linearly proportional to the prefix length.
50%UnverifiedWhen there are no grammar updates, the additional overhead introduced by GramDelta is negligible.
50%UnverifiedUnder continuous runtime grammar evolution, GramDelta reduces the median latency of first-appearing grammar updates by 10.7–11.5 times relative to the strongest rebuilding baseline.
50%UnverifiedGramDelta reduces the additional TPOT overhead relative to unconstrained decoding by 53.1–81.9%.
50%UnverifiedThe paper's experiments cover four model configurations, but no specific model names or parameter scales are mentioned.
50%UnverifiedThe paper does not discuss GramDelta's performance under very large grammars or extreme update frequencies.
50%UnverifiedThe GramDelta framework is not yet open-sourced.
50%UnverifiedIn the future, such incremental techniques are expected to become a standard component of structured decoding engines.
50%