LeftRefill: Filling Right Canvas based on Left Reference through Generalized Text-to-Image Diffusion Model

Chenjie Cao, Qiaole Dong, Yikai Wang, Yunuo Cai, Yanwei Fu
2/14/2026

No official code found. Best implementation: ewrfcas/LeftRefill (83 stars, Apache-2.0, last commit 2024-08-03).

Abstract

This paper introduces LeftRefill, an innovative approach to efficiently harness large Text-to-Image (T2I) diffusion models for reference-guided image synthesis. As the name implies, LeftRefill horizontally stitches reference and target views together as a whole input. The reference image occupies the left side, while the target canvas is positioned on the right. Then, LeftRefill paints the rightside target canvas based on the left-side reference and specific task instructions. Such a task formulation shares some similarities with contextual inpainting, akin to the actions of a human painter. This novel formulation efficiently learns both structural and textured correspondence between reference and target without other image encoders or adapters. We inject task and view information through cross-attention modules in T2I models, and further exhibit multi-view reference ability via the re-arranged self-attention modules. These enable LeftRefill to perform consistent generation as a generalized model without requiring testtime fine-tuning or model modifications. Thus, LeftRefill can be seen as a simple yet unified framework to address reference-guided synthesis. As an exemplar, we leverage LeftRefill to address two different challenges: reference-guided inpainting and novel view synthesis, based on the pre-trained StableDiffusion. Codes&models are released at https://github.com/ewrfcas/LeftRefill.

View on arXivView PDF

Code Implementations(1)

ewrfcas/LeftRefillCommunity100%
Apache-2.0

LeftRefill: Filling Right Canvas based on Left Reference through Generalized Text-to-Image Diffusion Model (CVPR2024)

835PythonMay 19, 20232 years agoApache-2.0
aigcdiffusion-models

Similar Papers

Cite this paper

@article{cao2026leftrefill,
  title  = {LeftRefill: Filling Right Canvas based on Left Reference through Generalized Text-to-Image Diffusion Model},
  author = {Chenjie Cao and Qiaole Dong and Yikai Wang and Yunuo Cai and Yanwei Fu},
  year   = {2026},
  eprint = {2305.11577},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2305.11577},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.11577.svg)](https://codeofpaper.com/paper/2305.11577)

Discussion