Skip to content
BIASED

LPIPS: a perceptual distance

Block 1 of 8~2 min

Pairs, not sets

The topic Precision and recall for generative models split FID's single number in two: are the samples realistic, and is the data covered? Both answers, like FID itself, describe sets of images. Neither says how close one particular image is to another.

Many everyday questions are about exactly such a pair.

  • Reconstruction. The autoencoder of Latent diffusion and the VQGAN tokenizer of Autoregressive transformers must return an image close to the one they encoded.
  • Restoration and editing. A super-resolved photo should match the sharp original. An edit should leave everything it did not touch alone.
  • Variety. A model that turns one sketch into many shoes should give shoes that differ from each other.
  • Copies. The FID topic warned that a model returning its training images scores well. Catching that needs a nearest-neighbor search, and a search needs a distance between two images.

All four need a function d(x,x′)d(x, x') that is small when a person would call two images alike and large when a person would not. This topic builds one.

Answers are saved on the server and tied to this browser until you sign in.