mlsanityData to 14 Oct 2026

DYAD: A Descriptive Yet Abjuring Density efficient approximation to linear neural network layers

arXiv 2312.06881 ↗First posted 11 Dec 2023cs.LG cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

We devise, implement and performance-asses DYAD, a layer which can serve as a faster and more memory-efficient approximate replacement for linear layers, (nn.Linear() in Pytorch). These layers appear in common subcomponents, such as in the ff module of Transformers. DYAD is based on a bespoke near-sparse matrix structure which approximates the dense "weight" matrix W that matrix-multiplies the input in the typical realization of such a layer, a.k.a DENSE. Our alternative near-sparse matrix structure is decomposable to a sum of 2 matrices permutable to a block-sparse counterpart. These can be represented as 3D tensors, which in unison allow a faster execution of matrix multiplication with the mini-batched input matrix X compared to DENSE (O(rows(W ) x cols(W )) --> O( rows(W ) x cols(W ) # of blocks )). As the crux of our experiments, we pretrain both DYAD and DENSE variants of 2 sizes of the OPT arch and 1 size of the Pythia arch, including at different token scales of the babyLM benchmark. We find DYAD to be competitive (>= 90%) of DENSE performance on zero-shot (e.g. BLIMP), few-shot (OPENLM) and finetuning (GLUE) benchmarks, while being >=7-15% faster to train on-GPU even at 125m scale, besides surfacing larger speedups at increasing scale and model width.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 21 references that are in the map. First posted on arXiv 11 Dec 2023.

Builds on

17 of 21 references.

References · 17

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  7. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  8. 2014Sequence to Sequence Learning with Neural Networkscited by 2,986
  9. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  10. 2020Reformer: The Efficient Transformercited by 1,668
  11. 2019BLiMP: The Benchmark of Linguistic Minimal Pairs for Englishcited by 564
  12. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 449
5 more
  1. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  2. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  3. 2023The MiniPile Challenge for Data-Efficient Language Modelscited by 75
  4. 2023Call for Papers -- The BabyLM Challenge: Sample-efficient pretraining on a developmentally plausible corpuscited by 62
  5. 2022Datasheet for the Pilecited by 43

Built on by

Not cited yet.