arXiv Science⌕ Search

arXiv subjects

Jinran Yi

Publications and source records attributed to Jinran Yi.

2 recordsLinked to original sources

Good-Turing for neighborhoods: sharp leave-one-out risk bounds for the mass near values seen $k$ times

The Good-Turing estimator answers a basic question about an i.i.d. sample of size $n$: how much probability do the values seen exactly $k$ times carry? Often the relevant event concerns similarity rather than identity: a new observation that is a near-duplicate of, or close to, a value seen exactly $k$ times. We study the probability of the union of the neighborhoods $N(x)$ of the values $x$ seen exactly $k$ times, for an arbitrary fixed neighborhood map $N$ on a countable domain. Its natural estimator is the leave-one-out estimator, which reduces to the Good-Turing estimator for identity neighborhoods $N(x)=\{x\}$. Because neighborhoods can overlap, the target is in general not a sum over values. A recent deletion-stability analysis gives mean squared error $O((k+\log n)/n)$ and leaves open whether the rate $O(k/n)$ holds for every neighborhood map. We show that for all $1\le k\le n$, every distribution and every neighborhood map, the leave-one-out estimator has mean squared error at most $53g$, where $g=(k/n)/\sqrt{1+k(1-k/n)}$, and that already for identity neighborhoods the supremum of the risk over distributions is at least $g/9$. Overlapping neighborhoods therefore cost nothing in order beyond the classical case: the worst-case risk over distributions and neighborhood maps is of order $\sqrt k/n$ for $1\le k\le n/2$, in particular $O(k/n)$, and $o(k/n)$ when $k\to\infty$. The logarithm in the stability analysis is nevertheless genuine: for each fixed $k$, one fixed neighborhood map and a sequence of uniform distributions, the deletion-stability coefficient is of order $(\log n)/n$ along a sequence of sample sizes, so the rate $O(k/n)$ cannot be obtained by bounding this coefficient. Finally, the minimax risk for the least favorable domain and neighborhood map is of order $1/n$ at $k=1$ and of order $1/n^2$ at $k=n$, where the leave-one-out estimator can have risk one.

math.ST↗

Attention Can Hold Tokens Apart: Stable Clusters Beyond the Value Spectrum in Causal Self-Attention

Deep stacks of self-attention make token representations cluster, and the idealized dynamics used to study this suggest a simple rule: the value matrix decides where tokens go. Under causal masking the first token follows the leading eigenvector of the value matrix, and later tokens have been expected to collapse onto that direction or its antipode. We show that the query-key geometry can overrule this rule. When the value matrix has distinct positive eigenvalues, attention scores can hold tokens away from both poles: we construct configurations that attract an open set of initial conditions to an off-eigenvector direction, including ones whose query-key product is positive definite with invertible tied queries and keys, and a stable configuration of three clusters pairwise at least 90 degrees apart; these attractors persist under a normalized residual update with any step size. For two tokens in the plane we derive the exact phase law: with a diagonal score matrix diag(a,b), a >= 0, an off-axis attractor exists for some value spectrum if and only if b - a > (1+a)/2, inside a window of value ratios, so a score gap of 1/2 is the sharp uniform threshold. When the top eigenvalue is repeated, the picture reverses: every equilibrium other than consensus is unstable, a token facing a consensus prefix joins it at an explicit exponential rate, and all tokens reach a single cluster from almost every initialization when the sequence is no longer than the multiplicity or the complement is one-dimensional. Where causally masked tokens cluster is thus decided jointly by the value spectrum and the query-key geometry. As consequences, we disprove the two-cluster conjecture of Karagodin, Polyanskiy and Rigollet (2024), prove their single-cluster conjecture in several regimes, and show that off-axis attractors appear for every score gap beyond the constant used in recent positive results.

cs.LG↗