TL;DR
Conditioning diffusion models on reference images often feels like a tug-of-war: the dense visual data from a reference image easily overwhelms your sparse text prompt, causing objects to vanish or unwanted styles to leak everywhere. This paper introduces Dual-FDM, a paradigm that transforms reference images into the frequency domain—separating color, structure, and texture—and surgically splices them together. The result is crisp, personalized image generation that blends dual visual references (like a custom subject plus an artistic style, or a color palette plus a brushwork style) without ignoring what you actually typed.
What Problem Does This Paper Address?
Personalized image generation usually falls into two buckets: image customization (putting your specific dog into a new scene) and style transfer (painting a new scene in Van Gogh’s brushwork). Both rely on feeding a reference image alongside a text prompt into a diffusion model.
The catch? Image embeddings are information-dense, while text prompts are sparse. In image customization, the model fixates so heavily on the reference subject that it forgets background details from the prompt (ask for "a dog with a flower wreath sipping coffee," and the coffee disappears). Conversely, in style transfer, dense background style leaks into the foreground, warping objects or miscounting them (ask for "seven women," get nine). Spatial layout masks try to fix this by walling off regions, but they often break the natural cohesion of complex scenes.
The authors trace this headache to frequency entanglement. Images are made of low frequencies (color), mid frequencies (global structure/shape), and high frequencies (local texture). During early, noisy denoising steps, diffusion models lock in low and mid frequencies; in later steps, they refine high frequencies. When all these bands are fed in tangled together, they reinforce each other early on and steamroll the text guidance.
Methods
Built atop a standard decoupled cross-attention architecture (specifically IP-Adapter with SDXL), Dual-FDM untangles two reference images at once to tackle Customization Style Transfer and Color Style Transfer. Instead of spatial masks, it operates in the frequency and linear-algebraic domains:
- Popping Up the Background via SVD: Standard cross-attention key projection matrices naturally highlight salient foreground objects. To isolate the background without spatial bounding boxes, the authors apply Singular Value Decomposition (SVD) to the key matrix and invert its singular values. This suppresses dominant foreground features and brings background style information to the forefront.
- Frequency-Domain Splicing: Using a 2D Discrete Cosine Transform (DCT) and binary coordinate masks, the authors isolate and swap specific frequency bands before inverting back (IDCT) to form the cross-attention keys and values:
- Customization Style Transfer ($\text{Dual-FDM}_{cust}$): Takes the background of the style reference and replaces its mid-frequency band (structure) with that of the custom subject's foreground.
- Color Style Transfer ($\text{Dual-FDM}_{cost}$): Takes the background of the style reference and replaces its low-frequency band (color) with the low frequencies of both foreground and background from a color reference.
- Adaptive Timestep Modulation: Because structure and color settle early in denoising while textures emerge late, Dual-FDM uses two mask widths—a wider frequency band early on, and a narrower one later. Rather than hardcoding when "early" becomes "late," it calculates the information entropy ratio between the two masked representations to dynamically set the transition timestep for every generation.
Datasets
Because Dual-FDM requires pairs of references alongside complex text, the authors evaluate on combinations of established benchmarks (using a training-free setup on pre-trained SDXL/IP-Adapter):
- Small-scale Customization Style Transfer: Subjects from DreamBench and the Textual Inversion (TI) benchmark paired with styles from IS-Plus.
- Large-scale Customization Style Transfer: DreamBench++ paired with StyleBench.
- Color Style Transfer: References from IS-Plus and StyleBench paired with complex compositional prompts (testing spatial relations, object counts, etc.) from T2I-CompBench++.
Key Insights and Ideas
- Inverting singular values acts as a training-free background extractor: Larger singular values in cross-attention keys map to salient foregrounds, while smaller ones map to backgrounds. Flipping them ($1/\sigma_i$) cleanly extracts background style without external segmentation models.
- Frequency bands map cleanly to visual semantics and diffusion time: Low = color, Mid = global shape, High = texture. Aligning frequency masks with the natural coarse-to-fine timeline of diffusion prevents reference images from hijacking the prompt.
- Standard CLIP metrics are easily fooled by style: Because CLIP was trained on real photos, heavy artistic styles distort text-image similarity scores. The authors introduce modified evaluation metrics (CLIP-TS and CLIP-TC) that factor in the reference images and text together to measure alignment more fairly.
Key Results
Dual-FDM consistently outperforms state-of-the-art baselines across text alignment, reference similarity, and human preference metrics:
- Customization Style Transfer: Compared against two-stage pipelines (e.g., MS-Diffusion + CSGO), $\text{Dual-FDM}_{cust}$ achieves the highest scores across the board, beating MS-Diffusion + CSGO by margins of up to 2.27% on CLIP-T, 7.5% on CLIP-TC, and boosting Image Reward ($\text{IR}_{\times 10}$) from 4.2023 to 5.3487 (while many single-stage adapters score in the negatives on IR).
- Color Style Transfer: Across all 8 compositional categories of T2I-CompBench++ (including 2D/3D spatial relations and object counting), $\text{Dual-FDM}_{cost}$ beats competitors like InstantStyle, StyleAligned, and StyleStudio—reaching 0.5122 CLIP-TS and 0.7314 CLIP-S on 2D spatial prompts.
- Ablations confirm that removing SVD inversion drops style similarity (CLIP-S falls from 0.5737 to 0.5459 on DreamBooth++), and dynamic entropy timestep modulation hits the sweet spot between rigid style adherence and subject fidelity.
Limitations and Future Work
Not discussed in the paper. (Note: Within the provided main text, the authors do not include a dedicated limitations or future work section).
Summary updated