paper-with-me

홈 › Papers

Connecting Compression Spaces with Transformer for Approximate Nearest Neighbor Search

2021-07-30 · Haokui Zhang, Buzhou Tang, Wenze Hu, Xiaoyu Wang

We propose a generic feature compression method for Approximate Nearest Neighbor Search (ANNS) problems, which speeds up existing ANNS methods in a plug-and-play manner. Specifically, based on transformer, we propose a new network structure to compress the feature into a low dimensional space, and an inhomogeneous neighborhood relationship preserving (INRP) loss that aims to maintain high search accuracy. Specifically, we use multiple compression projections to cast the feature into many low dimensional spaces, and then use transformer to globally optimize these projections such that the features are well compressed following the guidance from our loss function. The loss function is designed to assign high weights on point pairs that are close in original feature space, and keep their distances in projected space. Keeping these distances helps maintain the eventual top-k retrieval accuracy, and down weighting others creates room for feature compression. In experiments, we run our compression method on public datasets, and use the compressed features in graph based, product quantization and scalar quantization based ANNS solutions. Experimental results show that our compression method can significantly improve the efficiency of these methods while preserves or even improves search accuracy, suggesting its broad potential impact on real world applications.

📄 PDF Abstract BibTeX arXiv:2107.14415

Code (0)

등록된 구현이 없습니다.

Tasks

Feature CompressionInformation RetrievalQuantizationRetrieval

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Residual Connection 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Tensor-Train Point Cloud Compression and Efficient Approximate Nearest-Neighbor Search

2024-10-06 · Georgii Novikov, Alexander Gneushev, Alexey Kadeishvili, Ivan Oseledets

Nearest-neighbor search in large vector databases is crucial for various machine learning applications. This paper introduces a novel method using tensor-train (TT) low-rank tensor decomposition to efficiently represent …

Density EstimationOut of Distribution (OOD) DetectionTensor Decomposition

Near-optimal sample compression for nearest neighbors

2014-04-13 · NeurIPS 2014 12 · Lee-Ad Gottlieb, Aryeh Kontorovich, Pinhas Nisnevitch

We present the first sample compression algorithm for nearest neighbors with non-trivial performance guarantees. We complement these guarantees by demonstrating almost matching hardness lower bounds, which show that our …

General Classification

Classification in asymmetric spaces via sample compression

2019-09-22 · Lee-Ad Gottlieb, Shira Ozeri

We initiate the rigorous study of classification in quasi-metric spaces. These are point sets endowed with a distance function that is non-negative and also satisfies the triangle inequality, but is asymmetric. We develo…

ClassificationGeneral Classification

Active Nearest-Neighbor Learning in Metric Spaces

2016-05-22 · NeurIPS 2016 12 · Aryeh Kontorovich, Sivan Sabato, Ruth Urner

We propose a pool-based non-parametric active learning algorithm for general metric spaces, called MArgin Regularized Metric Active Nearest Neighbor (MARMANN), which outputs a nearest-neighbor classifier. We give predict…

Active LearningModel Selection

Nearest-Neighbor Sample Compression: Efficiency, Consistency, Infinite Dimensions

2017-05-23 · NeurIPS 2017 12 · Aryeh Kontorovich, Sivan Sabato, Roi Weiss

We examine the Bayes-consistency of a recently proposed 1-nearest-neighbor-based multiclass learning algorithm. This algorithm is derived from sample compression bounds and enjoys the statistical advantages of tight, ful…

Generalization Bounds