Nonreciprocal Spherical Attention and Retrieval: Sharp Coarsening Clocks and Certified Score Correction

Faruk Alpay, Taylan AlpayarXiv 2026 · arXiv

TL;DR

This paper provides a rigorous mathematical foundation for nonreciprocal spherical attention, establishing "sharp coarsening clocks" that predict how quickly clusters form in attention-based systems. Beyond theory, the authors introduce a certified score correction method for compressed retrieval indices, demonstrating that while adding directionality (skewness) to query interactions offers precise mathematical guarantees, it doesn't always guarantee superior retrieval performance over symmetric methods.

What Problem Does This Paper Address?

In modern machine learning, attention mechanisms naturally lead to "representation collapse" or clustering, where embeddings group together over time. While this is well-documented for symmetric interactions, real-world data often involves nonreciprocal relationships (e.g., a query looking for a document is different from a document looking for a query).

The authors tackle two main gaps:

  1. Theoretical: How do nonreciprocal interactions affect the speed and stability of clustering (coarsening) in large-scale particle systems?
  2. Practical: Can we use these nonreciprocal mathematical structures to correct the ranking errors introduced by vector compression (like Product Quantization) in large-scale retrieval systems without significantly increasing memory or latency?

Methods

The paper bridges the gap between continuous dynamical systems and discrete retrieval algorithms through several novel approaches:

  • Nonreciprocal Flow Model: They extend standard spherical self-attention by adding a skew-symmetric component ($A^\top = -A$) to the interaction matrix. This allows for directed interactions where the "barrier" to merging depends on the direction of the relationship.
  • Metastability Analysis: They derive a "sharp coarsening clock"—an exponent ($1 - \cos \phi$) that determines the time scale of cluster formation, proving it remains valid even as the number of particles grows exponentially.
  • Certified Score Calibration: To improve compressed retrieval, they formulate score correction as a strictly convex moment problem. This creates a unique "normal equation" to find the best skew-symmetric adapter for a query, providing a mathematical "certificate" of how close the solution is to the optimum.
  • Mass-Centered Compression: They prove that centering the mass of clusters cancels out first-order errors in attention-output approximations, leading to a sharper second-order error bound.
Figure 1: Our geometric notation: caps on the unit circle, with directed interactions and unequal barriers. The cap construction is visually motivated by Figure 1 of [3]; this drawing is original.

Datasets

The authors evaluated their methods on a mix of semantic and geometric benchmarks:

  • Semantic Retrieval: SciFact (5,183 documents) and NFCorpus (3,633 documents) from the BEIR benchmark.
  • Visual Descriptors: SIFT1M (1 million vectors) and BIGANN10M (10 million vectors) from the ANN-Benchmarks suite.
  • Ground Truth: They recomputed exact cosine similarity ground truth for these datasets to ensure the highest precision in measuring retrieval quality.

Key Insights and Ideas

  • The "Coarsening Clock" is Count-Invariant: Surprisingly, the speed at which clusters form (the metastability exponent) depends on the total mass of the blocks, not the individual number of particles. This means the theory scales to massive systems.
  • Skewness as Area: The paper shows that skew interactions in a 2D plane can be interpreted as measuring the directed signed area of a triangle formed by the vectors. Reversing the cycle changes the sign, a property that doesn't exist in standard symmetric attention.
Figure 2: The skew interaction measures the directed signed area of a triangle. The figure represents a two-dimensional linear plane; the vertices may also be constrained to a unit circle.
  • Directionality is a Tool, Not a Panacea: One of the most honest takeaways is that while nonreciprocal adapters are mathematically elegant and provide "certified" improvements to a specific objective, they don't always beat simpler symmetric adapters in empirical retrieval tasks.
  • Formal Verification: The authors didn't just write proofs; they used the Rocq (Coq) proof assistant to verify nine core algebraic lemmas, ensuring the foundational math is bug-free.

Key Results

  • SIFT1M Retrieval: On the 1-million vector SIFT dataset, norm-aware skew margin calibration improved the hit@10 rate from 0.8926 (native L2) to 0.8948. However, symmetric calibration actually performed better, reaching 0.8996.
  • 10M Vector Efficiency: Using a FAISS IVF-PQ index on 10 million vectors, they achieved a hit@10 of 0.8827 with a query latency of just 0.1794 ms on a 4-thread batch benchmark.
  • Attention Memory: In experiments with 10 million keys, mass-centered aggregation significantly reduced Euclidean output error compared to standard normalized centers, especially at lower temperatures.
  • Metastable Separation: In a three-body flow, they demonstrated that the first and second merging events are rigorously separated on an exponential time scale.
Figure 3: Exact three-dimensional point coordinates from (31), shown in an orthographic projection. The blue arc is the shielded great-circle corridor; the dashed line projects u2 onto its plane.

Limitations and Future Work

  • Empirical Superiority: The authors explicitly state that their results do not establish universal retrieval superiority for directionality. In many cases, symmetric adapters are just as good or better.
  • Recursive Shadowing: While they proved the first "merger" event rigorously, proving what happens after multiple clusters begin to merge (the "second-merger shadowing") remains an open mathematical problem.
  • Hardware Optimization: The current Python reference implementation is not an optimized lookup-table engine; future work could involve porting these skew-symmetric kernels to high-performance C++/CUDA libraries like FAISS for production use.

Summary updated

Abstract

We develop nonreciprocal spherical attention as a mathematical framework for coarsening and compressed nearest-neighbor retrieval. For two shrinking acute blocks whose centers have zero skew pairing and whose total mass ratio is subexponential in inverse temperature, we prove $\lim_{β\to\infty}β^{-1}\log T_β=1-\cosφ$, without restricting particle-count growth. An explicit three-body flow has two rigorously separated metastable exponents. For finite compression, mass centering yields a sharp $O(r^2)$ attention-output error bound at fixed temperature, with an explicit spherical-normalization correction. We formulate skew query-side score calibration as a strictly convex moment problem and derive a unique normal equation, residual-based optimization certificates, and bounded low-rank projections. A norm-aware margin objective calibrates native squared-distance rankings. Experiments use semantic retrieval data, one million visual descriptors with three codebook seeds, and a ten-million-vector FAISS IVF-PQ index with recomputed exact cosine ground truth. On SIFT1M, skew margin calibration raises native-L2 hit@10 from 0.8926 to 0.8948; symmetric calibration reaches 0.8996. The ten-million-vector index reaches 0.8827 hit@10 at 0.1794 ms per query in a four-thread batch benchmark, while validation selects no skew update. Exact streamed attention over ten million keys evaluates compressed memory on 1,024 held-out queries. Independent matrix solves, automatic differentiation, finite differences, interval arithmetic, full-flow tests, and nine Rocq-checked algebra lemmas support reproducibility. Directionality alone does not establish retrieval superiority.
BibTeX
@misc{alpay2026nonreciprocal,
  author = {Faruk Alpay and Taylan Alpay},
  title = {{Nonreciprocal Spherical Attention and Retrieval: Sharp Coarsening Clocks and Certified Score Correction}},
  year = {2026},
  eprint = {2611.02237},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.02237},
}
Figure