TL;DR
TaCo introduces a data-adaptive and query-aware optimization framework for high-dimensional Approximate Nearest Neighbor Search (ANNS) using the subspace collision paradigm. By balancing information entropy across subspaces and dynamically tuning query overhead based on intermediate search states, TaCo achieves up to an 8× speedup in indexing, reduces memory footprint to 0.6×, and boosts query throughput by over 1.5× compared to state-of-the-art subspace collision methods.
What Problem Does This Paper Address?
High-dimensional Approximate Nearest Neighbor Search (ANNS) is a foundational backbone for modern applications like Retrieval-Augmented Generation (RAG), vector databases, and large language model (LLM) caching. However, traditional methods struggle to balance fast index construction with rapid query execution due to the "curse of dimensionality."
A recent paradigm called Subspace Collision (exemplified by the method SuCo) offered a solution: project the high-dimensional space into multiple lower-dimensional subspaces, count how often a data point "collides" (ranks closely) with a query within those subspaces, and use this collision count (the SC-score) as a proxy for actual Euclidean distance.
Despite its promise, the original subspace collision framework suffered from two major flaws:
- Data-Agnostic Partitioning: It uniformly sliced dimensions without considering the underlying data distribution, leading to statistically imbalanced subspaces.
- Query-Oblivious Execution: It allocated the exact same computational budget to every query, wasting overhead on "easy" queries and underperforming on "hard" ones.
Additionally, the underlying index structure relied on a linear array for dynamic activation, creating a severe scalability bottleneck.
Methods
The authors propose TaCo (Data-adaptive and Query-aware Subspace Collision) to address these limitations through three core innovations:
- Subspace-Oriented Data Transformation: Instead of blindly splitting dimensions, TaCo formulates an entropy-averaging optimization problem. It finds a linear transformation matrix that ensures the differential entropy—and thus the information content—is evenly distributed across all projected subspaces. This is solved efficiently via a greedy Eigensystem Allocation algorithm.
- Query-Aware Candidate Selection: Rather than collecting a fixed number of candidates for every single query, TaCo analyzes the distribution of intermediate SC-scores on the fly. If a query shows a highly discriminative score distribution, TaCo stops early; if the scores are muddy, it dynamically expands the candidate pool to preserve recall.
- Scalable Dynamic Activation: TaCo replaces the linear array search used in previous inverted multi-index (IMI) structures with a min-heap. This reduces the query complexity of the collision probing phase from $O(\sqrt{K})$ to a constant $O(1)$.
Datasets
TaCo was evaluated against five widely recognized real-world benchmark datasets:
- DEEP1M (256 dimensions)
- GIST1M (960 dimensions)
- SIFT10M (128 dimensions)
- Yandex DEEP10M (96 dimensions)
- Microsoft SPACEV10M (100 dimensions)
Note: SIFT10M, Yandex DEEP10M, and Microsoft SPACEV10M are randomly sampled subsets of their respective billion-scale source datasets.
Key Insights and Ideas
- Entropy Balancing Doubles as Dimensionality Reduction: By optimizing for balanced differential entropy, TaCo naturally concentrates the data's variance. This allows it to discard uninformative dimensions, achieving a dimensionality reduction rate between 40% and 96% across different datasets while mathematically guaranteeing that local neighborhood orderings are preserved.
- The Pareto Principle Holds True: Even after applying complex linear transformations, the SC-scores of the transformed data still strictly adhere to the Pareto principle (the 80-20 rule), meaning a tiny fraction of high-scoring points reliably contains the true nearest neighbors.
- Information Ellipsoids: The paper visualizes data distribution as a 3D ellipsoid. The entropy-averaging approach ensures that the projections of this ellipsoid onto different subspaces have balanced areas/volumes, preventing any single subspace from dominating or diluting the distance proxy.
Key Results
TaCo was compared against eleven state-of-the-art ANNS methods, including graph-based (HNSW, MIRAGE) and quantization-based (IVF-RaBitQ) frameworks.
- Vs. Subspace Collision (SuCo): TaCo achieved up to an 8× speedup in indexing time while consuming only 0.6× the memory footprint. At equivalent high recall levels, it delivered over 1.5× higher query throughput (QPS).
- Vs. Other Paradigms: While graph-based methods like HNSW offer exceptional query speeds, they require massive indexing times and memory. TaCo built its index 2 to 3 orders of magnitude faster than HNSW and IVF-RaBitQ.
- Amortized Efficiency: In a cumulative cost evaluation (indexing time + query time), TaCo successfully built its index and processed 50K–80K queries before competitors like HNSW or MIRAGE could even finish constructing their indexes.
Limitations and Future Work
While TaCo demonstrates stellar performance, the authors note that the initial data transformation step requires calculating a full sample covariance matrix and performing spectral decomposition. Although this is treated as an offline preprocessing step, it could become a bottleneck for frequently updating or streaming datasets.
For future work, the authors plan to explore combining deep learning to learn optimal index structures and query strategies under the subspace collision framework, alongside integrating randomized numerical linear algebra techniques to further optimize the initial data transformation.
Summary updated