Learning Filter-Aware Distance Metrics for Nearest Neighbor Search with Multiple Filters
Ananya Sutradhar, Suryansh Gupta, Ravishankar Krishnaswamy, Haiyang Xu, Aseem Rastogi, Gopal Srinivasa

TL;DR
This paper introduces a data-driven approach to learn optimal filter-aware distance metrics for nearest neighbor search, improving accuracy and generalization over fixed-penalty methods by adapting to filter distributions.
Contribution
It proposes a principled, data-driven method to learn filter-aware weights for distance metrics, enhancing graph-based ANN search with better filter integration.
Findings
Achieves 5-10% accuracy improvement over fixed-penalty methods.
Effectively captures underlying filter distributions and semantics.
Provides a flexible, generalizable framework for filtered ANN search.
Abstract
Filtered Approximate Nearest Neighbor (ANN) search retrieves the closest vectors for a query vector from a dataset. It enforces that a specified set of discrete labels for the query must be included in the labels of each retrieved vector. Existing graph-based methods typically incorporate filter awareness by assigning fixed penalties or prioritizing nodes based on filter satisfaction. However, since these methods use fixed, data in- dependent penalties, they often fail to generalize across datasets with diverse label and vector distributions. In this work, we propose a principled alternative that learns the optimal trade-off between vector distance and filter match directly from the data, rather than relying on fixed penalties. We formulate this as a constrained linear optimization problem, deriving weights that better reflect the underlying filter distribution and more effectively…
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 · Machine Learning and Data Classification · Face and Expression Recognition
