Search arXiv⌕ Search

arXiv · 2611.40895

Gaussian Self-Attention at Long Contexts: Sharp Rates, Score Rank, and Causal Masks

Abstract

When each softmax row concentrates on a few keys, can averaging rows still remove value noise? We study one attention head on a shared context of $n$ i.i.d.\ Gaussian tokens in fixed dimension, under full and causal masks. At fixed score norm $H$, the sharp worst-case exponent for the expected absolute error of a pooled 1-Lipschitz statistic is $\min\{1/2,1/(1+H^2)\}$; a two-coordinate head attains it for every $H$, answering the Gaussian case of a sharpness question of Bohbot et al.\ (ICML 2026). Now let the score matrix $H_nB_n$ grow with $n$, where $B_n$ has singular values $1=σ_{1,n}\ge\cdots\geσ_{d,n}$, and put $a_n=\sqrt{2\log n}$. For i.i.d.\ centered unit-variance values independent of the scores, the expected squared pooled mean is the probability that two rows, sampled uniformly with replacement, draw the same key when each samples from its own weights. For either mask and $H_n\ge ha_n$ with fixed $h>0$, this risk is of order $\prod_{j=2}^d(1+a_nσ_{j,n})^{-1}$ uniformly in the spectrum, so for $d\ge2$ it vanishes if and only if $a_nσ_{2,n}\to\infty$. When $H_n\to\infty$ and $H_n=o(a_n)$, it acquires a further factor $\exp[-(2+o(1))\log n/H_n^2]$. In planar hardmax attention, a weak second direction yields different full and causal crossover curves, with rank-one endpoints $1/2$ and $1/4$. On Qwen2.5-0.5B, at a matched byte budget, a 2/4-bit value cache improves LAMBADA accuracy by 2.00 points over a 2-bit/BF16 allocation. With bit counts and measured reconstruction errors held fixed, ranking values by pooled rather than averaged squared attention changes accuracy by only $-0.17$ points (95\% paired interval $[-0.60,0.27]$). With eight 16,384-token prefixes on an H100, the 2/4-bit cache cuts prefix KV storage by 36.9\% and steady-state device memory by 7.4\%, at the cost of a 7.5\% longer decode step than BF16 in the same implementation.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Niles Yang. 2026-11-30. Gaussian Self-Attention at Long Contexts: Sharp Rates, Score Rank, and Causal Masks. https://searcharxiv.org/abs/2611.40895

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Tree-Structured Parzen Estimator: Understanding Its Algorithm Components and Their Roles for Better Empirical Performance

Recent scientific advances require complex experiment design, necessitating the meticulous tuning of many experiment parameters. Tree-structured Parzen estimator (TPE) is a widely used Bayesian optimization method in recent parameter tuning frameworks such as Hyperopt and Optuna. Despite its popularity, the roles of each control parameter in TPE and the algorithm intuition have not been discussed so far. The goal of this paper is to identify the roles of each control parameter and their impacts on parameter tuning based on the ablation studies using diverse benchmark datasets. The recommended setting concluded from the ablation studies is demonstrated to improve the performance of TPE. Our TPE implementation used in this paper is available at https://github.com/nabenabe0928/tpe/tree/single-opt. OptunaHub now provides our standalone TPE implementation at https://hub.optuna.org/samplers/tpe_tutorial/.

cs.LG↗

On the Rashomon ratio of infinite hypothesis sets

Given a classification problem and a family of classifiers, the Rashomon ratio measures the proportion of classifiers that yield less than a given loss. Previous work has explored the advantage of a large Rashomon ratio in the case of a finite family of classifiers. Here we consider the more general case of an infinite family. We show that a large Rashomon ratio guarantees that choosing the classifier with the best empirical accuracy among a random subset of the family, which is likely to improve generalizability, will not increase the empirical loss too much. We quantify the Rashomon ratio in two examples involving infinite classifier families in order to illustrate situations in which it is large. In the first example, we estimate the Rashomon ratio of the classification of normally distributed classes using an affine classifier. In the second, we obtain a lower bound for the Rashomon ratio of a classification problem with a modified Gram matrix when the classifier family consists of two-layer ReLU neural networks. In general, we show that the Rashomon ratio can be estimated using a training dataset along with random samples from the classifier family and we provide guarantees that such an estimation is close to the true value of the Rashomon ratio.

cs.LG↗

A Systematic Evaluation of On-Device LLMs: Quantization, Performance, and Resources

Deploying Large Language Models (LLMs) on edge devices enhances privacy but faces performance hurdles due to limited resources. We introduce a systematic methodology to evaluate on-device LLMs, balancing capability, efficiency, and resource constraints. Through an extensive analysis of models (0.5B-14B) and seven post-training quantization (PTQ) methods on commodity hardware, we demonstrate that: 1) Heavily quantized large models consistently outperform smaller, high-precision models, with a performance threshold at ~3.5 effective bits-per-weight (BPW); 2) Resource utilization scales linearly with BPW, though power and memory footprints vary by quantization algorithm; and 3) With a reduction in model size, the primary constraint on throughput transitions from communication overhead to computational latency. We conclude by offering guidelines for optimizing LLMs in resource-constrained edge environments. Our codebase is available at https://github.com/simmonssong/LLMOnDevice.

cs.LG↗