Allocate the budget
Combine complexity, attention demand, and irreplaceability in a demand-weighted coverage objective.
VIDEO EDITING / EFFICIENT DIFFUSION
* Corresponding author
MiniMax-H3-Base-Ref2VA · 7-step LoRA · CFG off · Speedups vs. Dense with the same 7-step LoRA
Video-conditioned diffusion transformers repeatedly process long source sequences, even when many source tokens contain redundant information. TriDiT compresses the source states across transformer layers while retaining the full target layout.
Representatives are selected using local content complexity, predicted attention importance, and irreplaceability. Assigned tokens are aggregated into a compact source sequence. At layer-group boundaries, stored positional residuals help reconstruct the full source states for renewed selection.
TriDiT reports a 2.49× standalone DiT-stage speedup with a small reduction in editing quality. Combining it with Spark-H3 and SpotEdit reaches 3.61× under the same seven-step configuration.
Multimodal attention allows modern MMDiT-based models such as H3 to use a single architecture for video generation from text, images, or source videos. In source-conditioned video editing, however, repeatedly processing long source-token sequences across denoising steps and transformer layers incurs substantial computational overhead. To reduce this overhead, we propose TriDiT, a dynamic source-token compression framework for efficient video editing. Specifically, TriDiT formulates representative selection as a budget-constrained, demand-weighted facility-location problem that allocates representative capacity based on local content complexity, predicted attention importance, and irreplaceability. Because the resulting sparse coverage objective is monotone submodular, TriDiT can use exact lazy-greedy selection with the classical 1-1/e approximation guarantee. Once the representatives are selected, TriDiT aggregates the tokens assigned to each representative while preserving per-position residuals, with a default source-token retention ratio of 20%. The compressed source states are then updated across consecutive transformer layers. At each layer-group boundary, TriDiT uses the stored residuals to approximately reconstruct the source states at all positions before selecting a new set of representatives. By processing compressed source states within each layer group, TriDiT reduces source-side projection, attention, and feed-forward computation while retaining the full target layout. Experiments demonstrate that, on MiniMax-H3-Base-Ref2VA, TriDiT alone achieves a 2.49× speedup in the DiT stage with a small reduction in editing quality. TriDiT is also compatible with existing sparse attention methods such as Spark Attention and regional feature reuse methods such as SpotEdit. When used together, the three methods achieve a 3.61× DiT-stage speedup over the Dense baseline under the same seven-step inference configuration. Additional evaluations on UniVideo, UNIC, and Wan-VACE demonstrate that TriDiT applies across different source-conditioning interfaces.
A compact source stream, refreshed as the network evolves.
Combine complexity, attention demand, and irreplaceability in a demand-weighted coverage objective.
Aggregate source tokens into representatives and run attention and feed-forward computation on the shorter sequence.
Use stored position residuals to approximately restore source states and re-select every five layers by default.
Target tokens remain at full resolution. Source-state compression complements sparse attention and regional feature reuse.
Matched source, MiniMax-H3-ref2VA and TriDiT samples from supplementary Section G.2.
Change only the beige jacket worn by the curly-haired woman on the left to bright red.
The red jacket persists across the sampled times. The enlarged cuff retains a visible boundary between the sleeve, bare hand and neighboring clothing. Other people’s clothing remains broadly consistent with the source.
Replace only the running tan dog with a white wolf of similar size. Preserve its run, jump, landing and timing; keep the crouching person and snow unchanged.
The pale replacement persists after the animal enters view, and the broad approach and passage beside the person remain recognizable. Animal proportions and pose details differ from the source; exact footfall and jump timing require denser frames.
These are sampled-frame observations from the supplement. Full video comparisons are available below.
16 video comparisons across eight categories. Choose a case to watch Source, MiniMax-H3-ref2VA and TriDiT side by side.
Original playback speed · Source: 5.05 s; edited outputs: 4.46 s. Play together starts at the same elapsed time and pauses when the first clip ends; frame-level alignment is not assumed.
Source footage: Ditto-1M, Qingyan Bai et al. · CC BY-NC-SA 4.0. Compressed viewing copies; use the original outputs for quantitative image-quality evaluation. Media attribution.
Selected methods from the main comparison table, grouped by evaluation setting.
Selected results from main Table 1. All bars share a 0–48.3 s scale. Same-backbone methods report DiT time; external editors are shown as a separate group.
DiT-stage speedup with TriDiT alone.
DiT-stage speedup when combined with Spark-H3 and SpotEdit.
Four NVIDIA A100 80GB GPUs jointly process one video. Seven-step distillation LoRA, CFG disabled; 50-task efficiency subset. Timing includes compression maintenance and component overheads, and excludes text encoding and VAE processing. The chart reports DiT-stage speedups. Separately, the full system reduces measured end-to-end latency from 35.5 s to 13.4 s (2.65×), as reported in supplementary Table S6.
Retaining 20% of source tokens reduces the source-side K/V token count by approximately 80% within compressed layer groups (up to rounding). Target K/V context remains intact. This is a sequence-size reduction, not a measured KV-cache or total-memory saving. Full-position residuals are stored separately. The manuscript reports 12.5% lower peak allocated GPU memory: 47.2 GB → 41.3 GB.
| Method | GT PSNR ↑ | SSIM-S ↑ | Denoising / s ↓ | Speedup ↑ |
|---|---|---|---|---|
| External video editing systems | ||||
| InsV2V | 25.12 | 0.901 | 41.700 | 0.73× |
| LGVI | 24.58 | 0.889 | 48.300 | 0.63× |
| Lucy-Edit-dev | 27.31 | 0.925 | 24.500 | 1.24× |
| VACE | 26.54 | 0.918 | 32.800 | 0.93× |
| Ditto | 27.65 | 0.931 | 23.400 | 1.30× |
| FastH3-Omni | 27.08 | 0.922 | 12.790 | 2.38× |
| Same-backbone baselines | ||||
| Dense | 27.84 | 0.936 | 30.450 | 1.00× |
| Spark-H3 | 27.59 | 0.931 | 17.100 | 1.78× |
| SpotEdit | 27.88 | 0.940 | 25.600 | 1.19× |
| Spark-H3 + SpotEdit | 27.58 | 0.934 | 14.800 | 2.06× |
| Standalone TriDiT · 20% retention | ||||
| TriDiT | 27.63 | 0.932 | 12.229 | 2.49× |
| Combined acceleration | ||||
| TriDiT + SpotEdit | 27.60 | 0.937 | 10.200 | 2.99× |
| TriDiT + Spark-H3 + SpotEdit | 27.41 | 0.930 | 8.435 | 3.61× |
Same-backbone denoising time is the DiT interval. External systems use their own editing pipelines. Assess latency together with quality and preservation.
VIVA 073 · “Remove the boy.”
Supplementary Section G.4 reports a shared instruction-following failure: the moving boy remains visible instead of being removed. The supplement shows the failure for Lucy-Edit-Dev and InsV2V, and reports the same failure for MiniMax-H3-ref2VA and TriDiT.
Changing scale, pose and interaction with the ball are plausible challenges for tracking and background reconstruction. Acceleration alone does not correct the failed removal; this example establishes no quality advantage for TriDiT.
Manuscript citation.