Patchwork: A compact representation for 3D polygonal shapes

Ruichen Zheng, Biao Zhang, Michael Birsak, Mikhail Skopenkov, Peter WonkaarXiv 2026

TL;DR

Patchwork is a highly compact, mathematically grounded 2D/3D shape representation inspired by algebraic geometry that models complex polygonal geometries using a fraction of the parameters required by traditional grids or neural networks. By combining a smooth log-sum-exp formulation with a novel geometric initialization and progressive pruning strategy, it delivers state-of-the-art reconstruction accuracy with unprecedented memory efficiency.

What Problem Does This Paper Address?

In AI-driven geometry processing, representing 3D shapes efficiently is a core challenge. Popular implicit representations like Signed Distance Functions (SDFs) and occupancy functions are typically stored using regular grids, voxel octrees, or coordinate-based Multi-Layer Perceptrons (MLPs) like SIREN. While effective, these methods suffer from a harsh trade-off: grids scale poorly with resolution, and neural networks require thousands or millions of parameters to capture sharp, fine-grained geometric details like edges and corners.

Previous hyperplane-based methods (like BSP-Net or CvxNet) attempted to represent shapes using collections of convex primitives, but they suffer from computational redundancies and overlapping parts. The authors of this paper introduce Patchwork to bridge the gap, creating a network-friendly, highly compact representation with a fixed, minimal set of continuous real parameters.

Fig. 1: Our method represents 3D shapes in a very compact and memory-efficient way.

Methods

Patchwork represents a surface as the zero level set of a continuous field. The core mathematical formulation relies on a Log-Sum-Exponential (LSE) combination of linear functions:

$$F(x) = \frac{1}{\beta} \log \sum_{i=1}^n s_i \exp\left(\beta\left(\langle a_i, x \rangle + c_i\right)\right)$$

Here, $a_i$ and $c_i$ define hyperplanes (lines in 2D, planes in 3D), $s_i$ are real-valued weights acting as signs, and $\beta$ controls the sharpness of the corners. As $\beta \to \infty$, the formulation cleanly transitions into a piecewise-linear max-min optimization of hyperplanes, perfectly capturing sharp polygonal boundaries.

Optimizing this formulation directly via gradient descent is notoriously difficult because the max-min operations cause severe gradient truncation (i.e., "dead" parameters). To make training viable, the authors introduce three key innovations:

  1. Explicit Geometric Initialization: Instead of standard random initialization (like Kaiming init), they derive a closed-form solution that maps the input point cloud and its surface normals directly to the initial hyperplane parameters, framing it as a Difference-of-Convex (DC) problem.
  2. Progressive Pruning: They introduce a novel regularization loss ($\mathcal{L}_{\text{prune}}$) that dynamically drives non-contributing hyperplane weights ($s_i$) toward zero, allowing the network to discard redundant elements during training.
  3. Fully-Fused Kernels: To avoid materializing massive intermediate matrices during the LSE computation, they implement custom fused training kernels using Triton, slashing memory overhead from $\mathcal{O}(nm)$ to $\mathcal{O}(m)$.
Fig. 2: A patchwork (the boundary between the dark and light areas) for increasing values of β (left and middle) and the limiting case β →+∞(right). The design lines (blue), the equality lines (dashed), the candidate intervals (brown/orange), and the active intervals (orange). Just two design lines represent a concave angle.

Datasets

The authors evaluated Patchwork against several baseline methods across three distinct 3D datasets:

  • Roof-Image Dataset: A collection of 3,000 unique building roof meshes featuring diverse, topologically complex polygonal structures. 200 random cases were selected for testing.
  • ABC Dataset: A massive dataset of clean, industrial CAD models (100 models used for evaluation).
  • Thingi10k: A dataset consisting of 10,000 organic and 3D-printable shapes, representing more complex, non-polygonal geometries (100 models used for evaluation).

Key Insights and Ideas

  • The Pure Math Connection: The concept of "patchworking" traces back to Viro's method in pure mathematics, originally used to solve a subset of Hilbert's 16th problem regarding the topology of algebraic curves. This paper elegantly ports that theory into deep learning-based geometry processing.
  • Overparameterize then Prune: Trying to fit a shape with a tight, pre-allocated number of planes fails because gradients cannot flow effectively. The "aha moment" here is initializing a plane for every point in the cloud, and letting the pruning loss aggressively weed out the redundant ones.
  • Native Inside-Outside Classification: Because Patchwork defines a continuous field where the surface is exactly at zero, determining whether a point is inside or outside the shape is as simple as checking the mathematical sign of $F(x)$.

Key Results

Patchwork demonstrates remarkable parameter efficiency while matching or exceeding the reconstruction quality of much heavier baselines:

  • Roof Modeling Dataset: Patchwork achieved a Chamfer Distance of 1.42 and an F-score of 76.88, soundly outperforming SIREN (CD: 22.57, F-score: 51.52) and Screened Poisson Surface Reconstruction (SPSR) (CD: 5.55, F-score: 19.66). Crucially, Patchwork achieved this using an average of just 1,301 parameters, compared to the 8,000+ parameters required by the baselines.
  • CAD & General Shapes (ABC & Thingi10k): On the ABC dataset, Patchwork achieved the top accuracy scores while utilizing only 6,262 parameters—a massive reduction compared to the 125,000+ parameters utilized by grid-based and MLP alternatives.
Patchworks approximating a sphere (a and c) and a torus (e), and their limiting cases.

Limitations and Future Work

Despite its strengths, Patchwork currently exhibits two primary failure modes:

  1. Multi-Layer Surfaces: When a geometry contains thin, double-layered surfaces with identical normal orientations, the initialization phase can introduce unresolved "cracks" in the mesh.
  2. Intricate, Isolated Parts: For highly complex, disconnected topologies (like detailed organic structures in Thingi10k), the current sampling and loss functions can occasionally fail to bound the initialization properly, leading to low F-scores.

Future Directions: The authors suggest developing more robust initialization and expansion schemes to handle intricate organic details. They also highlight Patchwork's immense potential as a low-complexity representation space for training 3D generative diffusion models.

Summary updated

BibTeX
@misc{zheng2026patchwork,
  author = {Ruichen Zheng and Biao Zhang and Michael Birsak and Mikhail Skopenkov and Peter Wonka},
  title = {{Patchwork: A compact representation for 3D polygonal shapes}},
  year = {2026},
  eprint = {2605.16266},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.16266},
}
Figure