Routing the Lottery: Adaptive Subnetworks for Heterogeneous Data

Grzegorz Stefanski, Alberto Presta, Michal ByraarXiv 2026 · OpenReview

TL;DR

This paper introduces "Routing the Lottery" (RTL), a novel pruning method that discovers multiple specialized subnetworks ("adaptive tickets") tailored to different data subsets (e.g., classes, environments) instead of a single universal subnetwork. RTL significantly outperforms existing methods in accuracy and parameter efficiency across various tasks, demonstrating that adapting network structure to data heterogeneity is key for efficient and performant deep learning.

What Problem Does This Paper Address?

Modern deep neural networks are incredibly powerful but also notoriously resource-intensive, requiring billions of parameters and significant computational power. Pruning techniques aim to reduce this complexity by identifying and removing redundant network components. The "Lottery Ticket Hypothesis" (LTH) suggests that sparse subnetworks within larger networks can be trained in isolation to achieve similar performance. However, existing LTH-based methods typically assume a single "winning ticket" (a sparse subnetwork) that must work for all inputs. This is problematic because real-world data is heterogeneous; different classes, environments, or data clusters often require distinct feature representations. Forcing a single, rigid subnetwork to handle all these variations can lead to suboptimal performance and inefficient resource allocation. This paper addresses this limitation by proposing a method to find multiple, specialized subnetworks that adapt to the inherent diversity of data.

Methods

The core innovation is the "Routing the Lottery" (RTL) framework. Instead of finding one sparse subnetwork for the entire dataset, RTL aims to discover K specialized subnetworks, each optimized for a specific subset of the data (e.g., a class in CIFAR-10, an acoustic environment in speech enhancement).

Here's how it works:

  • Adaptive Pruning Objective: The goal is to jointly learn a set of K masks, where each mask m_k selects a subnetwork f(x; m_k ⊙ θ) for a corresponding data subset D_k. This is formulated as minimizing the overall loss across all subsets while adhering to a sparsity constraint for each subnetwork.
  • Adaptive Ticket Extraction: Starting with a dense network, RTL iteratively trains and prunes subnetworks. For each data subset D_k, the network is trained for a few steps, then pruned based on weight magnitudes. Crucially, the weights are then reset to their initial values, and this process is repeated until the desired sparsity level is reached for each subnetwork. This ensures that each "adaptive ticket" is discovered from the original initialization.
  • Joint Retraining: After extracting the K specialized subnetworks (masks), a lightweight joint retraining phase is performed. Here, each subnetwork is trained exclusively on its corresponding data subset. Importantly, the gradient updates are masked so that only the active weights of the specific subnetwork are updated, preventing interference and catastrophic forgetting. This preserves the discovered sparsity structure and reinforces specialization.

This approach allows for a single, shared backbone network to dynamically adapt its structure based on the input data, without requiring auxiliary routing networks or additional parameters.

Datasets

The paper evaluates RTL on several diverse datasets:

  • CIFAR-10: Used for class-specific subnetwork specialization.
  • CIFAR-100: Used for cluster-aware pruning, where classes are grouped into 8 semantic clusters using an unsupervised text-based clustering pipeline.
  • ADE20K: Used for Implicit Neural Representations (INRs), where specialization is applied to semantic regions within a single image.
  • DNS Challenge 2020 & TAU Urban Acoustic Scenes 2020: Used for speech enhancement, with subsets defined by acoustic environments (indoor, outdoor, transportation).

Key Insights and Ideas

  • Data Heterogeneity is Key: The paper strongly argues that a one-size-fits-all pruning approach is suboptimal for heterogeneous data. Tailoring subnetworks to specific data characteristics (classes, environments, regions) unlocks significant performance gains.
  • Subnetwork Collapse is a Real Problem: As pruning becomes more aggressive, subnetworks can start to overlap excessively. This "subnetwork collapse" leads to a sharp drop in performance.
  • Mask Similarity as a Diagnostic Tool: The authors introduce a "subnetwork similarity score" (Jaccard index) that acts as a label-free indicator of oversparsification. A sharp increase in mask similarity reliably precedes performance degradation, providing an early warning for collapse.
  • Specialization for Efficiency: RTL achieves its performance gains while using significantly fewer parameters than independent models, demonstrating that adaptive pruning can lead to more compact and deployable models.
  • Semantic Alignment: The learned subnetworks show a clear alignment with semantic concepts, especially in deeper layers, suggesting that RTL not only prunes but also organizes the network structure in a meaningful way.

Key Results

  • CIFAR-10: RTL achieved the highest balanced accuracy and recall across all sparsity levels, outperforming single-model IMP by up to 0.07 and multi-model IMP by up to 0.06 at 25% sparsity. It used up to 10x fewer parameters than multi-model IMP.
  • CIFAR-100: Despite imperfect semantic clusters, RTL still achieved the highest balanced accuracy and recall, demonstrating robustness to noisy data partitioning.
  • Implicit Neural Representations (INRs): RTL consistently achieved higher PSNR (up to 3 dB at 25% sparsity) than the single-model IMP baseline, especially at higher sparsity levels, indicating better preservation of image details.
  • Speech Enhancement: RTL achieved the highest SI-SNRi across all sparsity levels, outperforming both IMP baselines, demonstrating its effectiveness in real-world acoustic environments.
  • Parameter Efficiency: Across tasks, RTL consistently achieved comparable or superior performance with significantly fewer parameters than multi-model baselines. For example, on CIFAR-10, it used 103K parameters compared to 944K for multi-model IMP at 25% sparsity.

Limitations and Future Work

  • Subnetwork Collapse: While RTL identifies subnetwork collapse, the paper notes that recovery without full retraining might be difficult once critical sparsity thresholds are crossed. This suggests that careful control of pruning levels is important.
  • Precision vs. Recall Trade-off: The paper notes that RTL subnetworks tend to favor recall over precision. While beneficial for some applications, this might require post-processing (e.g., thresholding) for tasks where high precision is critical.
  • Routing Mechanism: RTL uses simple context-based routing (e.g., labels). Future work could explore more dynamic or learned routing mechanisms, potentially bridging the gap with Mixture-of-Experts (MoE) architectures while retaining structural efficiency.
  • Generalization: The paper positions RTL as a precursor to more modular and context-aware deep learning. Further research could explore how to integrate this adaptive pruning into broader modular network designs.

Summary updated

BibTeX
@misc{stefanski2026routing,
  author = {Grzegorz Stefanski and Alberto Presta and Michal Byra},
  title = {{Routing the Lottery: Adaptive Subnetworks for Heterogeneous Data}},
  year = {2026},
  eprint = {2601.22141},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.22141},
}
Figure