atlas

Research map / Architectures and efficiency / Attention and transformers

IceFormer: Accelerated Inference with Long-Sequence Transformers on CPUs

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 0 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 IceFormer, a retraining-free method that accelerates self-attention on CPUs by casting top-k attention selection as k-NN search over transformed keys using a ranking-based Prioritized DCI index with incremental updates for causal masks.

Problem

Quadratic time and space cost of self-attention makes long-sequence Transformers and LLMs slow to run on CPU-only hardware, and existing efficient attention methods either need retraining or lose accuracy.

Approach

Embed keys and queries into a (d+1)-dimensional space so that argmax attention weight equals nearest-neighbour search without key-norm constraints, then retrieve top-k keys with a ranking-based k-NNS (Prioritized DCI) that supports incremental insertion for causal masking; only the retrieved keys enter the softmax.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace vanilla attention with IceFormerTransformer · LRA ListOpsaccuracy: 0.4255 -> 0.4153Hurt
Replace vanilla attention with IceFormerTransformer · LRA Textaccuracy: 0.6019 -> 0.5978Hurt
Replace vanilla attention with IceFormerTransformer · LRA Retrievalaccuracy: 0.6586 -> 0.6541Hurt
Replace vanilla attention with IceFormerTransformer · LRA Imageaccuracy: 0.4132 -> 0.4046Hurt
Replace vanilla attention with IceFormerTransformer · LRA Pathfinderaccuracy: 0.7514 -> 0.7442Hurt
Replace vanilla attention with IceFormerTransformer · LRA ListOpsattention time: 2.9208 -> 0.3766Helped
Replace vanilla attention with IceFormerTransformer · LRA Textattention time: 0.6933 -> 0.0921Helped
Replace vanilla attention with IceFormerTransformer · LRA Retrievalattention time: 8.3588 -> 0.8337Helped
Replace vanilla attention with IceFormerTransformer · LRA Imageattention time: 4.9303 -> 0.5076Helped
Replace vanilla attention with IceFormerTransformer · LRA Pathfinderattention time: 0.9620 -> 0.3058Helped
Use IceFormer for prompt processingVicuna-7b-v1.5-16k · ZeroSCROLLS averagescore: 23.9 -> 23.8 (99.6%)Hurt
Use IceFormer for prompt processingVicuna-7b-v1.5-16k · ZeroSCROLLS averageattention time: 4.38 -> 1.60 (2.7×)Helped

Surprising findings

Limitations

Experimental setup

Datasets: Long Range Arena (ListOps, Text, Retrieval, Image, Pathfinder) Fashion-MNIST

Benchmarks: Long Range Arena ZeroSCROLLS LongEval ANN benchmarks (Fashion-MNIST k-NNS comparison)

Metrics: accuracy attention module wall-clock time speedup peak memory usage approximation error ZeroSCROLLS score recall latency

Baselines: Transformer Reformer LARA Nyströmformer H-Transformer-1D Longformer Performer Linformer H2O

Builds on: Prioritized DCI Reformer Transformer self-attention Locality Sensitive Hashing

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