atlas

Research map / Architectures and efficiency / RNNs and normalization

Masked Gated Linear Unit

NeurIPS 2025 · Architectures and efficiency › RNNs and normalization · approach: Distributed LLM inference systems · 0 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.

Proposes Masked Gated Linear Units (MGLUs), which replace the two GLU projection matrices with one shared weight matrix plus learnable binary masks (MoEG), and a fused FlashMGLU kernel that cuts inference memory reads.

Problem

GLU variants used in LLM feed-forward layers require two full-precision weight matrices, doubling memory reads during memory-bound inference.

Approach

Learn n_m binary masks over a single shared weight matrix W so that each mask splits W into complementary gate and value subspaces (Mixture of Element-wise Gating), and fuse mask unpacking with the matrix-vector product in a Split-K kernel (FlashMGLU) so each weight is read once.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace SwiGLU with SwiMGLU using 4 learned masksLlama 3 large · Downstream zero-shotAvg accuracy (%): 56.00 -> 56.85Helped
Replace SwiGLU with SwiMGLU using 4 learned masksLlama 3 large · Downstream two-shotAvg accuracy (%): 57.36 -> 57.87Helped
Increase the learned mask count from 1 to 8 (ablation)SwiMGLU, Llama 3 small · Downstream two-shotAvg accuracy (%): 44.71% to 46.74%Helped
Increase the learned mask count from 1 to 8 (ablation)SwiMGLU, Llama 3 small · Validation perplexityPerplexity: 25.0 -> 23.5Helped
Learn masks instead of fixing them randomly, with 2 masks (ablation)SwiMGLU, Llama 3 small · Downstream zero-shotAvg accuracy (%): 45.84 -> 46.62Helped
Learn masks instead of fixing them randomly, with 2 masks (ablation)SwiMGLU, Llama 3 small · Validation perplexityPerplexity: 25.1 -> 24.5Helped
Use fixed rather than learned masks, with 1 mask (ablation)SwiMGLU, Llama 3 small · Downstream zero-shotAvg accuracy (%): 46.06 -> 46.30Mixed
Route each token to only 1 of 4 masks instead of summing all 4 (ablation)SwiMGLU, Llama 3 small · Downstream zero-shotAvg accuracy (%): 46.48 -> 46.07Hurt
Route each token to 2 of 4 masks instead of summing all 4 (ablation)SwiMGLU, Llama 3 small · Downstream zero-shotAvg accuracy (%): 46.48 -> 46.64Helped
Use GELU rather than Swish as the MGLU gating activation (4 masks) (ablation)SwiMGLU, Llama 3 small · Downstream zero-shotAvg accuracy (%): 46.48 -> 46.74Helped
Use ReLU rather than Swish as the MGLU gating activation (4 masks) (ablation)SwiMGLU, Llama 3 small · Downstream zero-shotAvg accuracy (%): 46.20 -> 46.38No clear effect
Remove the gate mask (dense gate) (ablation)Single-mask MGLU, Llama 3 small · Training and validationLoss and perplexityHurt

Surprising findings

Limitations

Experimental setup

Datasets: FineWeb-Edu 100B

Benchmarks: ARC Easy ARC Challenge HellaSwag PiQA SciQ Winogrande

Metrics: zero-shot accuracy two-shot accuracy validation perplexity latency memory load

Baselines: GELU FFN SwiGLU naive PyTorch MGLU standard GLU nn.Linear kernel Triton prototype

Builds on: GLU variants SwiGLU straight-through estimator mixture of experts Switch Transformer

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