arXiv Science⌕ Search

arXiv subjects

Sajad Faghfoor Maghrebi

Publications and source records attributed to Sajad Faghfoor Maghrebi.

2 recordsLinked to original sources

An $n^{1/O(\log^* n)}$ Lower Bound for Online Coloring of $k$-Colorable Graphs

In online coloring, the vertices of a graph arrive one at a time with their edges to earlier vertices, and each vertex must be colored irrevocably on arrival. For graphs promised to be $k$-colorable, with $k\ge 3$ fixed, the best deterministic algorithms use $n^{1-Θ(1/k^2)}$ colors, while the best lower bound was Vishwanathan's $Ω(\log^{k-1}n)$ from 1990 until Li recently proved $2^{Ω((\log n)^{1/3}(\log\log n)^{2/3})}$. For every fixed $k\ge 3$ and all sufficiently large $n$, we prove a lower bound of $n^{1/(\log^*n+3)}$ colors for deterministic online algorithms on $n$-vertex $k$-colorable graphs, and the same lower bound in expectation for randomized online algorithms. Both bounds hold on a single triangle-free $3$-colorable graph: even an algorithm that is shown this graph in advance, but is not told which of its vertices each arriving vertex is, can be forced to use this many colors by a suitable arrival order. The hard instances are iterated blow-ups of a clique, in which every vertex becomes a block of independent vertices and every edge a private server in the earlier block; each blow-up keeps the forced colors and replaces the chromatic number $χ$ by about $\logχ$, so about $\log^*n$ blow-ups bring it down to $k$. We also show that deterministic lower bounds for different values of $k\ge 3$ are polynomially equivalent, and that no adversary presenting such iterated blow-ups can force more than $n^{1/(\log^*n-O(1))}$ colors. All numbered results are formalized in Lean 4.

cs.DS↗

A Power Law in Logarithm's Clothing: On the Scalability of Graph-Based Vector Search

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.

cs.DB↗