paper-with-me

Papers

A Theoretical View on Sparsely Activated Networks

2022-08-08 · Cenk Baykal, Nishanth Dikkala, Rina Panigrahy, Cyrus Rashtchian, Xin Wang

Deep and wide neural networks successfully fit very complex functions today, but dense models are starting to be prohibitively expensive for inference. To mitigate this, one promising direction is networks that activate a sparse subgraph of the network. The subgraph is chosen by a data-dependent routing function, enforcing a fixed mapping of inputs to subnetworks (e.g., the Mixture of Experts (MoE) paradigm in Switch Transformers). However, prior work is largely empirical, and while existing routing functions work well in practice, they do not lead to theoretical guarantees on approximation ability. We aim to provide a theoretical explanation for the power of sparse networks. As our first contribution, we present a formal model of data-dependent sparse networks that captures salient aspects of popular architectures. We then introduce a routing function based on locality sensitive hashing (LSH) that enables us to reason about how well sparse networks approximate target functions. After representing LSH-based sparse networks with our model, we prove that sparse networks can match the approximation power of dense networks on Lipschitz functions. Applying LSH on the input vectors means that the experts interpolate the target function in different subregions of the input space. To support our theory, we define various datasets based on Lipschitz target functions, and we show that sparse networks give a favorable trade-off between number of active units and approximation quality.

📄 PDF Abstract BibTeX arXiv:2208.04461

Code (0)

등록된 구현이 없습니다.

Tasks

Mixture-of-Experts

Similar Papers 제목 키워드 기반

Q-Sparse: All Large Language Models can be Fully Sparsely-Activated

2024-07-15 · Hongyu Wang, Shuming Ma, Ruiping Wang, Furu Wei

We introduce, Q-Sparse, a simple yet effective approach to training sparsely-activated large language models (LLMs). Q-Sparse enables full sparsity of activations in LLMs which can bring significant efficiency gains in i…

All

Sparsely Activated Mixture-of-Experts are Robust Multi-Task Learners

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Traditional multi-task learning (MTL) methods use dense networks that use the same set of shared weights across several different tasks. This often creates interference where two or more tasks compete to pull model param…

Mixture-of-ExpertsMulti-Task Learning

Sparsely Activated Mixture-of-Experts are Robust Multi-Task Learners

2022-04-16 · Shashank Gupta, Subhabrata Mukherjee, Krishan Subudhi, Eduardo Gonzalez 외

Traditional multi-task learning (MTL) methods use dense networks that use the same set of shared weights across several different tasks. This often creates interference where two or more tasks compete to pull model param…

Mixture-of-ExpertsMulti-Task Learning

SkillNet-NLU: A Sparsely Activated Model for General-Purpose Natural Language Understanding

2022-03-07 · Fan Zhang, Duyu Tang, Yong Dai, Cong Zhou 외

Prevailing deep models are single-purpose and overspecialize at individual tasks. However, when being extended to new tasks, they typically forget previously learned skills and learn from scratch. We address this issue b…

Language ModellingMasked Language ModelingMixture-of-ExpertsMulti-Task Learning+1

Towards More Effective and Economic Sparsely-Activated Model

2021-10-14 · Hao Jiang, Ke Zhan, Jianwei Qu, Yongkang Wu 외

The sparsely-activated models have achieved great success in natural language processing through large-scale parameters and relatively low computational cost, and gradually become a feasible technique for training and im…

GPUmodel