VIDEO EDITING  /  EFFICIENT DIFFUSION

TriDiTAccelerating Video Editing via
Dynamic Source Token Compression

1 Tianjin University2 Shanghai Jiao Tong University

* Corresponding author

Illustrative editing categories from the manuscript. Yellow cells depict schematic source-token selection; cyan overlays indicate illustrated edit regions.
2.49×Standalone DiT speedup
3.61×Combined DiT speedupWith Spark-H3 + SpotEdit + 7-step LoRA
20%Source-token retention
≈80%Fewer source K/V tokensDerived from 20% source retention

MiniMax-H3-Base-Ref2VA · 7-step LoRA · CFG off · Speedups vs. Dense with the same 7-step LoRA

01 / OVERVIEW

Less source computation.
Full target resolution.

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.

Read the full abstract

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.

02 / METHOD

Choose. Compress. Re-select.

A compact source stream, refreshed as the network evolves.

01

Allocate the budget

Combine complexity, attention demand, and irreplaceability in a demand-weighted coverage objective.

02

Update compact states

Aggregate source tokens into representatives and run attention and feed-forward computation on the shorter sequence.

03

Recover and re-select

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.

03 / QUALITATIVE RESULTS

Local boundaries. Moving subjects.

Matched source, MiniMax-H3-ref2VA and TriDiT samples from supplementary Section G.2.

Selective jacket recoloring

Figure S15 · Boundary preservation

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.

Running dog to white wolf

Figure S16 · Motion preservation

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.

04 / VIDEO COMPARISONS

See the full sequence.

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.

Clip details

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.

05 / EFFICIENCY

Compression that saves computation.

Selected methods from the main comparison table, grouped by evaluation setting.

Denoising latency

Seconds ↓

External video editing systems

InsV2V41.700 s
LGVI48.300 s
Lucy-Edit-dev24.500 s
VACE32.800 s
Ditto23.400 s
FastH3-Omni12.790 s

Same-backbone baselines

Dense30.450 s
Spark-H317.100 s
SpotEdit25.600 s
Spark-H3 + SpotEdit14.800 s

Standalone TriDiT · 20% retention

TriDiT12.229 s

Combined acceleration

TriDiT + SpotEdit10.200 s
TriDiT + Spark-H3 + SpotEdit8.435 s

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.

STANDALONE
2.49×

DiT-stage speedup with TriDiT alone.


COMBINED
3.61×

DiT-stage speedup when combined with Spark-H3 and SpotEdit.

Timing protocol

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.

K/V & memory

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.

Quality–efficiency comparison · selected methods
Selected results from main Table 1. GT PSNR uses edited references; SSIM-S evaluates non-edited source regions. Speedup is relative to Dense (30.45 s).
MethodGT PSNR ↑SSIM-S ↑Denoising / s ↓Speedup ↑
External video editing systems
InsV2V25.120.90141.7000.73×
LGVI24.580.88948.3000.63×
Lucy-Edit-dev27.310.92524.5001.24×
VACE26.540.91832.8000.93×
Ditto27.650.93123.4001.30×
FastH3-Omni27.080.92212.7902.38×
Same-backbone baselines
Dense27.840.93630.4501.00×
Spark-H327.590.93117.1001.78×
SpotEdit27.880.94025.6001.19×
Spark-H3 + SpotEdit27.580.93414.8002.06×
Standalone TriDiT · 20% retention
TriDiT27.630.93212.2292.49×
Combined acceleration
TriDiT + SpotEdit27.600.93710.2002.99×
TriDiT + Spark-H3 + SpotEdit27.410.9308.4353.61×

Same-backbone denoising time is the DiT interval. External systems use their own editing pipelines. Assess latency together with quality and preservation.

06 / LIMITATIONS

Faster inference does not fix every edit.

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.

Figure S23 from the supplied supplement. The rightmost values are per-video end-to-end seconds. This is a sampled-frame comparison.
07 / CITATION

BibTeX

Manuscript citation.