QASK-Edit: Adaptive Sparse Attention Across Queries and Key Sources for Efficient Video Editing

Hengrui Liu, Wenbo Xu, Ziqi Sheng, Wei luarXiv 2026

TL;DR

QASK-Edit is a training-free sparse attention framework that significantly speeds up Diffusion Transformer (DiT)-based video editing. By recognizing that attention requirements vary wildly across different input sources (like source videos vs. text prompts) and individual queries, it dynamically allocates computation where it’s needed most, achieving up to 1.46× end-to-end speedup without sacrificing editing quality.

What Problem Does This Paper Address?

Video editing has been revolutionized by Diffusion Transformers (DiTs), which allow for complex modifications like changing a character's clothes or swapping a background. However, these models are computationally expensive. During inference, the model must simultaneously attend to the original video, the text instructions, and the frames it is currently generating. This creates massive token sequences, leading to high latency that makes real-time or interactive editing difficult.

Existing solutions often use "sparse attention" to skip unnecessary calculations, but they typically apply a "one-size-fits-all" rule—either a fixed percentage of tokens to keep or a single global threshold. The authors argue this is inefficient because the model's "focus" shifts: it might need high detail from the source video in early denoising steps but focus more on the newly generated content later on. Treating all sources and queries the same leads to either wasted computation or blurred results.

Methods

The authors propose QASK-Edit (Query-Adaptive Sparsity over Key Sources), a training-free method that plugs directly into existing DiTs. Its core innovation is treating video editing as a conditional generation task where different inputs (source video, text, audio, etc.) are treated as distinct "key sources."

Key technical components include:

  • Representative Blocks: Following the SPADE method, tokens are grouped into blocks based on spatial or temporal similarity. Each block is summarized by its mean.
  • Approximation Risk Proxy: This is the "brain" of the system. For every query, QASK-Edit calculates a risk score for each block. This score combines attention mass (how much the model wants to look at that block) and sub-block dispersion (how much the tokens within that block differ from each other).
  • Hierarchical Routing: Based on the risk score and a source-specific "risk budget," the system chooses one of three paths for each block:
  • Whole-block approximation: Use just the block mean (fastest).
  • Partial refinement: Compute only the most important sub-blocks at full resolution.
  • Full token-level computation: Compute the entire block exactly (most accurate).
  • Source-Specific Budgets: Users can set different tolerances for different inputs. For example, you might allow more approximation for the audio source than for the source video frames.

Datasets

The researchers evaluated QASK-Edit across several competitive benchmarks:

  • FiVE-Bench: A fine-grained video editing benchmark used to assess editing success and unedited region fidelity.
  • IVE-Bench (Short & Long): A benchmark for instruction-guided video editing.
  • OpenS2V-Eval & VACE-Benchmark: Used to test how well the method generalizes to "Reference-to-Video" (R2V) tasks (e.g., generating a video from a single image).

Key Insights and Ideas

  • Heterogeneous Demand: The paper's "aha moment" is the empirical proof that attention demand is not uniform. Analysis showed that the number of blocks needed to cover 90% of the attention mass varies significantly between sources (e.g., text vs. video) and even between different query tiles in the same frame.
  • Dispersion Matters: High attention weight doesn't always mean you need full computation. If a block is "coherent" (all tokens are similar), the mean is a perfect substitute. You only need the expensive full-token computation when a block is "heterogeneous" (contains diverse, salient interactions).
  • Online Calibration: Unlike methods that use a fixed "top-k" selection, QASK-Edit's threshold is determined on-the-fly. This allows the model to be "lazy" during easy parts of the generation and "diligent" during complex transitions.

Key Results

QASK-Edit was tested on three major video editing models: StreamEdit, UniEdit-Flow, and MiniMax-H3.

  • Speedup: It achieved the highest end-to-end speedups among all compared sparse attention baselines: 1.46× on StreamEdit, 1.26× on UniEdit-Flow, and 1.33× on MiniMax-H3.
  • Quality Preservation: In many cases, QASK-Edit maintained or even slightly improved editing accuracy (FiVE-Acc) compared to the "dense" (full computation) baseline, while keeping unedited regions (like backgrounds) sharp.
  • Generalization: When applied to image-to-video models (VACE and Phantom), it delivered up to 1.36× speedup with quality comparable to the original dense models.

Limitations and Future Work

  • Hyperparameter Sensitivity: The method relies on "risk budgets" ($\epsilon_g$). While the authors provide defaults, these might need tuning when applying QASK-Edit to entirely new model architectures.
  • Routing Overhead: Although implemented with efficient Triton kernels, the logic for calculating risk and routing queries does add a small amount of overhead, which is why the speedup is 1.46× rather than a theoretical maximum based purely on skipped FLOPs.
  • Future Directions: The authors suggest that this source-aware adaptive approach could be extended to other multi-modal tasks beyond video, such as long-document processing or complex 3D scene generation.

Summary updated

BibTeX
@misc{liu2026qask,
  author = {Hengrui Liu and Wenbo Xu and Ziqi Sheng and Wei lu},
  title = {{QASK-Edit: Adaptive Sparse Attention Across Queries and Key Sources for Efficient Video Editing}},
  year = {2026},
  eprint = {2611.20704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20704},
}
Figure