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.