We present PartPO, a reinforcement learning method for generating structured shape programs from 3D point clouds. Existing shape-to-program models are trained with supervised learning on procedurally generated data and generalize poorly to more diverse shapes, while reinforcement learning from execution feedback assigns a single scalar reward to a long program that builds many parts, making credit assignment difficult. PartPO instead builds on a core property of the task: shape programs are self-describing, with each semantically named part produced by its own code block. It segments each generated program by its parts and applies part-level rewards only to the code of the corresponding part, a category reward only to the object name, and a shape-level reward to the whole program. The required part supervision is obtained without manual annotation, by grounding part names on target meshes with an open-vocabulary segmentation model prompt-tuned on the model's own outputs. Applied to MeshCoder, PartPO improves reconstruction accuracy and execution success on ShapeNetCore and ABO over the base model, rejection-sampling fine-tuning and trajectory-level RL, and generalizes to the unseen HSSD dataset. Code will be released at https://github.com/HannuoZ/PartPO.
Figures & tables
Figure 1: Two programs generated for the same chair. A shape-level reward Rshape scores each program as a whole (left bars): the lower program is penalized for its misplaced back decoration, and so are its correct legs, seat and back. PartPO adds a part-level reward Rpart (right bars) that scores each part block by its own geometry, so only the faulty block is penalized.
Figure 2: Overview of PartPO. For each point cloud, the policy samples G programs, which are executed in Blender and scored by a shape-level reward (vs. GT shape), a category reward (vs. category label) and part-level rewards (vs. GT part points, obtained once per shape with prompt-tuned SAM 3 and multi-view voting, left). Each advantage is added only to the tokens it evaluates (bottom), so the misplaced stretcher is penalized without penalizing the other correct parts.
Figure 3: Grounding part names on GT meshes. Columns 1–3: masks predicted by the prompt-tuned SAM 3 on three views; column 4: GT part points after multi-view voting (gray: unassigned). Colors denote part names. Table: leg (red), table top (green). Chair: leg (red), cushion (green), armrest (blue). Lamp: base (red), shade (green), post (blue), rack (purple).
Method
CD ↓
Absolute Normal Consistency ↑
Success Rate ↑
Table
Chair
Lamp
All
Table
Chair
Lamp
All
Table
Chair
Lamp
All
ShapeNetCore
PrimitiveAnything [ 38 ]
20.32
7.70
13.21
10.46
0.745
0.732
0.642
0.743
100.0
100.0
100.0
100.0
MeshCoder [ 5 ]
2.40
2.25
2.63
2.64
0.867
0.774
0.791
0.815
98.9
87.0
93.5
89.2
+ RFT
2.06
2.13
3.23
2.54
0.869
0.775
0.791
0.817
98.9
87.9
94.4
90.6
+ SPO
2.20
2.30
2.51
2.05
0.884
0.775
0.795
0.820
99.7
92.5
99.1
96.5
Table 1: Reconstruction results on ShapeNetCore and ABO. CD is scaled by 102 and averaged, like ANC, over successfully executed shapes; success rate is in %. All : average over all test shapes. Best results are in bold; PrimitiveAnything always yields an output and is excluded when marking the best success rate.
Figure 4: Qualitative comparison on ABO (left), ShapeNetCore (middle) and HSSD (right; models trained on ShapeNetCore, tested without further training). × marks programs that fail to execute; SPO is not evaluated on HSSD (–). PartPO reconstructs each part in place, while the baselines produce missing, floating or misplaced parts.
Method
CD ↓
ANC ↑
Success ↑
MeshCoder [ 5 ]
3.12
0.809
81.3
+ shape-level reward
2.92
0.817
88.3
+ PartPO
2.69
0.816
89.2
Table 2: Zero-shot results on HSSD of models trained on ShapeNetCore. CD is scaled by 102 and success rate is in %.
Method
Success ↑
Part CD ↓
Part NC ↑
Recall ↑
Precision ↑
MeshCoder [ 5 ]
94.4
6.72
0.626
72.7
87.4
+ shape-level reward
94.4
6.10
0.627
71.8
88.4
+ PartPO
96.4
4.74
0.640
74.2
89.2
Table 3: Part-level comparison between PartPO and baselines on the 504 ShapeNetCore test shapes (table, chair and lamp) annotated in PartNet. Part CD is scaled by 103 ; success rate, recall and precision are in %. Best results are in bold.
Method
CD ↓
Abs. Normal Consistency ↑
Success Rate ↑
Lamp
Table
All
Lamp
Table
All
Lamp
Table
All
MeshCoder [ 5 ]
4.70
4.72
4.71
0.759
0.709
0.728
93.4
95.3
94.5
+ shape-level
3.07
4.93
4.19
0.787
0.728
0.751
90.7
88.9
89.6
+ shape-level + part-level
2.70
3.39
3.13
0.812
0.729
0.760
99.3
98.3
98.7
+ scalar sum of all rewards
2.37
4.45
3.63
0.803
0.717
0.751
94.0
93.2
93.5
+ PartPO
1.86
3.28
2.72
0.819
0.739
0.770
99.3
99.6
99.5
Table 4: Ablation on ABO (lamp and table). Scalar sum adds the three rewards into one scalar assigned to all tokens; PartPO applies each reward only to the tokens it evaluates. CD is scaled by 10² and success rate is in %.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Method
#Succ.
Success ↑
Part CD ↓
Part NC ↑
Recall ↑
Precision ↑
F1 ↑
MeshCoder [ 5 ]
476
94.4
6.72
0.626
72.7
87.4
65.4
+ shape-level reward
476
94.4
6.10
0.627
71.8
88.4
64.9
+ PartPO
486
96.4
4.74
0.640
74.2
89.2
66.7
Appendix
Table 5: Extended part-level comparison on the 504 ShapeNetCore test shapes (table, chair and lamp) annotated in PartNet. #Succ. is the number of successfully executed shapes. Part CD is scaled by 103 ; success rate, recall, precision and F1 are in %. Best results are in bold.
Method
ShapeNetCore
ABO
CD ↓
ANC ↑
CD ↓
ANC ↑
MeshCoder [ 5 ]
2.49
0.815
2.33
0.801
+ RFT
2.42
0.818
2.32
0.800
+ SPO
1.84
0.825
1.73
0.817
+ shape-level reward
1.93
0.832
1.81
0.814
+ PartPO
1.03
0.838
1.29
0.831
Appendix
Table 6: Reconstruction accuracy on the shapes that all program-generating methods execute successfully (2,505 ShapeNetCore and 362 ABO test shapes). CD is scaled by 102 . Best results are in bold.
Class
mIoU ↑
mDice ↑
Zero-shot
Tuned
Zero-shot
Tuned
Chairs
18.2
77.2
20.4
81.9
Lamps
22.6
65.4
23.2
69.8
Tables
59.6
93.6
60.6
96.1
Mean
33.5
78.7
34.7
82.6
Appendix
Table 7: Part segmentation of SAM 3 with zero-shot part-name prompts and with tuned prompts, on 120 test samples (six views each) rendered from MeshCoder outputs. Values are in %. Mean is the unweighted average over the three classes. Best results are in bold.
Lifting
Table
Chair
Lamp
All
Direct back-projection
0.574
0.963
0.874
0.750
Multi-view voting
0.302
0.421
0.311
0.351
Appendix
Table 8: Quality of the GT part points on the 667 ShapeNetCore training shapes annotated in PartNet. Values are one-sided squared Chamfer distances from the lifted part points to the PartNet parts, scaled by 102 (lower is better). All is the average over all 667 shapes, including two sofas. Best results are in bold.
Existing 3D part decomposition methods do not necessarily partition the original shape into non-overlapping parts that collectively cover the entire shape, allowing overlaps or gaps that hinder downstream part-level applications. We instead formulate part decomposition as a joint partitioning of the entire shape, where the predicted parts are non-overlapping and jointly recover the entire shape. Our key insight is that part decomposition should consider all desired parts jointly, rather than modeling each part independently. To this end, we develop a promptable model for 3D part decomposition from images or meshes. Users can specify desired parts through 3D point prompts for controllable decomposition. Given one point prompt per desired part, our model produces the corresponding parts as a complete partition of the entire shape. We build on a pretrained 3D generation model and first obtain a shape latent from either an input image or mesh. We then introduce a prompt encoder that maps each 3D point prompt to a part token while attending to the shape latent. To decode the desired parts, we propose a novel part decoder jointly scoring the entire shape against all part tokens in a coarse-to-fine manner, assigning every position within the shape volume to exactly one part. We perform part decomposition in this shared shape latent space, enabling a unified model for image-to-part generation, mesh-to-part generation, and part segmentation. Our method outperforms existing works on all part-quality metrics across all three tasks, and improves compatibility among parts by an order of magnitude over previous SOTA methods. Code and models will be released.
We introduce ShapeCodeBench, a synthetic benchmark for perception-to-program reconstruction: given a rendered raster image, a model must emit an executable drawing program that a deterministic evaluator re-renders and compares with the target. The v1 DSL has four primitives on a 512 x 512 black-on-white canvas, but every instance is generated from a seeded RNG, so fresh held-out sets can be created to reduce exact-instance contamination. We release a frozen eval_v1 split with 150 samples across easy, medium, and hard tiers, scored by exact match, pixel accuracy, foreground IoU, parse success, and execution success. We evaluate an empty-program floor, a classical computer-vision heuristic, Claude Opus 4.7 at high and max effort, and GPT-5.5 at medium and extra_high reasoning effort. The heuristic is competitive on easy scenes but collapses when overlaps fuse components; the strongest multimodal configuration preserves much of the foreground structure but still misses exact match because of small parameter errors. Best overall exact match remains low, so ShapeCodeBench is far from saturated. The benchmark code, frozen dataset, run artifacts, and paper sources are released to support independent replication and extension.
Interactive 3D assets used in games and simulation are typically decomposed into specific semantic parts to support animation, physics, and scripted behaviors, yet most generative 3D models produce either monolithic meshes or arbitrary part decompositions that cannot be aligned with application-specific requirements. We present CubePart, a generative framework for open-vocabulary, part-controllable 3D mesh generation that exposes part structure as an explicit inference-time control signal. Given a global text prompt and a user-defined parts schema expressed as an open-ended list of part names, our method generates a set of meshes - one per schema element - that assemble into a coherent object while respecting the specified semantic structure. To enable this capability, we introduce a scalable data pipeline to construct a large open-vocabulary, part-labeled 3D dataset, along with a two-stage generative architecture that separates global shape synthesis from part-level decoding. We demonstrate that the resulting assets can be directly integrated into game engines and driven by animation and behavior scripts without manual post-processing. Project Page: https://cubepart.github.io/