MaterialFusion: High-Quality, Zero-Shot, and Controllable Material Transfer with Diffusion Models

Kamil Garifullin, Maxim Nikolaev, Andrey Kuznetsov, Aibek Alanov

TL;DR

MaterialFusion is a novel, zero-shot framework that transfers material properties from a reference image to a target object using diffusion models. By introducing a controllable "Material Transfer Force" parameter and a dual-masking strategy, it achieves a precise balance between applying new textures and preserving the original object's geometry and background consistency without requiring any additional training.

What Problem Does This Paper Address?

In computer vision and graphics, transferring a material from a source exemplar image onto a target object in another image is highly valuable for augmented reality, virtual prototyping, and digital content creation. However, existing methods face a difficult trade-off: they either fail to capture the fine nuances of the material, distort the target object's geometry, or corrupt the background scene.

Text-guided editing often falls short because text prompts cannot easily capture highly specific material textures, and text-to-image models naturally lean toward generating "typical" objects (e.g., turning a request for a "glass pumpkin" into a standard orange pumpkin). On the other hand, image-conditioned methods often lack fine-grained control, resulting in an aggressive "cut-and-paste" look that obliterates the object's original structural details.

Methods

MaterialFusion solves these challenges by combining two powerful mechanisms within a Stable Diffusion (v1.5) framework:

  1. IP-Adapter for Material Encoding: Instead of text prompts, an image prompt adapter (IP-Adapter) uses a pretrained CLIP image encoder to extract decoupled cross-attention features from the material exemplar image.
  2. Guide-and-Rescale (GaR) for Structure Preservation: To keep the target object's identity intact, the framework incorporates GaR self-guidance. This uses both a Self-attention Guider (to preserve geometry and pose) and a Feature Guider (to maintain visual characteristics) based on a reference DDIM inversion trajectory of the original image.
Overview of the MaterialFusion framework showing how material exemplars and input images are combined.

To ensure clean boundaries and background preservation, the authors introduce a dual-masking strategy:

  • First Masking: Applied within the IP-Adapter's cross-attention layers to restrict material feature injection strictly to the target object region.
  • Second Masking: Executed after each denoising step (up to a threshold step, e.g., 40 out of 50 steps), replacing the generated background latents with time-aligned latents from the original image's DDIM inversion.

Crucially, users can modulate the intensity of the edit using the Material Transfer Force ($\lambda$), a scalar multiplier applied to the material attention maps.

Datasets

Because no standard benchmark exists for this specific task, the authors compiled a custom dataset consisting of high-quality, free stock images:

  • 15 material images (e.g., wood, gold, cracked earth, brick).
  • 25 object-oriented photographs (e.g., cars, shoes, statues, toys).

Key Insights and Ideas

  • The Synergy of Separation: The core "aha moment" is that material transfer and structure preservation can be completely decoupled. The IP-Adapter handles what the material looks like, while GaR dictates where the object's structural boundaries lie.
  • The Danger of Full Denoising Masking: Masking the background across the entire denoising trajectory actually degrades image quality. MaterialFusion finds a sweet spot by stopping the background latent replacement during the final iterations, allowing the diffusion model to naturally blend the object boundaries into the scene.
  • Text Prompts are Optional: An ablation study demonstrated that explicit target text prompts (e.g., "a photo of brick pears") help the model transfer materials at lower force levels, but setting the target prompt equal to the source prompt ($y_{trg} = y_{src}$) still yields successful transfers purely driven by the image exemplar.

Key Results

The authors evaluated MaterialFusion against baseline methods including Guide-and-Rescale, IP-Adapter with masking, and ZeST (the current state-of-the-art).

Qualitative comparison of material transfer results across different methods.
  • Quantitative Metrics: Using CLIP similarity to measure material transfer and LPIPS to measure detail/background preservation, MaterialFusion (at transfer forces $\lambda = 0.5$ and $0.8$) was the only method to fall into the optimal zone of high material fidelity and low structural distortion. ZeST achieved high material transfer but suffered from high LPIPS scores due to loss of object details.
  • User Study: A study with 100 participants across 11 trials revealed that MaterialFusion was heavily preferred over ZeST, winning 68% on Overall Preference and 70% on Detail Preservation. ZeST won on Material Fidelity (26%) due to its aggressive texture replacement, which users noted often looked like an unnatural "cut-and-paste" job.

Limitations and Future Work

The authors note two primary limitations:

  1. Composite Objects: The framework struggles when transferring materials to complex objects composed of multiple distinct parts made from different materials.
  2. Semantic Mismatches: If there is a severe physical mismatch between the material and the object—such as transferring fluid, dynamic "foaming waves" onto a rigid, sharp-edged motorcycle—the results can look highly unrealistic.

Future work will likely target fine-grained control over multi-material composite objects and improving text-image alignment for highly abstract material properties.

Summary updated

BibTeX
@misc{garifullin2025materialfusion,
  author = {Kamil Garifullin and Maxim Nikolaev and Andrey Kuznetsov and Aibek Alanov},
  title = {{MaterialFusion: High-Quality, Zero-Shot, and Controllable Material Transfer with Diffusion Models}},
  year = {2025},
  eprint = {2502.06606},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.06606},
}
Figure