Skip to main content
QUICK REVIEW

[Paper Review] Sparse-MLP: A Fully-MLP Architecture with Conditional Computation.

Yuxuan Lou, Fuzhao Xue|arXiv (Cornell University)|Sep 5, 2021
Domain Adaptation and Few-Shot LearningComputer Science41 references5 citations
TL;DR

Sparse-MLP proposes a fully MLP-based architecture that integrates sparse Mixture-of-Experts (MoE) mechanisms into MLP-Mixer, replacing select dense MLP blocks with two-stage MoE layers for cross-dimensional feature mixing. By introducing Re-represent layers to enhance expert capacity and routing efficiency, the model achieves 2.5% higher ImageNet Top-1 accuracy than dense MLP baselines with fewer parameters and lower computation cost.

ABSTRACT

Mixture-of-Experts (MoE) with sparse conditional computation has been proved an effective architecture for scaling attention-based models to more parameters with comparable computation cost. In this paper, we propose Sparse-MLP, scaling the recent MLP-Mixer model with sparse MoE layers, to achieve a more computation-efficient architecture. We replace a subset of dense MLP blocks in the MLP-Mixer model with Sparse blocks. In each Sparse block, we apply two stages of MoE layers: one with MLP experts mixing information within channels along image patch dimension, one with MLP experts mixing information within patches along the channel dimension. Besides, to reduce computational cost in routing and improve expert capacity, we design Re-represent layers in each Sparse block. These layers are to re-scale image representations by two simple but effective linear transformations. When pre-training on ImageNet-1k with MoCo v3 algorithm, our models can outperform dense MLP models by 2.5\% on ImageNet Top-1 accuracy with fewer parameters and computational cost. On small-scale downstream image classification tasks, i.e. Cifar10 and Cifar100, our Sparse-MLP can still achieve better performance than baselines.

Motivation & Objective

  • To improve the efficiency and scalability of MLP-Mixer by introducing sparse conditional computation via Mixture-of-Experts (MoE).
  • To address the computational inefficiency and limited capacity of dense MLP blocks in vision transformers and MLP-Mixer architectures.
  • To enable more effective feature mixing across both channel and patch dimensions through two-stage MoE layers in sparse blocks.
  • To reduce routing overhead and improve expert utilization by introducing Re-represent layers for representation re-scaling.
  • To achieve state-of-the-art performance on image classification benchmarks with lower parameter count and FLOPs than dense MLP models.

Proposed method

  • Replacing a subset of dense MLP blocks in MLP-Mixer with Sparse blocks that implement two-stage MoE: one for channel-wise mixing across patches, and one for patch-wise mixing across channels.
  • Introducing Re-represent layers—two simple linear transformations applied before and after MoE routing to re-scale feature representations and improve expert capacity and routing efficiency.
  • Applying MoCo v3 for pre-training on ImageNet-1k to ensure robust self-supervised representation learning in the sparse MoE setting.
  • Using a router mechanism to dynamically select top-k experts per token in each MoE layer, enabling conditional computation and reduced FLOPs.
  • Designing the Sparse block to maintain computational efficiency while enabling high-capacity feature learning through sparse activation of experts.
  • Optimizing the routing process by applying Re-represent layers to stabilize and refine input representations before expert selection.

Experimental results

Research questions

  • RQ1Can sparse MoE mechanisms be effectively integrated into a fully MLP-based architecture like MLP-Mixer to improve efficiency and performance?
  • RQ2How does the two-stage MoE design—separately handling channel and patch dimensions—affect feature representation and model accuracy?
  • RQ3To what extent do Re-represent layers improve expert utilization and reduce routing overhead in sparse MLP architectures?
  • RQ4Can a sparse MLP architecture outperform dense MLP baselines in terms of accuracy, parameter count, and FLOPs on ImageNet-1k and small-scale benchmarks?
  • RQ5Does the proposed Sparse-MLP maintain strong generalization on downstream tasks like CIFAR-10 and CIFAR-100 with minimal architectural changes?

Key findings

  • Sparse-MLP achieves 2.5% higher ImageNet Top-1 accuracy than dense MLP-Mixer baselines when pre-trained on ImageNet-1k using MoCo v3.
  • The model achieves this performance gain with fewer parameters and lower computational cost compared to dense MLP models.
  • On CIFAR-10 and CIFAR-100, Sparse-MLP outperforms existing baselines despite the smaller scale of these datasets.
  • The Re-represent layers effectively improve expert capacity and reduce routing-related computational overhead in the MoE mechanism.
  • The two-stage MoE design enables efficient cross-dimensional feature mixing, enhancing representational learning without increasing FLOPs significantly.
  • The sparse architecture maintains strong generalization across multiple benchmarks, demonstrating scalability and efficiency advantages.

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.