Papers
Topics
Authors
Recent
Search
2000 character limit reached

When Numbers Speak: Aligning Textual Numerals and Visual Instances in Text-to-Video Diffusion Models

Published 9 Apr 2026 in cs.CV | (2604.08546v1)

Abstract: Text-to-video diffusion models have enabled open-ended video synthesis, but often struggle with generating the correct number of objects specified in a prompt. We introduce NUMINA , a training-free identify-then-guide framework for improved numerical alignment. NUMINA identifies prompt-layout inconsistencies by selecting discriminative self- and cross-attention heads to derive a countable latent layout. It then refines this layout conservatively and modulates cross-attention to guide regeneration. On the introduced CountBench, NUMINA improves counting accuracy by up to 7.4% on Wan2.1-1.3B, and by 4.9% and 5.5% on 5B and 14B models, respectively. Furthermore, CLIP alignment is improved while maintaining temporal consistency. These results demonstrate that structural guidance complements seed search and prompt enhancement, offering a practical path toward count-accurate text-to-video diffusion. The code is available at https://github.com/H-EmbodVis/NUMINA.

Summary

  • The paper introduces NUMINA, a training-free 'identify-then-guide' pipeline that improves numerical alignment in text-to-video diffusion models.
  • It leverages discriminative attention heads and PCA-based layout extraction to ensure precise object counting and semantic fidelity.
  • Experimental results demonstrate up to 7.4% improvement in counting accuracy and robust temporal consistency across multiple architectures.

NUMINA: Training-Free Framework for Numerically Aligned Text-to-Video Diffusion

Motivation and Problem Statement

Text-to-video diffusion models, particularly those leveraging Diffusion Transformers (DiTs), have substantially advanced video synthesis from textual prompts. Despite impressive strides in visual fidelity and semantic alignment, a persistent deficiency is the misalignment between textual numerals and visual object counts. Existing models frequently fail to respect explicit numerical constraints specified in prompts, which undermines their reliability for applications necessitating precise cardinality such as manufacturing, instructional content, or scientific visualization.

The paper introduces NUMINA, a training-free "identify-then-guide" pipeline to resolve this numerical misalignment. NUMINA exploits discriminative attention heads during early denoising to construct a countable latent layout, then uses explicit structural guidance to refine and steer video generation toward numerically correct outputs—achieving this without retraining or augmentation. Figure 1

Figure 1: NUMINA substantially improves object-count accuracy in text-to-video diffusion while preserving temporal and spatial quality.

Analysis of Attention Dynamics and Numerical Misalignment

Investigations into DiT-based architectures reveal two main causes of misalignment:

  1. Semantic Weakness of Numerals: Cross-attention activations for numerals are diffuse, lacking the localized concentration shown for nouns/adjectives (see visualization of attention maps in Figure 2), which impedes grounding of counting constraints in the latent space.
  2. Instance Ambiguity: Heavy spatial downsampling and latent compression degrade separability of instances, resulting in unstable count control.

Conventional remedies such as retraining or dataset augmentation impose prohibitive computational overhead and do not easily accommodate the complexity of cardinality constraints, especially at higher counts. Figure 2

Figure 2: Cross-attention maps show numerals have significantly weaker, more diffused activations versus other word types.

NUMINA Framework: Identify-then-Guide Paradigm

NUMINA operates in two distinct phases:

  1. Identification of Numerical Misalignment: Early in denoising, NUMINA dynamically selects attention heads—one self-attention head for maximal instance separability and one cross-attention head for each noun token (category specificity). Instance-level layouts are derived via PCA and clustering approaches, fusing spatial and semantic signals to yield a foreground mask. Regions are filtered by overlap scores to construct a semantically countable layout. Figure 3

    Figure 3: NUMINA's pipeline: dynamic attention-based layout extraction followed by refinement and layout-guided generation.

    Figure 4

    Figure 4: PCA visualization reveals head diversity and enables selection of heads with sharp instance separation.

  2. Numerically Aligned Video Generation: The extracted layout is conservatively refined at the instance level. Remediation occurs via addition (template-based placement with spatial/contextual cost minimization) or removal (smallest-region deletion), preserving spatial scene structure. Regeneration leverages modulated cross-attention, guided by a monotonic intensity function to achieve maximal correction early in denoising while protecting fine details at later stages.

Experimental Results

NUMINA is evaluated on the CountBench benchmark (210 prompts, object counts 1–8, multiple categories) across Wan T2V models (1.3B, 5B, 14B) and CogVideoX. Quantitative findings are:

  • Counting Accuracy: For Wan2.1-1.3B, NUMINA improves counting accuracy by 7.4% over baseline, reaching 49.7%. On Wan2.2-5B and Wan2.1-14B, gains are 4.9% and 5.5%, respectively. NUMINA reliably outperforms prompt enhancement and seed search strategies, even enabling smaller models to surpass larger baselines.
  • Semantic Alignment: NUMINA consistently increases CLIP scores, confirming improved text-video alignment.
  • Temporal Consistency: Intervention maintains or slightly improves temporal count stability—no flickering or artifacts are introduced. Figure 5

    Figure 5: NUMINA qualitatively outperforms advanced commercial T2V models in numerically correct generations.

    Figure 6

    Figure 6: Numeral-specific breakdown confirms NUMINA’s scalability; substantial gains for higher-count prompts.

    Figure 7

    Figure 7: Ablation: Choice of reference timestep for head selection is critical for optimal instance separation.

Qualitative analysis shows NUMINA's success in producing precise counts in both simple and composite scenes, even when baselines fail. Per-number stratification illustrates largest improvements in high-cardinality scenarios.

Ablation and Analysis

Extensive ablations confirm key architectural and procedural choices:

  • Attention Head Selection: "Top-1" head selection via discriminability scoring outperforms random or averaged alternatives.
  • Layout Construction: Native attention-derived layouts surpass detector-based alternatives (e.g., GroundingDINO) for guiding generation.
  • Layout Refinement Costs: Synergistic effects of spatial overlap, center proximity, and temporal stability yield peak accuracy.
  • Object Addition/Removal: Both drive accuracy improvement; addition is more impactful, but combining maximizes gain.
  • Resource Efficiency: Integration with runtime-adaptive caching (EasyCache) minimizes VRAM and time overhead.

Failure Cases and Limitations

NUMINA’s major limitation is over-segmentation, where discriminative attention heads occasionally fragment salient parts of a single object (e.g., head vs. body), yielding irrecoverable count errors. Figure 8

Figure 8: Representative failure—mis-segmentation decouples heads from bodies, producing incorrect counts.

Additionally, NUMINA does not yet scale to dense-array instance scenarios (e.g., tens/hundreds of objects). Further work is needed to introduce holistic perceptual grouping or stronger geometric priors.

Representative Examples and Generalization

NUMINA is robust across architectures (tested with Wan and CogVideoX family) and composition scenarios, faithfully generating the requested number of objects. Figure 9

Figure 9: NUMINA reliably generates correct object counts in diverse compositional scenes and architectures.

Implications and Future Directions

NUMINA demonstrates that structural guidance grounded in model-native attention can circumvent longstanding limitations in numerically aligned text-to-video generation. Practically, this unlocks T2V pipelines for applications where count fidelity is paramount—industrial planning, scientific analysis, and instructional media. Theoretically, NUMINA reveals latent instance-separable geometry in attention heads, suggesting new directions for training-free editing, controllable generation, and instance-level compositionality.

Future development should pursue scaling NUMINA to ultra-dense scenes, integrating more perceptually holistic grouping criteria, and coupling with pretrained segmentation or grouping models. There is further potential for extending this paradigm to multi-modal, multi-prompt and conditional tasks in generative modeling.

Conclusion

NUMINA presents a training-free, attention-guided method for numerical alignment in text-to-video diffusion. The approach reliably boosts counting accuracy—especially at higher cardinalities—without compromising video quality or coherence. Structural layout guidance is validated as a powerful complement to seed search and prompt engineering. NUMINA lays the groundwork for count-accurate, compositional generative modeling, expanding the effective and practical applicability of text-to-video pipelines (2604.08546).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We found no open problems mentioned in this paper.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 0 likes about this paper.