arXiv:2610.27508cs.DBOct 2026

Manuscript Offprint

arXiv:2610.27508

KatoANN: Enabling Near-Exact Vector Search at the Speed of Lossy Scans with CPU Matrix Engines

Soobin Cho, Gyuyeong Kim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Distance scans in partition-family approximate nearest-neighbor (ANN) search are typically limited by memory bandwidth. Existing systems therefore improve throughput by reading fewer bytes per candidate, often at the cost of recall. We present KatoANN, a CPU ANN search system that removes this tradeoff by batching distance scans on Intel AMX, a CPU matrix engine. Batching allows multiple queries to reuse each fetched vector code, shifting the scan from memory-bound to compute-bound and enabling near-exact distances at the speed of a lossy scan. KatoANN stores each vector once as a 16-bit SQ16 code split into high-and low-byte planes. Its adaptive rank-then-refine scan first ranks all candidates using only the high byte, then refines a small survivor set using the full-byte code. Both stages use the same representation, avoiding a second copy of the raw vectors. Experiments across diverse high-dimensional workloads show that KatoANN is the fastest partition-family ANN search system in our evaluation throughout the high-recall range.

1 INTRODUCTION

Modern AI applications, including retrieval-augmented generation (RAG) [28, 29] and recommendation systems [9, 33], answer queries by retrieving nearby embedding vectors with hundreds to thousands of dimensions. At scale, they rely on approximate nearest-neighbor (ANN) search because exact K-nearest-neighbor (KNN) search requires an exhaustive scan of the entire dataset. An effective ANN system must therefore provide high throughput while maintaining recall close to 1, such as 0.99, because any neighbor missed by the search is unavailable to the application.

Partition-based search [8, 11, 18, 42], one of the two dominant ANN index families alongside graph-based search [17, 38], spends most of its query time scanning the vectors in the selected partitions. This distance scan is typically memory-bandwidth-bound, so its throughput is largely determined by the number of bytes read per candidate. Partition-based ANN systems consequently face a tradeoff between throughput and recall through their choice of vector code, the quantized representation used during the scan. High-precision codes preserve recall but increase memory traffic,

Figure

(a) ScaNN/Faiss (IVF+PQ)

(b) CABANA (BF16 cast)

(c) KatoANN (Byte-split)

Figure 1: KatoANN provides high throughput and high recall with a small memory footprint by running a batched, adaptive rank-then-refine scan on Intel AMX, an emerging CPU matrix engine.

whereas low-precision codes reduce memory traffic and improve throughput but may impose a recall ceiling.

High-recall configurations in systems such as ScaNN [18] and Faiss [11] attempt to balance this tradeoff through a two-pass design. They first scan compact codes using AVX-512 SIMD instructions, then re-rank a survivor set using full-precision vectors. Although re-ranking improves recall, it requires an additional pass over memory and requires storing the raw vectors alongside the compact codes, reducing throughput and increasing memory usage. This leads us to ask: Can a partition-based ANN search system achieve high throughput and high recall simultaneously without storing a second vector representation?

We answer this question affirmatively with KatoANN, a new ANN search system that computes near-exact distances at the speed of a lossy scan while storing each vector only once. The core idea is to batch distance scans on Intel AMX [19], an emerging CPU matrix engine, as illustrated in Figure 1. A distance scan is memory-bandwidth-bound only when each fetched vector serves a small number of queries. CABANA [27], a recent AMX-based ANN system, batches the queries that probe the same cluster, turning the per-query fine scan into matrix multiplication on AMX so that each loaded vector block serves many queries at once. Our key observation is that this batched execution does more than accelerate the scan. With enough cross-query reuse the scan becomes compute-bound, and once computation is the bottleneck, a higher-precision code no longer costs throughput, so the scan has no reason to stay lossy. CABANA leaves this headroom unused. It scans the lossy BF16 code that AMX natively supports, which caps the recall it can reach. KatoANN goes further by computing near-exact distances from SQ16 codes, even though AMX does not natively support 16-bit quantized distance computation.

KatoANN realizes this idea with a high-precision SQ16 representation and an adaptive rank-then-refine scan. Each database vector is kept in one resident form, a 16-bit scalar-quantized (SQ16) code, and each SQ16 coordinate separates into a high byte and a low byte. Because AMX supports INT8 matrix multiplication, KatoANN reconstructs the full SQ16 distance with four INT8 matrix multiplications. This distance is near-exact, but applying all four multiplications to every candidate would waste computation.

KatoANN therefore first ranks all candidates using only the high-byte plane, which requires one matrix multiplication, and then computes the full SQ16 distance only for promising survivors. Because ranking and refinement read the same resident code, no second raw-vector copy is needed. The survivor count is calibrated for each recall target, so lower-recall queries can stop after ranking while higher-recall queries refine only as many candidates as needed. After this design accelerates the fine scan over probed partitions, KatoANN applies the same batched near-exact distance computation to the coarse centroid search as well.

For high-dimensional embeddings, KatoANN further reduces the cost of the ranking stage. A distance-preserving rotation concentrates most of the data variance in the leading dimensions. The ranking stage can then read and process only a short prefix of each vector, while the refinement stage still evaluates promising candidates using all dimensions and the full SQ16 precision. A one-time calibration selects the prefix length and survivor count for each index and recall target, ensuring that each query performs only the work needed to meet its target.

We evaluate KatoANN on diverse high-dimensional workloads. The results show that KatoANN is the fastest partition-based CPU ANN search system in our evaluation across the high-recall range and can match or outperform graph-based systems. For example, on 3,072-dimensional embeddings, KatoANN achieves 15,635 QPS at recall@10 ≥ 0.99, outperforming CABANA and ScaNN by 3.14× and 8.45×, respectively. KatoANN also scales well with additional CPU threads and maintains a small memory footprint by storing only one vector code per database vector.

In summary, we make the following contributions:

• We show that once batched execution drives the distance scan into the compute-bound regime, lossy codes are no longer needed for high throughput, and we formalize when this crossover occurs.

• We design an adaptive rank-then-refine scan that derives both its cheap ranking key and near-exact refinement distance from a single 16-bit SQ16 code, avoiding a second copy of the vectors.

• We implement KatoANN on a commodity Intel AMX server and show that it is the fastest partition-family CPU search system across the high-recall range on datasets from 96 to 3,072 dimensions.

References (19)