Spherical-Nested Diffusion Model for Panoramic Image Outpainting

Xiancheng Sun, Senmao Ma, Shengxi Li, Mai Xu, Jingyuan Xia, Lai Jiang, Xin Deng, Jiali WangICML 2025

TL;DR

The Spherical-Nested Diffusion (SpND) model is the first diffusion-based approach to bake spherical geometry directly into its architecture for panoramic image outpainting. By introducing spherical noise as a structural prior and a novel spherical deformable convolution (SDC) module, SpND achieves a massive 50%+ reduction in FID scores compared to previous state-of-the-art methods, producing seamless and structurally consistent 360° environments.

What Problem Does This Paper Address?

Generating a full 360° panorama from a single narrow-field-of-view image (outpainting) is a major challenge for immersive content creation. Most existing generative models are designed for flat, planar images. When applied to panoramas—which are typically stored in Equirectangular Projection (ERP) format—these models struggle with two main issues:

  1. Spherical Distortion: ERP images are heavily stretched at the poles (top and bottom). Standard square convolution kernels "see" distorted shapes, leading to unnatural artifacts in the generated image.
  2. Boundary Discontinuity: A panorama must wrap around perfectly; the left edge must match the right edge. Standard models often leave visible seams where the edges meet.

Previous solutions tried to fix this "from the outside" using special loss functions or circular padding (a "macro" approach). The authors of this paper argue for an intrinsic "micro" approach: redesigning the model's internal components to be fundamentally aware of the sphere's nature.

Comparison between existing 'macro' methods (top) and the proposed 'micro' approach (bottom).

Methods

The authors propose three core innovations integrated into a "Spherical Net" that guides a pre-trained diffusion model:

  • Spherical Noise (Structural Prior): Standard diffusion starts with random noise that is uniform across a 2D plane. SpND instead samples noise uniformly on a 3D sphere and then projects it into the ERP format. This creates a noise pattern that naturally accounts for ERP distortion, serving as a "structural prior" that tells the model where the poles and equator are before it even starts generating pixels.
  • Spherical Deformable Convolution (SDC): Standard convolutions use a rigid square grid. SDC uses a spherical grid (via gnomonic projection) to define its initial receptive field. This ensures that the kernel "sees" the same physical area on the sphere regardless of its latitude in the ERP image. It also includes constrained learnable offsets to adapt to local image features while staying true to the spherical geometry.
  • Circular Mask Encoder (CME): To ensure the left and right edges of the panorama meet seamlessly, the authors developed an encoder using circular convolution layers. This preserves "omnidirectional continuity," making the 360° wrap-around invisible.
The overall architecture of the SpND model, highlighting the Spherical Net and SDC modules.

Datasets

The model was trained and evaluated on two major indoor panoramic datasets:

  • Matterport3D: A large-scale dataset of real-world indoor environments.
  • Structured3D: A synthetic dataset of photo-realistic indoor house designs.
  • Martian Dataset: To test generalization, the authors also evaluated the model on a small set of 145 panoramic images from the Mars Perseverance rover.

Key Insights and Ideas

  • Noise is a Prior: One of the most elegant insights is that the starting noise in a diffusion process shouldn't be "flat" for a spherical image. By making the noise spherical, the model doesn't have to "learn" to fight ERP distortion; the geometry is already present in the starting distribution.
  • Intrinsic vs. Extrinsic Geometry: Soft regularizations (like losses) are easily ignored by powerful models during training. By changing the convolution operation itself (SDC), the authors force the model to process information in a way that respects the 3D structure of the scene.
  • Efficiency through Nesting: Rather than training a giant spherical model from scratch, they "nest" their spherical modules as a control branch (similar to ControlNet) alongside a frozen, high-quality pre-trained planar diffusion model. This leverages existing "knowledge" of textures and objects while adding spherical awareness.

Key Results

The SpND model significantly outperformed all existing baselines across both quantitative and qualitative metrics:

  • FID Reduction: On the Matterport3D dataset, SpND achieved an FID of 9.08, compared to 39.43 for the previous state-of-the-art (PanoDiffusion)—a reduction of over 75%.
  • Prompt-Guided Excellence: When using specific text prompts (SpND_prompt), the FID dropped even further to 6.67.
  • Visual Quality: Qualitative results show that SpND avoids the "pinched" artifacts at the poles and the "seams" at the edges that plague other methods. It maintains straight lines and realistic 3D arrangements even in highly distorted regions.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Latent Space Repainting: The current use of the "Repaint" technique in the latent space can sometimes lead to very slight distortions or "ghosting" at the boundary between the original input mask and the newly generated content.
  • Mask Refinement: Future work will focus on refining how mask areas are handled during the diffusion process to ensure even tighter integration between the provided image and the outpainted regions.

Summary updated

BibTeX
@inproceedings{sun2025spherical,
  author = {Xiancheng Sun and Senmao Ma and Shengxi Li and Mai Xu and Jingyuan Xia and Lai Jiang and Xin Deng and Jiali Wang},
  title = {{Spherical-Nested Diffusion Model for Panoramic Image Outpainting}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=JVDFkVf4QY},
}
Figure