atlas

Research map / Architectures and efficiency / Mixture of experts

How does Architecture Influence the Base Capabilities of Pre-trained Language Models? A Case Study Based on FFN-Wider and MoE Transformers

NeurIPS 2024 · Architectures and efficiency › Mixture of experts · approach: Sparse MoE as regularization and attention · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Explains why FFN-Wider Transformers lose base capabilities by attributing it to a reduced contribution ratio of MHA (a combination function), proposes Combination Enhanced Architecture (CEA) that moves part of the FFN inside MHA, and applies it to a 14B MoE model.

Problem

FFN-Wider and MoE Transformers achieve comparable pre-training loss to vanilla Transformers but show degraded base capabilities (OOD language modeling, transfer, few-shot); the architectural cause is unexplained.

Approach

Hypothesizes that the actual contribution ratio of MHA (a combination function) to pre-training is the key factor for base capabilities; proposes CAA/CEA that splits the wider FFN into an Outer-FFN (transformation) and an Inner-FFN placed inside MHA with a direct current-position pathway, and extends this to MoE layers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the standard MoE placement with CEA, placing MoE inside MHA as Inner-MoE14B MoE Transformer · SlimPajama-Arxiv, Book, Github, Stack and Wikiloss: 2.320 -> 2.239; 2.761 -> 2.585; 1.989 -> 1.840; 2.588 -> 2.465; 3.155 -> 2.964Helped
Replace the standard MoE placement with CEA, placing MoE inside MHA as Inner-MoE14B MoE Transformer · LAMBADA (0-shot)perplexity: 24.8 -> 19.3Helped
Replace the standard MoE placement with CEA, placing MoE inside MHA as Inner-MoE14B MoE Transformer · LAMBADA (0-shot)accuracy: 36.4 -> 39.7Helped
Replace the standard MoE placement with CEA, placing MoE inside MHA as Inner-MoE14B MoE Transformer · BoolQ (5-shot)accuracy: 62.2 -> 62.1No clear effect
Use CEA instead of the FFN-Wider architectureBERT H=768 · Pile (22 parts, average)language modeling score: -2.196 -> -2.149Helped
Use CAA with 37.5% Outer-FFN width ratio instead of FFN-WiderGPT H=768 · 0-shot (9 tasks, average)score: 44.60 -> 45.27Helped
Remove the direct pathway in MHA (ablation)FFN-Wider models with CEA · Base-capability evaluationsbase capabilityHurt
Reduce Outer-FFN width ratio from 100% toward 0% (ablation)Combination Adjustable Architecture (CAA) · BERT OOD language modelingOOD performanceHelped
Set Outer-FFN width to zero (ablation)GPT Combination Adjustable Architecture · GPT base capabilitiesbase capabilityHurt

Surprising findings

Limitations

Experimental setup

Datasets: Wikipedia BooksCorpus SlimPajama Pile

Benchmarks: Pile GLUE SuperGLUE HellaSwag PIQA OpenBookQA ARC WinoGrande LAMBADA MMLU BoolQ RACE

Metrics: loss perplexity accuracy fine-tuning score

Baselines: Vanilla BERT FFN-Wider BERT Vanilla GPT FFN-Wider GPT Vanilla MoE 14B Vanilla GPT 1.3B

Builds on: BERT GPT-3 Mixture of Experts RoPE FlashAttention-2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy