arXiv:2610.20822cs.AIOct 2026

Manuscript Offprint

arXiv:2610.20822

Temporal Specification Guidance for Text-to-Video Generation

Avishree Khare, Hideki Okamoto, Bardh Hoxha, Georgios Fainekos, Rajeev Alur

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Text-to-video models often generate the visual concepts requested in natural language prompts but fail to satisfy their intended ordering, timing, and persistence requirements. We propose representing these requirements as specifications in a formal Temporal Logic, and introduce Temporal Specification Guidance (TSG), a training-free inference-time framework that turns temporal specifications into executable objectives for guiding video generation during sampling. TSG scores traces of visual concept evidence using differentiable quantitative semantics and uses the score's gradients to construct a specification-guided denoising direction. We instantiate this framework with video-text attention traces, efficient differentiable scores for Metric Temporal Logic, and gradient-derived attention biases. This instantiation requires neither an external concept classifier nor backpropagation through the video transformer. Its attention-steered forward pass yields a denoising direction that augments classifier-free guidance (CFG). On a benchmark of 220 prompts spanning 11 categories of temporal constraints, including ordered object entry and state transitions, this instantiation improves specification satisfaction accuracy over CFG by 9.5–20 percentage points across five models, with minimal memory overhead. These results demonstrate the potential of temporal specifications and differentiable satisfaction objectives as a flexible interface for controlling video generation.

1 Introduction

Text-to-Video generation has seen tremendous progress in recent years, with models such as Gemini Omni (Google DeepMind, 2026), Runway Gen (Esser et al., 2023; Runway, 2025), Wan (Wan et al., 2025), and CogVideoX (Yang et al., 2025) producing videos with improved visual quality and semantic fidelity. Classifier-Free Guidance (Ho & Salimans, 2022) was introduced to improve adherence to natural language prompts in image generation and is now widely adopted by video generation models (Ho et al., 2022b,a). However, adherence to temporal constraints remains challenging (Choi et al., 2025; Schiber et al., 2026). Figure 1 shows two examples of such failures with CogVideoX-5B. While the model broadly incorporates the semantic concepts described in the text prompts (e.g., the presence of a traffic light or a drone), it fails to follow the required ordering, persistence, and timing requirements. In these examples, the model misses the intended timed color progression and the eventual appearance of a hiker or a flare signal, respectively.

In this work, we propose expressing temporal requirements as specifications in formal Temporal Logics. Formal temporal specifications can precisely express requirements that are implicitly described in natural language prompts. Frame-level visual concepts, such as the presence of a traffic light or the associated colors, can be represented as atomic propositions. Temporal Logics offer standard Boolean operators (negation, conjunction, and disjunction) and temporal operators such as Always (G), Until (U), and Eventually (F) to express persistence and ordering requirements. In this work, we present a specification language adopted from Metric Temporal Logic (Koymans, 1990) to express temporal requirements with different degrees of timing precision. Representations of temporal requirements from prior work, including timed binary masks (Schiber et al., 2026) and untimed Temporal Logic formulae (Choi et al., 2025), can also be written as specifications in this language.

We propose Temporal Specification Guidance (TSG), a training-free inference-time framework for improving adherence to temporal specifications with transformer-based video generation models. Our key insight is that temporal specifications provide an executable objective for guiding video generation during sampling. TSG makes this practical through differentiable specification scores and attention interventions that avoid backpropagation through the video transformer. Concretely, TSG computes traces of visual concept evidence using video-text attention from the video transformer. For every attention head, TSG computes biases as gradients of a differentiable specification score, steers

PREPRINT

A traffic light turns yellow in the first third, red in the middle third, and green in the final third.

Frame 4

Frame 12

Frame 20

Frame 28

Frame 36

Frame 44

CFG-only

Figure

TSG

A drone remains visible throughout; a flare signal or a stranded hiker appears in the second half.

Frame 4

Frame 12

Frame 20

Frame 28

Frame 36

Frame 44

CFG-only

Figure

TSG

Figure 1: TSG improves adherence to temporal requirements. Top: CFG produces an amber light for the first two-thirds while TSG follows the expected yellow–red–green progression. Bottom: CFG omits both requested rescue cues; TSG generates a flame signal while retaining the drone. Videos are generated with CogVideoX-5B.

the attention scores with these biases, and computes the specification-guided direction from the steered forward pass through the video transformer. Our use of attention as a proxy for visual concept presence builds on prior work on attention-based semantic guidance in image and video generation (Chefer et al., 2023; Schiber et al., 2026). The use of video-text attention mitigates the need for an external concept classifier during generation. Because differentiation is restricted to the attention-derived traces and their specification scores, TSG avoids backpropagation through the video transformer, reducing the associated computational and memory demands.

We compute a differentiable specification score over attention traces using a quantitative semantics for Metric Temporal Logic. Inspired by efficient log-domain quantitative semantics for Linear Temporal Logic (Khare et al., 2025), our quantitative semantics aggregates support for the temporal witnesses and alternatives admitted by a specification. Its log-domain form provides differentiable guidance and can be efficiently evaluated in time linear in trace length for a fixed specification. We establish monotonicity in independent literal-support inputs and predictable concept-score gradient signs under consistent polarity.

We evaluate TSG on a benchmark of 220 prompts spanning temporal constraints from 11 categories, including timed state transitions, entity appearance and disappearance, persistence, and choice. Across five models from the CogVideoX (Yang et al., 2025) and Wan (Wan et al., 2025) families, TSG improves specification satisfaction accuracy by 9.5–20 percentage points over CFG-only sampling. We also evaluate TSG with Wan 2.1 1.3B on strictly-timed prompts from the TempoControl object appearance benchmark (Schiber et al., 2026), where it outperforms CFG sampling by up to 22 percentage points in temporal accuracy and matches the state-of-the-art method on that benchmark with approximately 62% lower peak GPU memory. Together, these findings support specification-guided attention steering as an effective and memory efficient approach to temporal control in video generation.