Consistent Identity Association for Open-Vocabulary Counting in Videos
Abstract
Open-vocabulary video object counting asks how many distinct instances of a text-specified category appear across a video. Recent approaches combine promptable detection with tracking and count the resulting identities in the video. However, occlusions, re-entry, and fragmented trajectories can cause trackers to issue new identities to objects already counted. To address this issue, we present Consistent Identity Association (CIA), a lightweight association module that decouples identity counting from tracker outputs. Whenever the underlying tracker issues new identities, CIA jointly determines whether the corresponding detections represent new objects, returning instances, or duplicates of active tracks. This consistent identity assignment reduces repeated counting. We also introduce the Video Counting Benchmark (VCB), comprising 951 videos and 1,639 queries, with instance identities for evaluating whether objects are counted once. We instantiate CIA with a frozen SAM 3 tracker and evaluate it on VCB and VideoCount. On BURST-Count, Dance-Count and GMOT-Count, CIA reduces count MAE by 60%, 63% and 13% relative to CountVid, and by 3%, 68% and 19% relative to SAM3Count, respectively. Code is available at https://github.com/Joan947/CIA.
Figures & tables
| BURST-Count | Dance-Count | Animal-Count | GMOT-Count | |||||||||
| Method | MAE | RMSE | CE | MAE | RMSE | CE | MAE | RMSE | CE | MAE | RMSE | CE |
| Tracking-based controls | ||||||||||||
| SAM 3 [ 7 ] | 0.656 | 1.769 | 0.794 | 4.920 | 7.892 | 5.000 | – | – | – | 11.421 | 25.252 | 14.947 |
| ByteTrack [ 42 ] (ECCV’22) | 2.328 | 4.218 | 2.583 | 37.760 | 58.194 | 39.920 | 26.480 | 38.301 | 37.520 | 29.868 | 59.481 | 39.658 |
| OC-SORT [ 6 ] (CVPR’23) | 3.750 | 7.614 | 3.984 | 36.120 | 52.105 | 37.960 | 34.400 | 52.020 | 47.680 | 50.553 | 123.922 | 61.289 |
| BoT-SORT [ 2 ] (arXiv’22) | 2.197 | 4.044 | 2.445 | 32.360 | 49.587 | 33.960 | 23.960 | 34.492 | 34.760 | 26.947 | 53.279 | 36.263 |
| TAO-Count | Penguins | |||
|---|---|---|---|---|
| Method | MAE | RMSE | MAE | RMSE |
| SAM 3 [ 7 ] | 0.653 | 1.603 | 3.667 | 4.933 |
| CountVid [ 3 ] (AAAI’26) | 2.595 | 5.894 | 3.667 | 5.323 |
| SAM3Count [ 31 ] | 0.78 | 1.63 | 2.667 | 3.162 |
| CIA (ours) | 0.604 | 1.429 | 2.333 | 3.109 |
| Text | Text + internal exemplars | |||
|---|---|---|---|---|
| Method | MAE | RMSE | MAE | RMSE |
| SAM 3 | 74.714 | 89.450 | 74.714 | 89.450 |
| SAM 3 + CIA | 74.714 | 89.450 | 74.714 | 89.450 |
| CountVid | 69.000 | 86.012 | 27.857 | 45.041 |
| CountVid + CIA | 64.71 | 83.09 | 24.43 | 36.53 |
| CountGD-box + SAM 3 + CIA | 64.714 | 83.086 | 19.571 | 32.896 |
| BURST-Count | Dance-Count | Animal-Count | GMOT-Count | |||||||||||||
| Method | HOTA | AssA | IDF1 | ID sw. | HOTA | AssA | IDF1 | ID sw. | HOTA | AssA | IDF1 | ID sw. | HOTA | AssA | IDF1 | ID sw. |
| Tracking-based controls | ||||||||||||||||
| SAM 3 [ 7 ] | 74.2 | 87.8 | 78.9 | 324 | 72.6 | 72.5 | 80.7 | 1,715 | – | – | – | – | 64.3 | 72.7 | 79.0 | 1,075 |
| ByteTrack [ 42 ] (ECCV’22) | 63.5 | 69.5 | 61.5 | 3,105 | 53.7 | 45.2 | 53.2 | 2,348 | 56.7 | 67.4 | 68.4 | 797 | 57.4 | 66.2 | 67.1 | 2,018 |
| OC-SORT [ 6 ] (CVPR’23) | 62.9 | 67.2 | 59.8 | 4,503 | 54.8 | 47.2 | 54.4 | 2,565 | 54.7 | 63.0 | 65.2 | 1,045 | 57.2 | 64.8 | 66.5 | 3,539 |
| BoT-SORT [ 2 ] (arXiv’22) | 63.9 | 70.4 | 62.2 | 2,939 | 58.3 | 52.7 | 59.4 | 1,882 | 56.7 | 67.4 | 68.7 | 736 | 57.9 | 67.1 | 68.0 | 1,786 |
| Variant | MAE | CE | IDF1 |
|---|---|---|---|
| CIA | 7.640 | 15.640 | 69.8 |
| Without IEM r | 8.680 | 16.520 | 69.4 |
| Without r | 15.480 | 19.240 | 65.1 |
| Without r | 40.440 | 40.440 | 0.0 |
| Without r | 7.720 | 15.880 | 69.7 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Group | Measurements |
|---|---|
| Appearance | Cosine similarity; margin over the best alternative candidate |
| Geometry | Mask IoU; box IoU; center distance; absolute log area ratio; absolute log aspect-ratio difference |
| Motion/time | Motion residual; time gap; track age |
| Reliability | Detection confidence; tracker confidence; recent occlusion |
| Competition | Column margin; reciprocal best match; competitor count |
| Module | Dimensions |
|---|---|
| Edge encoder | |
| Appearance projection (per set) | |
| Detection node encoder | |
| Candidate node encoder | |
| Attention projections | |
| Feed-forward network (per set) |
| Dataset | Source | Videos | Queries | FPS | Query |
|---|---|---|---|---|---|
| BURST-Count | BURST test [ 4 ] | 868 | 1,556 | 3 | Exhaustively labeled category |
| Dance-Count | DanceTrack validation [ 36 ] | 25 | 25 | 20 | Dancer |
| Animal-Count | AnimalTrack test [ 41 ] | 25 | 25 | 30 | Species name |
| GMOT-Count | GMOT-40 [ 5 ] | 40 | 40 | 30 | Target name or description |
| TAO-Count | TAO validation [ 10 ] | 357 | 639 | 3 | Target category |
| Penguins | VideoCount [ 3 ] | 3 | 3 | 3 | Penguin |
| Dance-Count | Animal-Count | GMOT-Count | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Variant | MAE | CE | IDF1 | ID sw. | MAE | CE | IDF1 | ID sw. | MAE | CE | IDF1 | ID sw. |
| CIA | 1.400 | 2.600 | 78.9 | 1,032 | 7.640 | 15.640 | 69.8 | 483 | 10.684 | 14.842 | 77.8 | 846 |
| Without active candidates r | 1.520 | 2.800 | 79.2 | 1,081 | 9.440 | 16.320 | 69.7 | 465 | 10.868 | 15.079 | 63.3 | 855 |
| Without IEM r | 1.880 | 3.400 | 78.4 | 1,068 | 8.680 | 16.520 | 69.4 | 484 | 11.895 | 15.579 | 77.0 | 766 |
| Without r | 2.240 | 3.520 | 78.3 | 1,152 | 8.720 | 16.160 | 70.5 | 501 | 10.684 | 14.526 | 77.7 | 814 |
| Without r | 1.800 | 3.160 | 79.6 | 1,078 | 7.720 | 15.880 | 69.6 | 519 | 10.553 | 14.184 | 78.2 | 814 |
| Dance-Count | Animal-Count | GMOT-Count | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Variant | MAE | CE | ID sw. | MAE | CE | ID sw. | MAE | CE | ID sw. |
| CIA (30 s; confirmation 5) | 1.400 | 2.600 | 1,032 | 7.640 | 15.640 | 483 | 10.684 | 14.842 | 846 |
| Retention 10 s | 1.440 | 2.560 | 1,024 | 7.520 | 15.680 | 476 | 10.605 | 14.711 | 847 |
| Retention 40 s | 1.400 | 2.600 | 1,027 | 7.640 | 15.640 | 483 | 10.684 | 14.842 | 846 |
| Retention 50 s | 1.400 | 2.600 | 1,023 | 7.640 | 15.640 | 483 | 10.684 | 14.842 | 846 |
| Confirmation 15 observations | 1.280 | 2.640 | 1,023 | 7.680 | 15.520 | 490 | 10.684 | 14.789 | 834 |
| Dataset | MAE | RMSE |
|---|---|---|
| BURST-Count | 0.575 / 0.579 | 1.403 / 1.412 |
| TAO-Count | 0.604 / 0.606 | 1.429 / 1.453 |
| Dance-Count | Animal-Count | GMOT-Count | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Tracker | MAE | CE | HOTA | IDF1 | ID sw. | MAE | CE | HOTA | IDF1 | ID sw. | MAE | CE | HOTA | IDF1 | ID sw. |
| ByteTrack | 37.760 | 39.920 | 53.7 | 53.2 | 2,348 | 26.480 | 37.520 | 56.7 | 68.4 | 797 | 29.868 | 39.658 | 57.4 | 67.1 | 2,018 |
| ByteTrack + CIA | 3.720 | 7.560 | 48.1 | 49.7 | 954 | 9.080 | 22.840 | 53.0 | 62.6 | 388 | 19.053 | 26.895 | 55.9 | 65.9 | 1,487 |
| OC-SORT | 36.120 | 37.960 | 54.8 | 54.4 | 2,565 | 34.400 | 47.680 | 54.7 | 65.2 | 1,045 | 50.553 | 61.289 | 57.2 | 66.5 | 3,539 |
| OC-SORT + CIA | 5.080 | 8.440 | 50.1 | 53.2 | 972 | 9.000 | 24.600 | 50.9 | 59.5 | 473 | 22.289 | 34.079 | 55.8 | 65.7 | 2,588 |
| BoT-SORT | 32.360 | 33.960 | 58.3 | 59.4 | 1,882 | 23.960 | 34.760 | 56.7 | 68.7 | 736 | 26.947 | 36.263 | 57.9 | 68.0 | 1,786 |
| Dataset | Pipeline | MAE | CE | HOTA | IDF1 | ID sw. |
|---|---|---|---|---|---|---|
| Dance-Count | CountVid + CIA | 2.880 | 4.480 | 62.5 | 64.7 | 11,156 |
| Dance-Count | CountGD-Box + SAM 3 + CIA | 3.080 | 4.360 | 65.3 | 73.0 | 1,504 |
| GMOT-Count | CountVid + CIA | 11.025 | 18.475 | 59.6 | 70.8 | 4,746 |
| GMOT-Count | CountGD-Box + SAM 3 + CIA | 9.925 | 15.275 | 62.2 | 76.0 | 965 |