Skip to content
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

Functions to compute L1 distance #133

Open
MBkkt opened this issue Jun 10, 2024 · 3 comments
Open

Functions to compute L1 distance #133

MBkkt opened this issue Jun 10, 2024 · 3 comments

Comments

@MBkkt
Copy link
Contributor

MBkkt commented Jun 10, 2024

Manhattan distance sometimes useful

https://github.com/google-research/google-research/tree/master/scann/scann/distance_measures/one_to_one
https://github.com/ydb-platform/ydb/tree/main/library/cpp/l1_distance

Already done for bit (hamming)

@MBkkt MBkkt changed the title L1 distance? Functions to compute L1 distance Jun 10, 2024
@ashvardanian
Copy link
Owner

ashvardanian commented Jun 10, 2024

This might be interesting for i8 inputs and any other low-capacity integral types, and might be related to #100 for sparse distances

@raulod
Copy link

raulod commented Dec 9, 2024

l1 is picking momentum is many high dimensional usage where l2 distances are unstable.

@ashvardanian
Copy link
Owner

It seems like L1 is still very niche and L2 & Angular distances are mostly used.

Would be great to see some more user requests before switching the attention from matrix multiplications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants