10
Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Embed Size (px)

Citation preview

Page 1: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN)

NIPS 2006Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Page 2: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Problem

• Distance metric learning for kNN

Goal:k-nearest neighbors belong to same classExample from different classes are separated by a large margin

kNN LMNN

linear classification Linear SVM

counterpart

Page 3: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Model

• Mahalanobis distance for metric learning

Page 4: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Model

• Goal: learn the linear transformation L

• Cost function: Indicates if a target neighbor

SVM:Hinge loss

Page 5: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

How to solve it?

• Convex optimization with semidefinite programming– The matrix whose elements are linear with the

unknown variables is required to be positive semidefinite.

Slack variable

Page 6: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Classification

• kNN

• Energy-based classification

Page 7: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Results

Page 8: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Results

Page 9: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul

Results

Page 10: Distance Metric Learning for Large Margin Nearest Neighbor Classification (LMNN) NIPS 2006 Kilian Q. Weinberger, John Blitzer and Lawrence K. Saul