로그의 가면을 쓴 멱법칙: 그래프 기반 벡터 검색의 확장성
A Power Law in Logarithm's Clothing: On the Scalability of Graph-Based Vector Search
한국어 초록
대부분의 벡터 데이터베이스는 근사 최근접 이웃(approximate nearest neighbor) 검색을 위해 HNSW와 Vamana 같은 그래프 기반 인덱스에 의존한다. 임베딩 모델이 널리 쓰이면서 이러한 데이터베이스가 저장하는 데이터셋은 빠르게 커진다. 정확도를 고정했을 때 검색 비용은 데이터셋 크기에 따라 어떻게 스케일링되는가? 통설적인 답은 다항-로그(poly-logarithmic) 증가이다. 그러나 이 주장은 특수한 조건에서만 증명되었고, 실무에서 쓰이는 인덱스에 대해서는 증명 없이 단정되어 왔다. 또한 거의 검증되지 않았다. 표준 벤치마크는 한 가지 데이터셋 크기에서만 비용을 측정할 뿐, 크기를 바꿔 가며 측정하지 않는다. 우리는 이 주장을 실험으로 검증한다. 답은 스케일 자체에 달려 있다. 데이터셋 크기 $N$이 데이터의 고유 차원(intrinsic dimensionality)에 비해 작을 때는, 검색 비용은 상수 $0<c<1$에 대해 $N^c$처럼 증가한다. 우리는 이 스케일링을 Sublinear Power Law(아선형 멱법칙)라 부른다. $N$이 충분히 커지면 증가율은 다항-로그 주장과 일치하는 차 다항(subpolynomial) 수준으로 느려진다. Sublinear Power Law는 우리가 시험한 모든 데이터셋, 대체로 전체 크기까지, 모든 재현율 목표, 쿼리 난이도, 인덱스 설정에서 나타난다. 차 다항 증가로의 전환은 고유 차원 대비 충분히 커진 두 데이터셋에서 관찰된다. 두 현상 모두를 뒷받침하는 한 가지 메커니즘이 있다. 데이터셋의 고유 차원은 크기가 커질수록 증가하며, 데이터가 근본 분포를 해상(resolve)할 때까지 이어진다. 고유 차원이 높을수록 검색이 살펴봐야 하는 쿼리 이웃(query neighborhood)에 더 많은 벡터가 밀집한다. 우리는 관측을 설명하는 빔 서치(beam-search) 비용에 대한 통합 이론을 제시한다. 정확(exact) 및 차수 유계(bounded-degree) 구성에 대해 Sublinear Power Law와 최종적으로 다항-로그 스케일링으로의 전환을 증명하고, 전환이 일어나는 스케일을 도출한다. 또한 임의의 재현율 목표와 인덱스 설정에 대한 멱법칙 지수를 예측하는 모델을 개발한다. 이 모델은 데이터가 커질수록 검색 비용, 삽입 비용, 재현율 사이의 트레이드오프를 체계적으로 탐색하는 원칙적 방법을 제공한다.
원문 초록
Most vector databases rely on graph-based indexes, notably HNSW and Vamana, for approximate nearest neighbor search. With embedding models widely adopted, the datasets these databases store grow rapidly. At a fixed accuracy, how does search cost scale with dataset size? The prevailing answer is poly-logarithmic growth. Yet the claim is proven only under special conditions and asserted without proof for the indexes used in practice. It is also largely untested: standard benchmarks measure cost at one dataset size, not across sizes. We put the claim to the test. The answer depends on the scale itself. While the dataset size $N$ is small relative to the data's intrinsic dimensionality, search cost grows as $N^c$ for a constant $0<c<1$. We call this scaling the Sublinear Power Law. Once $N$ is large enough, growth slows to subpolynomial, consistent with the poly-logarithmic claim. The Sublinear Power Law appears on every dataset, mostly up to its full size, at every recall target, query hardness level, and index configuration we test. The transition to subpolynomial growth appears on the two datasets that grow large enough relative to their intrinsic dimensionality. One mechanism underlies both behaviors: a dataset's intrinsic dimensionality grows with its size until the data resolves its underlying distribution. Higher intrinsic dimensionality packs more vectors into the query neighborhood the search must examine. We present a unifying theory of beam-search cost that explains our observations. For exact and bounded-degree constructions, we prove the Sublinear Power Law and the eventual transition to poly-logarithmic scaling, and derive the scale at which it occurs. We also develop models that predict the power-law exponents for any recall target and index configuration. These models give a principled way to navigate trade-offs among search cost, insertion cost, and recall as data grows.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2609.02143v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.