{"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/trimap-large-scale-dimensionality-reduction","title":"TriMap: Large-scale Dimensionality Reduction Using Triplets","arxiv_id":"1910.00204","date":"2019-10-01","proceeding":null,"authors":["Ehsan Amid","Manfred K. Warmuth"],"abstract":"We introduce \"TriMap\"; a dimensionality reduction technique based on triplet constraints, which preserves the global structure of the data better than the other commonly used methods such as t-SNE, LargeVis, and UMAP. To quantify the global accuracy of the embedding, we introduce a score that roughly reflects the relative placement of the clusters rather than the individual points. We empirically show the excellent performance of TriMap on a large variety of datasets in terms of the quality of the embedding as well as the runtime. On our performance benchmarks, TriMap easily scales to millions of points without depleting the memory and clearly outperforms t-SNE, LargeVis, and UMAP in terms of runtime.","url_abs":"https://arxiv.org/abs/1910.00204v2","url_pdf":"https://arxiv.org/pdf/1910.00204v2.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":"trimap-large-scale-dimensionality-reduction","repo_url":"https://github.com/eamid/trimap","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"dimensionality-reduction","task_name":"Dimensionality Reduction"},{"task_slug":null,"task_name":"Triplet"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1910.00204","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1910.00204"}},"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/eamid/trimap","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"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":"b2c20f119841aa6e","entry":"canonical_metric","repo":"eamid/trimap","repo_kind":"official","path":"trimap/torch_neighbors.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/torch_neighbors.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b2c20f119841aa6e"}},{"code_sha256_prefix":"7addd6da7aeb8197","entry":"elapsed","repo":"eamid/trimap","repo_kind":"official","path":"benchmarks/benchmark_torch.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/benchmarks/benchmark_torch.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7addd6da7aeb8197"}},{"code_sha256_prefix":"ef97e02bef17426b","entry":"euclid_dist","repo":"eamid/trimap","repo_kind":"official","path":"trimap/trimap_.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/trimap_.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ef97e02bef17426b"}},{"code_sha256_prefix":"32d8abc93cf630f0","entry":"l2_norm","repo":"eamid/trimap","repo_kind":"official","path":"trimap/trimap_.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/trimap_.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"32d8abc93cf630f0"}},{"code_sha256_prefix":"5cb7f46b7acec244","entry":"make_constraints","repo":"eamid/trimap","repo_kind":"official","path":"benchmarks/benchmark_legacy_parity.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/benchmarks/benchmark_legacy_parity.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5cb7f46b7acec244"}},{"code_sha256_prefix":"4a3465367376e6ed","entry":"rejection_sample","repo":"eamid/trimap","repo_kind":"official","path":"trimap/torch_trimap.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/torch_trimap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4a3465367376e6ed"}},{"code_sha256_prefix":"fb259a0f5d982ea6","entry":"rowwise_distances","repo":"eamid/trimap","repo_kind":"official","path":"trimap/torch_neighbors.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/torch_neighbors.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fb259a0f5d982ea6"}},{"code_sha256_prefix":"ea1df1848d53ea5a","entry":"sliced_distances","repo":"eamid/trimap","repo_kind":"official","path":"trimap/torch_trimap.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/torch_trimap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ea1df1848d53ea5a"}},{"code_sha256_prefix":"b3260de70d885323","entry":"tempered_log","repo":"eamid/trimap","repo_kind":"official","path":"trimap/torch_trimap.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/torch_trimap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b3260de70d885323"}},{"code_sha256_prefix":"bd6f8a2b67e723ab","entry":"tempered_log","repo":"eamid/trimap","repo_kind":"official","path":"trimap/trimap_.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/trimap_.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bd6f8a2b67e723ab"}},{"code_sha256_prefix":"7b55c4a5ceac283a","entry":"torch_knn","repo":"eamid/trimap","repo_kind":"official","path":"trimap/torch_neighbors.py","file_url":"https://github.com/eamid/trimap/blob/HEAD/trimap/torch_neighbors.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7b55c4a5ceac283a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}