TL;DR
PolyFlow bypasses the slow, sequential bottleneck of autoregressive mesh generation by mapping discrete mesh topology into a continuous embedding space. This allows a Transformer-based flow-matching model to generate clean, artist-style 3D meshes completely in parallel in just a few seconds, while offering exact control over the output vertex count.
What Problem Does This Paper Address?
Generating high-quality 3D meshes with clean, "artist-style" topology (retopology) is a crucial step in production pipelines for games, film, and physics simulations. Currently, autoregressive (AR) Transformers dominate this space because they excel at predicting discrete token sequences representing mesh faces and edges. However, AR decoding is inherently sequential—generating tokens one by one—which makes it incredibly slow, often taking tens of seconds to several minutes per mesh.
Continuous generative models, such as diffusion and flow matching, are lightning-fast because they synthesize data in parallel. However, they cannot be directly applied to meshes because mesh connectivity is inherently discrete (an edge either exists or it doesn't). This binary nature makes topology fundamentally incompatible with standard continuous noise injection and denoising operations.
Methods
PolyFlow resolves this incompatibility by introducing a two-stage paradigm that lifts discrete topology into a continuous latent space:
- Continuous Topology Embedder: The authors train a lightweight network to project discrete vertex positions and normals into a low-dimensional, continuous per-vertex embedding space ($\mathbf{e}_i \in \mathbb{R}^d$). Crucially, they use a spacetime distance metric (a pseudo-Riemannian metric) to supervise these embeddings, ensuring that the original discrete adjacency matrix can be faithfully recovered later via simple distance thresholding.
- Joint Geometry-Topology Flow Matching: Once the topology embedder is trained and frozen, any raw mesh can be represented as a fully continuous per-vertex state matrix $\mathbf{Z} = [\mathbf{p}, \mathbf{n}, \mathbf{e}]$, combining 3D positions ($\mathbf{p}$), surface normals ($\mathbf{n}$), and topology embeddings ($\mathbf{e}$). PolyFlow uses a Flux-based Diffusion Transformer (DiT) to denoise this joint state in parallel from pure Gaussian noise, conditioned on features extracted from an input point cloud.
During inference, an ordinary differential equation (ODE) solver generates the continuous states in seconds. The final mesh is reconstructed by decoding the topology embeddings back to edges via distance thresholding, extracting triangular faces via 3-clique enumeration, and automatically correcting face orientations (winding order) using the generated surface normals.
Datasets
- Training Dataset: A massive collection of approximately 5 million meshes assembled from public repositories and licensed 3D assets.
- Evaluation Benchmark: The Toys4K dataset, which contains a diverse set of 3D objects completely unseen during training.
Key Insights and Ideas
- Lifting Discrete to Continuous: The core "aha" moment is that mesh topology does not have to be modeled discretely during generation. By embedding connectivity into a continuous proxy space governed by spacetime distance, the entire mesh structure can be optimized using standard continuous flow matching.
- Eliminating Serial Error: Because all vertices and their connectivity are denoised simultaneously, PolyFlow avoids the compounding error accumulation typical of AR models, which frequently results in missing semantic parts or broken geometry.
- Resolution Controllability: Since the generation process operates on a set of parallel tokens, users can explicitly dictate the output mesh resolution simply by specifying the target vertex count ($\hat{V}$) before running inference.
Key Results
- State-of-the-Art Fidelity: On the Toys4K benchmark, PolyFlow outperforms the strongest AR baseline (BPT) by 43% in Chamfer Distance (CD) and 40% in Hausdorff Distance (HD).
- Massive Speedups: PolyFlow completes a 4,000-vertex mesh generation in just 5.88 seconds on a single NVIDIA A100 GPU. This represents a speedup of tens of times over BPT (which takes over 9 minutes) and 6.2× faster than FastMesh (36.72 seconds).
- Ablation on Dimensions: The authors found that a 32-dimensional embedding space ($d=32$) strikes the perfect balance, achieving near-perfect edge reconstruction ($F1 = 0.9991$). Increasing the dimension to $d=64$ actually degraded downstream generation quality due to increased optimization difficulty for the denoiser.
Limitations and Future Work
- Scaling Limits of the Flow State: As noted in the ablation study, scaling up the topology embedding dimension too high increases the learning difficulty for the denoiser without providing meaningful additional topology information.
- Conditioning Dependency: The generation quality relies heavily on high-quality point cloud features from a frozen encoder; performance on highly sparse, incomplete, or noisy real-world scans remains an open question.
- Post-Processing Step: Although the post-processing overhead is negligible (<70ms), recovering faces still requires a discrete 3-clique enumeration step after edge thresholding rather than generating faces directly in the continuous flow.
Summary updated