16
Hamming Distance Metric Learning Supplementary Material Mohammad Norouzi David J. Fleet Ruslan Salakhutdinov ,Departments of Computer Science and Statistics University of Toronto [norouzi,fleet,rsalakhu]@cs.toronto.edu A Precision@k plots for CIFAR-10 10 100 1000 10000 0.61 0.64 0.67 0.7 0.73 0.76 0.79 k Precision @k 512-bit, linear, triplet 256-bit, linear, triplet 128-bit, linear, triplet 64-bit, linear, triplet 10 100 1000 10000 0.61 0.64 0.67 0.7 0.73 0.76 0.79 k Precision @k 512-bit, linear, pairwise 256-bit, linear, pairwise 128-bit, linear, pairwise 64-bit, linear, pairwise Figure 1: Precision@k plots for Hamming distance on 512, 256, 128, 64-bit codes trained using (left) triplet ranking hinge loss function (right) pairwise hinge loss on the CIFAR-10 dataset. Preci- sion is averaged over the test examples. B Retrieval results on the CIFAR-10 dataset We trained our Hamming distance metric learning framework on 6400-dimensional bag-of-word features extracted from the CIFAR-10 training images. In what follows we include 24 retrieved images from the training set using different distance measures, for each of the the first 60 test images. For each query (on the left), the retrieval results are shown (from left to right) using Hamming distance on 256-bit codes, Hamming distance on 64-bit codes, and Euclidean distance on bag-of- words features. Red rectangles indicate mistakes. 1

Hamming Distance Metric Learning Supplementary Material

Embed Size (px)

Citation preview

Page 1: Hamming Distance Metric Learning Supplementary Material

Hamming Distance Metric LearningSupplementary Material

Mohammad Norouzi† David J. Fleet† Ruslan Salakhutdinov†,‡

Departments of Computer Science† and Statistics‡University of Toronto

[norouzi,fleet,rsalakhu]@cs.toronto.edu

A Precision@k plots for CIFAR-10

10 100 1000 100000.61

0.64

0.67

0.7

0.73

0.76

0.79

k

Pre

cis

ion @

k

512−bit, linear, triplet256−bit, linear, triplet128−bit, linear, triplet64−bit, linear, triplet

10 100 1000 100000.61

0.64

0.67

0.7

0.73

0.76

0.79

k

Pre

cis

ion @

k

512−bit, linear, pairwise256−bit, linear, pairwise128−bit, linear, pairwise64−bit, linear, pairwise

Figure 1: Precision@k plots for Hamming distance on 512, 256, 128, 64-bit codes trained using(left) triplet ranking hinge loss function (right) pairwise hinge loss on the CIFAR-10 dataset. Preci-sion is averaged over the test examples.

B Retrieval results on the CIFAR-10 dataset

We trained our Hamming distance metric learning framework on 6400-dimensional bag-of-wordfeatures extracted from the CIFAR-10 training images. In what follows we include 24 retrievedimages from the training set using different distance measures, for each of the the first 60 test images.For each query (on the left), the retrieval results are shown (from left to right) using Hammingdistance on 256-bit codes, Hamming distance on 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

1

Page 2: Hamming Distance Metric Learning Supplementary Material

Figure 2: Retrieval results for CIFAR-10 test images 1-4, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

2

Page 3: Hamming Distance Metric Learning Supplementary Material

Figure 3: Retrieval results for CIFAR-10 test images 5-8, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

3

Page 4: Hamming Distance Metric Learning Supplementary Material

Figure 4: Retrieval results for CIFAR-10 test images 9-12, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

4

Page 5: Hamming Distance Metric Learning Supplementary Material

Figure 5: Retrieval results for CIFAR-10 test images 13-16, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

5

Page 6: Hamming Distance Metric Learning Supplementary Material

Figure 6: Retrieval results for CIFAR-10 test images 17-20, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

6

Page 7: Hamming Distance Metric Learning Supplementary Material

Figure 7: Retrieval results for CIFAR-10 test images 21-24, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

7

Page 8: Hamming Distance Metric Learning Supplementary Material

Figure 8: Retrieval results for CIFAR-10 test images 25-28, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

8

Page 9: Hamming Distance Metric Learning Supplementary Material

Figure 9: Retrieval results for CIFAR-10 test images 29-32, using Hamming distance on 256-bit and64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicate mistakes.

9

Page 10: Hamming Distance Metric Learning Supplementary Material

Figure 10: Retrieval results for CIFAR-10 test images 33-36, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

10

Page 11: Hamming Distance Metric Learning Supplementary Material

Figure 11: Retrieval results for CIFAR-10 test images 37-40, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

11

Page 12: Hamming Distance Metric Learning Supplementary Material

Figure 12: Retrieval results for CIFAR-10 test images 41-44, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

12

Page 13: Hamming Distance Metric Learning Supplementary Material

Figure 13: Retrieval results for CIFAR-10 test images 45-48, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

13

Page 14: Hamming Distance Metric Learning Supplementary Material

Figure 14: Retrieval results for CIFAR-10 test images 49-52, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

14

Page 15: Hamming Distance Metric Learning Supplementary Material

Figure 15: Retrieval results for CIFAR-10 test images 53-56, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

15

Page 16: Hamming Distance Metric Learning Supplementary Material

Figure 16: Retrieval results for CIFAR-10 test images 57-60, using Hamming distance on 256-bit and 64-bit codes, and Euclidean distance on bag-of-words features. Red rectangles indicatemistakes.

16