Count Once, Carry Through: A Training-Free Framework for Numerically Aligned Text-to-Video Generation

HaoYuan Ma, Haoxiang Zhao, Tianqin Zhu, Pinyue Hao, Li Zhang, Jie Gao, Zhiyuan MaarXiv 2026

TL;DR

Ask a text-to-video model for "five hikers crossing a bridge," and you will likely get four hikers, or six, or a phantom hiker who materializes halfway through the clip. This paper introduces OTC (Observe, Think, and Carry), a training-free framework that fixes object-counting errors in video diffusion models. By perfecting the object count in a single initial "anchor" frame before propagating those exact instances forward in time, OTC ensures that five hikers stay five hikers from frame one to eighty-one.

What Problem Does This Paper Address?

Text-to-video (T2V) models are rapidly evolving from creative toys into world simulators for autonomous driving and synthetic data engines for training computer vision models. In these domains, object permanence and exact counts are hard constraints—a pedestrian vanishing mid-simulation ruins the scenario.

Why is counting so hard for video diffusion models? Diffusion works by iteratively chiseling a video out of pure Gaussian noise. The authors uncover a frustrating timing mismatch during this denoising process:

  • Early in denoising, the global layout is fluid and easy to edit, but the latent representations are too noisy to reliably distinguish and count individual objects.
  • Later in denoising, objects crystalize and become easy to count via attention maps, but the scene’s spatial layout is effectively "baked in" and resistant to change.

Trying to count and steer object numbers simultaneously across an entire video trajectory is like trying to remodel a house after the concrete has already set.

Figure 1. Qualitative comparison on CountBench with Wan2.2-T2V-5B. The selected examples illustrate incorrect numbers of objects and temporal count drift in the base model and NUMINA [27]. Our training-free framework, OTC, achieves the target count in all 81 frames of each example shown. The frame-wise strips cover the complete 81-frame clips.

Methods

Instead of wrestling with space and time simultaneously, OTC decouples the problem into two phases: get the count right in a single initial frame latent (without ever decoding to pixels or calling an external LLM/detector), and then carry those verified objects through the rest of the video. All backbone weights remain frozen.

  1. Observe (Latent Counting): OTC generates a few initial noise candidates for a single-frame "draft anchor" and picks the most promising one early on. Once denoised, it slightly re-noises the draft to probe the model's internal attention maps. By combining self-attention clusters (which group visual tokens into distinct object parts) with cross-attention maps (which link text nouns to regions), Observe identifies and counts object instances directly in latent space.
  2. Think (Surgical Latent Editing): If the count is off, Think diagnoses the issue—flagging fused, extra, missing, or cloned objects. It performs localized, atomic edits directly in the latent space: deleting excess objects via masked regeneration, or copying high-confidence instances (using perspective-aware scaling) to fill deficits. After each edit, it calls Observe to recount, accepting edits only if the numerical error drops.
  3. Carry (Instance-Aware Propagation): Having a mathematically verified first frame doesn't stop objects from vanishing or spawning later. During full video generation, the authors introduce Carry-CFG, a novel twist on Classifier-Free Guidance. Alongside standard text guidance, Carry-CFG contrasts predictions conditioned on the clean anchor latent against a re-noised version of that anchor. Using self-attention to track where anchor instances move in subsequent frames, it allocates stronger guidance directly to those object regions while applying a negative cross-attention bias to the background to suppress spurious extras from popping up. Carry-CFG is applied only during the first 30% of denoising steps so it doesn't stiffen fine motion later on.

Datasets

Because OTC is training-free, no training datasets are used. For evaluation, the authors test across 81-frame video clips using:

  • CountBench: 210 prompts specifically testing object counting in video.
  • T2V-CompBench: 100 prompts from the generative numeracy subset.
  • Validation Set: A disjoint set of 40 prompts (generated via GPT) used strictly for hyperparameter tuning.

(Note: Grounding DINO is used on decoded frames strictly at evaluation time to grade counting accuracy).

Key Insights and Ideas

  • Temporal consistency $\neq$ numerical accuracy: In an ablation where the authors replaced Carry-CFG with simple key/value feature injection from the anchor frame, temporal consistency jumped to 96.6%, but counting accuracy dropped below the baseline (39.7% vs. 41.1%). Locking a video's layout makes counts stable, even when they are stably wrong—proving why establishing the count first is critical.
  • Zero external models required at inference: Unlike pipelines that rely on LLMs to plan bounding boxes or pixel-space detectors to verify edits, OTC extracts everything it needs from the diffusion transformer's native self- and cross-attention heads.
  • Bigger models don't automatically learn to count: Testing Wan backbones from 1.3B up to 14B parameters showed that while base accuracy improves with scale, the 14B model still gets counts wrong nearly half the time (54.3%)—and actually benefits more from OTC (+9.4 percentage points) than smaller models do.

Key Results

Evaluated across four frozen backbones (Wan2.1-1.3B, Wan2.2-5B, Wan2.1-14B, and MiniMax H3):

  • CountBench Gains: OTC improves exact counting accuracy (CountAcc) by an average of 9.0 percentage points and adjacent-frame temporal consistency (TC) by 6.6 percentage points over base models, consistently outperforming the prior state-of-the-art method, NUMINA.
  • T2V-CompBench: On Wan2.1-1.3B, OTC boosts CountAcc by 15.0 percentage points (from 58.2% to 73.2%) and All-Category Accuracy by 21.1 points over the base model.
  • Minimal Overhead: On the validation set (Wan2.1-1.3B), OTC adds just 8.6 seconds per video over standard generation (233.3s vs. 224.7s), making it 179.9 seconds faster than NUMINA (413.2s).

Limitations and Future Work

  • High counts and multi-category complexity: While OTC beats baselines across the board, absolute accuracy still degrades noticeably as prompts ask for higher object counts (e.g., 7–8 items) or multiple distinct object categories simultaneously.
  • Static-count assumption: Because the anchor represents only the initial frame, OTC assumes all target objects are visible from the very beginning. Handling dynamic narratives—like objects entering the scene halfway through or intentionally time-varying counts—is left for future work.

Summary updated

BibTeX
@misc{ma2026count,
  author = {HaoYuan Ma and Haoxiang Zhao and Tianqin Zhu and Pinyue Hao and Li Zhang and Jie Gao and Zhiyuan Ma},
  title = {{Count Once, Carry Through: A Training-Free Framework for Numerically Aligned Text-to-Video Generation}},
  year = {2026},
  eprint = {2611.39442},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39442},
}
Figure