GARLIC GAussian Representation LearnIng for spaCe partitioning
1National and Kapodistrian University of Athens 2Archimedes, Athena Research Center 3Czech Technical University in Prague 4ILSP, Athena Research Center 5Stanford University
arXiv preprint, 2025
Abstract
We present GARLIC, a representation learning approach for Euclidean approximate nearest neighbor (ANN) search in high dimensions. Existing partitions tend to rely on isotropic cells, fixed global resolution, or balanced constraints, which fragment dense regions and merge unrelated points in sparse ones, thereby increasing the candidate count when probing only a few cells. Our method instead partitions ℝd into anisotropic Gaussian cells whose shapes align with local geometry and sizes adapt to data density. Information-theoretic objectives balance coverage, overlap, and geometric alignment, while split/clone refinement introduces Gaussians only where needed. At query time, Mahalanobis distance selects relevant cells and localized quantization prunes candidates. This yields partitions that reduce cross-cell neighbor splits and candidate counts under small probe budgets, while remaining robust even when trained on only a small fraction of the dataset. Overall, GARLIC introduces a geometry-aware space-partitioning paradigm that combines information-theoretic objectives with adaptive density refinement, offering competitive recall–efficiency trade-offs for Euclidean ANN search.
Method
GARLIC partitions the space with a set of Gaussians, each with its own mean and full covariance. Every Gaussian defines a cell, and points are assigned to cells by Mahalanobis distance.
We train Gaussians with three objectives: ℒdiv expands them to cover nearby points, ℒcov encourages confident assignments, and ℒanchor keeps each one close to the mean and covariance of its points. During training, GARLIC adaptively refines capacity by splitting Gaussians that hold too many points and cloning Gaussians with many points just outside their boundary, placing the copy at the densest of those points.
Results
We compare against k-means, BIRCH, GMMs, Neural LSH, hyperplane and cross-polytope LSH, ITQ, PCA trees, Faiss-IVF, and Faiss-IVFPQFS on SIFT1M, MNIST, and Fashion-MNIST. GARLIC performs especially well in the low-probe regime.
BibTeX
@article{rigas2025garlic,
title = {{GARLIC}: {GA}ussian Representation {L}earn{I}ng for spa{C}e partitioning},
author = {Rigas, Panagiotis and Drivas, Panagiotis and Tzamos, Charalambos and
Chamodrakas, Ioannis and Ioannakis, George and Guibas, Leonidas J. and
Emiris, Ioannis Z.},
journal = {arXiv preprint arXiv:2505.24608},
year = {2025}
}