Warning
This page is located in archive. Go to the latest version of this course pages. Go the latest version of this page.

XEP33SAM -- Understan​ding State of the Art Methods, Algorithms​, and Implementa​tions

Meeting time: Wednesdays 16:30 Location: G102A

Kick-off meeting 27 Feb 2019

Location: Karlovo namesti G3 (ground floor) at 16:30

First meeting 14:40 on 28 Mar 2019 - THURSDAY - at G3A

Paper

Marius Muja and David G. Lowe: “Scalable Nearest Neighbor Algorithms for High Dimensional Data”. Pattern Analysis and Machine Intelligence (PAMI), Vol. 36, 2014. PDF software page

Task
  • Implement approximate k-means algorithm, use approximate NN instead of exact NN
  • Construct k-NN graph: a directed graph, vertex is a feature vector, from each vertex there are k edges to k nearest data vectors

Oxford 5k dataset: image thumbnails, descriptors (128 D vectors, single precision, stored one by one), and corresponing image names (one name per line, i-th name corresponds to i-th descriptors).

The following lines will read the descriptors and the image names in MATLAB:

fid = fopen('imagedesc.dat', 'r');
X = fread(fid, [128,inf], 'single⇒single');
fclose(fid);
Names = textread('imagenames.txt', '%s');

SIFT dataset: 2M SIFT descriptors are available here. The descriptors are 128D unsigned byte precision, the following Matlab lines will read the descriptors:

fid = fopen('SIFT.dat', 'r');
X = fread(fid, [128,inf], 'uint8⇒uint8');
fclose(fid);

Use the SIFT dataset for the approximate k-means. Use 32k cluster centers. Compare three different assignments to the nearest cluster (kd-forest, k-means tree, exact assignmet). For all three cases, start from identical inicialization. Compare the final results (up to say 30 iterations) in terms of sum of squared distances, that is Σ (X - f(X))^2, where f(X) is the assigned cluster center.

Looking forward to results on your own data too.

Second meeting 16/4 2019

Paper

Herve Jegou, Matthijs Douze, Cordelia Schmid: “Product quantization for nearest neighbor search”, PAMI 2011. PDF software page

(Do not get confused by the text on the page. The mex version is in the package.)

Task

Oxford 105k dataset: image thumbnails, descriptors (128 D vectors, single precision, stored one by one), and corresponing image names (one name per line, i-th name corresponds to i-th descriptors, Oxford 5k image names are given without a directory, remaining filenames contain a directory corresponding to the distributed directory structure).

Additional descriptors for Oxford105k are available here. These descriptors are based on deep convolutional neural networks and should in general give better visual similarity for nearest neighbours than the previous ones, please compare.

  • For each image (use all 105k images) find k-NN, visually verify the quality - script that for a selected image shows the k neighbours, etc.
  • Compare the quality and running time of product quantization and FLANN. Select 1000 images at random and find exact k-NN, for each of the algorithms compute an estimate of its precision.

Third meeting 14/5/2019

Paper

Wei Dong, Moses Charikar, Kai Li : “Efficient K-Nearest Neighbor Graph Construction for Generic Similarity Measures.” In Proceedings of the 20th international conference on World Wide Web (WWW). New York, NY. 2011. PDF software page

Use the new KGraph implementation.

Task

Create a k-NN graph on the Oxford 105k dataset (CNN descriptors) and compare the precision and the run-time with the previous methods (make sure that you compute NN to all 105k vectors). Perform also a visual inspection of the results (are the nearest images similar?).

Fourth meeting 4/6/2019

Paper

Jeff Johnson, Matthijs Douze, Hervé Jégou: “Billion-scale similarity search with GPUs” 2017 arXive

Task

Install the code form the githup repository. Compare the implemented methods (using GPU) with the methods evaluated until now.

Specifically: use exhaustive GPU implementation in the k-means task and compare timings. Use both, exact and approximate NN for k-NN graph construction. Compare timings and precision. Further, implement an algorithm finding a path from image A to image B in the k-NN graph, so that the longest edge in the path is as short as possible, as in Section 6.6 of the paper, equation (12). Further, among all the paths with the same cost (12), select the shortest one (the smallest sum of edge weights). Have a code to compute the path and display the images along the path ready (I will provide some image pairs A and B).

courses/xep33sam/start.txt · Last modified: 2019/05/14 17:42 by chumondr