Lune

SIGGRAPH2023Top-tier venue

ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitives

R. Kenny Jones, Paul Guerrero, Niloy J. Mitra, Daniel Ritchie

Abstract

We introduce ShapeCoder, the first system capable of taking a dataset of shapes, represented with unstructured primitives, and jointly discovering (i) useful abstraction functions and (ii) programs that use these abstractions to explain the input shapes. The discovered abstractions capture common patterns (both structural and parametric) across a dataset, so that programs rewritten with these abstractions are more compact, and suppress spurious degrees of freedom. ShapeCoder improves upon previous abstraction discovery methods, finding better abstractions, for more complex inputs, under less stringent input assumptions. This is principally made possible by two methodological advancements: (a) a shape-to-program recognition network that learns to solve sub-problems and (b) the use of e-graphs, augmented with a conditional rewrite scheme, to determine when abstractions with complex parametric expressions can be applied, in a tractable manner. We evaluate ShapeCoder on multiple datasets of 3D shapes, where primitive decompositions are either parsed from manual annotations or produced by an unsupervised cuboid abstraction method. In all domains, ShapeCoder discovers a library of abstractions that captures high-level relationships, removes extraneous degrees of freedom, and achieves better dataset compression compared with alternative approaches. Finally, we investigate how programs rewritten to use discovered abstractions prove useful for downstream tasks.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Mamba-CAD: State Space Model for 3D Computer-Aided Design Generative Modeling cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
  • Mamba-CAD: State Space Model for 3D Computer-Aided Design Generative Modeling cites SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks
  • DeepCAD: A Deep Generative Network for Computer-Aided Design Models cites UCSG-NET- Unsupervised Discovering of Constructive Solid Geometry Tree
  • DeepCAD: A Deep Generative Network for Computer-Aided Design Models cites Computer-Aided Design as Language
  • DeepCAD: A Deep Generative Network for Computer-Aided Design Models cites DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation
  • CADReview: Automatically Reviewing CAD Programs with Error Detection and Correction cites ShapeWalk: Compositional Shape Editing Through Language-Guided Chains
  • CADReview: Automatically Reviewing CAD Programs with Error Detection and Correction cites SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks
  • Computer-Aided Design as Language cites DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation
  • SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks cites UCSG-NET- Unsupervised Discovering of Constructive Solid Geometry Tree
  • SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks cites DeepCAD: A Deep Generative Network for Computer-Aided Design Models
  • SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled Codebooks cites Computer-Aided Design as Language
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Mamba-CAD: State Space Model for 3D Computer-Aided Design Generative ModelingXueyang Li, Yunzhong Lou, Yu Song, Xiangdong ZhouAAAI 2025 · 6 citations
  2. From Programs to Poses: Factored Real-World Scene Generation via Learned Program LibrariesJoy Hsu, Emily Jin, Jiajun Wu, Niloy J. MitraNeurIPS 2025 · 6 citations
  3. ShapeWalk: Compositional Shape Editing Through Language-Guided ChainsHabib Slim, Mohamed ElhoseinyCVPR 2024 · 4 citations
  4. Gesturing Toward Abstraction: Multimodal Convention Formation in Collaborative Physical TasksKiyosu Maeda, William P. McCarthy, Ching-Yi Tsai, Jeffrey Mu et al.CHI 2026 · 1 citation
  5. CADReview: Automatically Reviewing CAD Programs with Error Detection and CorrectionJiali Chen, Xusen Hei, Hongfei Liu, Yuancheng Wei et al.ACL 2025

Builds on20

  1. DeepCAD: A Deep Generative Network for Computer-Aided Design ModelsRundi Wu, Chang Xiao, Changxi ZhengICCV 2021 · 290 citations
  2. DeepSVG: A Hierarchical Generative Network for Vector Graphics AnimationAlexandre Carlier, Martin Danelljan, Alexandre Alahi, Radu TimofteNeurIPS 2020 · 247 citations
  3. UCSG-NET- Unsupervised Discovering of Constructive Solid Geometry TreeKacper Kania, Maciej Zieba, Tomasz KajdanowiczNeurIPS 2020 · 133 citations
  4. Computer-Aided Design as LanguageYaroslav Ganin, Sergey Bartunov, Yujia Li, Ethan Keller et al.NeurIPS 2021 · 129 citations
  5. SkexGen: Autoregressive Generation of CAD Construction Sequences with Disentangled CodebooksXiang Xu, Karl D. D. Willis, Joseph G. Lambourne, Chin-Yi Cheng et al.ICML 2022 · 126 citations

Related papers

  1. ShapeMOD: macro operation discovery for 3D shape programsR. Kenny Jones, David Charatan, Paul Guerrero, Niloy J. Mitra et al.SIGGRAPH 2021 · 24 citations
  2. Unsupervised learning for cuboid shape abstraction via joint segmentation from point cloudsKaizhi Yang, Xuejin ChenSIGGRAPH 2021 · 52 citations
  3. PrimitiveAnything: Human-Crafted 3D Primitive Assembly Generation with Auto-Regressive transformerJingwen Ye, Yuze He, Yanning Zhou, Yiqin Zhu et al.SIGGRAPH 2025 · 5 citations
  4. Unsupervised Learning of Shape Programs with Repeatable Implicit PartsBoyang Deng, Sumith Kulal, Zhengyang Dong, Congyue Deng et al.NeurIPS 2022 · 18 citations
  5. Improving Unsupervised Visual Program Inference with Code Rewriting FamiliesAditya Ganeshan, R. Kenny Jones, Daniel RitchieICCV 2023 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines