atlas

Research map / Large language models / Language, safety and interpretability

FlexCAD: Unified and Versatile Controllable CAD Generation with Fine-tuned Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Data and evaluation methodology · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes FlexCAD, a single LoRA-fine-tuned Llama-3-8B that represents CAD sequences as structured text and uses hierarchy-aware mask prediction to perform controllable CAD generation at all construction hierarchies.

Problem

Controllable CAD generation (sketch-and-extrude models) currently offers limited control across construction hierarchies and requires separate models per control type.

Approach

Convert CAD models into concise structured text with numeric coordinates as decimal integers and hierarchy end tokens, then fine-tune an LLM to infill a masked hierarchy-aware field sampled from multiple prompt templates, enabling one unified model for all hierarchies.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use FlexCAD instead of Hnc-cadDeepCAD sketch-level controllable generation · DeepCAD test set, sketch-levelPV: 72.6% -> 93.4%Helped
use FlexCAD instead of Hnc-cadDeepCAD extrusion-level controllable generation · DeepCAD test set, extrusion-levelPV: 79.7%* -> 93.3%Helped
use pretrained weights rather than training Llama-3-8B from scratch (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 89.5% -> 93.4%Helped
use LoRA instead of full-parameter fine-tuning (ablation)Llama-3-8B · DeepCAD test set, sketch-levelinference/training convergence time: 80 hours -> 20 hoursHelped
use instruction-tuned Llama-3-8B instead of base Llama-3-8B (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 93.4% -> 90.5%Hurt
increase model size from Llama-3-8B to Llama-3-70B (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 93.4% -> 94.6%Helped
replace hierarchy-aware masking with random token-span masking (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 93.4% -> 90.6%Hurt
replace hierarchy-specific mask tokens with generic [mask] (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 93.4% -> 91.5%Hurt
train only sketch-level generation instead of multiple hierarchy tasks (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 93.4% -> 92.2%Hurt
represent circles with four points rather than center and radius (ablation)FlexCAD · DeepCAD test set, sketch-levelPV: 89.7% -> 93.4%Helped
raise sampling temperature from τ = 1.1 to τ = 1.3 (ablation)FlexCAD inference · DeepCAD test set, sketch-levelPV: 93.4% -> 86.8%Hurt
raise Top-p from 0.9 to 1.0 (ablation)FlexCAD inference · DeepCAD test set, sketch-levelPV: 93.4% -> 89.0%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: DeepCAD

Benchmarks: DeepCAD test set

Metrics: COV MMD JSD Novel Unique PV Realism

Baselines: GPT-4o SkexGen Hnc-cad DeepCAD

Builds on: LoRA DeepCAD SkexGen

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy