Protecting the Pose Directions: Gradient Projection for Joint Object Categorization and Continuous 3D Rotation

Suppose one network must both name an object ("chair") and report its 3D orientation as a continuous rotation. The two goals pull the shared features in opposite directions. Categorization rewards features that ignore orientation. Pose regression needs features that change smoothly as the object turns. Existing systems handle this with blunt workarounds: they split the network early, or they train it in a fragile fixed sequence of stages. General-purpose "gradient surgery" methods, which edit conflicting task gradients during joint training, have never been tested on this pairing.

This note proposes a more targeted fix. Take the pose-sensitive directions in feature space to be the directions along which an image's features move when the object is rotated slightly. These directions can be measured directly by rendering or warping each training image through small known rotations. We then remove from the categorization gradient only its component along those directions. Categorization stays free to shape everything else in the shared representation, but it cannot flatten the part that encodes orientation. The claim is that this single projection, which costs one extra forward pass per batch and no extra backward pass, lets simple joint training match or beat the staged schedules and early branching now used for joint category-and-pose models.

Where the gap is

Continuous pose estimation predicts orientation as a point on $SO(3)$, the space of 3D rotations, rather than as one of a few angle bins. Binning imposes an error floor set by the bin width (RotationNet, Pose Estimation for Objects with Rotational Symmetry). Regression, by contrast, needs a geodesic loss that measures the true shortest angle between rotations (3D Pose Regression Using Convolutional Neural Networks). That paper also supplies two ingredients this proposal reuses. First, deep classification layers discard pose sensitivity, so the pose head should branch earlier. Second, "3D pose jittering" can synthesize small viewpoint changes by applying homographies, which are image warps derived from 3D geometry.

Joint models motivate the problem but resolve it by hand. Convolutional Models for Joint Object Categorization and Pose Estimation finds that branching after Pool5 works best and credits the result to reduced gradient interference. It never measures that interference, and it predicts discrete bins. Joint Object Category and 3D Pose Estimation from 2D Images regresses continuous pose from a ResNet-50 shared through Stage 4. Because ImageNet weights erode pose features, it needs a three-stage schedule: pose initialization, then categorization with frozen features, then joint fine-tuning. It reports about 91.8% category accuracy and about 13.6° median viewpoint error on PASCAL3D+. The staged schedule is the thing we aim to remove.

Gradient interference methods supply the machinery.

All three were evaluated on dense pixel tasks such as NYUv2 and CityScapes. All three also define "conflict" by comparing noisy task gradients against each other. None uses knowledge of which feature directions actually carry the conflicting information.

The closest structural relative is GradSplit (Split to Learn). It names the pose-variant versus pose-invariant conflict explicitly, for 2D keypoints versus person re-identification. It resolves the conflict with fixed filter groups and a static compatibility mask found by exhaustive pairwise pre-training.

Our proposal differs from each of these in the same way. The protected subspace is defined by the physics of the pose task, measured online from known rotations. It is not derived from the pose gradient (as in PCGrad and CAGrad), from learned latent rotations (as in RotoGrad), or from fixed filter partitions (as in GradSplit).

Core Claim

Let $z(x) \in \mathbb{R}^d$ be the shared feature of image $x$ at the branching layer. Let $x^{(j)}$ for $j=1,\dots,m$ be copies of $x$ warped by small known rotations $\delta_j$. For each training image in a batch, we collect the displacements $z(x^{(j)}) - z(x)$ and stack them into a matrix. Its top-$r$ left singular vectors form an orthonormal basis $U \in \mathbb{R}^{d \times r}$ of the batch's pose tangent subspace.

We then replace the categorization loss's gradient with respect to the features, $g_{\text{cat}} = \partial \mathcal{L}_{\text{cat}} / \partial z$, by

$$\tilde g_{\text{cat}} = (I - U U^\top)\, g_{\text{cat}},$$

and backpropagate $\tilde g_{\text{cat}} + \partial \mathcal{L}_{\text{pose}}/\partial z$ into the backbone. The pose gradient is left untouched.

The intuition is simple. Categorization achieves invariance by pulling $z(\text{rotated } x)$ toward $z(x)$, which is exactly motion along $U$. Removing that component stops categorization from erasing orientation while leaving its identity-discriminating directions intact. The projection acts on the gradient at one layer only, so the extra cost is the $m$ jittered forward passes.

A second, diagnostic claim accompanies the method. Part of the measured conflict between category and pose gradients is not invariance-versus-variance tension at all. It comes from ambiguous pose targets: symmetric objects, and errors near 180° where the geodesic loss gives unstable gradients (the ambiguity problem flagged by Pose Estimation for Objects with Rotational Symmetry). PCGrad and CAGrad react to this noise as if it were real conflict. The tangent projection ignores it, because $U$ does not depend on pose labels.

Research Program

Step 1: measurement. We train a ResNet-50 with a categorization head and a continuous rotation head on PASCAL3D+. The rotation head uses a geodesic loss on a continuous rotation output, following the decoupled two-vector design of FS-Net, which avoids quaternion double cover. We train it jointly from ImageNet weights with no staging. Along training we log four quantities:

  • the cosine between the two tasks' feature gradients, per sample and per category;
  • the fraction of $g_{\text{cat}}$ energy lying in $U$;
  • a pose-sensitivity score, the mean norm of the tangent displacements, which tracks whether categorization is collapsing pose information;
  • whether negative cosines concentrate on symmetric categories (such as bottle and table) and on samples whose pose error exceeds 90°.

This directly tests the "gradient interference" explanation that Convolutional Models for Joint Object Categorization and Pose Estimation offered only heuristically.

Step 2: the method. We implement the tangent projection with in-plane rotations (exact image rotations) and out-of-plane rotations from homography jittering as in 3D Pose Regression Using Convolutional Neural Networks, with CAD-rendered pairs where they are available. We will vary three settings:

  • the rank $r$;
  • the jitter magnitude, which trades local linearity of the tangent estimate against its signal;
  • the projection layer, comparing Stage 3, Stage 4 and the pooled feature.

We will also compare a batch-shared basis against per-sample bases.

Step 3: transfer. We move to Washington RGB-D, used by Convolutional Models for Joint Object Categorization and Pose Estimation and RotationNet. Its turntable captures give real rather than synthetic small-rotation pairs, which lets us test whether real neighboring views give the same benefit as jittered ones.

Baselines

Naive reference points. The do-nothing point is plain joint training, with a summed loss and a single fixed weight tuned on validation, under the same architecture and branching point. The single-task pose regressor and single-task classifier give the reference used to compute the multi-task drop.

Staged training. The strongest domain-specific competitor is the three-stage schedule of Joint Object Category and 3D Pose Estimation from 2D Images. It is the published solution to exactly this task pair. Its reported numbers are about 91.8% categorization accuracy and about 13.6° median viewpoint error on PASCAL3D+. The single-task reference from 3D Pose Regression Using Convolutional Neural Networks reports 11.7° to 15.4° median geodesic error across categories. We will re-run the staged schedule ourselves, with the same backbone, the same synthetic augmentation budget and the same total epochs. We report both our reproduction and the published figure.

Early branching. We also include early branching at Pool5 / Stage 3 following Convolutional Models for Joint Object Categorization and Pose Estimation, reporting its parameter and FLOP cost alongside accuracy.

Gradient-level competitors. These are PCGrad, CAGrad and RotoGrad applied to the same two tasks. CAGrad is the strongest general-purpose method in the file, with a reported multi-task drop of 0.20% versus 3.97% for PCGrad on NYUv2 (Conflict-Averse Gradient Descent for Multi-task learning). We found no reported result on Lacuna for any of these three methods on PASCAL3D+ or on any continuous-rotation task. Each gradient method gets the same hyperparameter search budget as ours, with 20 configurations on a held-out split and three seeds.

Ablations. Two ablations isolate the key ingredient:

  • projecting $g_{\text{cat}}$ away from a random rank-$r$ subspace, which controls for merely shrinking the categorization gradient;
  • projecting away from the span of the pose gradient itself, which is PCGrad restricted to the feature layer and isolates "pose-physics subspace" from "pose-gradient subspace".

What counts as winning. Beating the baselines means lower median geodesic error and higher accuracy at 30° (the fraction of predictions within π/6 of the truth) than both plain joint training and the staged schedule. Category accuracy must stay within 0.5 points of single-task, with no staging and no duplicated layers. Beating CAGrad additionally requires a smaller relative multi-task drop at lower wall-clock cost.

Why not just…?

Why not just branch early? Early branching works, but it buys separation by duplicating every later layer. Our comparison reports accuracy at matched parameter and FLOP budgets. Joint Object Category and 3D Pose Estimation from 2D Images shows that even branching at Stage 4 still corrupts the shared stages under end-to-end training. That suggests branching moves the conflict rather than removing it. The Step 1 measurements, run at each branching depth, will show whether conflict energy persists in the remaining shared layers.

Why not just run CAGrad or PCGrad? This is the real threat. These methods might already capture most of the gain. Our specific worry is that they spend their correction on ambiguous-pose noise. The pose-gradient-subspace ablation and the per-category breakdown will settle it. If CAGrad matches us on symmetric and asymmetric categories alike, the physics-defined subspace adds nothing beyond cost savings, and we will report exactly that.

Why not just fix the pose loss with a symmetry-aware minimum over equivalent rotations, and reweight the losses? If the diagnostic claim is right, this removes a real chunk of the apparent conflict, so it is a serious alternative. We therefore run it both alone and combined with each gradient method. Scalar weighting cannot undo directional conflict, since CAGrad's analysis shows reweighting only rescales magnitudes. Even so, the relevant empirical test is whether the tangent projection still helps on asymmetric categories after the symmetry fix. If it does not, the paper's contribution becomes the diagnosis.

Why not just add a regularizer that keeps rotated features apart? An auxiliary loss rewarding large tangent displacements is the cheapest competitor. The key difference is that such a loss adds a third objective that can itself conflict with the other two. The projection only removes one direction of force. We include this regularizer, tuned over the same budget, as a baseline.

Decisive Checks

The idea survives only if three results hold.

First, on PASCAL3D+ the tangent projection must reach at least the staged schedule's accuracy (about 13.6° median error in the published result, and our reproduction) without staging. It must also beat the random-subspace ablation. This shows that the direction removed matters, not just the reduction in gradient size.

Second, the pose-sensitivity score must stay flat under the projection but decay under plain joint training. That result would confirm the mechanism rather than only the outcome.

Third, the diagnostic must show that negative category–pose cosines under plain training concentrate on symmetric categories and near-antipodal errors. It must also show that the projection's gain holds on asymmetric categories, where the invariance/variance explanation is the only one available.

If the first result holds but the third does not, we would conclude that the method is regularizing ambiguous targets rather than resolving invariance conflict, and would reframe the work accordingly.