VIP: Versatile Image Outpainting Empowered by Multimodal Large Language Model

Jinze Yang, Haoran Wang, Zining Zhu, Chenglong Liu, Meng Wymond Wu, Mingming Sun

Introduction

Image outpainting, the process of extrapolating an image beyond its original boundaries, presents a significant challenge in computer vision. Unlike inpainting, which fills missing regions within a known context, outpainting requires the model to hallucinate entirely new content with minimal surrounding information. Existing diffusion-based models often suffer from two primary limitations: a lack of versatility, where users have little control over the generated background, and spatial confusion, where the model fails to distinguish between the original subject and the newly synthesized context.

To address these issues, the authors propose VIP (Versatile Image Outpainting), a framework that leverages the reasoning capabilities of Multimodal Large Language Models (MLLMs) to provide precise, region-specific guidance for image extrapolation. By introducing a novel prompt engineering strategy and a decoupled control mechanism, VIP enables both high-quality automatic outpainting and user-customizable results.

Comparison of previous methods with the proposed VIP framework, illustrating both unconditional and conditional outpainting capabilities.

Methodology

The VIP framework is built upon two core innovations designed to enhance spatial awareness and user control.

MLLM-Driven Prompt Engineering

Rather than relying on global image captions, VIP utilizes a Center-Surrounding (CS) prompt format. Using GPT-4, the researchers automatically annotated training data with specific keywords for the original content (Center) and the expected extrapolated content (Surrounding). For instance, a prompt might read: Center: tractor, farmer; Surrounding: field, trees, sky. This explicit labeling teaches the model the semantic relationship between the core subject and its environment, facilitating more logical extensions.

C-T-S Decoupled Control Mechanism

To prevent "semantic bleeding" between the original image and the outpainted regions, VIP employs a Center-Total-Surrounding (C-T-S) mechanism. This approach replaces the standard global cross-attention pass with three distinct operations:

  1. Center Attention: Focuses exclusively on the original image content.
  2. Surrounding Attention: Targets the areas being outpainted based on the surrounding prompts.
  3. Total Attention: Ensures global coherence across the entire expanded frame.

These attention maps are fused using a learnable parameter, allowing the model to adaptively balance local detail with global consistency. The system is implemented by fine-tuning a pre-trained Stable Diffusion model, leveraging its existing generative priors while specializing it for the outpainting task.

Evaluation and Results

VIP was evaluated on diverse benchmarks, including Scenery, Building Facades, WikiArt, and MSCOCO. The model demonstrates superior performance in both quantitative and qualitative assessments.

Quantitative Performance

On the Scenery dataset, VIP achieved a Fréchet Inception Distance (FID) of 10.717, a significant improvement over previous state-of-the-art methods like Neural ODE, which recorded an FID of 19.352. This lower score indicates that VIP generates images with higher realism and better alignment with the distribution of natural images.

Qualitative Versatility

Qualitatively, VIP avoids the common pitfalls of older methods, such as blurry textures or repetitive "mirroring" at the edges. As shown in the conditional outpainting examples, the model can generate distinct, contextually appropriate objects based on user instructions. For example, by specifying "wolf, forest" in the surrounding prompt, the model accurately places the subject in a logical environment while maintaining sharp textures.

Example of conditional outpainting where specific prompts (e.g., 'wolf, forest') guide the generation of the surrounding environment.

Conclusion

VIP represents a significant step forward in image outpainting by treating spatial information as a semantic feature. By integrating MLLM-driven descriptions with a decoupled attention mechanism, the framework offers a versatile tool for both automatic restoration and creative image editing. Future work will focus on expanding the complexity of natural language instructions to allow for even more granular conversational control over the outpainting process.

Summary updated

BibTeX
@inproceedings{yang2024vip,
  author = {Jinze Yang and Haoran Wang and Zining Zhu and Chenglong Liu and Meng Wymond Wu and Mingming Sun},
  title = {{VIP: Versatile Image Outpainting Empowered by Multimodal Large Language Model}},
  booktitle = {ACCV},
  year = {2024},
  doi = {10.1007/978-981-96-0917-8\_4},
}

Loading related content...

Figure