Gradient Pseudo-Angle Supervision for Weakly Supervised Oriented Detection
Geometry-only weak supervision leaves the absolute angle underdetermined; image gradients supply a cheap, image-intrinsic pseudo-angle that sharpens orientation estimates, but the standard AP protocol has to be replaced before that improvement becomes visible to a buyer.
On this page
You have 3 detectors ready to train and a supplier offering angle-aware boxes built from horizontal labels only — yet should you sign the contract? The usual advice is yes. Rotate the image, flip it, and force the predicted angle to follow; the model picks up orientation on its own. That advice is not wrong, but it is indirect: several different angles satisfy the same consistency constraint, and the signal drifts once illumination, colour shift, shadow, occlusion or background clutter enter the frame. GradOrient adds a second, image-intrinsic source of angle evidence and a stricter way to score it [1].
The Default: Let Rotation and Flipping Teach the Angle
The standard recipe for weakly supervised oriented detection is multi-view consistency. Send the same image through the network three times — original, rotated, vertically flipped — and require the predicted angle to transform the same way. H2RBox uses rotation consistency, H2RBox-v2 adds symmetry and flip consistency, EIE-Det adds instance-level orientation constraints, and ABBSPO treats the object's symmetry axis as an extra cue. The point-supervised branch is similar: Point2RBox combines synthetic pattern knowledge with transformation self-supervision, PointOBB uses scale-sensitive consistency plus multiple instance learning, and PointOBB-v2 adds class probability maps and geometric priors [1].
The weakness is baked into the word indirect. A consistency constraint only states that the prediction must rotate when the image rotates; it never states what the absolute angle was in the first place. Several angles satisfy the same constraint, so the solution is not unique, and the paper reports that such supervision turns ambiguous and unstable under illumination changes, colour shifts, shadows and background clutter. For anyone buying data or signing off on a model, a rising validation score therefore does not prove the detector has learned to read orientation.
- H2RBox: rotation consistency between the original and rotated views
- H2RBox-v2: symmetry plus flip consistency on top of rotation
- EIE-Det: instance-level orientation constraints
- ABBSPO: object symmetry as an additional orientation cue
- Point2RBox: synthetic pattern knowledge with transformation self-supervision
- PointOBB and PointOBB-v2: scale-sensitive consistency, class probability maps, geometric priors
Turning Image Gradients into an Angle Answer
The starting observation is plain: ships, aircraft, vehicles, bridges and harbours in remote sensing imagery already have elongated structure and crisp edges, and those edges line up with the physical orientation of the object. If orientation is already in the pixels, why infer it from external labels? The authors build a pseudo-angle generator that accumulates gradient orientations inside an inset region of each annotated box and takes the dominant histogram peak as that object's pseudo-angle, written theta_grad.
| Step | What it does | Why it is there |
|---|---|---|
| Smooth | Gaussian smoothing on the inset box patch | Kills pixel noise so fine texture does not drive the estimate |
| Gradient | Per-pixel Gx, Gy; direction alpha = atan2(Gy, Gx); magnitude m | Gradient direction gives the edge normal |
| Filter | Keep only the top-k% pixels by gradient magnitude | Low-contrast texture and clutter are discarded early |
| Rotate to tangent | phi = (alpha + pi/2) mod pi | Objects align with edges, not with edge normals |
| Histogram | B bins of width pi/B, weighted by magnitude | A single edge is noisy; a peak is stable |
| Peak then refine | Take the top bin centre, collect pixels within one bin width, compute a magnitude-weighted pi-periodic circular mean | Angles are periodic, so plain averaging breaks |
Each pseudo-angle also carries a reliability weight. The normalised histogram entropy is computed, and a flatter histogram yields a lower score q_grad = 1 + sum of p_b log p_b over log B. That weight multiplies into the loss later. One caveat matters for anyone reproducing this: the excerpt gives no concrete values for k, B or the threshold tau_grad, and no ablation table, so any claim such as k equals 20% and B equals 36 is not from this paper.
Wiring the Pseudo-Angle into an Existing Detector
The pseudo-angle cannot be used raw, because the three views live in different coordinate frames. The original view keeps it unchanged, the rotated view adds the rotation angle R and wraps the result back into the pi-periodic range, and the flipped view negates it and wraps. All three views share the same confidence weight q_grad. The angular discrepancy delta is the wrapped absolute difference between the predicted angle and the pseudo-angle, landing in the interval from 0 to pi/2.
There is a subtlety worth spelling out. Gradients indicate which way an edge runs, not which side is the long side, so a pseudo-angle shifted by 90 degrees is still valid. The paper therefore relaxes the discrepancy to d_grad = min(delta, pi/2 minus delta), compressing the range to 0 through pi/4. The loss averages q_grad times a smooth L1 of d_grad over positive predictions, but only predictions whose d_grad stays below a threshold tau_grad enter the sum. Everything is a plug-in on top of H2RBox, H2RBox-v2 and ABBSPO: no rotated box labels, no extra learnable parameters.
Why AP Hides Angular Errors
Average precision scores classification confidence plus spatial overlap, and it never looks at angle. A prediction rotated thirty degrees off can still overlap the ground truth enough to count as a true positive. Figure 1(a) of the paper plots exactly this: two oriented boxes with similar IoU values can differ enormously in angular error. Objects with a near-square aspect ratio make it worse, because rotating such a box barely changes its IoU. The paper states plainly that AP can mask substantial angular errors while spatial IoU stays high [1].
| Conventional AP | Orientation-aware metric |
|---|---|
| Matching uses class confidence and spatial IoU only | Angular discrepancy joins the matching criterion |
| Near-square objects with large angle errors can count as hits | The same predictions are rejected |
| Answers: is the box placed well? | Answers: is the heading estimated well? |
| Community-standard, comparable across papers | Paper-specific, not comparable across papers |
The second contribution is therefore an evaluation metric that folds angular discrepancy into the standard AP protocol while keeping the pipeline intact, so that predictions with excessive angle error stop counting as matches. For anyone auditing model quality, this is arguably worth more than the training trick, because it implies that previously published weakly supervised oriented detection numbers scored with plain AP may have overstated how well those detectors actually read heading.
Where This Method Stops Working
The first boundary is scope. Experiments cover only the horizontal-box to rotated-box setting. The authors argue the strategy is a plug-in usable in other weakly supervised frameworks, but the point-supervised branch is not evaluated here, so that remains a claim rather than a result.
The second is more practical. The excerpt reports no AP numbers, no dataset names and no ablation table; it only states that experiments were run on weakly supervised oriented detection benchmarks. Any sentence of the form rose by several points on a named remote sensing dataset cannot be attached to this paper. Wait for the full experiment section before budgeting a reproduction.
The third follows from the relaxation. Compressing the discrepancy to pi/4 means the supervision constrains the axis, not which end is the long side; width-height assignment is left to box regression. On near-square objects the axis can be right while the long and short sides are swapped, and those are exactly the objects AP forgives most readily.
The fourth is failure scenery. Flat water, hard shadows, motion blur and heavy occlusion flatten the orientation histogram, pushing q_grad towards zero and effectively switching the auxiliary supervision off. Those are the conditions the paper sets out to address, so the method mitigates them but does not remove them.
