# FairMOT: On the Fairness of Detection and Re-Identification in Multiple Object Tracking

FairMOT trains detection and re-ID fairly in one tracking network

Yifu Zhang, Chunyu Wang, Xinggang Wang, Wenjun Zeng, Wenyu Liu · arXiv · 2020-4-4

- **Problem** Joint trackers that add re-ID to a detector lose association quality even when detection is good. Anchors, shared features and high feature dimensions favour detection over re-ID.
- **Method** FairMOT builds on the anchor-free CenterNet detector. It gives detection and re-ID branches equal standing on one DLA-34 backbone and reads re-ID features at object centers.
- **Results** Sampling re-ID features at object centers reached IDF1 72.8 and TPR 94.4 on the MOT17 validation set. ROI-Align sampling reached IDF1 71.0 and TPR 93.1.

## Why joint trackers lose accuracy

Most multi-object trackers run a detector first and then a separate re-ID model on every box, which links detections to existing tracks through appearance similarity. That two-model design becomes slow when many objects appear in a frame, because the re-ID model runs box by box and the two models do not share features.

Joint trackers avoid the second model by adding a re-ID head to a detector and reusing its backbone features. Track R-CNN follows this route by adding a re-ID branch to Mask R-CNN. Its detection accuracy stays reasonable, but tracking degrades, and the number of ID switches grows by a large margin.

The authors trace this gap to three design choices: anchors, feature sharing and feature dimension. Anchors tie re-ID training to the boxes proposed for detection, so a poor proposal also degrades the re-ID features, and training favours detection. Shared features force the two tasks to fit different feature depths, and very high re-ID dimensions widen the gap with what detection needs.

## A detection branch and a re-ID branch of equal standing

FairMOT places a detection branch and a re-ID branch side by side on one encoder-decoder backbone, and neither branch is fed by the other. The detection branch is anchor-free, following CenterNet, and the re-ID branch produces a feature at each pixel that describes the object centered there. The authors stress that this is not a plain combination of CenterNet and re-ID, and that the surrounding design choices were settled through empirical studies.

Its convolution layers in the up-sampling modules are replaced by deformable convolutions, which let the receptive field adapt to object scale and pose, and the output has stride four, so H equals the input height divided by 4 and W equals the input width divided by 4. The authors note that other multi-scale networks, such as Higher HRNet, could serve the same role, but no such variant is evaluated in the reported experiments.

Each detection head applies a 3×3 convolution with 256 channels to the DLA-34 output, followed by a 1×1 convolution that produces the final targets. During tracking, the features read at the predicted object centers are the ones used for association.

## Heatmap, offset and size targets

The heatmap response at a location (x, y) is a sum of Gaussian-shaped terms, one per object, with the response dropping as the distance from the object center grows. \\\[ M\_{xy}=\\sum\_{i=1}^{N}\\exp\\left(-\\frac{(x-\\tilde{c}\_{ix})^2+(y-\\tilde{c}\_{iy})^2}{2\\sigma\_c^2}\\right) \\\] Here N is the number of objects in the image, the center on the feature map is written with the tilde symbol from the paper, and sigma\_c is the standard deviation of the Gaussian.

The heatmap is trained as a pixel-wise logistic regression with a focal loss, which weights positive locations by one minus the predicted value raised to alpha, and weights negative locations by a factor involving beta. \\\[ L\_{heat}=-\\frac{1}{N}\\sum\_{xy}\\begin{cases}(1-\\hat{M}\_{xy})^{\\alpha}\\log(\\hat{M}\_{xy}) & M\_{xy}=1\\\\ (1-M\_{xy})^{\\beta}(\\hat{M}\_{xy})^{\\alpha}\\log(1-\\hat{M}\_{xy}) & \\text{otherwise}\\end{cases} \\\] Here \\(\\hat{M}\\) is the estimated heatmap and alpha and beta are predetermined focal-loss parameters.

Because the feature map is four times smaller than the input, rounding the center to the grid can introduce errors of up to four pixels, so an offset head predicts a continuous correction for each location. A size head predicts the height and width of the box at each location, and both the size and offset heads are trained with l1 losses against their ground-truth targets.

## From heatmap peaks to linked tracks

Peaks are extracted from the heatmap with non-maximum suppression, implemented as a 3×3 max pooling, and only locations whose scores exceed a threshold are kept. Boxes are decoded from the offsets and sizes at those locations, and identity embeddings are read at the same centers.

Association follows MOTDT with a two-stage hierarchy. In the first stage, a Kalman Filter predicts each tracklet's location, and the Mahalanobis distance between predicted and detected boxes is fused with the cosine distance of the re-ID features. The fusion is D = λDr + (1−λ)Dm with λ set to 0.98, and the Mahalanobis term is set to infinity beyond a threshold, which keeps implausible motion out of the matching.

The Hungarian algorithm solves this first matching with a threshold τ1 = 0.4.

In the second stage, unmatched detections and tracklets are matched by box overlap with threshold τ2 = 0.5, and the appearance features of each tracklet are updated at every time step. Unmatched detections start new tracks, and unmatched tracklets are kept for 30 frames in case they reappear. The authors report that FairMOT runs at 30 FPS on a single RTX 2080Ti GPU.

## Sampling re-ID features at object centers

Five ways of sampling re-ID features from detections are compared with everything else in FairMOT held fixed: ROI-Align as in Track R-CNN, POS-Anchor as in JDE, Center as in FairMOT, Center-BI with bi-linear interpolation, and a two-stage design. The two-stage design first detects boxes and then runs a re-ID head on ROI-Align features from those boxes.

All variants are evaluated on the MOT17 validation set, and the only difference is how the re-ID features are sampled.

Center reached IDF1 72.8, TPR 94.4 and 299 IDs, while ROI-Align reached IDF1 71.0, TPR 93.1 and 331 IDs, and POS-Anchor reached IDF1 70.3, TPR 93.9 and 434 IDs. MOTA was close across these variants, from 68.7 for ROI-Align to 69.1 for Center, so the gap lies mainly in identity quality. Center-BI reached the highest TPR in the table, 94.9, and IDF1 74.3, which the authors attribute to sampling at more accurate locations.

The two-stage design reached TPR 90.5 and IDF1 68.2 with 388 IDs, below the Center variant on each of these measures. The authors explain this by the two-stage re-ID features depending on the detection results during training, whereas the one-stage variants do not. TPR is computed from ground-truth boxes and is not affected by detection results, so it isolates re-ID quality; the evaluation covers one validation split of MOT17.

## Balancing the detection and re-ID losses

Five weighting strategies are compared: fixed weights found by grid search, Uncertainty-task with two learned parameters, Uncertainty-branch with four, MGDA-UB, and GradNorm. All are evaluated on the MOT17 validation set with MOTA, IDF1, IDs, AP and TPR.

Fixed weights give the highest MOTA, 69.6, and AP, 81.9, but also the most IDs, 387, and the lowest TPR, 93.8. The authors read this as the model being biased toward detection. MGDA-UB has the highest TPR, 97.0, but the lowest MOTA, 63.6, and AP, 78.5, which the authors read as a bias toward re-ID.

GradNorm gives the highest IDF1, 73.8, and the second highest MOTA, 69.5, with 311 IDs and TPR 95.1. The authors took the simpler Uncertainty-task method for the remaining experiments, even though GradNorm is slightly better, because GradNorm takes longer to train.

## Backbones and multi-layer feature fusion

The backbones compared are vanilla ResNet, FPN, HRNet, DLA, HarDNet and RegNet, all tuned to a final stride of four, and they are split into those with and those without multi-layer fusion. ResNet and RegNet receive three up-sampling operations to reach stride four, while the fused backbones already produce it.

RegNetY-4.0GF has the same TPR as ResNet-50, 91.9, although its ImageNet accuracy is higher, 79.4 against 77.8, so a stronger ImageNet backbone did not translate into better re-ID features.

ResNet-34-FPN raised TPR from 90.9 to 94.2 and MOTA to 64.4 against 63.6 for ResNet-34. Adding the same fusion structure to RegNetY-4.0GF gave +1.9 MOTA, +1.3 IDF1, -36.9% IDs, +2.2 AP and +2.3 TPR, according to the authors.

With the detection branch alone trained and the re-ID branch randomly initialized, ResNet-34 detection AP rises by 1 point, yet TPR falls to 36.7 and IDF1 to 60.4, which shows the conflict between the two tasks. The authors read DLA-34 as showing that multi-layer fusion lets each task pull what it needs from the fused features.

## Re-ID feature dimension

The dimensions compared are 512 and 64, applied to JDE and to FairMOT, on the MOT17 validation set. The authors say the lower dimension was chosen to reduce the conflict with detection, and that the frame rate also matters for this choice.

For JDE, 64 dimensions gave MOTA 60.3 and IDF1 65.0, compared with MOTA 59.9 and IDF1 64.1 at 512 dimensions, with 474 IDs against 536. TPR rose from 76.8 to 82.0 and FPS from 22.2 to 24.4 for JDE.

For FairMOT, 512 dimensions gave higher IDF1, 73.7 against 73.3, and higher TPR, 94.6 against 94.3, than 64 dimensions. The 64-dimensional variant gave MOTA 69.2 against 68.5 and 283 IDs against 312, and its AP was 81.3 against 80.9. The authors attribute the MOTA gain to reduced conflict between detection and re-ID, and they note that only the dimensions 512 and 64 were tried.

## Benchmark results under stated protocols

The authors state that FairMOT ranks first among trackers on the 2DMOT15, MOT16, MOT17 and MOT20 benchmarks through the evaluation server. The comparison with JDE on 2DMOT15 uses the six test videos and MIX training data for both trackers.

FairMOT reached MOTA 77.2, IDF1 79.8 and 80 IDs, against MOTA 67.5, IDF1 66.7 and 218 IDs for JDE, and it ran at 30.9 FPS against 26.0. The authors say the anchor-free design is what accounts for this difference over the anchor-based JDE.

Track R-CNN was compared with FairMOT trained on the four MOT17 videos that carry segmentation labels. Track R-CNN reached IDF1 49.4 and 294 IDs, against IDF1 64.0 and 96 IDs for FairMOT, with 2.0 FPS against 30.9 for Track R-CNN and FairMOT respectively. Track R-CNN has the better detection, with FN 2349 against 2537 for FairMOT, and FairMOT has the higher MOTA, 70.2 against 69.2.

Under the private detector protocol on MOT16, FairMOT reached MOTA 74.9 and IDF1 72.8 with 1074 IDs and 25.9 FPS, against JDE's MOTA 64.4, IDF1 55.8 and 1544 IDs. The FPS in this protocol includes both detection and association time, and the other trackers' scores are the values reported in the table. On MOT17 under the same protocol, FairMOT reached MOTA 73.7, IDF1 72.3 and 3303 IDs.

## Single image pre-training on CrowdHuman

Each box in an image-level dataset such as COCO or CrowdHuman is given its own identity and treated as a separate class, and the whole image is augmented with HSV changes, rotation, scaling, translation and shearing. FairMOT is first pre-trained on CrowdHuman and then fine-tuned on MOT17.

Pre-training on CrowdHuman with no identity annotations reached MOTA 64.1 and IDF1 64.9 on the MOT17 validation set, and the authors note it works as a tracker without any video fine-tuning. CrowdHuman followed by MOT17 reached MOTA 71.1 and IDF1 75.6, against MOTA 67.5 and IDF1 69.9 for MOT17 alone. The mixed training data with MOT17 reached MOTA 69.1 and IDF1 72.8, so the CrowdHuman pre-training variant scored higher on both.

## Limitations

The ablations are run on the MOT17 validation set alone, so the sampling, loss, backbone, dimension and association results are not shown on other splits. The 2DMOT15 comparison with JDE uses six test videos, and the Track R-CNN comparison uses four MOT17 videos with segmentation labels. The re-ID dimension is compared only at 512 and 64, and no experiment with other anchor-free detectors is reported.

Training takes about 30 hours on two RTX 2080Ti GPUs, and the 30 FPS speed was measured on one RTX 2080Ti GPU. Table 10 places scores from other trackers beside FairMOT's, and these are reported values rather than runs under one controlled setup.

## Paper info

- **Authors**: Yifu Zhang, Chunyu Wang, Xinggang Wang, Wenjun Zeng, Wenyu Liu
- **Venue**: arXiv · Preprint
- **First published**: 2020-4-4
- **Added**: 2026-11-12
- **Updated**: 2021-10-19
- **Version**: v6
- **arXiv**: 2004.01888
- **DOI**: 10.1007/s11263-021-01513-4
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2004.01888v6) · [PDF ↗](https://arxiv.org/pdf/2004.01888v6)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Yifu Zhang, Chunyu Wang, Xinggang Wang, Wenjun Zeng, Wenyu Liu (2020). FairMOT: On the Fairness of Detection and Re-Identification in Multiple Object Tracking. arXiv:2004.01888v6. https://doi.org/10.1007/s11263-021-01513-4

**BibTeX**

```
@article{zhang2020fairmot,
  title = {{FairMOT: On the Fairness of Detection and Re-Identification in Multiple Object Tracking}},
  author = {Yifu Zhang and Chunyu Wang and Xinggang Wang and Wenjun Zeng and Wenyu Liu},
  year = {2020},
  eprint = {2004.01888},
  archivePrefix = {arXiv},
  doi = {10.1007/s11263-021-01513-4},
  url = {https://arxiv.org/abs/2004.01888v6}
}
```

## Other paper commentary

- [Is Space-Time Attention All You Need for Video Understanding?](https://refivu.com/en/papers/b6bd7278-3728-4d96-9fe0-5f483de3f3bd-is-space-time-attention-all-you-need-for.md)
- [Return of Frustratingly Easy Domain Adaptation](https://refivu.com/en/papers/0a776e2c-6337-4850-9be1-86de976005d2-return-of-frustratingly-easy-domain-adaptation.md)
- [Celeb-DF: A Large-scale Challenging Dataset for DeepFake Forensics](https://refivu.com/en/papers/127fcad1-737e-4bb9-b7b5-7c87f1ab7614-celeb-df-a-large-scale-challenging-dataset-for.md)
- [Cascade R-CNN: High Quality Object Detection and Instance Segmentation](https://refivu.com/en/papers/484c94a6-ca7a-4e4d-a933-9ea5ec919a68-cascade-r-cnn-high-quality-object-detection-and.md)
- [DSSD : Deconvolutional Single Shot Detector](https://refivu.com/en/papers/800d2066-c083-45ac-bb3d-507e72445f62-dssd-deconvolutional-single-shot-detector.md)
- [Activation Functions: Comparison of trends in Practice and Research for Deep Learning](https://refivu.com/en/papers/b7691c32-6640-47d3-9dda-c4586bd48272-activation-functions-comparison-of-trends-in-practice-and.md)
- [PointConv: Deep Convolutional Networks on 3D Point Clouds](https://refivu.com/en/papers/c9a5b52f-78bd-452f-b508-b85a37101523-pointconv-deep-convolutional-networks-on-3d-point-clouds.md)
- [Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings](https://refivu.com/en/papers/54f76c5c-e7e0-4849-8c34-62d4d7e29119-man-is-to-computer-programmer-as-woman-is.md)
- [Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models](https://refivu.com/en/papers/d7cee9c8-e38d-4e30-b35b-f069db83f282-qwen3-embedding-advancing-text-embedding-and-reranking.md)

## Terms in this paper

- [COCO](https://refivu.com/en/terms/41f3215c4f4a-coco)
- [focal loss](https://refivu.com/en/terms/55a77da0ac9c-focal-loss)
- [Average Precision](https://refivu.com/en/terms/1764eaa249a6-average-precision)
- [Feature Pyramid Network](https://refivu.com/en/terms/f5b902e34e57-feature-pyramid-network)
- [MOTA](https://refivu.com/en/terms/0e8c14626093-mota)
- [heatmap](https://refivu.com/en/terms/db912df5b4bc-heatmap)
- [Hungarian Algorithm](https://refivu.com/en/terms/0d512d80548f-hungarian-algorithm)
- [anchors](https://refivu.com/en/terms/82b92d483f18-anchors)
- [CenterNet](https://refivu.com/en/terms/98011a89a2d1-centernet)
- [anchor](https://refivu.com/en/terms/81833206c00d-anchor)
- [CenterTrack](https://refivu.com/en/terms/d17050460447-centertrack)
- [bi-linear interpolation](https://refivu.com/en/terms/bb835ea73950-bi-linear-interpolation)
- [CrowdHuman](https://refivu.com/en/terms/2b6a85730953-crowdhuman)
- [DLA-34](https://refivu.com/en/terms/ec7fad2d4d4a-dla-34)
- [FairMOT](https://refivu.com/en/terms/844d854174a5-fairmot)
- [IDF1](https://refivu.com/en/terms/672798312b92-idf1)
- [IDs](https://refivu.com/en/terms/91a69820311c-ids)
- [Kalman Filter](https://refivu.com/en/terms/c58f9fb50fb8-kalman-filter)
- [MOT16](https://refivu.com/en/terms/b81c44c4f5a6-mot16)
- [MOT17](https://refivu.com/en/terms/7911400062a4-mot17)
- [MOT20](https://refivu.com/en/terms/90dbbcf82344-mot20)
- [Uncertainty](https://refivu.com/en/terms/415f5da6ff10-uncertainty)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/081a3a22-90c6-4c70-a7df-d2e70b35ad22-fairmot-on-the-fairness-of-detection-and-re)
