arXiv:2608.24971cs.DSAug 2026

Manuscript Offprint

arXiv:2608.24971

HCC+: Hyperbolic Guarding for Certified Attention Retrieval

Liangchen Ge

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

We study the Lipschitz stability of attention retrieval in hyperbolic spaces. Existing methods lack deterministic guarantees on attention-weight preservation under finite-precision representations. We introduce HCC+, a theoretical framework exploiting three properties of the Poincaré ball: exponential volume growth enabling query-independent boundary truncation; logarithmic covering radius of hyperbolic 1-centers enabling dimension-independent critical-key identification; and a packing bound with constants independent of the embedding dimension. We prove two deterministic guarantees: for exact retrieval, the per-layer attention deviation is bounded by 10% of its ideal value; for soft attention, the total variation distance decays as O(1/n)O(1/\sqrt{n}), the rate of finite-sample variance. As a consequence of the guarding mechanism, the framework achieves a storage reduction factor of 6.1×6.1\times relative to FP16. We provide the first deterministic, query-independent retrieval certificate in non-Euclidean geometry.

1 Introduction

Efficient attention retrieval is a key bottleneck for long-context transformers. The challenge is to represent a large set of keys such that any query can retrieve the correct attention weights with bounded error. Recent work TurboQuant [8] achieves storage reduction via random rotation followed by optimal scalar quantization. However, optimizing mean-squared error does not guarantee preservation of the individual attention weights WijW_{ij}, especially in the exact-retrieval regime ( ε→0\varepsilon \to 0). The issue is that minimizing reconstruction error in the key space does not imply minimizing error in the attention weights, since the attention kernel is nonlinear and can amplify small perturbations.

We address this with HCC+, a theoretical framework using the Poincaré ball geometry of HIDA [5]. Keys in hyperbolic space exhibit exponential volume growth near the boundary, enabling safe truncation: keys near the boundary are so numerous that individual ones carry negligible weight. More importantly, the negative curvature ensures that the 1-center covering radius scales logarithmically with n, enabling dimension-independent packing bounds for critical-key identification.