Improving Unsupervised Visual Program Inference with Code Rewriting Families
Aditya Ganeshan, R. Kenny Jones, Daniel Ritchie
Abstract
Programs offer compactness and structure that makes them an attractive representation for visual data. We explore how code rewriting can be used to improve systems for inferring programs from visual data. We first propose Sparse Intermittent Rewrite Injection (SIRI), a framework for unsupervised bootstrapped learning. SIRI sparsely applies code rewrite operations over a dataset of training programs, injecting the improved programs back into the training set. We design a family of rewriters for visual programming domains: parameter optimization, code pruning, and code grafting. For three shape programming languages in 2D and 3D, we show that using SIRI with our family of rewriters improves performance: better reconstructions and faster convergence rates, compared with bootstrapped learning methods that do not use rewriters or use them naively. Finally, we demonstrate that our family of rewriters can be effectively used at test time to improve the output of SIRI predictions. For 2D and 3D CSG, we outperform or match the reconstruction performance of recent domain-specific neural architectures, while producing more parsimonious programs, that use significantly fewer primitives.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0354847e-e48e-44aa-9546-77df4159533eCited by top-tier papers5
- Learning to Edit Visual Programs with Self-SupervisionR. Kenny Jones, Renhao Zhang, Aditya Ganeshan, Daniel RitchieNeurIPS 2024 · 9 citations
- ShapeWalk: Compositional Shape Editing Through Language-Guided ChainsHabib Slim, Mohamed ElhoseinyCVPR 2024 · 4 citations
- GIFT: Bootstrapping Image-to-CAD Program Synthesis via Geometric FeedbackGiorgio Giannone, Anna Doris, Amin Nobari, Kai Xu et al.ICML 2026 · 3 citations
- Learning to Infer Generative Template Programs for Visual ConceptsR. Kenny Jones, Siddhartha Chaudhuri, Daniel RitchieICML 2024 · 3 citations
- Can Large Language Models Understand Symbolic Graphics Programs?Zeju Qiu, Weiyang Liu, Haiwen Feng, Zhen Liu et al.ICLR 2025
Builds on18
- DeepCAD: A Deep Generative Network for Computer-Aided Design ModelsRundi Wu, Chang Xiao, Changxi ZhengICCV 2021 · 290 citations
- DeepSVG: A Hierarchical Generative Network for Vector Graphics AnimationAlexandre Carlier, Martin Danelljan, Alexandre Alahi, Radu TimofteNeurIPS 2020 · 247 citations
- Fusion 360 gallery: a dataset and environment for programmatic CAD construction from human design sequencesKarl D. D. Willis, Yewen Pu, Jieliang Luo, Hang Chu et al.SIGGRAPH 2021 · 197 citations
- egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt et al.POPL 2021 · 170 citations
- UCSG-NET- Unsupervised Discovering of Constructive Solid Geometry TreeKacper Kania, Maciej Zieba, Tomasz KajdanowiczNeurIPS 2020 · 133 citations
Related papers
- ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured PrimitivesR. Kenny Jones, Paul Guerrero, Niloy J. Mitra, Daniel RitchieSIGGRAPH 2023 · 19 citations
- Unsupervised Learning of Shape Programs with Repeatable Implicit PartsBoyang Deng, Sumith Kulal, Zhengyang Dong, Congyue Deng et al.NeurIPS 2022 · 18 citations
- D2CSG: Unsupervised Learning of Compact CSG Trees with Dual Complements and DropoutsFenggen Yu, Qimin Chen, Maham Tanveer, Ali Mahdavi-Amiri et al.NeurIPS 2023 · 61 citations
- ShapeMOD: macro operation discovery for 3D shape programsR. Kenny Jones, David Charatan, Paul Guerrero, Niloy J. Mitra et al.SIGGRAPH 2021 · 24 citations
- SfmCAD: Unsupervised CAD Reconstruction by Learning Sketch-based Feature Modeling OperationsPu Li, Jianwei Guo, Huibin Li, Bedrich Benes et al.CVPR 2024
