SwitchCraft: Training-Free Multi-Event Video Generation with Attention Controls

Qianxun Xu, Chenxi Song, Yujun Cai, Chi Zhang

TL;DR

SwitchCraft is a training-free framework that enables text-to-video diffusion models to generate complex, multi-event videos (e.g., "a person walks, then runs, then jumps") with smooth transitions and high scene consistency. By introducing frame-level attention steering and an automated inference-time optimization solver, it precisely aligns specific video segments with their corresponding textual events without requiring any model retraining or fine-tuning.

What Problem Does This Paper Address?

State-of-the-art text-to-video (T2V) diffusion models excel at generating high-fidelity videos for single actions or static scenes. However, they struggle significantly when given prompts containing a sequence of temporally ordered events. Because standard architectures inject the entire text prompt uniformly across all video frames via cross-attention, the model treats the description as a single holistic context.

As a result, the generated videos often suffer from "event bleeding" (where actions blend together simultaneously), ambiguous transitions, or complete omission of later events in the prompt. Existing fixes either require expensive fine-tuning on densely annotated data or rely on stitching separate video clips together, which lacks global context and leads to jarring visual discontinuities.

Methods

SwitchCraft solves this issue entirely at inference time by modifying the cross-attention mechanism within a Diffusion Transformer (DiT) backbone (specifically evaluated on Wan 2.1). The framework consists of two primary components:

  1. Event-Aligned Query Steering (EAQS): Instead of altering shared text keys or values—which would corrupt the entire video—EAQS modifies the frame-specific query vectors ($Q^*$) within designated temporal windows. First, a large language model (LLM) extracts "anchor tokens" that define each distinct event. Then, for a given event's time span, EAQS constructs mathematical projectors to steer the video queries toward the target event's subspace while actively suppressing competing events.
  2. Auto-Balance Strength Solver (ABSS): Finding the right steering strength is delicate: too strong, and the video distorts; too weak, and the events blend. ABSS is an inference-time optimization module that adaptively calculates the optimal enhancement ($\alpha$) and suppression ($\beta$) coefficients. It uses Singular Value Decomposition (SVD) to compress event keys into dominant directions, measures the current alignment margin deficit, and solves a small convex optimization problem to stabilize the steering.

Crucially, this steering is only applied during the early denoising steps and early transformer blocks, which dictate global layout and motion. The remaining steps are left untouched, allowing the base model to naturally refine high-frequency textures and details.

Figure 2. Overview of SwitchCraft. (a) EAQS takes a text prompt and user specified event time spans, identifies anchor tokens for each event, and constructs event specific projectors from their attention keys. It steers video queries toward the target event and away from others in each temporal span. (b) ABSS estimates enhancement and suppression strengths by extracting dominant directions from the event keys and correcting the attention deficit. The updated queries pass through the video diffusion transformer so that each temporal span follows its intended event with smooth transitions.

Datasets

The authors evaluated SwitchCraft using a benchmark of 60 multi-event prompts capturing both action switches (e.g., gesturing to making a heart sign) and creative scene transitions. These prompts span two to four sequential events per video and were compiled from prior literature and automated LLM generation.

Key Insights and Ideas

  • Query-Only Modulation Preserves Prior Knowledge: Modulating the queries ($Q$) rather than the keys ($K$) or values ($V$) ensures that the changes remain strictly localized to specific frames. This prevents structural collapse and allows the model to retain its powerful pre-trained generation capabilities.
  • Coarse-to-Fine Diffusion Dynamics: The decision to restrict steering to early denoising steps leverages the inherent nature of diffusion models, where spatial layout is decided early on, and fine details are filled in later. This insight ensures that event boundaries are well-defined without introducing visual artifacts.
  • Convex Optimization Over Manual Tuning: Rather than forcing users to manually tune hyperparameters for different prompts, formulating strength balancing as a scale-aware convex optimization problem allows the framework to adapt robustly to varying text lengths and complexities.

Key Results

SwitchCraft was compared against several strong baselines, including MEVG, DiTCtrl, LongLive, and a sequential stitching baseline.

Quantitative Performance

As shown in the paper's evaluation metrics:

  • Text Alignment: SwitchCraft achieved a CLIP-T score of 0.275 and a VideoScore2 T2V alignment score of 4.30, significantly outperforming the base Wan 2.1 model (0.256 and 3.47, respectively).
  • Visual Quality: It maintained top-tier visual fidelity and motion smoothness, scoring 4.33 in VideoScore2 visual quality, matching or exceeding the un-steered base model.

Qualitative Performance

Qualitative evaluations demonstrate that SwitchCraft successfully executes all events in the correct chronological order without losing subject identity or background consistency.

Figure 3. Qualitative comparison. SwitchCraft executes all events in the intended order, prevents leakage and omission, and maintains subject and scene consistency. Baselines show omissions, drift across spans, or progressive quality decay.

Additionally, the method can be used for creative transitions, such as generating an occluding object (like blowing leaves or paper airplanes) to seamlessly mask and reveal a completely new scene layout.

Limitations and Future Work

While SwitchCraft provides excellent training-free control, it possesses a few limitations:

  • Temporal Window Assignment: The framework currently relies on either an equal split of frames per event or user-specified relative duration weights. It does not automatically infer how long an action should naturally take from the text alone.
  • LLM Dependency: The accuracy of the anchor token generation depends entirely on the external LLM's parsing capabilities, which could fail on highly ambiguous or poorly structured prompts.

Summary updated

BibTeX
@inproceedings{xu2026switchcraft,
  author = {Qianxun Xu and Chenxi Song and Yujun Cai and Chi Zhang},
  title = {{SwitchCraft: Training-Free Multi-Event Video Generation with Attention Controls}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=FaOnLpXRTz},
}
Figure