arXiv

WildCat: Near-Linear Attention in Theory and Practice

Title: WildCat: Near-Linear Attention in Theory and Practice

Abstract:

We present WildCat, a novel method for compressing neural network attention mechanisms that delivers high precision at a significantly reduced computational cost. Although attention is fundamental to contemporary network designs, its deployment is often hindered by substantial resource demands, as complexity typically increases quadratically with the input sequence length $n$. WildCat circumvents these quadratic bottlenecks by focusing attention on a small, weighted coreset. We identify this coreset via a rapid yet spectrally precise subsampling technique known as randomly pivoted Cholesky, assigning optimal weights to each element to minimize reconstruction error. Notably, for bounded inputs, WildCat achieves an approximation of exact attention with a super-polynomial error decay rate of $O(n^{-\sqrt{\log(\log(n))}})$, all while operating in near-linear time, $O(n^{1+o(1)})$. Previous practical approximations generally fail to offer such error guarantees or demand quadratic runtime to maintain comparable fidelity. To validate these theoretical advantages, we provide a GPU-optimized PyTorch implementation and conduct extensive benchmark experiments. These tests highlight WildCat’s efficacy across several domains, including image classification, image generation, and the compression of the KV cache in language models.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Withings Debuts New Smart Scale Marketed Toward GLP-1 Users
Bloomberg

Withings Debuts New Smart Scale Marketed Toward GLP-1 Users

Withings launched a new smart scale targeting GLP-1 users, offering advanced body composition analysis. This device help...

TechCrunch

Rocket engine startup Impulse raises $500 million to hire people, not AI

Rocket engine startup Impulse Space raised $500 million to hire 200 engineers, prioritizing human expertise over AI for ...

Startup Impulse Space Raises $500 Million, Valued at $4 Billion
Bloomberg

Startup Impulse Space Raises $500 Million, Valued at $4 Billion

Impulse Space secured $500 million in funding, achieving a $4 billion valuation. This investment supports the developmen...

Walmart’s Answer to Apple Pay Wants to Be Your Favorite Financial App
Bloomberg

Walmart’s Answer to Apple Pay Wants to Be Your Favorite Financial App

Walmart’s new financial app aims to rival Apple Pay, positioning itself as a preferred digital payment and banking solut...

Nvidia Is Bigger, Stronger, and Trying to Slay the Laptop Dragon Again
Bloomberg

Nvidia Is Bigger, Stronger, and Trying to Slay the Laptop Dragon Again

Nvidia unveiled the RTX Spark Superchip at Computex 2026, aiming to challenge Intel’s PC dominance and modernize hardwar...

TechCrunch

Pacific Fusion’s latest prototype packs 440 gigawatts into an 80-nanosecond burst

Pacific Fusion’s new prototype delivers 440 gigawatts in 80 nanoseconds, securing over $1 billion in funding and enablin...