Skip to main content
QUICK REVIEW

[Paper Review] Routing Networks: Adaptive Selection of Non-linear Functions for Multi-Task Learning

Clemens M. Rosenbaum, Tim Klinger|arXiv (Cornell University)|Nov 3, 2017
Machine Learning and ELMComputer Science48 citations
TL;DR

This paper proposes routing networks, a novel multi-task learning architecture that uses a router to dynamically compose function blocks (e.g., neural network layers) per input, enabling adaptive, task-specific computation. Trained via collaborative multi-agent reinforcement learning, the model achieves significantly higher accuracy and faster convergence than cross-stitch and shared-layer baselines, with up to 85% faster training on CIFAR-100 (20 tasks).

ABSTRACT

Multi-task learning (MTL) with neural networks leverages commonalities in tasks to improve performance, but often suffers from task interference which reduces the benefits of transfer. To address this issue we introduce the routing network paradigm, a novel neural network and training algorithm. A routing network is a kind of self-organizing neural network consisting of two components: a router and a set of one or more function blocks. A function block may be any neural network - for example a fully-connected or a convolutional layer. Given an input the router makes a routing decision, choosing a function block to apply and passing the output back to the router recursively, terminating when a fixed recursion depth is reached. In this way the routing network dynamically composes different function blocks for each input. We employ a collaborative multi-agent reinforcement learning (MARL) approach to jointly train the router and function blocks. We evaluate our model against cross-stitch networks and shared-layer baselines on multi-task settings of the MNIST, mini-imagenet, and CIFAR-100 datasets. Our experiments demonstrate a significant improvement in accuracy, with sharper convergence. In addition, routing networks have nearly constant per-task training cost while cross-stitch networks scale linearly with the number of tasks. On CIFAR-100 (20 tasks) we obtain cross-stitch performance levels with an 85% reduction in training time.

Motivation & Objective

  • Address task interference in multi-task learning (MTL) by enabling dynamic, input-dependent composition of neural network components.
  • Overcome limitations of fixed architectural designs in MTL, such as shared layers or cross-stitch networks, which can lead to negative transfer.
  • Develop a generalizable framework that allows function blocks (e.g., fully-connected or convolutional layers) to be adaptively selected per input and task.
  • Enable efficient training with constant per-task cost, unlike cross-stitch networks that scale linearly with the number of tasks.
  • Explore the use of multi-agent reinforcement learning to train routers that learn task-specific routing policies while sharing function blocks when beneficial.

Proposed method

  • Design a routing network with two components: a router and a set of function blocks, where the router selects and applies function blocks recursively up to a fixed depth.
  • Implement hard routing decisions using reinforcement learning, with each task having its own independent RL agent to learn a routing policy.
  • Use a collaborative multi-agent RL framework (Weighted Policy Learner) to train the router and function blocks jointly, enabling task-specific adaptation.
  • Allow the router to condition decisions on input features, task identity, recursion depth, and historical routing choices to support dynamic and layered composition.
  • Support heterogeneous function blocks (e.g., different types of layers) as long as they maintain compatible input/output dimensions.
  • Train the system end-to-end using policy gradient methods, with the router’s decisions being non-differentiable but optimized via policy learning.

Experimental results

Research questions

  • RQ1Can a dynamic, adaptive routing mechanism reduce task interference in multi-task learning while improving generalization?
  • RQ2How does the performance of a routing network compare to strong baselines like cross-stitch networks and shared-layer models in terms of accuracy and training efficiency?
  • RQ3To what extent can the router learn task-specific routing strategies that reflect underlying data structure and task similarity?
  • RQ4Does the use of multi-agent reinforcement learning enable better exploration and convergence compared to single-agent or differentiable routing approaches?
  • RQ5Can the routing network maintain constant per-task training cost while scaling to a large number of tasks, unlike architectures that scale linearly?

Key findings

  • Routing networks achieve significantly higher accuracy than cross-stitch networks and shared-layer baselines on MNIST, mini-ImageNet, and CIFAR-100.
  • On CIFAR-100 with 20 tasks, the routing network achieves cross-stitch-level performance with an 85% reduction in training time.
  • The model demonstrates sharper convergence and faster training dynamics, with policy entropy decreasing over time, indicating convergence to stable, task-specific routing strategies.
  • The router learns diverse routing patterns: for MNIST-MTL, the network first uses 7 function blocks, reduces to 4, then expands to 5, indicating non-trivial, learned architectural composition.
  • Analysis shows that routing policies converge to pure strategies (100% probability on one block), with early-arriving agents (e.g., pink and green in Figure 11) dominating specific blocks.
  • The model’s ability to re-use function blocks across tasks is evident in routing maps, suggesting effective positive transfer without negative interference.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.