Generative Multi-Label Image Classification Using a Fixed-Routing Mixture of Experts

Heng TianarXiv 2026

TL;DR

Real-world images rarely contain just one thing—a street scene might have a car, a pedestrian, a traffic light, and a dog all at once. Instead of forcing a single neural network to juggle every possible combination of labels in one shared parameter space, this paper proposes Fixed-Routing Mixture-of-Experts (FR-MoE), a generative framework that groups frequently co-occurring labels together and assigns them to specialized "expert" sub-networks before training even begins. The result is a simpler, more stable Mixture-of-Experts model that outperforms existing methods across four major multi-label benchmarks.

What Problem Does This Paper Address?

In Multi-Label Image Classification (MLIC), the goal is to predict all semantic concepts present in an image. Because objects in the real world appear together in predictable ways (e.g., fork and knife, or sky and cloud), modeling label co-occurrence is crucial.

Traditionally, methods like graph convolutional networks or attention-based decoders try to capture all these relationships within a single, unified parameter space. That works fine when there are only a few dozen labels, but as the label vocabulary grows into the hundreds, different groups of labels exhibit wildly different statistical patterns. Squeezing them all into one shared space creates a representation bottleneck.

Mixture-of-Experts (MoE) architectures offer a natural divide-and-conquer solution by routing inputs to specialized sub-networks ("experts"). However, standard MoEs rely on learnable dynamic routing, which is notoriously finicky: it can send the same input to different experts across training steps, suffer from load imbalance (some experts do all the work while others sit idle), and require extra auxiliary losses to keep training stable.

Methods

The author adopts a generative encoder–decoder Transformer (using a pretrained Swin Transformer as the image encoder and a Transformer decoder) that predicts labels autoregressively like words in a sentence—eliminating the need for manual probability thresholds at inference.

The key innovation lives inside the decoder, where standard Feed-Forward Network (FFN) layers are replaced with FR-MoE layers:

Figure 1: Overview of the FR-MoE architecture. Given an input image, encoder first extracts visual features and passes them to the decoder. Fixed-routing Mixture-of-Experts module in decoder assigns experts based on label co-occurrence patterns. Specifically, label co-occurrence matrix is first computed from training data, and spectral clustering is then applied to partition labels into several groups, thereby establishing mapping from labels to experts. Fixed router assigns different labels to corresponding experts according to this mapping, enabling explicit modeling of label dependency relationships
  • Fixed Routing via Spectral Clustering: Before training starts, the model computes a label co-occurrence matrix from the training data. It treats this matrix as a weighted graph and applies spectral clustering (using the normalized graph Laplacian and $K$-means) to partition the labels into $K$ disjoint groups. Each label is then deterministically mapped to a specific expert. Because the routing is fixed, there are no extra routing parameters, no token dropping, and no auxiliary load-balancing losses.
  • Shared + Specialized Experts: Each FR-MoE layer combines two types of SwiGLU-based experts:
  • Shared experts process all inputs to capture global, label-agnostic visual features.
  • Specialized experts focus exclusively on their assigned cluster of co-occurring labels.
  • Adaptive Fusion: The outputs of the shared and specialized experts are combined via a learnable convex combination: $\alpha \mathbf{h}_{\text{share}} + (1-\alpha)\mathbf{h}_{\text{spec}}$.

Datasets

The framework is evaluated on four standard MLIC benchmarks that span a wide range of scales and complexities:

  • PASCAL VOC 2007 (VOC): 20 object categories, ~10k images.
  • MS COCO: 80 categories with more complex multi-object scenes, ~123k images.
  • NUS-WIDE: 81 semantic concepts from real-world Flickr images, ~170k images.
  • Visual Genome 500 (VG500): The 500 most frequent object categories from Visual Genome, ~93k images, testing fine-grained, large-scale label spaces.

Key Insights and Ideas

  • Divide-and-conquer beats a unified space—up to a point: Increasing the number of experts significantly boosts performance on large-label datasets like VG500. However, too many experts eventually hurts performance: if each expert ends up modeling just one label, the model loses its ability to capture inter-label dependencies.
  • Depth matters, too: Around 4 decoder layers hits the sweet spot between expressiveness and optimization stability; deeper decoders suffer from diminishing returns.
  • Positive co-occurrence is essential: Clustering labels by positive correlation (grouping things that appear together) consistently beats negative correlation clustering, because it keeps coherent semantic structures intact within each expert.
  • Shared experts provide a safety net: Removing shared experts drops performance across all datasets (e.g., -1.71% MIoU on COCO), showing that a stable, global representation path complements specialized routing.

Key Results

Because generative models output label sequences rather than per-class probabilities, evaluation uses set-based metrics—primarily Mean Intersection over Union (MIoU), alongside Mean Precision (MP) and Mean Recall (MR). FR-MoE achieves the highest MIoU across all four benchmarks:

  • VOC: 90.77% MIoU (beating SwinT at 88.44% and Query2Label at 85.37%).
  • COCO: 77.24% MIoU (beating SwinT at 75.01% and Query2Label at 74.83%).
  • NUS-WIDE: 65.97% MIoU (beating SwinT at 64.79% and Query2Label at 64.02%).
  • VG500: 35.74% MIoU (beating GKGNet at 33.07% and SwinT at 31.54%), showing that the advantage grows as the label space scales up.

Limitations and Future Work

  • Metric incompatibility: Because the generative model outputs discrete label sequences rather than per-category probability scores, standard ranking metrics like Mean Average Precision (mAP) cannot be directly computed.
  • Capacity vs. dependency trade-off: Scaling up the number of experts requires careful tuning; overly fine-grained partitioning degrades dependency modeling and increases GPU memory demands.
  • Future directions: Since the FR-MoE mechanism is task-agnostic, the author suggests extending this fixed-routing, co-occurrence-guided approach to MoE-based large language models to test its generality.

Summary updated

BibTeX
@misc{tian2026generative,
  author = {Heng Tian},
  title = {{Generative Multi-Label Image Classification Using a Fixed-Routing Mixture of Experts}},
  year = {2026},
  eprint = {2612.05171},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.05171},
}
Figure