Papers › E-LPIPS: Robust Perceptual Image Similarity via Random Transformation Ensembles

E-LPIPS: Robust Perceptual Image Similarity via Random Transformation Ensembles

10 Jun 2019arXiv:1906.03973archive 2025-07-28

Markus Kettunen, Erik Härkönen, Jaakko Lehtinen

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1906.03973")

Code

Syntology Ran 0 of 13 code samples harvested from 1 repository linked to this paper; 13 have no recorded run.

By repository: official repository: 13 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mkettune/elpips officialmentioned in papermentioned on GitHubtfBSD-2-Clause report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 0 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

13unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mkettune/elpips. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

BCERankingLoss mkettune/elpips/train_run.py official repository unverified BSD-2-Clause (permissive) · 38535896737ff703 · report
apply_ensemble mkettune/elpips/elpips/elpips.py official repository unverified BSD-2-Clause (permissive) · ce84f88a4a3b5c8b · report
cached_listdir mkettune/elpips/train_dataset.py official repository unverified BSD-2-Clause (permissive) · 324d0d067e127ddd · report
conv2d_1x1 mkettune/elpips/train_run.py official repository unverified BSD-2-Clause (permissive) · c709bb5cdca21cb6 · report
load_image mkettune/elpips/ex_bary10.py official repository unverified BSD-2-Clause (permissive) · 3e19a6296d2c7cc9 · report
load_image mkettune/elpips/train_dataset.py official repository unverified BSD-2-Clause (permissive) · 0c9e93c8e464e175 · report
load_image_uint mkettune/elpips/train_dataset.py official repository unverified BSD-2-Clause (permissive) · 6ca0c644d6af33bc · report
make_trainable mkettune/elpips/elpips/networks.py official repository unverified BSD-2-Clause (permissive) · 127a6b173d9016ce · report
normalize_tensor mkettune/elpips/elpips/pnetlin.py official repository unverified BSD-2-Clause (permissive) · 975fbd033769b396 · report
np_dtype mkettune/elpips/elpips/util.py official repository unverified BSD-2-Clause (permissive) · a3a377e5ab46db27 · report
sample_ensemble mkettune/elpips/elpips/elpips.py official repository unverified BSD-2-Clause (permissive) · b145e1bd83db8177 · report
switch_case_cond mkettune/elpips/elpips/util.py official repository unverified BSD-2-Clause (permissive) · 057c64f780456c83 · report
switch_case_where mkettune/elpips/elpips/util.py official repository unverified BSD-2-Clause (permissive) · e72ff6a25970cd47 · report

Tasks

Image Similarity Search

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections