Consistent Identity Association for Open-Vocabulary Counting in Videos

Joana Konadu Owusu, Shivanand Venkanna SheshappanavararXiv 2026

TL;DR

Counting how many unique objects (like "penguins" or "dancers") appear across a video is surprisingly tricky because video trackers often lose sight of targets and count them all over again when they reappear. This paper introduces Consistent Identity Association (CIA), a lightweight plug-in module that acts as a smart memory bank—catching duplicate tracks and recognizing returning objects so each unique target is counted only once. Along with a new benchmark designed to catch "lucky guesses" in counting, CIA slashes counting errors by up to 68% while taking less than a millisecond per event to run.

What Problem Does This Paper Address?

Counting objects in a single image is straightforward: find them and tally them up. Counting across a video is an entirely different beast. If seven dancers weave across a stage, step behind one another, or briefly exit the frame, you still want the final count to be seven.

Current open-vocabulary video counters—which let you specify targets via text prompts rather than relying on pre-baked categories—pair object detectors with trackers like SAM 3. The catch? Trackers optimize for short-term continuity, not long-term tallying. When an occlusion breaks a trajectory, the tracker often panics and issues a brand-new ID, inflating the final count. Worse, standard evaluation metrics only check the final number: if a model misses two dancers entirely, hallucinates one, and double-counts another, the errors cancel out! It gets a gold star for a "perfect" count despite completely botching who is who.

Figure 1. Open-vocabulary counting in videos. (a) Two frames of a selected Dance-Count video with 7 labeled dancers and the identities CIA reports. (b) The number of distinct identities each system reports as the video is processed.

Methods

Instead of retraining a massive video tracker from scratch, the authors keep the underlying detector and tracker (SAM 3) completely frozen and bolt on CIA—a lightweight referee with just ~334K learned parameters that decouples counting identities from raw tracker IDs.

Whenever the tracker spawns a fresh ID, CIA pauses before adding to the tally and compares the observation against an identity bank containing both active (currently visible) and dormant (lost/occluded) tracks:

  • Identity Embedding Module (IEM): Projects raw SAM 3 visual features into 128-D descriptors trained via contrastive learning to tell lookalike individuals apart.
  • Dormant Identity Associator (DIA): Encodes visual appearance alongside geometry, motion, and timing cues, passing them through self- and cross-attention transformer blocks so candidate matches can compete in context.
  • Augmented Assignment: Uses the Hungarian algorithm—augmented with a private "unmatched" slot for genuinely new objects—to classify fresh detections as a return (reusing a dormant ID), a duplicate (merging with an active track), a new object, or a rejected false alarm.
Figure 2. CIA architecture. Fresh tracker detections are compared with active and dormant identities using IEM appearance descriptors, geometry, motion, and time cues. Feature encoding forms representations refined through DIA’s attention blocks. Matching heads predict compatibility and matchability scores for augmented Hungarian assignment, and the resulting proposals are validated to update identities and the count.

Datasets

  • Training: CIA is trained on association events extracted from frozen tracker runs on the OVIS and DanceTrack training splits (without seeing category names).
  • Existing Benchmark: Evaluated on VideoCount (comprising TAO-Count, Penguins, and microscopic Crystals), which only provides per-frame count totals.
  • New Benchmark — Video Counting Benchmark (VCB): Introduced by the authors (951 videos and 1,639 queries in the abstract; 959/1,647 in text), curated from four tracking datasets: BURST-Count, Dance-Count, Animal-Count, and GMOT-Count (with newly added text prompts). Crucially, VCB retains instance-level identity annotations, allowing the authors to introduce Composition Error (CE)—a metric that sums up missed objects, duplicates, and false tracks so canceling errors have nowhere to hide.

Key Insights and Ideas

  • Getting the right number doesn't mean you counted right: On datasets like Animal-Count, standard Mean Absolute Error (MAE) looks deceptively low compared to Composition Error, proving that models routinely mask missed targets with duplicate tracks.
  • Teaching a model not to match is critical: In ablations, removing the loss term that distinguishes genuinely new objects from junk detections ($\mathcal{L}_{\text{unm}}$) caused tracking consistency (IDF1) to crater from 69.8 down to 0.0.
  • Plug-and-play portability: Because CIA reasons over tracker events rather than raw pixels or class labels, it can be dropped onto entirely different detectors and tracking pipelines (like CountGD-box or CountVid) without retraining.

Key Results

  • SOTA Counting Accuracy: On BURST-Count, Dance-Count, and GMOT-Count, CIA cuts count MAE by 60%, 63%, and 13% relative to CountVid, and by 3%, 68%, and 19% relative to SAM3Count.
  • Fewer Identity Flips: CIA achieves the lowest number of identity switches across every single VCB subset (e.g., cutting SAM 3's switches on Dance-Count by ~40%, from 1,715 down to 1,032).
  • Blink-and-you-miss-it Speed: On an NVIDIA H100, DIA's forward pass and Hungarian assignment take just 0.96 ms per association-event frame.

Limitations and Future Work

CIA is an associator, not a magician: it cannot count what the detector never sees. On the microscopic Crystals dataset, the frozen SAM 3 detector completely strikes out on the prompt "white crystal", predicting zero objects—leaving CIA with nothing to associate. Swapping in a stronger detector (CountGD-box) immediately restores crystal detections and drops the error. Additionally, CIA inherits memory bottlenecks from its underlying tracker (SAM 3 runs out of memory on an 80 GB H100 on ultra-dense MOT20 videos) and can still stumble when targets have nearly identical appearances and ambiguous motion. Future work is not explicitly outlined by the authors.

Detector dependence on the Crystals dataset: SAM 3 misses every crystal, whereas swapping in CountGD-box gives CIA observations to successfully track and count.

Summary updated

BibTeX
@misc{owusu2026consistent,
  author = {Joana Konadu Owusu and Shivanand Venkanna Sheshappanavar},
  title = {{Consistent Identity Association for Open-Vocabulary Counting in Videos}},
  year = {2026},
  eprint = {2611.35140},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35140},
}
Figure