{"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/e-lpips-robust-perceptual-image-similarity","title":"E-LPIPS: Robust Perceptual Image Similarity via Random Transformation Ensembles","arxiv_id":"1906.03973","date":"2019-06-10","proceeding":null,"authors":["Markus Kettunen","Erik Härkönen","Jaakko Lehtinen"],"abstract":"It has been recently shown that the hidden variables of convolutional neural networks make for an efficient perceptual similarity metric that accurately predicts human judgment on relative image similarity assessment. First, we show that such learned perceptual similarity metrics (LPIPS) are susceptible to adversarial attacks that dramatically contradict human visual similarity judgment. While this is not surprising in light of neural networks' well-known weakness to adversarial perturbations, we proceed to show that self-ensembling with an infinite family of random transformations of the input --- a technique known not to render classification networks robust --- is enough to turn the metric robust against attack, while retaining predictive power on human judgments. Finally, we study the geometry imposed by our our novel self-ensembled metric (E-LPIPS) on the space of natural images. We find evidence of \"perceptual convexity\" by showing that convex combinations of similar-looking images retain appearance, and that discrete geodesics yield meaningful frame interpolation and texture morphing, all without explicit correspondences.","url_abs":"https://arxiv.org/abs/1906.03973v2","url_pdf":"https://arxiv.org/pdf/1906.03973v2.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":"e-lpips-robust-perceptual-image-similarity","repo_url":"https://github.com/mkettune/elpips","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[{"task_slug":"image-similarity-search","task_name":"Image Similarity Search"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1906.03973","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1906.03973"}},"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/mkettune/elpips","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"summary":{"unverified":13},"by_repo_kind":{"official":{"samples":13,"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":"38535896737ff703","entry":"BCERankingLoss","repo":"mkettune/elpips","repo_kind":"official","path":"train_run.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/train_run.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"38535896737ff703"}},{"code_sha256_prefix":"ce84f88a4a3b5c8b","entry":"apply_ensemble","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/elpips.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/elpips.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ce84f88a4a3b5c8b"}},{"code_sha256_prefix":"324d0d067e127ddd","entry":"cached_listdir","repo":"mkettune/elpips","repo_kind":"official","path":"train_dataset.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/train_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"324d0d067e127ddd"}},{"code_sha256_prefix":"c709bb5cdca21cb6","entry":"conv2d_1x1","repo":"mkettune/elpips","repo_kind":"official","path":"train_run.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/train_run.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"c709bb5cdca21cb6"}},{"code_sha256_prefix":"3e19a6296d2c7cc9","entry":"load_image","repo":"mkettune/elpips","repo_kind":"official","path":"ex_bary10.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/ex_bary10.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"3e19a6296d2c7cc9"}},{"code_sha256_prefix":"0c9e93c8e464e175","entry":"load_image","repo":"mkettune/elpips","repo_kind":"official","path":"train_dataset.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/train_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"0c9e93c8e464e175"}},{"code_sha256_prefix":"6ca0c644d6af33bc","entry":"load_image_uint","repo":"mkettune/elpips","repo_kind":"official","path":"train_dataset.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/train_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"6ca0c644d6af33bc"}},{"code_sha256_prefix":"127a6b173d9016ce","entry":"make_trainable","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/networks.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/networks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"127a6b173d9016ce"}},{"code_sha256_prefix":"975fbd033769b396","entry":"normalize_tensor","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/pnetlin.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/pnetlin.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"975fbd033769b396"}},{"code_sha256_prefix":"a3a377e5ab46db27","entry":"np_dtype","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/util.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"a3a377e5ab46db27"}},{"code_sha256_prefix":"b145e1bd83db8177","entry":"sample_ensemble","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/elpips.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/elpips.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"b145e1bd83db8177"}},{"code_sha256_prefix":"057c64f780456c83","entry":"switch_case_cond","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/util.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"057c64f780456c83"}},{"code_sha256_prefix":"e72ff6a25970cd47","entry":"switch_case_where","repo":"mkettune/elpips","repo_kind":"official","path":"elpips/util.py","file_url":"https://github.com/mkettune/elpips/blob/HEAD/elpips/util.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-2-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"e72ff6a25970cd47"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}