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

Kamil Garifullin, Maxim Nikolaev, Andrey Kuznetsov, Aibek Alanov · Submission to ICLR 2026 · Withdrawn

TL;DR

MaterialFusion is a zero-shot, training-free framework that transfers material appearance from an exemplar image onto an object in a target photo while strictly preserving the object’s geometric identity and surrounding background. By coupling an IP-Adapter (for material feature injection) with Guide-and-Rescale self-guidance (for structural preservation) and a dual-masking pipeline, it introduces a controllable "transfer force" parameter ($\lambda$) that smoothly dials the intensity of material transfer from subtle textures to full recoloring.

What Problem Does This Paper Address?

Modifying the material appearance of objects in 2D photographs—such as turning a ceramic vase into rough wood or a knit fabric—is crucial for virtual prototyping, augmented reality, and digital content creation. Doing this without 3D models or explicit geometry remains notoriously difficult:

  1. Text prompt ambiguity: Text-to-image diffusion models often revert to stereotypical appearances (e.g., prompting a "wooden pumpkin" frequently still yields an orange gourd) and cannot convey subtle, real-world textures.
  2. Loss of structural fidelity: Standard image-prompt adapters (like IP-Adapter) easily transfer texture but obliterate the object's fine contours, depth, and identity.
  3. Over-application and boundary artifacts: Methods such as ZeST lack fine-grained strength control, generating rigid, "cut-and-paste" appearances that destroy original details and bleed into background regions.

Methods

MaterialFusion relies entirely on pre-trained models—specifically Stable Diffusion v1.5—without requiring any fine-tuning. Its pipeline integrates three main pillars:

[Exemplar y_im] ──> IP-Adapter Cross-Attention ──┐
                                                  ▼
[Input x_init] ──> DDIM Inversion ──> UNet Denoising ──> Dual Masking ──> [Edited Image]
                                                  ▲
[DDIM Trajectory] ──> GaR Self-Guidance (g_self, g_feat) ┘
  • Decoupled Cross-Attention & Transfer Force ($\lambda$): Material features from the reference exemplar are encoded via CLIP into IP-Adapter cross-attention layers. The authors introduce an adjustable scalar $\lambda$ (Material Transfer Force), which scales the material image attention output against the text attention output. Modulating $\lambda$ (from 0.1 to 1.5) lets users transition smoothly from slight surface detailing to full material and color transformation.
  • Guide-and-Rescale (GaR) Self-Guidance: To prevent the new material from destroying object identity, MaterialFusion uses two energy functions during denoising:
  • Self-Attention Guider ($g_{\text{self}}$): Matches current self-attention maps to the inverted source image trajectory to preserve geometry, silhouette, and pose.
  • Feature Guider ($g_{\text{feat}}$): Matches UNet decoder feature activations to preserve subtle visual details.
  • Dual-Masking Strategy:
  • Attention Masking: Constrains the IP-Adapter’s cross-attention layers strictly to the foreground object mask, preventing material bleed into non-target areas.
  • Latent Blending: During the first 40 of 50 DDIM denoising steps, the background latent is replaced with the time-aligned DDIM inversion latent ($z_t = \text{mask} \cdot z_t + (1 - \text{mask}) \cdot z_t^*$). Unmasking the final 10 steps allows the model to naturally harmonize boundary lighting and contact shadows without edge artifacts.

Datasets

Because MaterialFusion is tuning-free, no training dataset was required.

For evaluation, the authors curated a benchmark consisting of 15 material exemplar images and 25 object-oriented photographs sourced from royalty-free stock repositories, covering diverse geometries (toys, shoes, statues, fruits, vehicles) and materials (gold, brick, leather, knit fabric, wood, stone).

Key Insights and Ideas

  • Complementary Strengths: IP-Adapter is exceptionally good at extracting texture nuance but destroys geometry; GaR is exceptionally good at locking in structure but fails to transfer new materials via text prompts alone. Combining them directly balances texture application against geometric preservation.
  • Two-Phase Transfer: As the transfer force $\lambda$ increases, the model behaves predictably: it first transfers high-frequency micro-textures and surface patterns, followed by global color and macro material properties at higher values.
  • Target Prompts Are Optional: Ablations show that setting the target prompt equal to the source prompt ($y_{\text{trg}} = y_{\text{src}}$) still achieves successful transfer purely from the reference image. However, an explicit prompt (e.g., "a photo of golden Baby Yoda") lowers the required transfer force $\lambda$ to trigger the change.

Key Results

The framework was benchmarked against ZeST, Guide-and-Rescale (GaR), and IP-Adapter with masking:

  • Quantitative Pareto Trade-off: Quality was evaluated using patch-level CLIP cosine similarity (measured on $64\times64$ and $128\times128$ crops of the material and object) versus LPIPS distance against the original image.
  • MaterialFusion at $\lambda = 0.5$ and $\lambda = 0.8$ uniquely occupies the ideal quadrant: high CLIP similarity ($>0.84$) indicating successful texture transfer, alongside low LPIPS ($<0.21$) indicating preserved details and clean backgrounds.
  • In comparison, GaR achieved low LPIPS but failed to transfer texture (CLIP $<0.82$), while ZeST scored high CLIP ($>0.86$) at the cost of high distortion (LPIPS $>0.26$).
  • User Study (100 participants, 1,125 total judgments):
  • Overall Preference: 68% preferred MaterialFusion over ZeST.
  • Detail Preservation: 70% rated MaterialFusion higher for maintaining original object details and depth.
  • Material Fidelity: 26% favored MaterialFusion vs. 74% for ZeST—an expected outcome, as ZeST's aggressive transfer acts similarly to a raw cut-and-paste overlay that completely wipes out the original surface.

Limitations and Future Work

  • Composite Objects: The current method applies material globally across the provided object mask, struggling when an object contains multiple distinct components (e.g., transferring leather to a shoe without altering the rubber sole).
  • Physics & Semantics Mismatch: Severe physical discrepancies between exemplar and object lead to unnatural artifacts—such as attempting to apply dynamic, fluid ocean foam onto the rigid, planar surfaces of a motorcycle.
  • Fine-Grained Complexities: Highly intricate, anisotropic, or micro-structured textures remain challenging to control locally without 3D normal or reflectance cues.

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