TL;DR
InpaintSLat introduces a training-free 3D asset inpainting method that optimizes the initial noise seed of a structured 3D latent diffusion model rather than trying to steer its sampling trajectory mid-run. By combining approximate backpropagation via rectified flow, spectral parameterization, and Gaussian regularization, it achieves highly consistent geometry and appearance reconstruction without structural collapse.
What Problem Does This Paper Address?
3D inpainting—the task of filling in missing parts of a 3D object while keeping the rest intact—is exceptionally challenging because it requires resolving both geometry and appearance simultaneously. Unlike 2D image inpainting where pixels occupy a fixed grid, a 3D model must determine the occupancy of the missing regions, essentially deciding where to place the surface itself.
Existing training-free approaches designed for 2D images try to guide or steer the sampling path mid-way through denoising (e.g., RePaint, SDEdit). However, native 3D diffusion models (like TRELLIS) establish their global geometric backbone during the very early stages of denoising, making them incredibly sensitive to the initial random noise seed. If the starting seed is a poor match for the desired edit, forcing the trajectory later on leads to structural collapse, fragmented geometry, and severe artifacts.
Methods
Instead of fixing the path mid-flight, InpaintSLat optimizes the initial noise seed to be inherently compatible with both the unmasked context and the target text prompt.
The technical suite consists of three key components:
- Approximate Backpropagation via Rectified Flow: Backpropagating gradients through an entire 3D diffusion chain is too memory-intensive to be practical. The authors leverage the linear interpolation property of rectified flow models to approximate gradients using a first-order linearization around the initial latent, bypassing the need to store massive intermediate states.
- Spectral Parameterization: Directly updating sparse voxel grids with high learning rates causes optimization instability. To fix this, they apply a 3D Fast Fourier Transform (FFT) to the sparse structure features, optimizing frequency coefficients instead. This allows smooth, global geometric adjustments via low frequencies while suppressing messy high-frequency artifacts.
- Distributional Regularization Loss: Optimizing the initial noise pushes it away from the i.i.d. Gaussian distribution assumed by the pretrained prior, which can cause overfitting and distortion. They introduce a regularization loss ($\mathcal{L}_{\text{dist}}$) that penalizes deviations from $\mathcal{N}(0, \mathbf{I})$ by matching the first four statistical moments: mean, variance, skewness, and kurtosis.
Datasets
The authors evaluated their method using the evaluation protocols of the TRELLIS framework across three standard 3D datasets:
- ABO (Amazon Berkeley Objects)
- HSSD (Habitat Synthetic Scenes Dataset)
- Toys4K
For quantitative evaluation, they used a subset of 3,180 Toys4K samples with captions, applying a cubic mask to split each object into an inpainting region and a preserved region.
Key Insights and Ideas
- The Starting Point Dictates the Geometry: The mapping from initial latent space to the final 3D structure shows that while small perturbations cause smooth variations, large shifts cause massive, non-linear changes in the geometric backbone. Finding the right initial seed is far more effective than trying to correct a bad trajectory mid-flight.
- Rectified Flows Enable Cheap Gradients: The straight-line trajectory characteristic of rectified flow models makes first-order gradient approximation highly effective, making initial noise optimization computationally feasible for complex 3D latents.
- Frequency Domain for Structural Stability: Tuning shapes in the frequency domain acts as a natural low-pass filter, allowing rapid convergence on global geometry without destroying fine details.
Key Results
InpaintSLat significantly outperforms trajectory-steering baselines across both appearance and geometry metrics.
- Preserved Region Reconstruction: On the Toys4K dataset, it boosts appearance quality (PSNR increases from ~16.0 to 18.56) and geometric fidelity (Chamfer Distance drops from ~0.82 to 0.637) compared to the strongest training-free baseline, ILVR.
- Inpainted Region Generation: For the newly synthesized parts, it achieves a massive drop in Fréchet Distance (FD_dinov2 drops from 12.09 to 3.683) and Kernel Distance, indicating much higher realism and better alignment with the text prompt.
- Runtime Trade-off: Because it requires 15 iterative optimization steps, the runtime increases to 145.2 seconds compared to ~25–30 seconds for non-optimized baselines. However, the authors note that visual and structural convergence is often reached by step 6.
Limitations and Future Work
The primary limitation is the computational overhead introduced by the iterative optimization loop, making it slower than pure sampling manipulation methods. Additionally, because the method searches for an initialization within the pretrained model's learned distribution, it inherits a prior-bound constraint: if the text prompt and the preserved geometry are highly contradictory or underrepresented in the training data, the model may fail to synthesize a plausible completion.
The authors suggest that exploring stronger structural conditioning or hybrid guidance mechanisms (combining seed optimization with trajectory steering) represents a promising direction for future research.
Summary updated