Modeling the Uncertainty with Maximum Discrepant Students for Semi-supervised 2D Pose Estimation

Jiaqi Wu, Junbiao Pang, Qingming Huang

TL;DR

Semi-supervised pose estimation struggles because heatmap confidence scores do not reliably reflect coordinate accuracy, often causing self-training models to learn from bad pseudo-labels. The authors propose Maximum Discrepant Students (MDSs), a dual Mean-Teacher framework that uses a parameter adversarial loss to force two student models apart and evaluates pseudo-labels using a "triplet uncertainty" metric across both models and data augmentations. This enables effective pseudo-label selection without relying on deceptive confidence scores.

What Problem Does This Paper Address?

In semi-supervised image classification, filtering pseudo-labels is straightforward: retain predictions where the softmax probability (confidence) is high. However, modern 2D pose estimation models regress keypoint coordinates as Gaussian heatmaps.

In this heatmap regime, peak confidence merely represents the probability that a specific pixel is a keypoint relative to its immediate neighborhood; it does not indicate whether that peak is geographically correct. Over the course of training, an overconfident model often produces high-confidence peaks at completely incorrect locations. Filtering pseudo-labels by confidence therefore injects noise and incorrect labels into training, sometimes making semi-supervised models perform worse than simple supervised baselines.

Methods

                  ┌──────────────────────┐
                  │    Unlabeled Image   │
                  └──────────┬───────────┘
                             │
            ┌────────────────┴────────────────┐
            ▼                                 ▼
      [ Teacher 1 ]                     [ Teacher 2 ]
      (EMA of S_1)                      (EMA of S_2)
            │                                 │
            └─────────► Triplet ◄─────────────┘
                        Uncertainty
                        Estimator
                             │ (Filter: all unc < 3.0 px)
                             ▼
                 [ Validated Pseudo-Labels ]
                             │
            ┌────────────────┴────────────────┐
            ▼                                 ▼
      [ Student 1 ] ◄─── Cosine ────► [ Student 2 ]
     (Trained on T2      Adversarial  (Trained on T1
      pseudo-labels)        Loss       pseudo-labels)

The authors introduce a dual Mean-Teacher framework designed to quantify epistemic uncertainty instead of relying on confidence:

  • Dual Mean-Teacher with Cross-Supervision: The system maintains two student models ($S_1, S_2$) and their Exponential Moving Average (EMA) teacher counterparts ($T_1, T_2$). Unlabeled predictions generated by $T_2$ supervise $S_1$, while $T_1$'s pseudo-labels supervise $S_2$.
  • Parameter Adversarial Mechanism: Multiple estimators often converge to identical solutions (model homogenization). To ensure distinct decision boundaries, the authors add a parameter adversarial loss ($L_a$) that directly minimizes the cosine similarity between the weight vectors of the two students: $$L_a = \frac{\theta_{S_1} \cdot \theta_{S_2}}{\|\theta_{S_1}\| \|\theta_{S_2}\|}$$
  • Triplet Uncertainty for Quality Assessment: Rather than looking at heatmap peak heights, pseudo-label reliability is measured through three spatial distance metrics:
  • Augmented Internal Uncertainty ($unc_{aug}^{int}$): Average pairwise coordinate distance among predictions from a single teacher across $M$ augmented views of the same image.
  • Augmented External Uncertainty ($unc_{aug}^{ext}$): Euclidean distance between the mean augmented predictions of Teacher 1 and Teacher 2.
  • Raw External Uncertainty ($unc^{ext}$): Euclidean distance between Teacher 1 and Teacher 2 predictions on the unaltered raw image.

A pseudo-label is only admitted into the labeled training pool if all three uncertainty distances fall below a strict threshold ($\epsilon = 3.0$ pixels).

Datasets

The authors evaluated their approach on three benchmarks:

  • FLIC: A human pose dataset from movie stills (1,000 training images [50% labeled], 500 test images; evaluating left shoulder and waist).
  • Pranav: A public mouse pose dataset (100 training images [30% labeled], 500 test images; 4 keypoints).
  • Mouse (New Benchmark): An author-collected dataset of 1,000 real-world laboratory RGB images ($256 \times 256$) featuring 9 anatomical keypoints (nose, eyes, ears, head, tail root, tail, and tip). 100 training images (30% labeled) and 500 test images were used.

Key Insights and Ideas

  • Confidence is decoupled from spatial error: The authors highlight that as training epochs increase, heatmap confidence frequently approaches 1.0 even when the keypoint error remains flat or worsens.
  • Orthogonalizing parameters forces distinct perspectives: Ensembling only works when models make uncorrelated mistakes. By penalizing parameter alignment between the two students, the models maintain divergent decision boundaries without sacrificing task performance.
  • Multi-view + Multi-model agreement as a proxy for correctness: Low predictive variance across different perturbations (data augmentation invariance) paired with agreement between two adversarially separated teachers serves as a robust filter for pseudo-label accuracy.

Key Results

The method was benchmarked against supervised Stacked Hourglass (HG), standard Mean Teacher (MT), and Easy-Hard Augmentation (EHA):

  • Pranav Mouse Dataset: MDSs achieved an MSE of 5.66 and [email protected] of 0.660, significantly outperforming the supervised baseline (9.39 MSE / 0.485 PCK) and standard Mean Teacher (6.54 MSE / 0.554 PCK).
  • Author's Mouse Dataset: MDSs reached an MSE of 4.10 and [email protected] of 0.687 (compared to supervised 5.29 / 0.583 and MT 4.75 / 0.627).
  • FLIC Dataset: MDSs attained the lowest MSE (27.47 vs. supervised 29.70 and MT 33.68), though its [email protected] (0.420) was lower than the supervised baseline (0.477), reflecting the difficulty of generating accurate keypoints on complex human poses with very few labeled samples.
  • Ablation on Parameter Adversarial Loss (PAL): Including the adversarial parameter loss improved test [email protected] from 0.675 (without PAL) to 0.693 on the mouse benchmark, confirming that explicit weight divergence prevents model collapse.

Limitations and Future Work

  • Mixed results on complex benchmarks: On the human pose FLIC dataset, while MSE improved, PCK decreased compared to the supervised baseline, indicating that under extreme data scarcity, uncertainty filtering can still struggle to find valid landmarks on highly variable articulated poses.
  • Computational overhead: The architecture requires training two student models, tracking two EMA teachers, and generating multiple forward passes per unlabeled sample across augmented variations, significantly multiplying training cost.
  • Limited scale of evaluation: Experiments were restricted to small subsets (100–1,000 images) and small keypoint counts (2 to 9 keypoints). Validation on large-scale standard benchmarks like MS COCO Keypoint Detection was not reported.

Summary updated

BibTeX
@inproceedings{wu2023modeling,
  author = {Jiaqi Wu and Junbiao Pang and Qingming Huang},
  title = {{Modeling the Uncertainty with Maximum Discrepant Students for Semi-supervised 2D Pose Estimation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=wOTLra5iXh},
}
Figure