Compiling Part Hierarchies into Physically Valid 3D Assemblies

Neural models that assemble 3D objects from parts can predict where a chair's legs, seat and back should go. They still routinely produce chairs whose legs pass through the seat or float in the air. The usual fix is to add a soft penalty during training, and the evidence in the literature suggests it does not reliably work. We propose a different division of labor. The neural network proposes a short list of candidate poses for each part. A combinatorial solver then picks one candidate per part so that every pair of parts is physically compatible and the total network score is as high as possible. The solver organizes this search along the object's part hierarchy, treating, say, "leg assembly", "seat" and "back" as nested subproblems. The key observation is that a part hierarchy can serve as a variable tree: a binary tree, used in logic compilation, that splits a set of variables recursively so that each half can be reasoned about mostly on its own. That reuse lets us borrow tractability guarantees from knowledge compilation.

To see why this matters, consider what the hierarchy does to the problem's cost. Pairwise physical checks are cheap and easy to run on a GPU. But some requirements involve many parts at once: the whole object must be one connected piece, the legs must reach a common floor, and repeated parts should be placed symmetrically. These whole-object requirements are what make flat search expensive. Recursing over the hierarchy turns them into small summaries passed upward at each internal node. Solving exactly over the hierarchy then costs time exponential only in how many parts touch across a sub-assembly's boundary, not in the total number of parts. If real part hierarchies have small boundaries, we get hard validity guarantees at little cost. We can also answer queries such as "re-assemble with the back held fixed", or "sample a valid assembly", without re-solving from scratch.

Core Claim

Our claim has two parts. First, given $K$ candidate poses per part, maximizing the generator's score subject to pairwise non-penetration and contact constraints, plus global connectivity and floor-support constraints, can be solved exactly by dynamic programming over a variable tree whose internal nodes are sub-assemblies. The cost is $O(n K^{b})$, where $n$ is the number of parts and $b$ is the largest number of parts in a sub-assembly that touch parts outside it. Second, on PartNet categories $b$ is small for the annotated semantic hierarchy, or for a hierarchy we search for. If both hold, the solver yields 100% physically valid assemblies with no loss in part accuracy relative to the best soft-attention assembler. It also does so more cheaply than flat solvers or best-of-N rejection at matched compute.

The structure we rely on is supplied by the knowledge-compilation literature. SDD: A New Canonical Representation of Propositional Knowledge Bases and New Compilation Languages Based on Structured Decomposability define variable trees for Boolean formulas. They show that representations respecting such a tree scale with treewidth rather than the much larger pathwidth that a flat variable order incurs. SDDs Are Exponentially More Succinct than OBDDs and Basing Decisions on Sentences in Decision Diagrams show that this gap is real and can be exponential. All of this work is about abstract Boolean variables. Our contribution is to make the variables discrete pose choices for physical parts, and to make the tree a part-whole hierarchy.

The way we handle whole-object constraints follows On the Expressiveness of Networks with Hidden Variables. Dechter shows that any many-variable relation can be rewritten as pairwise constraints if one adds auxiliary "hidden" variables with at least three values, and that two-valued auxiliaries add nothing. We treat each super-part as such a hidden variable. Its value records two things about the parts on its boundary: which candidate pose each one took, and how they are grouped into connected pieces. The second component is a partition label, not a yes/no flag. That is why a two-valued "this sub-assembly is connected" summary would fail exactly where Dechter's two-valued auxiliaries do.

Dechter assumes the full relation is given as a table of allowed tuples. We never write that table out; the hierarchy builds it implicitly, which is the novelty relative to her construction.

Research Program

Candidate generation. A pretrained assembly network produces $K$ pose samples per part. We use the hierarchical model of Generative 3D Part Assembly via Part-Whole-Hierarchy Message Passing, which groups parts into super-parts and refines poses with cross-level attention but enforces nothing hard. We pool its stochastic samples and keep the highest-scoring distinct poses, each with a log-score.

Pairwise constraint tensors. For every pair of parts we compute a $K \times K$ compatibility matrix:

Pruning. Before any search, we remove candidates that cannot appear in any valid assembly. We use arc consistency, which deletes a candidate for one part if no candidate of a neighboring part is compatible with it. We run it in the matrix-multiplication form of Paralleling and Accelerating Arc Consistency Enforcement with Recurrent Tensor Computations. That method is flat and pairwise-only, which is exactly the regime of our pruning step.

Hierarchical solve. Let $v$ be a node of the variable tree, with children $\ell$ and $r$, and let $\sigma$ be an interface state: poses plus a connectivity partition for the parts in $v$'s subtree that touch the outside. The quantity $V_v(\sigma)$ is the best total log-score of the subtree's parts consistent with $\sigma$. It obeys

$$V_v(\sigma) = \max_{\sigma_\ell, \sigma_r \,\in\, \mathrm{compat}(\sigma)} \; V_\ell(\sigma_\ell) + V_r(\sigma_r).$$

Here $\mathrm{compat}(\sigma)$ is the set of child states that satisfy three conditions: they agree with $\sigma$ on shared parts, they pass all pairwise penetration checks across the split, and they merge into the connectivity partition that $\sigma$ claims. At the root we additionally require a single connected component and floor support.

This recursion is max-product inference over a structured decomposition. With the max replaced by a sum, the same tables count or sample valid assemblies, in the spirit of DPSampler: Exact Weighted Sampling Using Dynamic Programming. Symmetry among interchangeable sibling parts is enforced inside the node that groups them.

Choice of tree. We compare four trees, because this choice determines the boundary size $b$:

  • the PartNet semantic hierarchy;
  • the bounding-box super-parts of Du et al.;
  • a min-fill tree built on the contact graph, the standard heuristic used for compiled logic;
  • a flat linear order, the degenerate case analogous to ordered decision diagrams.

The first open problem in the compilation literature, that finding an optimal tree is hard, becomes an empirical question here. Do semantic part boundaries happen to be low-width cuts?

Baselines

Naive reference. We take the generator's own top-1 pose per part with no post-processing. This shows how much invalidity the pipeline actually removes and what accuracy, if any, it costs.

Strongest existing assembler. This is Generative 3D Part Assembly via Part-Whole-Hierarchy Message Passing, the closest work and also our candidate source. It reports gains of 1.87% in mean Part Accuracy and 2.95% in mean Connectivity Accuracy over the prior IET model on PartNet Chair. No absolute mPA or mCA value is given in our file, so we will reproduce its numbers under our splits before comparing.

We also include Imagine: Image-Guided 3D Part Assembly with Structure Knowledge Graph for image-conditioned experiments. It builds a soft graph of part relations and reports a nearly 20% Shape Chamfer Distance improvement on chairs. No absolute value is given, and the authors state that overlaps are not prevented. Beating these baselines means at least two things: a physical-validity rate near 100% against their measured rate, and mPA and mCA within one point of theirs or better.

Matched-compute rejection. We draw generator samples until the wall-clock budget of our solver is spent and keep the best valid one. LSD-StructureNet: Modeling Levels of Structural Detail in 3D Part Hierarchies is relevant here. It reports conditional sampling in 0.05 seconds versus roughly 0.67 seconds for loose rejection sampling, and notes that its own samples overlap and float. This baseline therefore isolates whether search beats resampling at equal cost.

Flat exact solver. We give the identical candidate sets and constraint matrices to a generic integer-programming solver, with the same time limit.

Post-hoc soft refinement. We run gradient descent on continuous poses with a penetration and contact loss, starting from the generator output, and give it the same GPU time as our solver.

Ablations. Two ablations isolate the key ingredients. The first swaps the tree, comparing semantic, super-part, min-fill and linear trees, which tests whether the hierarchy matters. The second drops the connectivity partition from the interface state and keeps only pairwise constraints, which tests whether the hidden-variable summary matters.

Why not just…?

Why not just add collision and connectivity losses and refine poses by gradient descent? This is the most natural fix and our main competitor. The evidence against relying on it alone is indirect but consistent. The brick-assembly papers report that unconstrained generative baselines produce invalid structures about 90% of the time, and both LSD-StructureNet and Imagine concede overlap and floating parts despite learned structure. Gradient refinement also cannot enforce connectivity, which is a discrete property, and it can get stuck in local minima where two parts are jammed together. Still, it may close most of the gap on simple categories. We run it at matched compute and report validity and accuracy per category. If it matches us on Chair and Table, our contribution narrows to categories with interlocking parts such as Lamp, and we will say so.

Why not just hand the candidates to an off-the-shelf integer-programming or MaxSAT solver? With about 18 parts and $K=10$, a flat solver may well finish quickly, and this is a real threat to any speed claim. Our response is twofold. We measure solve time as $K$ and the part count grow; the compilation results above predict that flat search degrades with pathwidth while ours grows only with the boundary size $b$. We also test something flat solvers do not provide: once our tables are built, conditional re-assembly with some parts fixed, and exact sampling of valid assemblies, cost one pass over the tables. If the flat solver dominates at all $K$ we test, we will report the hierarchy as useful mainly for these repeated queries.

Why not just keep whole-object constraints as many-part constraints and use a non-binary propagator? Generalized arc consistency on many-part constraints must examine exponentially many combinations of tuples. The relational neighborhood methods of Adaptive Neighborhood Inverse Consistency as Lookahead for Non-Binary CSPs are strong on sparse problems but costly on dense ones. Neither fits the matrix-multiplication GPU form that RTAC exploits. Binarizing naively through the primal graph is no better: A Comparison of Structural CSP Decomposition Methods shows this can make decomposition width grow with problem size, and Decomposition of Domains Based on the Micro-Structure of Finite Constraint-Satisfaction Problems documents the memory bloat. Our hidden-variable ablation tests this choice directly.

Proposed Experiments

Main experiment. We run on PartNet Chair, Table and Lamp, using the splits from Du et al. The metrics are:

  • mPA, mCA and Shape Chamfer Distance;
  • physical-validity rate, meaning no pair of parts overlaps by more than a small voxel threshold and the assembly forms one connected, floor-supported piece;
  • solver time.

All of these are reported as functions of $K \in \{5, 10, 20, 40\}$.

First decisive check. Before any learning results, we measure boundary size $b$ under each candidate tree across all PartNet shapes in the three categories. If the semantic hierarchy's $b$ is typically three or less, the approach is cheap. If min-fill beats the semantic hierarchy by a wide margin, the part hierarchy is only a heuristic and we adopt the searched tree. If every tree yields large $b$ on Lamp, we have located where exact hierarchical compilation stops paying off.

Second decisive check. We compare validity and accuracy at matched compute against refinement and rejection. The headline claim survives only if we reach near-total validity with mPA no worse than the reproduced Du et al. model by more than one point.

Secondary test on bricks. On the voxelized ModelNet40 brick benchmark, BrECS reports 100% validity and completion IoU of 0.578, against 0.443 for brick-by-brick reinforcement learning. We will test whether grouping bricks into sub-assemblies and planning with our hierarchical lookahead improves IoU over BrECS's greedy flat placement under its own placement budget. Since BrECS already reaches 100% validity, only IoU can show a gain here.