Co-Optimization of Design and Fabrication Plans for Carpentry

Haisen Zhao, Max Willsey, Amy Zhu, Chandrakana Nandi, Zachary Tatlock, Justin Solomon, Adriana Schulz

TL;DR

This paper introduces a method to simultaneously optimize both the structural design of furniture and its fabrication plan (cutting and packing layouts). By leveraging program synthesis techniques—specifically equality graphs (e-graphs)—the system efficiently explores a massive combinatorial space to find Pareto-optimal trade-offs between material cost, precision, and fabrication time, outperforming human experts and achieving up to a 17× speedup over baseline methods.

What Problem Does This Paper Address?

When making furniture, a skilled carpenter doesn't just look at a fixed blueprint and try to cut it efficiently. Instead, they often tweak the design itself—changing how joints connect or altering part dimensions slightly—to minimize material waste or save time.

However, automated fabrication tools typically treat the design as fixed, optimizing only the fabrication plan (the lower-level problem). Jointly exploring both the design variations and the fabrication plans (a bi-level optimization problem) is computationally intractable because the search space explodes exponentially. This paper tackles this intractability to find the optimal "Pareto front" where design choices and fabrication paths are co-optimized.

Example of design variations decomposing a 3D model into different sets of parts and fabrication plans

Methods

The authors represent carpentry designs and fabrication plans as programs and introduce two key technical innovations:

  1. Bag-of-Parts (BOP) E-graph: Traditional e-graphs (equality graphs) group strictly semantically equivalent programs to save space and computation. The authors adapt this into a BOP E-graph, which groups arrangements that use the same bag of parts, even if they are packed or cut differently. This allows the system to share and reuse optimization work across many different design variations that share common sub-structures.
  2. ICEE (Iterative Contraction and Expansion on E-graphs): To prevent the e-graph from growing too large during the search, the authors propose a feedback-guided strategy. ICEE iteratively expands the graph by proposing promising new design variations (using a genetic algorithm) and fabrication arrangements, and contracts it by pruning branches that do not contribute to the current multi-objective Pareto front.
An example of an arithmetic e-graph demonstrating how equivalent terms share sub-expressions compactly

Datasets

The authors evaluated their approach on a benchmark suite of 16 carpentry models of varying complexity. The dataset includes:

  • Chairs and Tables: S-Chair, A-Chair, D-Chair, Table, Z-Table.
  • Storage and Frames: A-Bookcase, Bookcase, Dresser, Window, Frame, L-Frame, F-Cube.
  • Complex/Other Objects: Bench, Loom, Flower-Pot (F-Pot), Jungle Gym (J-Gym).

These models span 1D sequential lumber cuts, 2D sheet partitioning, and mixed-material designs (combining different types of wood and metal).

Key Insights and Ideas

  • Exploiting Structural Redundancy: Different design variations often share identical subsets of parts. By optimizing a sub-structure once within the BOP E-graph, every design variant containing that sub-structure instantly benefits, avoiding redundant computations.
  • Feedback-Directed Graph Management: Traditional e-graph optimization performs expansion blindly before extraction. ICEE introduces a closed-loop feedback mechanism where the current Pareto front scores the utility of graph nodes, guiding both pruning and future expansion.
  • Unintuitive Solutions Win: Co-optimization often discovers counter-intuitive design tweaks—such as making parts slightly irregular so they pack perfectly onto a single board without waste—that a human expert or a single-design optimizer would miss.

Key Results

  • Significant Speedups: The ICEE framework is up to 17× faster than a naive nested optimization baseline while achieving identical Pareto fronts.
  • Substantial Cost Savings: Compared to optimizing a single fixed design, co-optimization reduced material usage by up to 25% (in the bookcase model) and fabrication time by up to 60% (in other models).
  • Outperforming Human Experts: The automated tool generated Pareto fronts that dominated hand-designed solutions from carpentry experts in 14 out of the 16 test models.

Limitations and Future Work

  • Discrete vs. Continuous Spaces: The current approach only handles discrete design variations (e.g., choosing between a few predefined joint styles or part decompositions). Extending this to continuous design spaces (e.g., smoothly varying lengths) remains an open challenge because e-graphs rely on exact equivalence matching.
  • Parallelization: Many steps, such as generating design variants, are currently executed sequentially but could be parallelized to further improve performance.
  • Broader Applications: The authors suggest that the ICEE strategy could be applied to other e-graph-based optimization domains, such as CAD design optimization or floating-point code accuracy tuning.

Summary updated

BibTeX
@article{zhao2022co,
  author = {Haisen Zhao and Max Willsey and Amy Zhu and Chandrakana Nandi and Zachary Tatlock and Justin Solomon and Adriana Schulz},
  title = {{Co-Optimization of Design and Fabrication Plans for Carpentry}},
  journal = {ACM Trans. Graphics},
  year = {2022},
  doi = {10.1145/3508499},
}
Figure