CubeDiff: Repurposing Diffusion-Based Image Models for Panorama Generation

Nikolai Kalischek, Michael Oechsle, Fabian Manhardt, Philipp Henzler, Konrad Schindler, Federico Tombari

Abstract

Generating high-quality, 360° panoramas is essential for immersive applications such as virtual reality and gaming. However, traditional methods struggle with geometric distortions and data scarcity. We present CubeDiff, a novel approach that treats panoramas as cubemaps—six standard perspective images—and jointly denoises them using a fine-tuned text-to-image diffusion model. By inflating the model's attention layers to facilitate crosstalk between cube faces, CubeDiff achieves state-of-the-art visual fidelity and unprecedented fine-grained text control without the stretching artifacts common in equirectangular projections.

Introduction

The demand for 360° content has surged with the rise of 3D asset creation and immersive media. Despite this, generating seamless, high-resolution panoramas remains a significant challenge. Most existing generative models rely on equirectangular projections, which map a sphere onto a flat rectangle. This mapping introduces severe stretching at the poles, a domain that standard diffusion models—trained on undistorted natural photographs—are ill-equipped to handle. Furthermore, autoregressive generation methods often suffer from "content drift," where the start and end of a panorama fail to align seamlessly.

The CubeDiff pipeline: Unfolding a cube into faces, processing via an inflated diffusion model, and re-folding into a seamless panorama.

Methodology

CubeDiff sidesteps the pitfalls of spherical distortion by adopting a cubemap representation. A full 360° view is projected onto the six faces of a cube, resulting in six standard 90° field-of-view perspective images. This allows the model to leverage the powerful image priors of pre-trained Latent Diffusion Models (LDMs).

Inflated Attention and Spatial Awareness

To ensure consistency across the six faces, the authors "inflate" the existing 2D self- and cross-attention layers. By extending the token sequence length to encompass all six faces simultaneously, the model naturally learns the geometric relationships between viewpoints. To provide explicit spatial context, the model is fed 3D UV coordinates, allowing it to recognize the position of each latent patch on the 3D cube.

Synchronized Normalization and Overlap

Standard Group Normalization can lead to color inconsistencies between faces. CubeDiff introduces Synchronized GroupNorm within the Variational Autoencoder (VAE), normalizing feature activations across both spatial and inter-view dimensions to ensure global color harmony. Additionally, to eliminate edge discontinuities, the model generates faces with a 95° field of view (providing a 2.5° overlap). These overlapping regions are cropped during final assembly, resulting in a perfectly seamless output.

Experimental Results

CubeDiff was trained on a diverse dataset of approximately 48,000 indoor and outdoor panoramas, with captions generated by the Gemini LLM to provide both global and per-face descriptions.

Quantitative Performance

In zero-shot evaluations on the Laval Indoor dataset, CubeDiff achieved a Fréchet Inception Distance (FID) score of 9.5. This represents a massive improvement over the previous state-of-the-art, MVDiffusion, which scored 25.7. The model also demonstrated superior text alignment, achieving the highest CLIP scores among all tested baselines.

A high-fidelity 360° indoor panorama generated by CubeDiff, demonstrating the lack of polar distortion.

Qualitative and User Study

A two-alternative forced-choice user study confirmed these findings. Users significantly preferred CubeDiff's outputs for their realism and consistency. Notably, the unconditional variant of CubeDiff was preferred 19.5% of the time, nearly matching the preference rate for ground-truth photographs (19.9%).

Conclusion

CubeDiff demonstrates that complex geometric priors are not strictly necessary for high-quality panorama generation. By repurposing 2D diffusion models through cubemap representations and inflated attention, the framework achieves unprecedented spatial control and visual quality. The ability to provide distinct text prompts for individual cube faces opens new avenues for creative control in VR and game design, allowing users to precisely dictate the contents of an entire immersive environment.

Summary updated

BibTeX
@inproceedings{kalischek2025cubediff,
  author = {Nikolai Kalischek and Michael Oechsle and Fabian Manhardt and Philipp Henzler and Konrad Schindler and Federico Tombari},
  title = {{CubeDiff: Repurposing Diffusion-Based Image Models for Panorama Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=M2SsqpxGtc},
}
Figure