TL;DR
PolyDiffuse adapts Diffusion Models (DMs)—typically used for image generation—for the precise reconstruction of structured geometries like floorplans and HD maps. By introducing a "Guided Set Diffusion Model" that controls per-element noise injection, it solves the mathematical ambiguity of predicting sets of polygons, achieving state-of-the-art accuracy in turning visual sensor data into vectorized shapes.
What Problem Does This Paper Address?
Diffusion Models have taken the generative AI world by storm, but applying them to structured reconstruction (e.g., turning a point cloud into a vectorized floorplan, or camera feeds into an HD traffic map) is surprisingly difficult.
The core challenge is permutation ambiguity. A structured geometry is essentially a "set" of elements (like a set of polygons). A set of $N$ elements has $N!$ equivalent ways to be ordered in a data sequence. If you apply a standard DM, all these equivalent permutations diffuse into the exact same standard Gaussian noise. During the reverse (denoising) process, the model gets confused because it doesn't know which of the $N!$ valid sequences it is supposed to reconstruct.
Furthermore, unlike generation (where any plausible image will do), reconstruction requires finding one specific correct layout. This means you can't just start the reverse process with purely random noise; the initial noise must be carefully chosen.
Methods
To overcome these hurdles, the authors introduce the Guided Set Diffusion Model (GS-DM).
- Guided Forward Process: Instead of diffusing all data into a standard zero-mean, unit-variance Gaussian distribution, GS-DM learns guidance networks. These networks assign a specific, individual Gaussian distribution to each element in the set. By injecting noise on a per-element basis, a specific permutation remains separated from its $N!$ variants throughout the diffusion process, completely resolving the denoising ambiguity.
- Conditioned Reverse Process: At inference time, the system takes a rough initial proposal—either from an existing baseline model (like RoomFormer) or rough human annotations (like clicking the center of a room). The guidance networks use this proposal to initialize the element-wise Gaussian noise. A Transformer-based denoising network then iteratively refines this noise into the final polygons, conditioned heavily on the actual sensor data.
- Likelihood-Based Refinement: Because the DM can be framed as a probability flow ODE, PolyDiffuse can actually calculate the likelihood (confidence) of its own reconstructions. This allows the system to test different variations (e.g., "Does a 4-sided or 5-sided polygon fit this room better?") and choose the mathematically optimal shape.
Datasets
The authors evaluated PolyDiffuse on two distinct structured reconstruction tasks:
- Structured3D: Used for indoor floorplan reconstruction. The input is a top-down point-cloud density image, and the output is a set of room polygons.
- nuScenes: Used for outdoor HD map construction for autonomous driving. The input consists of onboard RGB camera images, and the output is a set of polylines representing pedestrian crossings, road dividers, and boundaries.
Key Insights and Ideas
- DMs aren't just for generation: This paper is one of the first to prove that Diffusion Models can be rigorously controlled to act as powerful reconstruction engines, provided the mathematical quirks of the data structure are respected.
- Solving Set Ambiguity is crucial: The "aha" moment of the paper is realizing that standard diffusion destroys the distinction between equivalent permutations. Guiding the noise per-element ensures the model maintains a unique trajectory for a specific sequence, making the denoising network's job actually learnable.
- Self-Scoring unlocks automation: The ability of PolyDiffuse to evaluate the likelihood of its own outputs is a massive advantage over standard regression models. It opens the door to automated search algorithms and highly efficient human-in-the-loop annotation tools.
Key Results
PolyDiffuse acts as a powerful booster for existing state-of-the-art models:
- Floorplans (Structured3D): When using RoomFormer to generate the initial proposal, PolyDiffuse significantly improved geometric reasoning. For example, the F1 score for strict "Angle" metrics jumped from 83.9 to 89.1.
- HD Maps (nuScenes): When applied on top of MapTR, standard Chamfer Distance mAP improved slightly. However, the authors noted that standard metrics ignore directional correctness. They introduced a stricter "Ordered angle distance" metric, where PolyDiffuse showed massive gains, improving mAP from 43.8 to 49.0.
- Efficiency: The model achieves these high-quality results in just 5 to 10 denoising steps, making it highly practical compared to DMs that require hundreds of steps.
Limitations and Future Work
- Missing Instances: Because PolyDiffuse relies on an initial proposal to start the denoising process, it generally cannot recover geometry instances (like a completely missed room) that were absent in the initial proposal, unless the slower likelihood-based search is used.
- Sensitivity to Proposal Style: When using rough human annotations (like simple fixed-radius circles) as the starting point, the model sometimes struggles. If the human input style differs too much from the ground-truth curve styles the guidance networks were trained on, it can produce bad initial noise and inaccurate final locations.
- Future Work: The authors suggest that training specific guidance networks tailored to different types of human inputs could solve this sensitivity, paving the way for highly robust AI-assisted CAD and mapping tools.
Summary updated