When one network predicts several things about an image at once, such as object labels per pixel, depth, and surface orientation, the usual training signal is each task's own label. Those labels are expensive, and in practice many images are labeled for only some tasks. This note proposes a training signal that needs no labels. A small decoder, used only during training, must redraw the input image from the network's own outputs: the segmentation map, the depth map, and the surface-normal map, plus a deliberately tiny code for color and lighting. If the predicted depth and normals are wrong, or the segmentation disagrees with the geometry, the redrawn image will be wrong. The reconstruction error then flows back through the predictions into the shared network. At test time the decoder is discarded, so inference costs nothing extra.
The idea is an old one, analysis by synthesis, meaning you understand an image by being able to regenerate it. It is applied here at a specific point where it has not been tried. Earlier generative regularizers ask the network's hidden features to retain enough information to rebuild the input. We instead ask the network's answers to explain the input. This distinction matters most when labels are partial. An image with no depth label still yields a gradient on the depth head, because bad depth produces bad shading in the reconstruction.
Core Claim
In partially labeled dense multi-task learning, reconstructing the RGB input from the joint set of task predictions, through a narrow appearance bottleneck, improves the unlabeled tasks more than two alternatives: reconstructing the input from shared features, and autoencoding the stack of predictions in label space. The gain comes from gradients that pass through the prediction heads. With $\hat y_k$ the prediction for task $k$, $m_k \in \{0,1\}$ indicating whether image $x$ carries a label for task $k$, $a = A(x)$ a low-dimensional appearance code, and $D$ a small training-only decoder, the objective is
$$ \mathcal{L} = \sum_{k=1}^{K} m_k\, \mathcal{L}_k(\hat y_k, y_k) \;+\; \lambda\, \big\| x - D(\hat y_1,\dots,\hat y_K,\, a) \big\|_1 . $$
The prediction-to-image path is the whole idea. The bottleneck on $a$ keeps the decoder from simply copying the image through that side channel. The requirement that $\hat y_k$ enter $D$ only in its physical form (softmax probabilities, one depth channel, unit normals) is what stops the predictions from turning into hidden codes for texture.
How this differs from the closest work
Three papers already put a reconstruction or generative objective beside multi-task heads, and each one motivates or constrains the present design.
CORE-MTL splits the shared representation into a semantic stream and a nuisance stream. It then reconstructs the image from both streams, in order to stop the split from becoming arbitrary. That paper notes that its reconstruction is unguided by the task heads. Our decoder does the reverse: it reads only the task outputs plus a tiny appearance code, so the reconstruction is guided by the heads by construction.
Joint-Task Regularization (JTR) targets exactly our regime, partially labeled multi-task learning. It autoencodes the stacked predictions and targets into a joint latent space. It never touches the input image, so it can enforce agreement between tasks but not agreement with the observed image. Its authors list this as an open direction.
Generative Modeling for Multitask Visual Learning trains a separate adversarial image generator conditioned on image-level scene labels, and uses the synthesized images as extra training data. That approach is costly and never inverts dense predictions.
The closest methodological ancestor is outside vision. The Neural CRF Autoencoder reconstructs a sentence from its predicted tag sequence, which shows that inverting predictions can supply semi-supervised signal in structured prediction. We carry that technique over to dense, heterogeneous vision outputs.
Two further papers supply design constraints. Multi-task Learning with 3D-Aware Regularization shows that a training-only branch can be discarded at inference and still help. However, its rendering path depends on tri-plane volume rendering and assumes simple surfaces, and its authors leave semi-supervised use open. Our decoder is a plain 2D convolutional network with no camera model.
Multi-Conditional Learning found that generative weights help only in a narrow window ($\alpha \approx 0.01$). Too much generative pressure wastes capacity on background detail. We therefore treat $\lambda$ as a first-class variable and sweep it rather than tuning it quietly.
Research Program
Building the model. We build on an InvPT-style multi-task transformer (InvPT) with the task set used in the JTR benchmarks. The appearance encoder $A$ produces an 8×8 map with a few channels, or alternatively a global vector. That is enough to carry palette and illumination but far too little to carry edges. The decoder $D$ is a shallow U-Net-free convolutional stack, so it cannot become a strong image prior that ignores its inputs.
Measuring what the decoder uses. Our main analysis asks what $D$ actually relies on. We report reconstruction error when each prediction channel is zeroed. We also probe for texture leakage, by checking whether high-frequency image content can be decoded from the segmentation probabilities of a model trained with our loss versus one trained without it.
Interaction with gradient methods. Our second analysis follows the tension raised by ForkMerge, which argues that gradient conflict alone does not cause harm. We measure whether the reconstruction gradient conflicts with, or aligns with, each task's gradient on the shared encoder, and whether that alignment predicts which tasks benefit.
Setting the generative weight. Our third element compares a fixed $\lambda$ against a velocity-based schedule of the kind in MT-CP, which has only been tested on discriminative losses. The question is whether an adaptive schedule removes the narrow-window sensitivity that Multi-Conditional Learning reported.
Baselines
Do-nothing reference. The naive reference is the same backbone trained only on the labels each image has, which is the "supervised baseline" of the JTR protocol. All relative gains are reported against it.
JTR, the strongest existing method. The strongest competitor is JTR. It is the published method for this exact partially labeled regime, and it reports a +21.92% relative multi-task improvement over the supervised baseline in the NYU-v2 random-labels setting, above MTPSL's +19.66%. We will run JTR from its protocol on the same splits, backbone, schedule, and hyperparameter budget as ours, with equal trial counts. Beating it means a higher relative improvement averaged over three seeds with non-overlapping standard errors, and gains specifically on the tasks with the fewest labels. We also run JTR combined with our loss, because the two constrain different things (agreement between tasks versus agreement with the image) and may stack.
Feature-reconstruction baseline. This decoder rebuilds the image from shared encoder features, in the style of CORE-MTL's soft grounding. It is matched to ours in decoder size and $\lambda$ sweep.
Stop-gradient ablation. In this variant, $D$ is trained but reconstruction gradients are blocked from entering the prediction heads. This isolates our key ingredient: if it matches the full method, the benefit is generic feature regularization, not prediction grounding.
Bottleneck sweep. We sweep the capacity of $a$ from zero up to full resolution. At full resolution the method should collapse to ordinary autoencoding and lose its benefit.
Fully labeled reference. For the fully labeled setting we compare against the 3D-aware regularizer. On InvPT it lifts NYU-v2 segmentation from 53.56 to 54.87 mIoU and reduces depth RMSE from 0.5183 to 0.5006. MT-CP reports 56.25 mIoU and 0.4316 RMSE on NYU-v2 with a different architecture, and we cite that as context rather than as a matched comparison.
Gradient-balancing baseline. We run PCGrad on the same backbone and budget. No reported result was found on Lacuna for PCGrad in this partially labeled setting.
Why not just…?
Why not just reconstruct the image from the shared features, as CORE-MTL and the set-data work do? This is the real threat. Feature reconstruction clearly helps in some regimes: the set-structured multi-task model kept 92.6% accuracy on Set-MNIST with 10% labels, while a lone classifier fell to 9.8%. The limitation is that feature reconstruction only asks the encoder to keep information. It says nothing to a depth head that receives no label on a given image. Our claim is falsifiable on precisely this point. If the feature-reconstruction baseline and the stop-gradient ablation match our method on unlabeled tasks, the proposal is wrong, and we will report it that way.
Why not just use JTR's label-space autoencoder? JTR enforces that predictions look like a plausible joint label stack. A mutually consistent but wrong set of predictions, such as smooth depth with matching smooth normals on a textured wall, passes that check. It fails ours, because the shading will not match the image. We test this directly by grouping errors by image region: our method should help most where JTR's joint prior is ambiguous, namely thin structures and surfaces with strong shading.
Why not just pre-train a masked autoencoder, then fine-tune? Sequential pipelines lose the co-adaptation that joint training provides (Situ et al.). More to the point, pre-training shapes features before any task head exists, so it cannot deliver label-free gradients to the heads on partially labeled images. We will nonetheless run masked-autoencoder initialization with and without our loss. If initialization alone closes the gap, the added loss is not worth its cost.
Why not just use gradient surgery or ForkMerge? These methods reweight or merge existing signals; they add no new signal for unlabeled tasks. ForkMerge also needs a clean validation set. They are complementary to our loss, so we report PCGrad alone and PCGrad combined with our loss.
Proposed Experiments
Benchmarks. We use NYU-v2 (segmentation, depth, normals), PASCAL-Context, and Cityscapes under JTR's one-label-per-image and random-label partial protocols. We also include a fully labeled run on NYU-v2, to check that the loss does not hurt when labels are abundant. Metrics are per-task mIoU, RMSE, and mean angular error, together with the relative multi-task gain $\Delta_m$.
Decisive check 1: gradient path. The full method must beat the stop-gradient and feature-reconstruction controls on tasks whose labels are missing for the image.
Decisive check 2: bottleneck. Performance should rise and then fall as the appearance code grows. That curve is the signature that the decoder is forced to read the predictions.
Decisive check 3: no leakage. Texture decodability from the segmentation probabilities must not increase relative to the supervised baseline.
Robustness check. A secondary test on Colored-Cityscapes asks whether grounding predictions in the image reduces reliance on color shortcuts. No reported number was found on Lacuna for baselines in that setting, so all comparisons there will be run by us.
Weight sensitivity. We report a $\lambda$ sweep over four orders of magnitude, so readers can judge whether the narrow-window problem seen in Multi-Conditional Learning recurs.
References
- CORE-MTL: Rethinking Gradient Balancing via Causal Orthogonal Representations
- Joint-Task Regularization for Partially Labeled Multi-Task Learning
- Generative Modeling for Multitask Visual Learning
- Semi-supervised Structured Prediction with Neural CRF Autoencoder
- Multi-task Learning with 3D-Aware Regularization
- Combining Generative and Discriminative Methods for Pixel Classification with Multi-Conditional Learning
- InvPT: Inverted Pyramid Multi-task Transformer for Dense Scene Understanding
- ForkMerge: Mitigating Negative Transfer in Auxiliary-Task Learning
- Optimizing Dense Visual Predictions Through Multi-Task Coherence and Prioritization
- Multi-task Learning of Classification and Generation for Set-structured Data
- Assisting Main Task Learning by Heterogeneous Auxiliary Tasks with Applications to Skin Cancer Screening