{"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/fixed-support-tree-sliced-wasserstein","title":"Fixed Support Tree-Sliced Wasserstein Barycenter","arxiv_id":"2109.03431","date":"2021-09-08","proceeding":null,"authors":["Yuki Takezawa","Ryoma Sato","Zornitsa Kozareva","Sujith Ravi","Makoto Yamada"],"abstract":"The Wasserstein barycenter has been widely studied in various fields, including natural language processing, and computer vision. However, it requires a high computational cost to solve the Wasserstein barycenter problem because the computation of the Wasserstein distance requires a quadratic time with respect to the number of supports. By contrast, the Wasserstein distance on a tree, called the tree-Wasserstein distance, can be computed in linear time and allows for the fast comparison of a large number of distributions. In this study, we propose a barycenter under the tree-Wasserstein distance, called the fixed support tree-Wasserstein barycenter (FS-TWB) and its extension, called the fixed support tree-sliced Wasserstein barycenter (FS-TSWB). More specifically, we first show that the FS-TWB and FS-TSWB problems are convex optimization problems and can be solved by using the projected subgradient descent. Moreover, we propose a more efficient algorithm to compute the subgradient and objective function value by using the properties of tree-Wasserstein barycenter problems. Through real-world experiments, we show that, by using the proposed algorithm, the FS-TWB and FS-TSWB can be solved two orders of magnitude faster than the original Wasserstein barycenter.","url_abs":"https://arxiv.org/abs/2109.03431v2","url_pdf":"https://arxiv.org/pdf/2109.03431v2.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":"fixed-support-tree-sliced-wasserstein","repo_url":"https://github.com/yukiTakezawa/FS_TSWB","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2109.03431","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2109.03431"}},"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/yukiTakezawa/FS_TSWB","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":5},"by_repo_kind":{"official":{"samples":5,"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":"62b0a92640027dbc","entry":"calc_ibp_bar","repo":"yukiTakezawa/FS_TSWB","repo_kind":"official","path":"mnist_memory_sample.py","file_url":"https://github.com/yukiTakezawa/FS_TSWB/blob/HEAD/mnist_memory_sample.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":"62b0a92640027dbc"}},{"code_sha256_prefix":"6cb8626f898f1391","entry":"calc_tree_bar","repo":"yukiTakezawa/FS_TSWB","repo_kind":"official","path":"mnist_memory_sample.py","file_url":"https://github.com/yukiTakezawa/FS_TSWB/blob/HEAD/mnist_memory_sample.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":"6cb8626f898f1391"}},{"code_sha256_prefix":"83cddd5ca099d5d7","entry":"calc_tree_naive_bar","repo":"yukiTakezawa/FS_TSWB","repo_kind":"official","path":"mnist_memory_sample.py","file_url":"https://github.com/yukiTakezawa/FS_TSWB/blob/HEAD/mnist_memory_sample.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":"83cddd5ca099d5d7"}},{"code_sha256_prefix":"3a39c864492ebcd5","entry":"color_func","repo":"yukiTakezawa/FS_TSWB","repo_kind":"official","path":"src/util.py","file_url":"https://github.com/yukiTakezawa/FS_TSWB/blob/HEAD/src/util.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":"3a39c864492ebcd5"}},{"code_sha256_prefix":"5cd633096f0b6f95","entry":"get_random_projections","repo":"yukiTakezawa/FS_TSWB","repo_kind":"official","path":"src/random_projections.py","file_url":"https://github.com/yukiTakezawa/FS_TSWB/blob/HEAD/src/random_projections.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":"5cd633096f0b6f95"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}