-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
faiss MetricType support L1 distance or fractional distance metric Lp(p=0.5) ? #313
Comments
Dear @hudengjunai , I know very well this paper. Why do you mention L1 ? This distance has exactly the same problem of dimensionality curse as the L2 distance, in high-dimensional spaces, and the same for the practical meaningfulness (to be clear: not the meaningfulness you mention, which IMHO is far from what we expect for kNN). L1 is not included because we have no use-case where it is currently better than Cosine or Euclidean. The meaningfulness you mention does not necessarily translate to better retrieval in practice. |
See also issue #12 |
Thank you very much, @jegou ,I will be appreciate if you read this paper.https://link.springer.com/chapter/10.1007/978-3-540-31865-1_32. |
No activity, closing. |
Hi @jegou , I think L1 is mathematically different from L2. Although there are not enough use-cases for now, no one can say for the future. Besides, if L1 is supported, researchers can try whether it is better than L2. |
yes, we agree on that (I never said the contrary).
You don't need to have a fully-optimized L1 GPU kernel to validate the fact that a metric is better or worse than another. Before investing in that direction, we need good reasons. Currently we don't have sufficient reasons to prioritize this feature. |
Oh, I get it. Thank you! @jegou |
Hello, Is the L1-distance supported in faiss currently? Thanks :) |
Hi,I am using faiss lib,it is very efficency and smart. But recently I have read a paper :when is 'neareast neighbor' meaningful? ", this paper indicates that when dimension of the vector is high,Dmax-Dmin of L2 distance is small.just as noted in this paper, the paper url is : https://www.researchgate.net/profile/Jonathan_Goldstein4/publication/2845566_When_Is_Nearest_Neighbor_Meaningful/links/09e4150b3eb298bf21000000/When-Is-Nearest-Neighbor-Meaningful.pdf annot get in ,just google 'When is neareast Neighbor meaningful filetype:pdf",you can see this paper.
http://users.informatik.uni-halle.de/~hinnebur/PS_Files/icdt2001b.pdf
so my question is:"Apart from current L2_distance and inner_product MetricType, Is there any plan to add L1 distance metrictype to faiss lib,or fractional distance metric Lp(p=0.5)?"
The text was updated successfully, but these errors were encountered: