NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Module-Aware Optimization for Auxiliary Learning

Hong Chen, Xin Wang, Yue Liu, Yuwei Zhou, Chaoyu Guan, Wenwu Zhu

Standard auxiliary learning treats neural networks as monolithic blocks, applying a single weight to each auxiliary loss. MAOAL (Module-Aware Optimization for Auxiliary Learning) breaks this mold by learning fine-grained importance weights for every auxiliary loss at the individual module level, effectively filtering out "negative transfer" and maximizing the benefit of extra data.

The "One-Size-Fits-None" Problem

In deep learning, we often use auxiliary losses (like predicting image rotation or a related sub-task) to help a model perform better on its primary goal. However, existing methods usually assign a single global weight to these losses.

The authors point out a major flaw in this standard approach: an auxiliary task might be helpful for the "shallow" layers of a network (which learn general features) but actually harmful to the "deep" layers (which need to be highly specialized for the primary task). By forcing a single weight across the whole model, we often end up with a "one-size-fits-none" compromise that fails to fully exploit auxiliary information.

Comparison between existing model-level weighting and the proposed module-aware approach.

Introducing MAOAL

To solve this, the authors propose MAOAL, a bi-level optimization framework that treats the importance of each auxiliary loss to each module as a learnable parameter.

  1. Module Definition: A "module" is flexible—it can be a ResNet block, a Transformer layer, or even a single MLP layer.
  2. The Importance Matrix ($\alpha$): Instead of one weight per loss, MAOAL maintains a matrix where $\alpha_{ij}$ represents the importance of auxiliary loss $i$ to module $j$.
  3. Bi-level Optimization Loop:
  4. Lower Optimization: The model parameters are updated using gradients reweighted by the current importance matrix.
  5. Upper Optimization: The importance matrix itself is updated. The "signal" for this update comes from a small developing dataset ($D_{dev}$). If an auxiliary loss helps the model perform better on the primary task in $D_{dev}$, its importance weight for that specific module increases.
  6. Efficiency: To avoid the massive memory cost of calculating second-order derivatives (gradients of gradients), the framework uses a "best-response approximation" to estimate the implicit gradient efficiently.
The MAOAL bi-level optimization process.

Key Insights and Discoveries

By applying MAOAL across diverse domains—including image classification, recommendation systems, dense prediction, and hierarchical tasks—the researchers uncovered several valuable insights:

  • Spatial Sensitivity: Auxiliary information is not "globally" useful. The paper confirms that shallow layers generally benefit more from auxiliary tasks than deep layers.
  • Automatic "Off" Switch: When an auxiliary task is harmful or irrelevant, MAOAL's learned weights naturally trend toward zero, effectively shielding the model from negative transfer.
  • Regularization as Auxiliary Learning: Interestingly, the authors show that L2 regularization can be optimized as an auxiliary loss. MAOAL learns that more complex modules (like task heads) require higher regularization than simpler ones.
  • Data-Driven Granularity: Because the importance is learned from data, the user doesn't need expert knowledge to decide which layers should share which tasks.

Performance and Results

MAOAL consistently outperformed state-of-the-art baselines (like GCS and AuxL) across all tested scenarios.

  • Superior Accuracy: On the CUB dataset, MAOAL achieved 77.30% accuracy, outperforming the single-loss baseline (77.29%) and significantly beating equal-weighting (71.68%).
  • Semi-Supervised Gains: The method shines when labels are scarce. In a 20% label setting on CUB-semi, MAOAL reached 52.36% accuracy, while the standard baseline lagged at 48.15%.
  • Recommendation Performance: On the Amazon Beauty dataset, MAOAL achieved the lowest RMSE (1.0873), proving its utility beyond just computer vision.

Limitations and Future Work

The primary limitation acknowledged is computational overhead. Because the method calculates gradients for every auxiliary loss individually, the training time scales linearly with the number of auxiliary tasks. Finding ways to reduce this cost is a key direction for future research. Additionally, while the "module" definition is flexible, the optimal level of granularity (e.g., layer-wise vs. block-wise) remains a hyperparameter that users must choose.

Summary updated

BibTeX
@inproceedings{chen2022module,
  author = {Hong Chen and Xin Wang and Yue Liu and Yuwei Zhou and Chaoyu Guan and Wenwu Zhu},
  title = {{Module-Aware Optimization for Auxiliary Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure