CRINN: Contrastive Reinforcement Learning for Approximate Nearest Neighbor Search
Xiaoya Li, Xiaofei Sun, Albert Wang, Chris Shum, Jiwei Li

TL;DR
CRINN introduces a reinforcement learning-based approach to optimize approximate nearest neighbor search algorithms, achieving faster performance while maintaining accuracy, validated across multiple benchmark datasets and outperforming existing methods.
Contribution
The paper presents CRINN, a novel reinforcement learning framework that automatically optimizes ANNS algorithms for speed and accuracy, demonstrating its effectiveness on standard benchmarks.
Findings
CRINN outperforms state-of-the-art ANNS algorithms on three benchmarks.
CRINN achieves top performance or ties on five benchmark datasets.
Reinforcement learning can automate complex algorithmic optimizations.
Abstract
Approximate nearest-neighbor search (ANNS) algorithms have become increasingly critical for recent AI applications, particularly in retrieval-augmented generation (RAG) and agent-based LLM applications. In this paper, we present CRINN, a new paradigm for ANNS algorithms. CRINN treats ANNS optimization as a reinforcement learning problem where execution speed serves as the reward signal. This approach enables the automatic generation of progressively faster ANNS implementations while maintaining accuracy constraints. Our experimental evaluation demonstrates CRINN's effectiveness across six widely-used NNS benchmark datasets. When compared against state-of-the-art open-source ANNS algorithms, CRINN achieves best performance on three of them (GIST-960-Euclidean, MNIST-784-Euclidean, and GloVe-25-angular), and tied for first place on two of them (SIFT-128-Euclidean and GloVe-25-angular).…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Image and Video Retrieval Techniques · Data Management and Algorithms · Machine Learning and Data Classification
