Oriented Semi-DETR for Semi-Supervised Aerial Object Detection

Yuqiu Li, Jian Xue, Fan Li, Ke LuarXiv 2026 · arXiv

TL;DR

Oriented Semi-DETR addresses the "two-to-one" parameter ambiguity inherent in oriented bounding boxes, which often causes teacher-student frameworks to fail during semi-supervised training. By introducing swap-aligned target selection and swap-invariant matching costs, the authors enable stable training for aerial object detection, achieving state-of-the-art results on the DOTA-v2.0 benchmark without adding extra parameters or computational overhead.

What Problem Does This Paper Address?

In aerial imagery, objects like ships and planes appear at arbitrary orientations. To detect them accurately, models use Oriented Bounding Boxes (OBBs). However, OBBs suffer from a mathematical quirk: the mapping from parameters to a rectangle is "two-to-one." Specifically, a box defined by $(c_x, c_y, w, h, \theta)$ is geometrically identical to one defined by $(c_x, c_y, h, w, \theta + \pi/2)$.

In a semi-supervised teacher-student framework, the teacher generates "pseudo-labels" to train the student. If the teacher encodes a box one way and the student predicts it the other way, the student receives a massive penalty for a "localization error" that doesn't actually exist. In DETR-based detectors, this ambiguity is particularly destructive because it messes up the Hungarian matching (assigning queries to objects) and the Gaussian Mixture Model (GMM) filtering (deciding which pseudo-labels are reliable). A perfectly localized student box might be discarded simply because its width and height were swapped relative to the teacher's label.

Methods

The authors propose Oriented Semi-DETR, which modifies the standard Semi-DETR pipeline at three critical points where pseudo-labels enter training:

  1. Swap-aligned Target Selection: Instead of forcing the student to match the teacher's arbitrary encoding, the model identifies which of the two equivalent encodings is closer to the student's current prediction and uses that as the regression target.
  2. Swap-invariant Reliability Cost: The GMM filter, which separates "reliable" from "unreliable" pseudo-labels, is modified to use a matching cost that takes the minimum distance over both possible encodings. This ensures the filter judges the student based on geometry alone, not parameterization.
  3. Swap-aware Pseudo-label Denoising: The authors improve the denoising process (where the model learns to recover ground truth from perturbed boxes) by starting it earlier in the training schedule and weighting queries by both the teacher's confidence score and an "encoding margin" (how distinct the two encodings are for a given box).
Fig. 1. Overview of Oriented Semi-DETR. The teacher runs on the weakly augmented view and produces pseudo boxes, and the student runs on the strongly augmented view. Both decoders receive the same three query groups, kept apart by an attention mask: consistency queries, contrastive denoising (CDN) queries, and matching queries. An oriented box has two encodings, b and σ(b), for the same rectangle. We select the one closer to the student prediction and apply that choice at the numbered steps.

Crucially, these modifications are parameter-free and require no additional forward passes, making the improvement "free" in terms of inference speed and model size.

Datasets

The model was evaluated on DOTA-v2.0, a large-scale dataset for object detection in aerial images. The authors followed a partial-label protocol, testing the model with 10%, 20%, and 30% of the training data labeled, as well as a "fully labeled" setting where the entire training set is used alongside additional unlabeled test-challenge images.

Key Insights and Ideas

  • The Ambiguity is Prevalent: At 20k iterations, the "swapped" encoding is actually closer for nearly 17% of matched pseudo-label pairs. Ignoring this leads to a 19% flip in Hungarian assignments and a 7% error rate in GMM filtering decisions.
  • Near-Square Boxes are the Culprits: The ambiguity is most harmful for objects that are nearly square (like storage tanks or roundabouts). For these objects, the $w$ and $h$ values are similar, making it very easy for the model to flip them and incur a high angular penalty.
  • Matching Matters More than Loss: Simply using a rotation-invariant loss (like Gaussian-based losses) isn't enough for DETR. The ambiguity must be resolved during the matching phase to prevent the bipartite matcher from becoming unstable.
  • Encoding Margin: The authors found that weighting the angle loss by the "relative separation" of the two encodings helps the model focus on orientation where it is most clearly defined (i.e., for long, thin objects).

Key Results

Oriented Semi-DETR consistently outperformed both supervised baselines (DINO) and existing semi-supervised methods (Semi-DETR, Sparse Semi-DETR) across all label ratios.

  • 10% Labeled: Achieved 27.61 mAP, a gain of ~1.8 points over the best baseline.
  • 30% Labeled: Reached 32.19 mAP, outperforming the baseline by ~2.6 points.
  • Strict Thresholds: The gains were most pronounced at the strict $AP_{75}$ metric (up to 4.04 points higher at the 30% ratio), indicating that the method significantly improves fine-grained localization.
Table 3. Contribution of each regression target. The swap-invariant GMM cost is active in all rows, and the last column gives the pseudo- label denoising design. The results are from DOTA-v2.0 test-dev under 30% labeled protocol.

Limitations and Future Work

  • Training Schedule: The authors noted that their 180k iteration schedule, while standard for partial splits, might be too short for the "fully labeled" setting, potentially leaving some performance on the table.
  • One-to-Many vs. One-to-One: The current study focused on the "one-to-many" matching stage of Semi-DETR. The impact of these rules on the "one-to-one" stage remains an open question for future research.
  • Unlabeled Data Quality: The test-challenge images used as unlabeled data in the full setting contained significant noise (clouds, fog), which limited the gains compared to the cleaner training set.

Not discussed in the paper: The computational cost of calculating the rotated IoU term within the swap-invariant cost, though the authors claim the overall per-iteration computation remains unchanged.

Summary updated

Abstract

Semi-supervised object detection has recently been extended to DETR, where oriented boxes introduce an ambiguity that does not arise for axis-aligned boxes: the map from parameters to rectangles is two-to-one, since $(c_x,c_y,w,h,θ)$ and $(c_x,c_y,h,w,θ+π/2)$ denote the same rotated rectangle. Losses and matching costs are computed from the parameters, so two boxes that coincide in space can be far apart in the metric that drives training. A correctly localized student box is then penalized by the regression loss, and the inflated matching cost leads the Gaussian mixture model (GMM) filter to discard it. We propose Oriented Semi-DETR, which removes this ambiguity wherever a pseudo box enters training. Swap-aligned Target Selection regresses towards the encoding closer to the student prediction. A Swap-invariant Reliability Cost minimizes over the two encodings inside the matching cost, so the filter decides on geometry alone. Swap-aware Pseudo-label Denoising starts denoising earlier, ramps its loss weight linearly, and weights each query by the teacher score and encoding margin. All three are parameter-free and require no additional forward pass. Across all label ratios of DOTA-v2.0, Oriented Semi-DETR outperforms DETR-based supervised and semi-supervised baselines, with the largest gains at the strict IoU threshold.
BibTeX
@misc{li2026oriented,
  author = {Yuqiu Li and Jian Xue and Fan Li and Ke Lu},
  title = {{Oriented Semi-DETR for Semi-Supervised Aerial Object Detection}},
  year = {2026},
  eprint = {2611.21223},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21223},
}
Figure