Manuscript Offprint

arXiv:2610.05967

JLD: Perceptual Distance Through A Jacobian Lens

Shreshth Saini, Balu Adsumilli, Alan C. Bovik

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Image compression, restoration, and generation all require a way to measure how different two images look to a person. Pixel error ignores how people see, while the most accurate perceptual distances are typically fitted to human judgments, tying them to a fixed data and resolution. For example, when image resolution is doubled, the correlation of DISTS with human scores on TID2013 drops from 0.815 to 0.717. We introduce the Jacobian Lens Distance (JLD), which derives its perceptual geometry from a frozen vision encoder rather than from human labels. JLD combines the locality of early patch features with the perceptual sensitivity captured by later encoder representations. Specifically, we use the encoder Jacobian to identify directions in the early feature space that most strongly affect the encoder output, producing a fixed metric tensor, E[J⊤J]\mathbb{E}[J^{\top}J], which we call the Jacobian lens. The lens is fitted only once from 100 unlabeled images, taking about 35 seconds. Locally, this construction defines a pullback metric in pixel space, giving JLD a clear geometric interpretation that can be directly analyzed on real images. Across four standard perceptual databases, JLD achieves state-of-the-art performance and consistently outperforms LPIPS, DISTS, PieAPP, and DreamSim. JLD is also robust to changes in image resolution, on TID2013, its lens-term correlation remains nearly unchanged when the resolution is doubled, decreasing only from 0.850 to 0.845. We further introduce JLD-fast, which is 4×4\times faster than LPIPS-VGG while achieving a mean correlation of 0.911. Finally, JLD naturally extends to video, reaching a correlation of 0.786 on Waterloo IVC 4K compared with 0.611 for VMAF. Code.

Figure

Figure 1: Top: block-1 patch features of the images are projected onto a fixed lens (JLD), fitted from the output's sensitivity without labels; Bottom: five TID2013 distortions at equal PSNR (26.8 to 27.2 dB), ordered by human score, with the per-patch change, and rank and Kendall τ\tau against the human ranks.

1 INTRODUCTION

Measuring how different two images look to a person is a basic problem in imaging. Lossy codecs are tuned using perceptual measures, while restoration and generative models are trained and evaluated with them (Wang et al., 2004; Zhang et al., 2018). Pixel error, measured using mean squared error or PSNR, is simple and differentiable, but it treats every pixel change equally, whereas human vision does not (Wang et al., 2004; Ponomarenko et al., 2015). Figure 1 shows five distortions from TID2013 (Ponomarenko et al., 2015) whose PSNR values differ by less than 0.4 dB. Despite their similar pixel error, their perceptual severity is very different. Across all TID2013 pairs with equal PSNR, it selects the image preferred by human observers in only 51.1% of cases, whereas JLD does so in 79.9%. A useful perceptual distance should therefore assign small distances to changes that people barely notice and large distances to changes they find visually important. At the same time, if it is to be used as a loss or an evaluation measure, its geometry should remain well defined and interpretable.

Existing approaches largely fall into two families. Classical full-reference measures explicitly model properties associated with early vision. SSIM and MS-SSIM compare local luminance, contrast, and structure (Wang et al., 2004; 2003); FSIM, GMSD, and VSI compare phase-congruency, gradient, and saliency maps (Zhang et al., 2011; Xue et al., 2014; Zhang et al., 2014). Deep feature distances instead compare representations from pretrained networks. LPIPS, DISTS, PieAPP, and DreamSim, etc., are additionally fitted to human judgements (Zhang et al., 2018; Ding et al., 2022; Prashnani et al., 2018; Fu et al., 2023). This fitting makes such metrics poor at generalizability. When TID2013 is rescored at twice the image resolution, from 256 to 512 pixels, the Spearman correlation (SRCC) of DISTS with ground truth drops from 0.815 to 0.717, while LPIPS-VGG (Zhang et al., 2018; Simonyan & Zisserman, 2015) drops from 0.757 to 0.661. A separate line of work derives perceptual geometry from models of unlabelled data. IEM (Ohayon et al., 2026) integrates denoising errors under a learned density, while LASI (Severo et al., 2024) fits linear embeddings at inference time. These methods require no human labels and provide a principled geometry, but they are considerably more expensive to evaluate. For example, IEM requires 725.7 ms per image pair at 256×256256 \times 256 pixels, compared with 12.2 ms for JLD at 512×384512 \times 384 (Table 1).

In this work, we ask a simple question: does a network that has only learned to see already contain a useful perceptual distance? We find that it does, but the relevant information does not appear at any single network depth (Appendix Figure A2). In a frozen DINOv2-S encoder (Oquab et al., 2024), early patch tokens preserve local image structure. However, treating all 384 feature directions equally gives too much weight to directions that have little effect on the network output, reaching a SRCC of only 0.784 on all full TID2013 dataset. Late representations capture information that is more relevant to the encoder output, but much of the spatial detail has already been pooled away; the output tokens reach a correlation of only 0.742. The key observation is that these two properties can be combined. We retain the spatial detail of early features, but weight their directions according to how strongly they affect the network output. This raises the correlation to 0.850 and, unlike the unweighted alternatives, remains stable as image resolution increases. The same effect is visible in Figure 1, raw features rank the five distorted images almost at random relative to human observers ( τ=0.2\tau = 0.2), whereas the weighted features reproduce the human ordering exactly.

The weights come from the Jacobian of the output with respect to an early patch token. This Jacobian describes how a small change in the token affects the encoder output. Averaging its squared response over natural images gives a single fixed metric tensor in feature space, E[J⊤J]\mathbb{E}[J^\top J]. For block 1 of DINOv2-S, this metric is strongly anisotropic, only 64 of its 384 eigendirections account for 76.5% of its trace. Based on this observation, we introduce the Jacobian Lens Distance (JLD). JLD retains the 64 leading eigendirections of M as a fixed projection, which we call the Jacobian lens. It never uses human judgements (Appendix Figure A1). Because the lens is a fixed linear map, the geometry induced by JLD can be computed and visualised directly on real images, independently of any benchmark. To our knowledge, JLD is the first perceptual distance to transfer a network's output sensitivity back to its early features through a single fixed metric. Contributions:

• We introduce a novel perceptual distance derived entirely from the output sensitivity of a frozen vision encoder, without human labels. Its lens term defines a pseudometric whose local form is a pullback metric in pixel space (Section 3).

• We analyse the induced geometry directly on real images. The iso-distance contours of JLD agree with the ellipses predicted by the encoder, its sensitivity decreases with local contrast (Section 4).

• We evaluate JLD against 15 full-reference distances. JLD achieves the SOTA performance, and beat every learned deep distance, and remains stable as image resolution doubles. JLD-fast is four times faster than LPIPS-VGG, and a single fitted lens transfers across 14 encoders and extends to video (Section 5).

References (47)