Skip to main content
QUICK REVIEW

[Paper Review] Spatial Mixture-of-Experts

Nikoli Dryden, Torsten Hoefler|arXiv (Cornell University)|Nov 24, 2022
Human Mobility and Location-Based AnalysisSocial Sciences5 citations
TL;DR

This paper introduces the Spatial Mixture-of-Experts (SMoE) layer, a sparsely-gated neural network component that learns fine-grained spatial structure in data by routing experts at the pixel level using a tensor routing function. It achieves state-of-the-art performance on medium-range weather prediction and ensemble post-processing by incorporating spatial inductive bias through a self-supervised routing loss and expert error damping, outperforming convolutional and standard MoE models on dense regression tasks.

ABSTRACT

Many data have an underlying dependence on spatial location; it may be weather on the Earth, a simulation on a mesh, or a registered image. Yet this feature is rarely taken advantage of, and violates common assumptions made by many neural network layers, such as translation equivariance. Further, many works that do incorporate locality fail to capture fine-grained structure. To address this, we introduce the Spatial Mixture-of-Experts (SMoE) layer, a sparsely-gated layer that learns spatial structure in the input domain and routes experts at a fine-grained level to utilize it. We also develop new techniques to train SMoEs, including a self-supervised routing loss and damping expert errors. Finally, we show strong results for SMoEs on numerous tasks, and set new state-of-the-art results for medium-range weather prediction and post-processing ensemble weather forecasts.

Motivation & Objective

  • To address the limitation of standard neural networks in capturing fine-grained spatial dependencies in data with location-based structure.
  • To overcome the failure of convolutional and standard mixture-of-experts models in learning location-dependent patterns in dense regression tasks.
  • To develop a routing mechanism that enables experts to specialize per spatial location while maintaining computational efficiency.
  • To improve model performance on weather forecasting tasks by incorporating spatial inductive bias through novel training techniques.

Proposed method

  • Proposes the Spatial Mixture-of-Experts (SMoE) layer, which uses a learned gating function to sparsely route inputs to a shared set of experts at the per-pixel level.
  • Introduces tensor routing, a lightweight and effective routing function that explicitly models spatial structure in the input domain.
  • Employs a self-supervised routing classification loss to provide a stronger learning signal for the gate by predicting routing errors.
  • Applies expert error damping to suppress gradient updates from misrouted samples, improving robustness and performance.
  • Shares routing gates across layers with similar spatial dimensions to reduce parameters and improve generalization.
  • Trains SMoE layers within U-Net and ResNet architectures, replacing standard convolutions to enable spatial specialization.

Experimental results

Research questions

  • RQ1Can a mixture-of-experts architecture effectively learn fine-grained spatial dependencies in data with location-based structure?
  • RQ2Does fine-grained, per-pixel routing in MoEs lead to better performance on dense regression tasks compared to coarse-grained routing or standard convolutions?
  • RQ3Can a self-supervised routing loss improve gate training when end-to-end routing fails to capture spatial structure?
  • RQ4How does expert error damping affect model convergence and performance in the presence of routing errors?
  • RQ5Can SMoE layers generalize to diverse tasks, including weather prediction and image classification, while using fewer parameters than prior methods?

Key findings

  • SMoE achieves state-of-the-art results on the WeatherBench benchmark for medium-range weather prediction, outperforming prior SOTA methods.
  • On the ENS-10 dataset for post-processing ensemble weather forecasts, SMoE sets a new SOTA with lower CRPS and EECRPS scores across all lead times and ensemble sizes.
  • In a controlled heat diffusion task with location-dependent diffusivities, SMoE successfully learns the spatial structure, while standard CNNs and MoEs converge to an average diffusivity.
  • On ImageNet-1k, SMoE outperforms LRLCNs when replacing all 3×3 convolutions, using 56% fewer parameters while maintaining competitive accuracy.
  • The combination of tensor routing, self-supervised routing loss, and expert error damping leads to significant performance gains, especially in tasks requiring fine-grained spatial modeling.
  • SMoE scales effectively to large spatial domains, such as global weather data, without loss of performance or efficiency.

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.