{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/hyperbolic-image-embeddings","title":"Hyperbolic Image Embeddings","arxiv_id":"1904.02239","date":"2019-04-03","proceeding":"CVPR 2020 6","authors":["Valentin Khrulkov","Leyla Mirvakhabova","Evgeniya Ustinova","Ivan Oseledets","Victor Lempitsky"],"abstract":"Computer vision tasks such as image classification, image retrieval and few-shot learning are currently dominated by Euclidean and spherical embeddings, so that the final decisions about class belongings or the degree of similarity are made using linear hyperplanes, Euclidean distances, or spherical geodesic distances (cosine similarity). In this work, we demonstrate that in many practical scenarios hyperbolic embeddings provide a better alternative.","url_abs":"https://arxiv.org/abs/1904.02239v2","url_pdf":"https://arxiv.org/pdf/1904.02239v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"hyperbolic-image-embeddings","repo_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"hyperbolic-image-embeddings","repo_url":"https://github.com/leymir/hyperbolic-image-embeddings","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"hyperbolic-image-embeddings","repo_url":"https://github.com/nalexai/hyperlib","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"unanswered"}}],"tasks":[{"task_slug":"few-shot-learning","task_name":"Few-Shot Learning"},{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-retrieval","task_name":"Image Retrieval"},{"task_slug":"retrieval","task_name":"Retrieval"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/few-shot-image-classification-on-cub-200-5-1","task":"Few-Shot Image Classification","dataset":"CUB 200 5-way 1-shot","model":"Hyperbolic ProtoNet","rank_in_archive_order":34,"of":36,"metrics":{"Accuracy":"60.52"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-cub-200-5","task":"Few-Shot Image Classification","dataset":"CUB 200 5-way 5-shot","model":"Hyperbolic ProtoNet","rank_in_archive_order":31,"of":32,"metrics":{"Accuracy":"72.22"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-mini-2","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (1-shot)","model":"Hyperbolic ProtoNet","rank_in_archive_order":94,"of":105,"metrics":{"Accuracy":"51.57"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-mini-3","task":"Few-Shot Image Classification","dataset":"Mini-Imagenet 5-way (5-shot)","model":"Hyperbolic ProtoNet","rank_in_archive_order":89,"of":95,"metrics":{"Accuracy":"66.27"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-omniglot-1-1","task":"Few-Shot Image Classification","dataset":"OMNIGLOT - 1-Shot, 20-way","model":"Hyperbolic ProtoNet","rank_in_archive_order":13,"of":20,"metrics":{"Accuracy":"95.9%"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-omniglot-1-2","task":"Few-Shot Image Classification","dataset":"OMNIGLOT - 1-Shot, 5-way","model":"Hyperbolic ProtoNet","rank_in_archive_order":8,"of":17,"metrics":{"Accuracy":"99.0"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-omniglot-5-1","task":"Few-Shot Image Classification","dataset":"OMNIGLOT - 5-Shot, 20-way","model":"Hyperbolic ProtoNet","rank_in_archive_order":15,"of":19,"metrics":{"Accuracy":"98.15%"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-image-classification-on-omniglot-5-2","task":"Few-Shot Image Classification","dataset":"OMNIGLOT - 5-Shot, 5-way","model":"Hyperbolic ProtoNet","rank_in_archive_order":14,"of":16,"metrics":{"Accuracy":"99.4"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1904.02239","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1904.02239"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nalexai/hyperlib","reach":{"status":"unanswered"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/leymir/hyperbolic-image-embeddings","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"ran_draft_wrong":2,"unverified":2},"by_repo_kind":{"official":{"samples":6,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"127282b695693958","entry":"arsinh","repo":"KhrulkovV/hyperbolic-image-embeddings","repo_kind":"official","path":"hyptorch/pmath.py","file_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings/blob/HEAD/hyptorch/pmath.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"127282b695693958"}},{"code_sha256_prefix":"daf212010121f13d","entry":"artanh","repo":"KhrulkovV/hyperbolic-image-embeddings","repo_kind":"official","path":"hyptorch/pmath.py","file_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings/blob/HEAD/hyptorch/pmath.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"daf212010121f13d"}},{"code_sha256_prefix":"f3a60764ea302fb1","entry":"delta_hyp","repo":"KhrulkovV/hyperbolic-image-embeddings","repo_kind":"official","path":"hyptorch/delta.py","file_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings/blob/HEAD/hyptorch/delta.py","link_basis":"plan_row","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f3a60764ea302fb1"}},{"code_sha256_prefix":"be5af45dd86c2cc1","entry":"tanh","repo":"KhrulkovV/hyperbolic-image-embeddings","repo_kind":"official","path":"hyptorch/pmath.py","file_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings/blob/HEAD/hyptorch/pmath.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"be5af45dd86c2cc1"}},{"code_sha256_prefix":"b6836e71f52ef13f","entry":"batched_delta_hyp","repo":"KhrulkovV/hyperbolic-image-embeddings","repo_kind":"official","path":"hyptorch/delta.py","file_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings/blob/HEAD/hyptorch/delta.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b6836e71f52ef13f"}},{"code_sha256_prefix":"cf1928988047f33d","entry":"get_delta","repo":"KhrulkovV/hyperbolic-image-embeddings","repo_kind":"official","path":"hyptorch/delta.py","file_url":"https://github.com/KhrulkovV/hyperbolic-image-embeddings/blob/HEAD/hyptorch/delta.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cf1928988047f33d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}