SemCurve BibTeX

SemCurve Semantic Token Ordering for Faithful Video Diffusion Acceleration

Qinfeng Xiao1 Chenhan Jiang2 Hui Liu3 Bo Yang1 Kit-lun Yick1 Fabio Poiesi4 Guofeng Mei4†

1Hong Kong Polytechnic University 2Hong Kong University of Science and Technology 3Huazhong University of Science and Technology 4Fondazione Bruno Kessler

†Corresponding author · Contact: qin-feng.xiao@connect.polyu.hk, gfmeiwhu@gmail.com

SemCurve overview: radar chart comparing fidelity and efficiency against SVG2, SVG-EAR, and HVA, denoising speedups on HunyuanVideo and Wan2.2, and split-frame Dense vs. SemCurve visual comparisons.
SemCurve at a glance. Left: comparisons with SVG2, SVG-EAR, and HVA showing dense-output fidelity, attention density, and VBench on HunyuanVideo alongside end-to-end DiT denoising speedup on both models. Right: split-frame comparisons of dense attention (left) and SemCurve (right) at matched prompts, seeds, and timestamps. Nearly continuous fur textures and window frames across the splits demonstrate high fidelity to the dense model.
36.90 dBPSNR vs. dense on 720p HunyuanVideo (+1.76 dB over best baseline)
1.69×end-to-end DiT speedup on H20 including warm-up & all overheads
23.5%exact-attention density via unmodified FlashAttention-3 paged KV
+0.48–1.76dB PSNR gain over the strongest baseline across all 3 720p tasks
1.01–1.02×dense kernel cost per unit density with zero tile padding

Abstract

Training-free sparse attention accelerates video diffusion, but position-based blocks ignore visual content, while feature clusters either fit GPU tiles poorly or split coherent regions. We introduce SemCurve, which decouples semantic grouping from execution by ordering post-RoPE queries and keys along 1D semantic curves. Minimum-spanning-tree traversal and within-cluster seriation keep fixed-size blocks and pages coherent across cluster boundaries for unmodified paged attention kernels. A key-variance correction improves skipped-page compensation, and error-aware routing reserves budget for poorly compensated pages. Under classifier-free guidance (CFG), our coherent routing strategy shares pass-averaged semantic curves and unites per-pass page selections, mitigating error amplification without dropping pass-specific pages. On 720p HunyuanVideo and Wan2.2, SemCurve improves PSNR against the dense video by 0.48–1.76 dB over the strongest baseline, at equal or higher speed than clustering baselines, and reaches 36.90 dB at a 1.69× speedup on HunyuanVideo.

+3.84 dB · 0 padding

Semantic curves decouple grouping from execution

MST preorder over cluster centroids plus within-cluster seriation keeps fixed 128×64 blocks and pages coherent even when 55–87% straddle cluster boundaries, running on unmodified FlashAttention-3 paged KV.

+1.59 dB · +1.80 dB

Variance-aware compensation & error-aware routing

A closed-form isotropic Gaussian key-variance term corrects Jensen underestimation of skipped pages (+1.59 dB over mean-only), while a 2m0 budget floor reserves slots for high-residual pages (+1.80 dB over top-p).

+0.86–2.30 dB · faster

CFG-coherent routing suppresses guided error

Single-pass accuracy does not predict CFG fidelity. Sharing pass-averaged curves and uniting page selections cuts guided attention error by 1.3–3.5× while saving 2.7 s/step in clustering overhead.

The method

Decouple semantic grouping from fixed-size paged execution

Cluster boundaries do not have to be computation boundaries. SemCurve uses feature clusters solely to build a smooth 1D ordering of post-RoPE tokens, slices that curve into uniform hardware-friendly query blocks and KV pages, compensates skipped pages with a second-order variance correction, and aligns both passes under classifier-free guidance.

SemCurve pipeline diagram showing A Semantic Curve, B Fixed-size Pages, C Error-aware Routing, and D Attention and Compensation.
Overview of SemCurve. (A) Post-RoPE queries and keys are ordered along 1D semantic curves via centroid MST traversal and within-cluster seriation. (B) Curves are sliced into uniform 128-token query blocks and 64-token key/value pages. (C) Error-aware routing selects top-mass and high-residual pages. (D) Selected pages run on unmodified FlashAttention-3 paged KV and merge with variance-aware skipped-page compensation via partial softmax.
Method Category Token Layout Exact Unit Skipped-Token Compensation
SpargeAttn / Jenga / DFSAttnPosition-based3D space-filling curveFixed blockNone
SVG2 / HVACluster-basedSemantic / merged clustersVariable cluster pairNone
SVG-EARCluster-basedSemantic clustersVariable cluster pairCentroids (mean only)
ClusterAttentionCluster-basedSplit clustersFixed tileCentroids (mean only)
SemCurve (ours)Cluster-basedSemantic curve + clustersFixed page (64 toks)Mean + key variance

Qualitative comparisons

Faithful to dense generation across 720p T2V and I2V

Matched-seed 720×1280 comparisons against Dense attention and training-free sparse baselines. Select a task and example below; click any image to inspect full-resolution crops.

Main results

Fidelity and speed on 720p video diffusion

Evaluated on 50 VBench / VBench-I2V test prompts per setting at 720×1280 in bf16 (50 steps) on NVIDIA H20. PSNR, SSIM, and LPIPS (AlexNet) measure faithfulness to the dense reference; speedup averages end-to-end dense-to-sparse DiT latency ratios including warm-up and overheads. Click any column header to sort.

Position-based Cluster-based SemCurve (ours)

Superscripts on SemCurve show differences vs. the strongest fidelity baseline (SVG-EAR on T2V, HVA on I2V). †Method-specific density accounting. Hyperparameters tuned on HunyuanVideo dev prompts are transferred zero-shot to Wan2.2.

Ablation study

Every design choice contributes to fidelity and speed

Single-pass components are ablated on 48 HunyuanVideo development prompts (5 dense warm-up steps), and CFG routing is evaluated on 50 Wan2.2 test prompts per task.

Efficiency analysis

Pareto-optimal fidelity–speed trade-off and runtime breakdown

Sweeping the cumulative mass threshold τ ∈ {0.5, 0.6, 0.7, 0.8} smoothly trades PSNR for speed, dominating all non-quantized baselines. Hover over any data point or bar segment for exact numbers.

Quality–speed trade-off (PSNR vs. Speedup) Shaded area indicates operating points dominated by SemCurve.
Per-prompt DiT latency breakdown Seconds and speedup on one NVIDIA H20 (50 steps, 720p).
3.6–4.2× Curve refresh amortization. Rebuilding the MST every Tref = 5 steps cuts construction time from 76.8 ms to 18.2 ms (Layer 10) with virtually unchanged error (0.0300 vs. 0.0302).
1.01–1.02× Kernel regularity. Lowest attention kernel cost per unit density among clustering methods (vs. 1.11× HVA and 1.22–1.25× SVG2/SVG-EAR) by eliminating tile padding.
67.8–82.5% Attention dominance. Dense self-attention accounts for 67.8% of DiT latency on Wan2.2 T2V and 82.5% on HunyuanVideo, capping zero-cost sparse speedups at 2.10× and 2.85×.
1 Lloyd iter Warm-started tracking. Centroids initialize at step 0 and track gradual feature evolution with a single warm-started k-means iteration per subsequent step.

Citation

BibTeX

If you find SemCurve useful in your research, please consider citing our paper.

@article{xiao2026semcurve,
  title   = {Semantic Token Ordering for Faithful Video Diffusion Acceleration},
  author  = {Xiao, Qinfeng and Jiang, Chenhan and Liu, Hui and Yang, Bo and Yick, Kit-lun and Poiesi, Fabio and Mei, Guofeng},
  journal = {arXiv preprint},
  year    = {2026}
}