{"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/hierarchical-nearest-neighbor-graph-embedding","title":"Hierarchical Nearest Neighbor Graph Embedding for Efficient Dimensionality Reduction","arxiv_id":"2203.12997","date":"2022-03-24","proceeding":"CVPR 2022 1","authors":["M. Saquib Sarfraz","Marios Koulakis","Constantin Seibold","Rainer Stiefelhagen"],"abstract":"Dimensionality reduction is crucial both for visualization and preprocessing high dimensional data for machine learning. We introduce a novel method based on a hierarchy built on 1-nearest neighbor graphs in the original space which is used to preserve the grouping properties of the data distribution on multiple levels. The core of the proposal is an optimization-free projection that is competitive with the latest versions of t-SNE and UMAP in performance and visualization quality while being an order of magnitude faster in run-time. Furthermore, its interpretable mechanics, the ability to project new data, and the natural separation of data clusters in visualizations make it a general purpose unsupervised dimension reduction technique. In the paper, we argue about the soundness of the proposed method and evaluate it on a diverse collection of datasets with sizes varying from 1K to 11M samples and dimensions from 28 to 16K. We perform comparisons with other state-of-the-art methods on multiple metrics and target dimensions highlighting its efficiency and performance. Code is available at https://github.com/koulakis/h-nne","url_abs":"https://arxiv.org/abs/2203.12997v3","url_pdf":"https://arxiv.org/pdf/2203.12997v3.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":"hierarchical-nearest-neighbor-graph-embedding","repo_url":"https://github.com/koulakis/h-nne","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"16k","task_name":"16k"},{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"dimensionality-reduction","task_name":"Dimensionality Reduction"},{"task_slug":"graph-embedding","task_name":"Graph Embedding"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/data-augmentation-on-ga1457","task":"Data Augmentation","dataset":"GA1457","model":"hNNE","rank_in_archive_order":3,"of":4,"metrics":{"Classification Accuracy":"77.4"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2203.12997","atlas_url":"https://app.syntology.ai/?focus=2203.12997","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.12997"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":"deterministic:regex_extraction","url":"https://github.com/koulakis/h-nne","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":13,"unverified":6},"by_repo_kind":{"official":{"samples":19,"ran":13,"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":"41c5cbd17860e340","entry":"cool_max","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/cool_functions.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/cool_functions.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"41c5cbd17860e340"}},{"code_sha256_prefix":"aebb70457b42c029","entry":"cool_max_radius","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/cool_functions.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/cool_functions.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aebb70457b42c029"}},{"code_sha256_prefix":"837397a9051a72c6","entry":"cool_mean","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/cool_functions.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/cool_functions.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"837397a9051a72c6"}},{"code_sha256_prefix":"d6a85b26b54e1f6a","entry":"format_count","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/utils.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/utils.py","link_basis":"harvester_set","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":"d6a85b26b54e1f6a"}},{"code_sha256_prefix":"3b8cd9eb4ca50ffa","entry":"format_metric","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/evaluation.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/evaluation.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3b8cd9eb4ca50ffa"}},{"code_sha256_prefix":"8997d3690a281c6b","entry":"format_time","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/utils.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/utils.py","link_basis":"harvester_set","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":"8997d3690a281c6b"}},{"code_sha256_prefix":"0865915de00bb565","entry":"layout_to_level_arrays","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v2/v2_utils.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v2/v2_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0865915de00bb565"}},{"code_sha256_prefix":"2bfc48e152c98698","entry":"load_coil20","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/data.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/data.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2bfc48e152c98698"}},{"code_sha256_prefix":"0a2fb4a937a86f55","entry":"normalize_hnne_version","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v2/v2_utils.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v2/v2_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0a2fb4a937a86f55"}},{"code_sha256_prefix":"ba82bc6d5863b5e3","entry":"plot_projection_grid","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/v2_plotter.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/v2_plotter.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ba82bc6d5863b5e3"}},{"code_sha256_prefix":"08504cde0793e9d9","entry":"project_with_pca","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v1/hierarchical_projection.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v1/hierarchical_projection.py","link_basis":"harvester_set","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":"08504cde0793e9d9"}},{"code_sha256_prefix":"201dba0c54368168","entry":"rescale_layout","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v2/v2_utils.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v2/v2_utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"201dba0c54368168"}},{"code_sha256_prefix":"8e6b2090f7f06bda","entry":"separate_overlaps_minmove_grid_safe_nd","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v2/v2_packer.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v2/v2_packer.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e6b2090f7f06bda"}},{"code_sha256_prefix":"36476255697ea82f","entry":"load_mnist","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/data.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/data.py","link_basis":"harvester_set","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":"36476255697ea82f"}},{"code_sha256_prefix":"2432b35641ba5335","entry":"load_shuttle","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/data.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/data.py","link_basis":"harvester_set","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":"2432b35641ba5335"}},{"code_sha256_prefix":"3d0a9711c999f375","entry":"pack_circles_from_anchors_2d_spacefill_k","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v2/v2_packer.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v2/v2_packer.py","link_basis":"harvester_set","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":"3d0a9711c999f375"}},{"code_sha256_prefix":"b88f471934cdcb53","entry":"plot_v2_nested_2d","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/v2_plotter.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/v2_plotter.py","link_basis":"harvester_set","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":"b88f471934cdcb53"}},{"code_sha256_prefix":"f40a4e1b0adc14a5","entry":"separate_overlaps_minmove_grid_safe_2d","repo":"koulakis/h-nne","repo_kind":"official","path":"hnne/v2/v2_packer.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/hnne/v2/v2_packer.py","link_basis":"harvester_set","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":"f40a4e1b0adc14a5"}},{"code_sha256_prefix":"903bbe6e8ca73ca2","entry":"time_function_call","repo":"koulakis/h-nne","repo_kind":"official","path":"benchmarking/hnne_benchmarking/utils.py","file_url":"https://github.com/koulakis/h-nne/blob/HEAD/benchmarking/hnne_benchmarking/utils.py","link_basis":"harvester_set","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":"903bbe6e8ca73ca2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}