atlas

Research map / Architectures and efficiency / Attention and transformers

Linear Log-Normal Attention with Unbiased Concentration

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Attention head and block redesign · 2 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 Linear Log-Normal (LLN) Attention, a linear-complexity attention whose exponential feature maps are moment-matched to softmax attention's log-normal distribution, entropy, and spectral gap, and evaluates it on GLUE with RoBERTa-base.

Problem

Quadratic time and memory of softmax self-attention limits long-sequence Transformers, and existing linearized attention methods often underperform softmax attention; the paper seeks to understand what makes softmax attention work and design a linear attention that matches it.

Approach

Model softmax attention entries as log-normal with a temperature set by query/key variance, measure concentration with entropy (biased) and spectral gap (unbiased), and design a linear attention using exponential feature maps with scaling parameters alpha and beta chosen by moment matching so its distribution and concentration curves mimic softmax attention; optionally average with block-diagonal

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add block-diagonal attention to LLN Attention (ablation)LLN Attention · MNLIaccuracy: 77.0 -> 80.0Helped
Add block-diagonal attention to LLN Attention (ablation)LLN Attention · QNLIaccuracy: 85.1 -> 86.5Helped
Add block-diagonal attention to LLN Attention (ablation)LLN Attention · QQPaccuracy: 88.9 -> 89.7Helped
Add block-diagonal attention to LLN Attention (ablation)LLN Attention · SST-2accuracy: 90.6 -> 91.6Helped
Add block-diagonal attention to LLN Attention (ablation)LLN Attention · GLUE averageaccuracy: 85.4 -> 86.9Helped
Use moment matching for LLN Attention instead of α=β=1 (ablation)LLN Attention · attention matrix variancevarianceHelped
Use LLN Attention instead of Softmax AttentionRoBERTa-base · GLUE averageaccuracy: 87.0 -> 85.4Hurt
Use LLN+Diag Attention instead of Softmax AttentionRoBERTa-base · GLUE averageaccuracy: 87.0 -> 86.9No clear effect
Use LLN Attention instead of NyströmformerRoBERTa-base · RoBERTa-base, sequence length 16384time [sec/it]: 16.7 -> 11.8Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-103 GLUE MNLI QNLI QQP SST-2 Long Range Arena

Benchmarks: GLUE MNLI GLUE QNLI GLUE QQP GLUE SST-2

Metrics: accuracy training time per iteration memory usage

Baselines: Softmax Attention Nyströmformer Performer ELU linear attention Longformer Transformer LS CosFormer Flash

Builds on: Linear Transformers Nystromformer Performer RoBERTa

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