· Inference acceleration, Reasoning · Source

Seeing the End at Step Zero: Accelerating Diffusion MLLMs via MLP Sparsity-Aware Truncation

SourceFull paper

Article overview

Verdict

Seer is a convincing training-free method for accelerating diffusion multimodal LLM inference: it substantially reduces computation while preserving quality, but remains sensitive to boundary-detection errors and batch-length distributions.

Main idea

At the first denoising step, Seer detects the valid text-prefix boundary from a sparsity jump in early MLP layers, removes the redundant suffix for all later steps, and routes batches to suitable execution paths.

Mechanism

Specification: the state is a length-L sequence plus early-layer MLP sparsity; the boundary is the expected [EOT]/[EOS] after the semantic prefix and a low-variance padding plateau. At Step 0, the detector compares a pre-candidate sparsity baseline with a three-position look-ahead using jump and relative-SNR tests; the detected length is mapped to a static bucket. A fused Triton kernel then performs on-device slicing, repacking, bucket alignment, padding, and attention-mask rewriting. Padding Waste Ratio selects Static-Graph for low waste, Bucket-Varlen-Graph for dispersed lengths, and Bucket-Varlen-Eager for extreme outliers; pinned-memory flags let the CPU poll metadata without synchronization or large-tensor transfers. Reproduction: (1) collect early-layer Step-0 MLP sparsity; (2) apply the jump/SNR detector with look-ahead 3; (3) truncate suffixes after boundary detection; (4) implement device-resident packing and mask rewriting; (5) route using τpad; (6) measure throughput, latency, MAE, and accuracy. The exact detector formulas and full threshold implementation are not specified.

What this is useful for

The method is most applicable to diffusion multimodal LLMs with fixed or overlong windows, an early boundary signal, bidirectional attention, and batched serving with variable lengths. It is especially useful under high concurrency, where padding waste dominates dispatch cost.

Risks / not proven

Boundary errors can cause over-truncation and quality loss; MathVista has worse boundary accuracy than DocVQA. Gains depend on tuning: too small a look-ahead over-truncates, too large a window suppresses acceleration, and τpad≥0.7 reintroduces padding waste from long-tailed batches. Generalization to architectures, tokenizers, and regimes without a similar sparsity signal is not established; the exact detector formulas are not provided.

Full abstract

Diffusion Multimodal Large Language Models (DMLLMs) are highly effective for multimodal reasoning, yet their inference efficiency is significantly hindered by fixed-length generation constraints. Since the actual output length is unknown, output sequences are padded to a predefined maximum length, resulting in substantial redundant computation over unnecessary [EOS] tokens. In this work, we discover that DMLLMs implicitly reveal their valid semantic boundary at the very first denoising step through a distinct shift in MLP activation sparsity. Leveraging this observation, we propose Seer, a training-free framework that detects this boundary using a Signal-to-Noise Ratio (SNR)-based criterion and performs one-shot truncation of the redundant suffix for all subsequent computations. To preserve these theoretical gains during batched serving, Seer incorporates a hybrid execution strategy that maximizes throughput while seamlessly accommodating dynamic sequence lengths. Experimental results demonstrate that Seer effectively eliminates padding waste, accelerating throughput by up to $\sim$31$\times$. Across 9 benchmarks, Seer robustly maintains overall performance and even improves accuracy on complex visual tasks by mitigating noise leakage (e.g., DocVQA score increases from 63.52 to 63.66), offering a highly efficient, plug-and-play solution for DMLLM acceleration.

Source

BibTeX · RIS · Markdown · JSON