scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Scaling Laws for Linear Complexity Language Models

Xuyang Shen, Dong Li, Ruitao Leng, Zhen Qin, Weigao Sun, Yiran Zhong

EMNLP 2024Architectures and efficiency › Attention and transformersapproach: Attention head mechanismsopen problems in this approach29 citations (OpenAlex)

OpenNLPLab · Australian National University · TapTap

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
3improved
1no clear effect
7hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use linear complexity architectures instead of softmax attention (TNL, HGRN2, cosFormer2)LLaMA · validation/loss at same FLOPstraining loss L(C): LLaMA 3.7087C^-0.0798; TNL 3.5391C^-0.0768; HGRN2 3.4788C^-0.0753; cosFormer2 3.5877C^-0.0756Improved
use linear complexity architectures at 7BLLaMA 7B · CSR averageaccuracy: 56.70 -> 58.63 (TNL), 58.78 (HGRN2), 57.92 (cosFormer2)Improved
use linear complexity architectures at 7BLLaMA 7B · NIAH easy modeweighted average accuracy: 59.7 -> 20.5 (TNL), 30.8 (HGRN2), 23.6 (cosFormer2)Hurt
increase hidden dimension to 3072 (8 layers) (ablation)cosFormer2 1B · NIAH easy modeweighted average accuracy: 10.9 -> 6.5Hurt
increase hidden dimension to 3072 (8 layers) (ablation)cosFormer2 1B · SCROLLSaverage score: 10.88 -> 9.85Hurt
use hidden dimension below 2048 instead of 3072 (ablation)LLaMA 1B · CSR averageaccuracy: 47.19 (3072) vs 49.70 (1536)Improved
extend pre-training context from 8K to 16K (ablation)TNL 1B · NIAH easy modeweighted average accuracy: 28.0 -> 14.2Hurt
extend pre-training context from 8K to 16K (ablation)HGRN2 1B · NIAH easy modeweighted average accuracy: 10.0 -> 8.8Hurt
shorten pre-training context from 8K to 2K (ablation)TNL 1B · NIAH easy modeweighted average accuracy: 28.0 -> 8.0Hurt
vary pre-training context among 2K, 4K, 8K (ablation)TNL 1B · CSR averageaccuracy: 50.77, 51.22, 50.45No clear effect
extend pre-training context from 8K to 16K (ablation)linear models 1B · CSR and validation perplexityaccuracy / perplexity: TNL CSR 50.45 -> 48.34Hurt
remove decay (cosFormer2) instead of data-independent decay (TNL) (ablation)TNL · 7B CSR vs NIAHCSR average / NIAH: CSR 58.63 -> 57.92; NIAH 20.5 -> 23.6Mixed

Open problems in attention head mechanisms

Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?

All 5 open problems and what was already tried →

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