SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.18274 · 2023

LipSim: A Provably Robust Perceptual Similarity Metric

arXiv · PDF · Open in the Atlas

Code that ran

6 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2310.18274.json · badge: /api/ran/2310.18274.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
saraghazanfari/lipsim canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
get_epochs_from_ckpt Ran
ran, honoured the contract we drafted
saraghazanfari/lipsim/lipsim/core/utils.py
pointer only (licence: NONE) · get_code("5ba6c1b8ffde24b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_parameter_number Ran
ran, honoured the contract we drafted
saraghazanfari/lipsim/lipsim/core/utils.py
pointer only (licence: NONE) · get_code("f5db246ea9eec533")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_preprocess_fn Ran
ran; our contract draft was wrong, not the code
saraghazanfari/lipsim/lipsim/core/utils.py
pointer only (licence: NONE) · get_code("37d3844d07b8cc98")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

normalize_fn Ran
ran; our contract draft was wrong, not the code
saraghazanfari/lipsim/lipsim/core/attack/ssa_attack.py
pointer only (licence: NONE) · get_code("d0667bab2c0d4bd8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

trunc_normal_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
saraghazanfari/lipsim/lipsim/core/models/dino/model.py
pointer only (licence: NONE); the stored copy get_code serves, from cnyvfang/corun-colabator, is pointer only (licence: NONE) · get_code("056f371660385ea5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

wrapper_method Ran
ran; our contract draft was wrong, not the code
saraghazanfari/lipsim/lipsim/core/attack/square_attack.py
pointer only (licence: NONE); the stored copy get_code serves, from nilspwalter/the-uncanny-valley, is pointer only (licence: NOASSERTION) · get_code("9b45cb80d93fe980")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_2afc_score Not yet run
unverified (harvested, no recorded run)
saraghazanfari/lipsim/lipsim/core/evaluate.py
pointer only (licence: NONE) · get_code("807679b5a39990da")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, saraghazanfari/lipsim when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 2 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
trunc_normal_ 160 other papers
77 dated earlier, 4 the same month, 77 later, 2 same year, order not determinable · 36 only as an assembly brick
1911.10194 (2019-11)
Panoptic-DeepLab: A Simple, Strong, and Fast Baseline for Bottom-Up Panoptic Segmentation
2005.10242 (2020-05)
Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
2007.12911 (2020-07)
Tighter risk certificates for neural networks
and 157 more not named here
wrapper_method 6 other papers
6 later
2401.16352 (2024-01)
Adversarial Training on Purification (AToP): Advancing Both Robustness and Generalization
2402.02309 (2024-02)
Jailbreaking Attack against Multimodal Large Language Model
2405.16918 (2024-05)
The Uncanny Valley: Exploring Adversarial Robustness from a Flatness Perspective
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent years have seen growing interest in developing and applying perceptual similarity metrics. Research has shown the superiority of perceptual metrics over pixel-wise metrics in aligning with human perception and serving as a proxy for the human visual system. On the other hand, as perceptual metrics rely on neural networks, there is a growing concern regarding their resilience, given the established vulnerability of neural networks to adversarial attacks. It is indeed logical to infer that perceptual metrics may inherit both the strengths and shortcomings of neural networks. In this work, we demonstrate the vulnerability of state-of-the-art perceptual similarity metrics based on an ensemble of ViT-based feature extractors to adversarial attacks. We then propose a framework to train a robust perceptual similarity metric called LipSim (Lipschitz Similarity Metric) with provable guarantees. By leveraging 1-Lipschitz neural networks as the backbone, LipSim provides guarded areas around each data point and certificates for all perturbations within an $\ell_2$ ball. Finally, a comprehensive set of experiments shows the performance of LipSim in terms of natural and certified scores and on the image retrieval application. The code is available at https://github.com/SaraGhazanfari/LipSim.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.18274")
get_code_for_paper("2310.18274")
have("2310.18274")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2310.18274.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2310.18274.svg)](https://syntology.ai/paper/2310.18274)

Connect an agent — have() is free.