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

Beyond Shared Hierarchies: Deep Multitask Learning through Soft Layer Ordering

Elliot Meyerson, Risto Miikkulainen

TL;DR

Standard multitask learning (MTL) assumes that tasks must share information at the exact same hierarchical level (e.g., Task A's Layer 1 must align with Task B's Layer 1). This paper introduces Soft Layer Ordering, a flexible approach where tasks learn to use shared neural "building blocks" in different sequences and at different depths. This method significantly improves performance across diverse and even superficially unrelated tasks.

What Problem Does This Paper Address?

In deep learning, we generally assume a strict hierarchy: early layers extract low-level features (like edges), while later layers extract high-level concepts (like faces). Existing multitask learning methods inherit this assumption, using what the authors call "parallel ordering." They force all tasks to share the same layers at the exact same depths.

The authors argue this rigid structure is a major bottleneck. If you are training a model to recognize both handwritten characters and facial attributes, the "low-level" features needed for one task might be considered "mid-level" for another. Forcing them to align at the same depth restricts the model's ability to find commonalities. The paper asks a fundamental question: Is parallel ordering actually necessary for deep MTL, or can we achieve better performance by letting tasks choose their own path through shared layers?

Methods: From Rigid Hierarchies to Functional Primitives

To address the limitations of parallel ordering, the authors propose a transition from rigid hierarchies to flexible "functional primitives."

Comparison of MTL architectures including standard parallel ordering (a) and the proposed soft ordering (b).
  1. Permuted Ordering (The Foil): To test their hypothesis that strict ordering is unnecessary, the researchers first experimented with giving different tasks different fixed random sequences of the same shared layers. Surprisingly, they found that models could still learn effectively even when the layer order was scrambled between tasks.
  2. Soft Layer Ordering (The Solution): Instead of a fixed order, they introduce a "soft" routing mechanism. For a model with $D$ shared layers, the output at any depth $k$ is a weighted sum of all shared layers applied to the previous depth's output.
  3. The model learns a tensor $S$ of task-specific scaling parameters.
  4. For each task $i$, at each depth $k$, the scaling parameter $s_{(i,j,k)}$ determines how much the $j$-th shared layer contributes.
  5. This allows the network to learn a "soft" path for each task, effectively discovering which "building block" is most useful at which stage of processing.

Datasets

The authors evaluated their approach on four distinct benchmarks to test its versatility:

  • MNIST: Binary classification tasks (e.g., 1 vs 2, 3 vs 4) with randomized input transformations to create dissimilarity.
  • UCI Repository: Ten "superficially unrelated" datasets (e.g., Australian credit, Breast cancer, Wine quality) trained jointly.
  • Omniglot: A multi-alphabet character recognition dataset containing 50 different alphabets.
  • CelebA: A large-scale dataset for facial attribute recognition (40 binary attributes per image).

Key Insights and Ideas

  • Breaking the Hierarchy Myth: The paper demonstrates that the "parallel ordering" assumption is often a hindrance. Shared layers don't have to represent a fixed level of abstraction; they can act as general-purpose modules.
  • Functional Primitives: By allowing flexible ordering, layers specialize into "functional primitives"—reusable transformations that can be applied in different contexts. For example, a layer might learn to "expand the left side of a stroke," a function useful at different stages for different characters.
  • The Identity "Skip" Connection: In the CelebA experiments, adding an "identity layer" (which passes data through unchanged) as one of the shared options allowed tasks to effectively "skip" layers they didn't need, further improving performance.
  • Scaling to Unrelated Tasks: Soft ordering is particularly powerful when tasks are diverse. While standard MTL often suffers from "negative transfer" (where unrelated tasks hurt each other's performance), soft ordering finds ways to make them coexist or even help one another.

Key Results

  • Omniglot: Soft ordering achieved a test error of 23.19% (on a 10% split), significantly outperforming standard parallel MTL (27.17%) and previous state-of-the-art tensor factorization methods (which ranged from 28.78% to 31.08%).
  • CelebA: The method reduced test error to 8.64%, compared to 10.37% for single-task learning and 9.58% for the standard MTL baseline.
  • UCI Tasks: On the ten unrelated UCI datasets, parallel and permuted ordering showed no improvement over 1,000 iterations, while soft ordering decisively reduced error, proving it can exploit regularities even in disparate domains.

Limitations and Future Work

  • Architectural Constraints: Currently, all shared layers must have the same input and output dimensions so their results can be summed. This prevents the use of layers that change the data shape (like pooling layers) within the soft-ordered block.
  • Computational Overhead: While the number of task-specific parameters is small ($D^2$ per task), calculating the weighted sum of all layers at every depth increases the computational cost during training.
  • Future Directions: The authors suggest extending this to "modules" with more general structures (not just layers) and exploring how these learned "primitives" can be reused for zero-shot or few-shot learning on entirely new tasks.

Summary updated

BibTeX
@inproceedings{meyerson2018beyond,
  author = {Elliot Meyerson and Risto Miikkulainen},
  title = {{Beyond Shared Hierarchies: Deep Multitask Learning through Soft Layer Ordering}},
  booktitle = {International Conference on Learning Representations},
  year = {2018},
  url = {https://openreview.net/forum?id=BkXmYfbAZ},
}
Figure