Introduction
Diffusion models have emerged as powerful generative tools, but their internal activations also serve as high-performance vision feature extractors. These "Diffusion Features" (DF) are remarkably robust for various discriminative tasks. However, researchers from CAS and other institutions have identified a universal flaw in this approach: Content Shift. This paper introduces GATE (GenerAtion Techniques Enhanced), a framework that leverages existing generation control tools to anchor features to the original input.
The Problem: Content Shift
When an image is processed through a diffusion model for feature extraction, noise is typically added and then "cleaned" by the UNet. Because the UNet is fundamentally generative, it tends to "imagine" missing details when noise obscures fine structures. This phenomenon, termed Content Shift, causes internal features to drift away from the actual pixels of the input image.
Even at low noise levels, this shift creates significant mismatches for precision-oriented tasks like semantic segmentation and semantic correspondence. For instance, if noise obscures the exact curve of a horse's leg, the model doesn't just report what's there; it "imagines" a plausible replacement, leading to spatial misalignment in the resulting feature maps.
Methods: The GATE Framework
The GATE framework addresses content shift by "hitchhiking" on off-the-shelf generation techniques designed to improve model fidelity. Instead of architectural redesigns, GATE integrates three popular tools to keep features aligned with the input:
- Fine-Grained Prompts: Detailed captions (e.g., from Kosmos-2) provide the UNet with a precise "mental map," reducing imaginative drift compared to generic prompts.
- ControlNet: By incorporating spatial constraints like Canny edges, the model is forced to respect the original image's boundaries during the denoising process.
- LoRA (Low-Rank Adaptation): Lightweight fine-tuning on target datasets helps bake specific domain knowledge into the model weights, further grounding the features.
The framework employs a Feature Amalgamation strategy with regularized weight assignment. A small network learns to dynamically weight features at each pixel, using sparsity and diversity losses to ensure high-quality, sharp representations without blurring.
Experimental Evaluation
GATE was evaluated across several benchmarks, demonstrating superior performance over state-of-the-art (SOTA) methods like DINO, DIFT, and VPD.
- Semantic Segmentation: On the CityScapes dataset, GATE achieved a significant jump in mIoU from 55.06% to 64.20%. On ADE20K, mIoU improved from 37.63% to 40.51%.
- Semantic Correspondence: On the SPair-71k benchmark, the Percentage of Correct Keypoints (PCK) increased from 73.96% to 76.60%.
- Label-Scarce Scenarios: The framework showed remarkable robustness in low-data regimes, such as the LSUN Horse-21 and Bedroom-28 datasets.
Discussion and Conclusion
The success of GATE highlights that "fidelity" in generative models is not identical to "spatial alignment" in vision features. While techniques like Classifier-Free Guidance (CFG) improve artistic quality, they do not necessarily suppress content shift. GATE provides a qualitative guideline for selecting effective techniques: if a tool makes Img2Img generation more faithful to the input, it likely improves feature quality.
Future work will focus on reducing the computational overhead associated with running multiple denoising steps and exploring GATE's utility in temporal tasks like video object tracking. By grounding diffusion models in reality, GATE unlocks their full potential as universal vision backbones.
Summary updated