{"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/sliced-wasserstein-autoencoder-an","title":"Sliced-Wasserstein Autoencoder: An Embarrassingly Simple Generative Model","arxiv_id":"1804.01947","date":"2018-04-05","proceeding":null,"authors":["Soheil Kolouri","Phillip E. Pope","Charles E. Martin","Gustavo K. Rohde"],"abstract":"In this paper we study generative modeling via autoencoders while using the\nelegant geometric properties of the optimal transport (OT) problem and the\nWasserstein distances. We introduce Sliced-Wasserstein Autoencoders (SWAE),\nwhich are generative models that enable one to shape the distribution of the\nlatent space into any samplable probability distribution without the need for\ntraining an adversarial network or defining a closed-form for the distribution.\nIn short, we regularize the autoencoder loss with the sliced-Wasserstein\ndistance between the distribution of the encoded training samples and a\npredefined samplable distribution. We show that the proposed formulation has an\nefficient numerical solution that provides similar capabilities to Wasserstein\nAutoencoders (WAE) and Variational Autoencoders (VAE), while benefiting from an\nembarrassingly simple implementation.","url_abs":"http://arxiv.org/abs/1804.01947v3","url_pdf":"http://arxiv.org/pdf/1804.01947v3.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":"sliced-wasserstein-autoencoder-an","repo_url":"https://github.com/skolouri/swae","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"sliced-wasserstein-autoencoder-an","repo_url":"https://github.com/eifuentes/swae-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"sliced-wasserstein-autoencoder-an","repo_url":"https://github.com/gmum/cwae-pytorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"sliced-wasserstein-autoencoder-an","repo_url":"https://github.com/gmum/lcw-generator","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"sliced-wasserstein-autoencoder-an","repo_url":"https://github.com/yiboyang/otus","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"model","task_name":"model"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1804.01947","atlas_url":"https://app.syntology.ai/?focus=1804.01947","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1804.01947"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gmum/cwae-pytorch","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/skolouri/swae","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/eifuentes/swae-pytorch","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/gmum/lcw-generator","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yiboyang/otus","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"unverified":7},"by_repo_kind":{"listed":{"samples":7,"ran":0,"repositories":2}},"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":"71b03991e944116e","entry":"calculate_frechet_distance","repo":"gmum/cwae-pytorch","repo_kind":"listed","path":"src/externals/fid_score.py","file_url":"https://github.com/gmum/cwae-pytorch/blob/HEAD/src/externals/fid_score.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":"71b03991e944116e"}},{"code_sha256_prefix":"17714704b95f3299","entry":"get_activations","repo":"gmum/cwae-pytorch","repo_kind":"listed","path":"src/externals/fid_score.py","file_url":"https://github.com/gmum/cwae-pytorch/blob/HEAD/src/externals/fid_score.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":"17714704b95f3299"}},{"code_sha256_prefix":"e9a11ed9b426c4cc","entry":"get_predictions_for_batch","repo":"gmum/cwae-pytorch","repo_kind":"listed","path":"src/externals/fid_score.py","file_url":"https://github.com/gmum/cwae-pytorch/blob/HEAD/src/externals/fid_score.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":"e9a11ed9b426c4cc"}},{"code_sha256_prefix":"3f7c6df09847b7d7","entry":"rand_cirlce2d","repo":"eifuentes/swae-pytorch","repo_kind":"listed","path":"swae/distributions.py","file_url":"https://github.com/eifuentes/swae-pytorch/blob/HEAD/swae/distributions.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":"3f7c6df09847b7d7"}},{"code_sha256_prefix":"c0936234ec3fb037","entry":"rand_projections","repo":"eifuentes/swae-pytorch","repo_kind":"listed","path":"swae/trainer.py","file_url":"https://github.com/eifuentes/swae-pytorch/blob/HEAD/swae/trainer.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":"c0936234ec3fb037"}},{"code_sha256_prefix":"86ab1a15b6df5867","entry":"rand_ring2d","repo":"eifuentes/swae-pytorch","repo_kind":"listed","path":"swae/distributions.py","file_url":"https://github.com/eifuentes/swae-pytorch/blob/HEAD/swae/distributions.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":"86ab1a15b6df5867"}},{"code_sha256_prefix":"d1b76b4f1ed0f582","entry":"rand_uniform2d","repo":"eifuentes/swae-pytorch","repo_kind":"listed","path":"swae/distributions.py","file_url":"https://github.com/eifuentes/swae-pytorch/blob/HEAD/swae/distributions.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":"d1b76b4f1ed0f582"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}