Image classifiers trained on ImageNet decide mostly by surface texture rather than object outline. A cat silhouette filled with elephant skin gets called an elephant. A mixture-of-experts (MoE) model adds a new place where this bias can do harm. Such a model contains many parallel sub-networks ("experts") plus a small gating network, the router, that decides which experts process each image patch. The best available study of vision MoEs reports that these routers do not sort patches by object category. They sort by diffuse low-level statistics and texture. If the router itself is texture-biased, a misleading texture can send an image to the wrong experts before any expert has a chance to use shape. We call this routing hijack. The same study reports that vision MoEs gain little robustness over dense models, and routing hijack would be one explanation.
This note proposes to measure how texture-biased vision MoE routers are, to test whether routing hijack explains failures on natural adversarial images, and to fix it with one targeted change. We train the router so that its decisions do not change when an image is restyled with a different texture. The experts are left free to use texture. The bet is that texture belongs in the experts, where it helps fine-grained recognition, and not in the router, where a single texture shortcut decides everything downstream.
Core Claim
We make two claims. The first is diagnostic: in a standard vision MoE, the router's decisions are more texture-driven than the model's final class decisions. On ImageNet-A, misclassified images are routed like images of the misleading texture's class rather than like images of their true class. The second is interventional: adding a routing-invariance loss, which penalizes changes in expert assignment under style transfer, should raise cue-conflict shape bias and ImageNet-A accuracy. It should do so beyond what the same style-transfer data achieves when used only as augmentation or as soft dual labels, and without the clean-accuracy loss that pure shape training causes. If a dense network given an equivalent invariance loss on its outputs matches the MoE, then the routing story is wrong, and we will say so.
Where This Sits
Three results motivate the proposal. Mixture of Experts in Image Classification: What's the Sweet Spot? places sparse MoE layers in ViT and ConvNeXt. It finds that routers partition inputs by texture-like statistics rather than semantics, and that MoE models only match or slightly exceed dense models on ImageNet-A and ImageNet-Sketch. It treats the texture routing as an observation and never measures cue-conflict behavior; we measure it and intervene. Err on the Side of Texture: Texture Bias on Real Data shows that more than 90% of ImageNet-A errors involve textures misaligned with the true label. It also provides a texture dataset (PTD) and an automatic texture-identification tool. We reuse that tool to ask where hijacked images get routed. Shape or Texture: Understanding Discriminative Features in CNNs shows that shape is present inside ImageNet-trained networks, with frozen read-outs recovering silhouettes at 70.6% mIoU on VOC, yet the final decision ignores it. This supports the idea that the problem is how shape and texture information is used, not whether shape is represented.
Two works supply the method. ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness introduced AdaIN-stylized ImageNet and the cue-conflict shape-bias test. We use its stylization to generate paired images for the invariance loss. Shape-Texture Debiased Neural Network Training trains on cue-conflict images with soft labels (0.8 shape, 0.2 texture) and a separate batch-normalization pathway for stylized data. That second pathway is in effect a hand-built two-expert split, chosen by data source rather than learned. Our proposal differs in where the pressure is applied. Li et al. change the labels and hard-code a normalization split. We leave the labels alone and constrain only the learned dispatch decision. Their method also becomes our strongest baseline when applied to the same MoE.
Two results constrain the design. DILEMMA argues that destroying texture sensitivity is harmful because texture carries real class signal. This is why we leave experts texture-sensitive and why we check texture recognition separately. The Illusion of Specialization finds that some experts fire for every input regardless of domain. An invariance loss could be satisfied trivially by routing everything to such a committee, so we monitor routing entropy and expert usage and keep a load-balancing loss.
Research Program
We build MoE variants of ViT-S and ConvNeXt-T. Following the Sweet Spot paper, MoE layers go in the last two stages, with 4 or 8 experts, top-1 or top-2 linear routers, and a load-balancing loss. Its ImageNet-1k results indicate that more experts overfit. Each training image $x$ is paired with an AdaIN restyling $s(x)$ that keeps the image's layout but replaces its texture. The training objective is
$$\mathcal{L} = \mathrm{CE}(f(x), y) + \lambda_{\text{bal}}\mathcal{L}_{\text{bal}} + \lambda_{\text{inv}} \sum_{l}\frac{1}{T}\sum_{t=1}^{T} \mathrm{KL}\big(\mathrm{sg}[g_l^t(x)] \,\|\, g_l^t(s(x))\big),$$
where $f$ is the classifier, $y$ the label, and $\mathcal{L}_{\text{bal}}$ the standard load-balancing loss. The term $g_l^t(\cdot)$ is the router's softmax distribution over experts at MoE layer $l$ for patch $t$, $T$ is the number of patches, and $\mathrm{sg}$ stops gradients so that the clean image sets the routing target. Stylization preserves spatial layout, so patch $t$ in $x$ and in $s(x)$ covers the same object part and patch-wise matching is well defined. The loss touches only router outputs. Classification loss on $s(x)$ is optional and ablated.
For the diagnostic, we define a router shape bias. For a cue-conflict image $c$ built from a shape source $a$ and a texture source $b$, let $h(\cdot)$ be the image's histogram of expert usage at a layer. Router shape bias is the fraction of cue-conflict images whose histogram is closer to $h(a)$ than to $h(b)$. It is directly comparable to the standard decision-level shape bias. For routing hijack on ImageNet-A, we compute per-class mean routing histograms on clean validation data. We then ask whether each misclassified ImageNet-A image's routing lies closer to its true class or to the class associated with its texture, as identified by the automatic texture tool of Err on the Side of Texture. We also report the mutual information between routing and class label and between routing and PTD texture category. This directly tests whether the Sweet Spot paper's interpretability gap narrows once routing is style-invariant.
Baselines
The naive reference is the dense ViT-S and ConvNeXt-T trained with the same recipe, together with the plain MoE from the Sweet Spot recipe. For that MoE, the file reports 83.5% top-1 for ConvNeXt-T-8 on ImageNet-21k, 0.6 points over dense. We found no reported ImageNet-A or ImageNet-Sketch numbers for vision MoE on Lacuna beyond "matched or slightly exceeded" dense. We will therefore rerun it ourselves on ImageNet-1k. Beating the naive reference means any gain on cue-conflict shape bias and ImageNet-A with clean top-1 within noise.
The strongest existing method is shape-texture debiased training from Shape-Texture Debiased Neural Network Training. It reports 79.8% ImageNet top-1 on ResNet-152, with gains of +5.2 on ImageNet-A, +8.3 on ImageNet-C and +11.1 on Stylized-ImageNet. We found no separate ImageNet-R or Sketch number on Lacuna. We will run it on the identical MoE backbone and on the dense backbone, with its auxiliary batch-normalization pathway (or the layer-norm equivalent for ViT) and its γ tuned on a held-out split. It will get the same stylized images, epochs and hyperparameter search budget as our method. Beating it means higher ImageNet-A and cue-conflict shape bias at equal clean accuracy, or equal robustness with better clean accuracy.
We also include Stylized-ImageNet mixed training from Geirhos et al., which reports shape bias rising from 22% to 81% and ImageNet-C mCE falling from 76.7 to 69.3 on ResNet-50. It represents "just push shape everywhere." It shows the clean-accuracy cost our method should avoid, and it should lose on PTD texture recognition.
The key ablation isolates where invariance is applied. It has four arms: the same KL invariance applied to the classifier's output distribution in a dense model; the same invariance applied to all MoE-layer activations rather than only router outputs; stylized augmentation with no invariance term; and router invariance with a frozen, randomly initialized router. The last arm checks whether the benefit needs learned routing at all. All arms share data, epochs and tuning budget.
Why not just…?
Why not just train the MoE on stylized or cue-conflict data, as Li et al. do, and skip the routing loss? This is the most serious threat. Augmentation may already make routers style-invariant as a side effect. The augmentation-only arm settles it directly: we measure its router shape bias and robustness at matched data. If it reaches the same router shape bias and ImageNet-A accuracy, the invariance loss adds nothing. We would then report routing hijack as a diagnosis whose cure is ordinary debiasing.
Why not just add an output-consistency loss to a dense model? Asking a dense network to give the same prediction for $x$ and $s(x)$ is simpler and needs no experts. The difference is that output consistency pushes the whole network toward texture blindness. DILEMMA and the Stylized-ImageNet clean-accuracy drop suggest this costs useful texture information. Router-only invariance constrains a small set of dispatch decisions and leaves the experts free to use texture. The dense-consistency arm, scored on both ImageNet-A and PTD texture recognition, tests this. If it matches us on both, the MoE is unnecessary.
Why not just ensemble a shape-biased and a texture-biased model? Li et al. report that these two models make complementary errors, so averaging them is a natural cheap "mixture." It doubles inference cost, however, and makes one global combination choice per image rather than per patch. We will include a two-model ensemble at matched total parameters and report both accuracy and FLOPs. If it wins at equal FLOPs, that counts against us.
Proposed Experiments
We train on ImageNet-1k and evaluate clean top-1, cue-conflict shape bias, Stylized-ImageNet, ImageNet-A, ImageNet-C mCE, ImageNet-R and ImageNet-Sketch. We also report PTD texture-classification linear-probe accuracy as a check that texture knowledge survives. Three seeds per arm; ImageNet-A differences are reported with bootstrap intervals.
The first decisive check is the diagnosis. If standard MoE routers are not more texture-biased than the classifier's decisions, and misclassified ImageNet-A images are not routed toward their texture's class, the premise fails. In that case we stop and report the negative result, which is still informative about the Sweet Spot paper's interpretability gap.
The second check is the intervention. Router-only invariance must beat augmentation-only and Li et al. on the same MoE on ImageNet-A and shape bias, with clean top-1 and PTD probe accuracy within one standard deviation of the plain MoE. It must also beat dense output-consistency on at least one of robustness or texture retention.
The third check is mechanistic. Routing–class mutual information should rise and routing–texture mutual information should fall. Routing entropy and per-expert load should show no collapse onto a standing committee. The hijack rate on ImageNet-A should fall in step with the accuracy gain; if accuracy improves while the hijack rate does not, the gain came from something other than the routing mechanism we propose.
References
- Mixture of Experts for Image Classification: What's the Sweet Spot?
- Err on the Side of Texture: Texture Bias on Real Data
- Shape or Texture: Understanding Discriminative Features in CNNs
- ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness
- Shape-Texture Debiased Neural Network Training
- DILEMMA: Self-Supervised Shape and Texture Learning with Transformers
- The Illusion of Specialization: Unveiling the Domain-Invariant "Standing Committee" in Mixture-of-Experts Models