SOTAVerified

Scaling Vision with Sparse Mixture of Experts

2021-06-10NeurIPS 2021Code Available1· sign in to hype

Carlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann, Rodolphe Jenatton, André Susano Pinto, Daniel Keysers, Neil Houlsby

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

Sparsely-gated Mixture of Experts networks (MoEs) have demonstrated excellent scalability in Natural Language Processing. In Computer Vision, however, almost all performant networks are "dense", that is, every input is processed by every parameter. We present a Vision MoE (V-MoE), a sparse version of the Vision Transformer, that is scalable and competitive with the largest dense networks. When applied to image recognition, V-MoE matches the performance of state-of-the-art networks, while requiring as little as half of the compute at inference time. Further, we propose an extension to the routing algorithm that can prioritize subsets of each input across the entire batch, leading to adaptive per-image compute. This allows V-MoE to trade-off performance and compute smoothly at test-time. Finally, we demonstrate the potential of V-MoE to scale vision models, and train a 15B parameter model that attains 90.35% on ImageNet.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
ImageNet - 10-shotV-MoE-H/14 (Last-5)Top 1 Accuracy80.1Unverified
ImageNet - 10-shotVIT-H/14Top 1 Accuracy79.01Unverified
ImageNet - 10-shotViT-MoE-15B (Every-2)Top 1 Accuracy84.29Unverified
ImageNet - 10-shotV-MoE-H/14 (Every-2)Top 1 Accuracy80.33Unverified
ImageNet (1-shot)V-MoE-H/14 (Last-5)Top 1 Accuracy62.95Unverified
ImageNet (1-shot)V-MoE-L/16 (Every-2)Top 1 Accuracy62.41Unverified
ImageNet (1-shot)V-MoE-H/14 (Every-2)Top 1 Accuracy63.38Unverified
ImageNet (1-shot)ViT-MoE-15B (Every-2)Top 1 Accuracy68.66Unverified
ImageNet (1-shot)VIT-H/14Top 1 Accuracy62.34Unverified
ImageNet - 5-shotV-MoE-L/16 (Every-2)Top 1 Accuracy77.1Unverified
ImageNet - 5-shotViT-MoE-15B (Every-2)Top 1 Accuracy82.78Unverified
ImageNet - 5-shotV-MoE-H/14 (Every-2)Top 1 Accuracy78.21Unverified
ImageNet - 5-shotV-MoE-H/14 (Last-5)Top 1 Accuracy78.08Unverified
ImageNet - 5-shotVIT-H/14Top 1 Accuracy76.95Unverified

Reproductions