Global News Digest

arXiv

EPIC: Efficient and Parallel Inference under CFG Constraints for Diffusion Language Models

Title: EPIC: Streamlining and Parallelizing Inference for Diffusion Language Models under CFG Constraints

Abstract

Ensuring the structural integrity, reliability, and practical applicability of language model outputs is a critical requirement, a need that extends equally to diffusion-based language models. While recent breakthroughs in decoding techniques have expanded output control to encompass context-free grammar (CFG) constraints, current approaches suffer from significant performance penalties. Specifically, these existing methods can operate up to four times slower than unconstrained decoding. More critically, they erode a primary benefit of diffusion models over autoregressive ones: the capacity for parallel decoding. This inefficiency stems from the substantial overhead introduced by sequential validity checks during parallel generation processes.

To overcome these hurdles, we introduce EPIC, a novel framework designed for efficient CFG-constrained decoding. EPIC enhances computational efficiency through a three-pronged approach: implementing lexing memoization, adopting Earley-style parsing for validation rather than deterministic automata, and employing a relaxed compatible subset selection mechanism for parallel token commitment. By minimizing redundant lexing and validation costs, EPIC enables the simultaneous commitment of multiple compatible tokens.

Our empirical evaluation across four models and three benchmarks demonstrates that EPIC significantly outperforms state-of-the-art CFG-constrained decoding methods. Specifically, the framework achieves a reduction in inference time of up to 67.5% and cuts additional overhead by as much as 90.5%. The source code for our implementation is publicly accessible at https://github.com/hyundong98/EPIC-Decoding.git.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Schroders Renewable Unit Targets AI Assets as Power Demand Soars
Bloomberg

Schroders Renewable Unit Targets AI Assets as Power Demand Soars

Schroders’ renewable unit targets AI infrastructure, pivoting to meet soaring energy demand from artificial intelligence...

State Street's Paglia on SBI Group Partnership, ETFs
Bloomberg

State Street's Paglia on SBI Group Partnership, ETFs

State Street's Paglia discusses the SBI Group partnership and ETFs, but the source text is missing. Please provide the a...

Nvidia Boss Says Workers Should Be Paid ‘as Much as Possible’
Bloomberg

Nvidia Boss Says Workers Should Be Paid ‘as Much as Possible’

Nvidia CEO Jensen Huang advocates for paying workers “as much as possible,” emphasizing maximum compensation. This stanc...

TSE Talking With Regulator For Easing ETF Listing Rules
Bloomberg

TSE Talking With Regulator For Easing ETF Listing Rules

The Tokyo Stock Exchange is discussing with regulators to ease ETF listing rules. This aims to simplify market access an...

S&P DJI CEO on Japan Markets, Mega IPOs
Bloomberg

S&P DJI CEO on Japan Markets, Mega IPOs

S&P DJI CEO discusses Japan's financial markets and major IPOs.