atlas

Research map / Architectures and efficiency / Attention and transformers

Proxyformer: Nyström-Based Linear Transformer with Trainable Proxy Tokens

AAAI 2024 · Architectures and efficiency › Attention and transformers · approach: Sparse efficient transformers for long context · 3 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 Proxyformer, a Nyström-based linear-complexity transformer that replaces sampled landmarks with trainable proxy tokens, trained with a contrastive landmark loss, an input injection module, and a column-wise dropout on the decomposed attention matrix.

Problem

Self-attention is quadratic in sequence length; Nyström-based efficient transformers (Nyströmformer) pick redundant landmarks by pooling input tokens and need costly pseudo-inverse computation.

Approach

Use trainable proxy tokens as Nyström landmarks, pass proxy outputs to the next layer, enforce landmark diversity with a contrastive loss (which makes the landmark matrix near identity so no pseudo-inverse is needed), inject input context via a Patch-Merger-style cross-attention, and apply column dropout on the K2 factor.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use trainable proxy tokens with contrastive loss and input injection instead of sampled landmarksNyström-based self-attention · LRA averageaccuracy: 58.63 -> 59.43Helped
use trainable proxy tokens with contrastive loss and input injection instead of sampled landmarksNyström-based self-attention · LRA 4096 sequence lengththroughputNo clear effect
add contrastive loss to proxy-token training (ablation)Proxyformer · LRA averageaccuracy: 58.7 -> 58.9Helped
use decomposed dropout instead of no dropout (ablation)Proxyformer · LRA averageaccuracy: 58.7 -> 59.2Helped
replace decomposed dropout with normal dropout on K1 (ablation)Proxyformer · LRA averageaccuracy: 58.7 -> 58.8No clear effect
replace decomposed dropout with normal dropout on K2 (ablation)Proxyformer · LRA averageaccuracy: 58.7 -> 58.4Hurt
add contrastive loss to decomposed dropout (ablation)Proxyformer · LRA averageaccuracy: 59.2 -> 59.3Helped
add the input injection module (ablation)Proxyformer with decomposed dropout and contrastive loss · LRA averageaccuracy: 59.3 -> 59.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: Long Range Arena

Benchmarks: Long Range Arena

Metrics: classification accuracy memory footprint throughput (samples/sec) average cosine similarity between landmarks

Baselines: Standard Transformer Reformer Linformer Performer Nyströmformer Set Transformer BigBird Orthoformer Luna

Builds on: Nyströmformer Orthoformer Set Transformer Luna SupContrast Patch Merger

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