RefAny3D: 3D Asset-Referenced Diffusion Models for Image Generation

Hanzhuo Huang, Qingyang Bao, Zekai Gu, Zhongshuo Du, Cheng Lin, Yuan Liu, Sibei Yang

TL;DR

RefAny3D is a novel diffusion framework that uses 3D assets (meshes) as references to generate highly consistent 2D images. By simultaneously generating an RGB image and a spatially aligned 3D point map, the model ensures that the generated object maintains perfect geometric and textural fidelity across diverse scenes and novel viewpoints.

The Challenge of Identity Preservation

While text-to-image models like Stable Diffusion or Flux are incredibly powerful, they struggle with "identity preservation"—the ability to keep a specific object exactly the same across different generated scenes. Current "subject-driven" methods, such as IP-Adapter or DreamBooth, typically rely on one or more 2D reference images to guide the generation process.

The problem is that 2D references are inherently limited; they lack the full structural "blueprint" of an object. When attempting to place a 2D-referenced object into a new environment or view it from a novel angle, the model often "hallucinates" details. This leads to geometric distortions or texture inconsistencies. For professional creators, the true "ground truth" is often a 3D asset (a mesh). Until now, however, there hasn't been an effective way to use these 3D assets directly as conditioning signals for high-quality 2D diffusion models.

Introducing RefAny3D

The authors introduce RefAny3D, a cross-domain diffusion model built on top of the Flux.1-dev architecture. Its core innovation is a dual-branch perception and generation strategy designed to link 2D image attributes with 3D asset attributes:

  1. Dual-Branch Architecture: Instead of solely outputting an RGB image, the model generates two spatially aligned outputs: the RGB image and a Point Map (representing normalized object coordinates). This forces the model to learn the explicit link between 2D pixels and 3D structure.
  2. Shared Positional Embeddings: To ensure the RGB branch and the Point Map branch stay perfectly synchronized, the model uses shared positional encodings. This guarantees that a pixel at coordinate $(x, y)$ in the image corresponds exactly to the same coordinate in the 3D geometry map.
  3. Domain-Decoupled Generation: To prevent "texture bleeding" (where background colors leak into the geometry) or "semantic interference" (where the text prompt distorts the object's shape), the authors utilize:
  4. Domain-specific LoRA: Separate Low-Rank Adaptation modules for appearance (Reference-LoRA) and geometry (Domain-LoRA).
  5. Text-agnostic Attention: A masking mechanism that prevents the Point Map branch from being influenced by background-related text tokens, keeping the generated geometry "pure."

Building the Right Dataset

Because no off-the-shelf dataset existed for this specific task, the authors built a custom object pose-aligned dataset. They started with Subjects200k, a large-scale subject-driven image collection. Using a pipeline of GroundingDINO for object detection, Hunyuan3D to convert 2D images into 3D meshes, and FoundationPose to estimate the 6D pose of the objects, they created a dataset where each 2D image is paired with its corresponding 3D asset and precise spatial orientation. This allows the model to learn the exact relationship between 3D structure and 2D appearance.

Key Insights

  • Point Maps > Depth Maps: Unlike simple depth maps, which only show distance from the camera, Point Maps provide a unique coordinate for every point on the object's surface. This acts as a "geometric anchor" that is invariant to the object's position or pose, making it a much stronger signal for maintaining identity.
  • Disentanglement is Essential: The model must distinguish between the subject (the 3D asset) and the context (the text prompt and background). By decoupling these through specialized LoRAs and attention masks, RefAny3D can place a 3D-referenced chair in a "cramped room" or "on the moon" without altering the chair's physical structure.
  • Multi-View Synergy: During training, the model is conditioned on 8 different views of the 3D asset. This multi-view input provides a comprehensive "understanding" of the object that a single 2D reference simply cannot match.

Key Results

RefAny3D significantly outperforms existing baselines like IP-Adapter, DreamBooth, and OminiControl in both qualitative and quantitative benchmarks.

RefAny3D successfully integrates various 3D assets into diverse 2D scenes while maintaining strict geometric and textural consistency.
  • Geometric & Texture Fidelity: In GPT-5 based evaluations, RefAny3D scored an impressive 7.123 overall, compared to OminiControl's 6.367 and IP-Adapter's 4.759.
  • Fine-Grained Matching: Using the GIM (Geometric Image Matching) metric, which counts matched keypoints between the reference and the output, RefAny3D achieved a count of 3901.3, vastly higher than the next best baseline (DSD at 3568.7).
  • Qualitative Superiority: Visual results demonstrate the model successfully rendering complex textures (like intricate patterns on a vase) and undulating surfaces (like a tufted chair cushion) that other models smoothed over or distorted.

Limitations and Future Work

While a significant step forward, RefAny3D has limitations. The current model assumes objects are rigid and struggles with deformable assets like ropes, clothing, or soft cushions that might change shape based on physical interactions in the scene. Additionally, conditioning on 8 views and running a dual-branch Diffusion Transformer is computationally expensive. Future work will likely focus on optimizing attention mechanisms to reduce overhead and explicitly modeling physical "grounding" to improve how objects interact with their generated environments.

Summary updated

BibTeX
@inproceedings{huang2026refany,
  author = {Hanzhuo Huang and Qingyang Bao and Zekai Gu and Zhongshuo Du and Cheng Lin and Yuan Liu and Sibei Yang},
  title = {{RefAny3D: 3D Asset-Referenced Diffusion Models for Image Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=fUO37EVR7j},
}
Figure