Skip to main content
QUICK REVIEW

[Paper Review] Unified Scaling Laws for Routed Language Models

Aidan Clark, Diego de las Casas|arXiv (Cornell University)|Feb 2, 2022
Topic ModelingComputer Science23 citations
TL;DR

The paper derives scaling laws for Routing Networks that decouple parameter count from compute, analyzes three routing techniques, and introduces an Effective Parameter Count to compare routed and dense models. It shows routing improves performance across sizes and provides guidance on when and how to use routing.

ABSTRACT

The performance of a language model has been shown to be effectively modeled as a power-law in its parameter count. Here we study the scaling behaviors of Routing Networks: architectures that conditionally use only a subset of their parameters while processing an input. For these models, parameter count and computational requirement form two independent axes along which an increase leads to better performance. In this work we derive and justify scaling laws defined on these two variables which generalize those known for standard language models and describe the performance of a wide range of routing architectures trained via three different techniques. Afterwards we provide two applications of these laws: first deriving an Effective Parameter Count along which all models scale at the same rate, and then using the scaling coefficients to give a quantitative comparison of the three routing techniques considered. Our analysis derives from an extensive evaluation of Routing Networks across five orders of magnitude of size, including models with hundreds of experts and hundreds of billions of parameters.

Motivation & Objective

  • Investigate how routing architectures scale in language models across many orders of magnitude.
  • Characterize how performance scales with the number of experts and dense model size.
  • Generalize scaling laws to different routing techniques and compute-related variables.
  • Introduce the concept of Effective Parameter Count to unify dense and routed models.

Proposed method

  • Study three routing techniques: Sinkhorn-base sparse MoE (s-base), input-based deterministic hash routing (hash), and routing via reinforcement learning (rl-r).
  • Propose scaling laws where log loss is bilinear in log model size N and log of a saturating function of E (experts).
  • Generalize scaling to inference compute F and parameter count P using variables F and B = P/F.
  • Fit the proposed laws to empirical data from models up to 200B parameters across multiple E values.
  • Introduce an E-saturation transformation to bound scaling in E and enable cross-architecture comparison.
  • Demonstrate an Effective Parameter Count that maps routed models to dense models with equivalent performance.

Experimental results

Research questions

  • RQ1How do routing architectures scale in language models when varying the number of experts and dense parameters?
  • RQ2Do different routing techniques obey a common scaling law and how do their coefficients compare?
  • RQ3Can a unified law be expressed in terms of inference compute F and parameter count P to generalize across architectures?
  • RQ4What is the meaningful metric to compare routed versus dense models across scales (Effective Parameter Count)?

Key findings

  • Routing improves performance across model sizes and variations for all tested techniques.
  • RL-based routing (rl-r) is comparably effective to state-of-the-art techniques, despite historical concerns.
  • Scaling laws accurately describe routing networks with bilinear (N,E) or kappa-transformed variables, and extend to (F,B) representations.
  • An Effective Parameter Count (epc) maps routed models to dense models, unifying performance under a single power-law.
  • s-base consistently outperforms rl-r and hash in scaling, with diminishing gains as N grows.
  • There exists a threshold Ncutoff beyond which routing provides no performance gain, and epcmax grows with token exposure; the threshold depends on Emax and dataset size.

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.