CLLGMay 23, 2023

Towards A Unified View of Sparse Feed-Forward Network in Pretraining Large Language Model

arXiv:2305.13999v3137 citations
Originality Incremental advance
AI Analysis

This work provides incremental insights into optimizing sparse architectures for scaling language models, benefiting researchers in efficient model pretraining.

The paper tackles the problem of designing sparse feed-forward networks (S-FFN) for pretraining large language models by analyzing expert size and selection methods under a unified framework, finding that a simpler Avg-K selection method achieves lower perplexity compared to existing architectures like Switch Transformer and HashLayer.

Large and sparse feed-forward layers (S-FFN) such as Mixture-of-Experts (MoE) have proven effective in scaling up Transformers model size for \textit{pretraining} large language models. By only activating part of the FFN parameters conditioning on input, S-FFN improves generalization performance while keeping training and inference costs (in FLOPs) fixed. In this work, we analyzed two major design choices of S-FFN: the memory block (a.k.a. expert) size and the memory block selection method under a general conceptual framework of sparse neural memory. Using this unified framework, we compare several S-FFN architectures for language modeling and provide insights into their relative efficacy and efficiency. We found a simpler selection method -- \textbf{\texttt{Avg-K}} that selects blocks through their mean aggregated hidden states, achieving lower perplexity in language model pretraining compared to existing MoE architectures including Switch Transformer (Fedus et al., 2021) and HashLayer (Roller et al., 2021).

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes