Refine-by-Align: Reference-Guided Artifacts Refinement through Semantic Alignment
Yizhi Song, Liu He, Zhifei Zhang, Soo Ye Kim, He Zhang, Wei Xiong, Zhe Lin, Brian Price, Scott Cohen, Jianming Zhang, Daniel Aliaga
TL;DR
This work tackles localized artifacts in personalized image generation by introducing Refine-by-Align, a diffusion-based, two-stage pipeline that first aligns artifact regions to a high-quality reference via cross-attention and then refines the artifacts using a DINOv2-guided diffusion model. The alignment stage computes an optimal correspondence map $\mathbf{M}^*$ by aggregating cross-attention across timesteps and layers, while the refinement stage preserves identity by conditioning on the matched reference features. The model is trained in two modes (alignment and refinement) with self-supervised and paired data, and requires no test-time tuning during inference. Experiments on GenArtifactBench across customization, compositing, view synthesis, and virtual try-on show substantial gains in fidelity and fine-grained detail over six baselines, making artifact refinement more controllable and reliable across diverse generative pipelines.
Abstract
Personalized image generation has emerged from the recent advancements in generative models. However, these generated personalized images often suffer from localized artifacts such as incorrect logos, reducing fidelity and fine-grained identity details of the generated results. Furthermore, there is little prior work tackling this problem. To help improve these identity details in the personalized image generation, we introduce a new task: reference-guided artifacts refinement. We present Refine-by-Align, a first-of-its-kind model that employs a diffusion-based framework to address this challenge. Our model consists of two stages: Alignment Stage and Refinement Stage, which share weights of a unified neural network model. Given a generated image, a masked artifact region, and a reference image, the alignment stage identifies and extracts the corresponding regional features in the reference, which are then used by the refinement stage to fix the artifacts. Our model-agnostic pipeline requires no test-time tuning or optimization. It automatically enhances image fidelity and reference identity in the generated image, generalizing well to existing models on various tasks including but not limited to customization, generative compositing, view synthesis, and virtual try-on. Extensive experiments and comparisons demonstrate that our pipeline greatly pushes the boundary of fine details in the image synthesis models.
