Skip to main content
QUICK REVIEW

[Paper Review] Diffusion Hyperfeatures: Searching Through Time and Space for Semantic Correspondence

Grace Luo, Lisa Dunlap|arXiv (Cornell University)|May 23, 2023
Semantic Web and OntologiesComputer Science33 citations
TL;DR

Diffusion Hyperfeatures aggregates diffusion model features across time and layers into per-pixel descriptors to perform semantic keypoint correspondence, achieving state-of-the-art results on SPair-71k and transferring to synthetic data.

ABSTRACT

Diffusion models have been shown to be capable of generating high-quality images, suggesting that they could contain meaningful internal representations. Unfortunately, the feature maps that encode a diffusion model's internal information are spread not only over layers of the network, but also over diffusion timesteps, making it challenging to extract useful descriptors. We propose Diffusion Hyperfeatures, a framework for consolidating multi-scale and multi-timestep feature maps into per-pixel feature descriptors that can be used for downstream tasks. These descriptors can be extracted for both synthetic and real images using the generation and inversion processes. We evaluate the utility of our Diffusion Hyperfeatures on the task of semantic keypoint correspondence: our method achieves superior performance on the SPair-71k real image benchmark. We also demonstrate that our method is flexible and transferable: our feature aggregation network trained on the inversion features of real image pairs can be used on the generation features of synthetic image pairs with unseen objects and compositions. Our code is available at https://diffusion-hyperfeatures.github.io.

Motivation & Objective

  • Consolidate diffusion model internal representations spread across layers and timesteps into a single per-pixel descriptor.
  • Enable extraction of robust descriptors for real images via inversion and for synthetic images via generation.
  • Learn an interpretable feature aggregation network that weights diffusion features for semantic correspondence.
  • Demonstrate improved semantic keypoint matching compared to baselines on SPair-71k and show transferability to new domains.

Proposed method

  • Extract all intermediate diffusion features from both generation (synthetic) and inversion (real) processes across layers and timesteps.
  • Use a lightweight aggregation network with bottleneck layers to standardize features and learn mixing weights across layer-timestep pairs.
  • Aggregate features as a weighted sum of standardized feature maps to produce Diffusion Hyperfeatures.
  • Train the aggregator with supervision from semantic keypoint correspondences using a symmetric cross-entropy loss (cosine similarity-based matching).
  • Evaluate by nearest-neighbor matching on Diffusion Hyperfeatures and compare to ground-truth keypoints on SPair-71k and CUB; assess open-domain transfer to synthetic data.

Experimental results

Research questions

  • RQ1Can diffusion model features distributed over time and layers be effectively distilled into a single per-pixel descriptor for semantic correspondence?
  • RQ2How well does an interpretable aggregation network identify the most informative diffusion features for semantic keypoint matching?
  • RQ3Do Diffusion Hyperfeatures generalize from real to synthetic images and across unseen object categories?
  • RQ4What is the impact of using inversion features (real images) versus generation features (synthetic images) on performance?

Key findings

  • Diffusion Hyperfeatures significantly outperform baselines on SPair-71k in PCK@0.1_img (e.g., 72.56 vs 58.80 for Layer-4 and 64.02 for pruned) and other variants.
  • Aggregating features across all layers and timesteps yields a large performance boost (14 percentage points in PCK@0.1_img) over single-layer or naive concatenation baselines.
  • The learned mixing weights reveal which layer-timestep combinations are most informative for semantic correspondence and allow pruning without large loss of accuracy.
  • Inversion-based features (real images) provide more faithful semantic content than generation-based features at later timesteps, and the aggregation network can transfer to synthetic data.
  • The aggregation network trained on real-image inversion features generalizes to synthetic generation features from unseen object categories, outperforming DINO and single-layer diffusion baselines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.