Skip to main content
QUICK REVIEW

[Paper Review] Hard Mixtures of Experts for Large Scale Weakly Supervised Vision

Sam Gross, Marc’Aurelio Ranzato|arXiv (Cornell University)|Apr 20, 2017
Advanced Neural Network ApplicationsComputer Science10 references7 citations
TL;DR

This paper proposes a hard mixture of experts (MoE) architecture for large-scale weakly supervised image recognition, where each image is routed to a single expert based on clustering in a pretrained CNN's feature space. By training experts independently and sharing a decoder, the method enables efficient scaling of large models on datasets like YFCC100M, achieving significant accuracy gains in tag prediction and improved transfer performance on fine-grained classification tasks.

ABSTRACT

Training convolutional networks (CNN's) that fit on a single GPU with minibatch stochastic gradient descent has become effective in practice. However, there is still no effective method for training large CNN's that do not fit in the memory of a few GPU cards, or for parallelizing CNN training. In this work we show that a simple hard mixture of experts model can be efficiently trained to good effect on large scale hashtag (multilabel) prediction tasks. Mixture of experts models are not new (Jacobs et. al. 1991, Collobert et. al. 2003), but in the past, researchers have had to devise sophisticated methods to deal with data fragmentation. We show empirically that modern weakly supervised data sets are large enough to support naive partitioning schemes where each data point is assigned to a single expert. Because the experts are independent, training them in parallel is easy, and evaluation is cheap for the size of the model. Furthermore, we show that we can use a single decoding layer for all the experts, allowing a unified feature embedding space. We demonstrate that it is feasible (and in fact relatively painless) to train far larger models than could be practically trained with standard CNN architectures, and that the extra capacity can be well used on current datasets.

Motivation & Objective

  • To address the challenge of training large convolutional networks on massive weakly supervised datasets that exceed GPU memory limits.
  • To explore whether simple, non-end-to-end MoE architectures can effectively scale model capacity without complex routing optimization.
  • To evaluate whether shared decoders in MoE models preserve transferable features for downstream tasks.
  • To demonstrate that underfitting in standard CNNs on billion-scale datasets can be mitigated by architectural scaling via MoE.

Proposed method

  • Images are first encoded by a pretrained ResNet-18, and features from the penultimate layer are clustered using K-means to define expert assignments.
  • Each image is routed to the nearest cluster center, assigning it to a single expert via a hard routing mechanism.
  • Experts are trained independently on their assigned data subsets, enabling efficient parallel training.
  • A shared decoder is used across all experts to unify the feature space, allowing transfer learning from the final feature layer.
  • The gating network is fixed after clustering and does not undergo end-to-end fine-tuning.
  • Model evaluation uses q@10 for tag prediction and linear probe accuracy on downstream datasets like CUB and Oxford Flowers.

Experimental results

Research questions

  • RQ1Can a simple, non-end-to-end hard mixture of experts model effectively scale model capacity on large-scale weakly supervised datasets?
  • RQ2Does routing images to a single expert via clustering-based gating yield better performance than standard CNNs on massive datasets?
  • RQ3Can a shared decoder across experts preserve meaningful, transferable features for downstream tasks?
  • RQ4Is there a correlation between tag distribution sparsity across clusters and model prediction accuracy?

Key findings

  • The hard MoE model achieves significant improvements in tag prediction accuracy on YFCC100M compared to standard CNNs, demonstrating reduced underfitting on large-scale data.
  • Tags with sparser distributions across clusters are predicted more accurately, suggesting that cluster structure aligns with semantic sparsity.
  • The shared-decoder MoE variant shows improved transfer performance on fine-grained datasets like CUB and Oxford Flowers, indicating high-quality feature learning.
  • Despite no end-to-end training of the gating network, the method enables efficient parallel training and evaluation with only a 2x computational cost over a single model.
  • The model achieves competitive performance on ImageNet transfer when trained on YFCC100M, suggesting that weakly supervised data can yield strong features at scale.

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.