TL;DR
Generative AI is great at painting impressionist cats, but ask it to draft a geometrically precise engineering blueprint and the lines literally won't add up. DrawingsDreamer solves this by ditching image encoders entirely and teaching a standard Large Language Model (LLM) to read and write multi-view vector CAD drawings as pure text sequences. The result is a single, unified model that can imagine new 3D mechanical parts in 2D views, translate isometric sketches into flat projections, and fill in missing schematics with industrial-grade precision.
What Problem Does This Paper Address?
Every physical object manufactured today begins life as a Computer-Aided Design (CAD) engineering drawing—typically represented as Scalable Vector Graphics (SVGs) showing an object from the Front, Top, Right (orthographic views), and an angled 3D-like perspective (isometric view). Unlike artistic illustrations, engineering blueprints are unforgiving: if a hole is five millimeters from the edge in the top view, it must line up to the exact fraction of a millimeter in the front view.
Existing vector-generation models struggle here. Optimization-based methods are painfully slow and spit out messy, uneditable tangles of anchor points. Meanwhile, recent LLM-based SVG generators are trained on icons and clip art, relying on visual encoders tuned for natural photos. Meanwhile, the 3D CAD community has focused on reconstructing 3D shapes from 2D drawings, leaving the direct, automated generation of the 2D blueprints themselves completely unexplored.
Methods
DrawingsDreamer frames blueprint synthesis as pure next-token prediction, fine-tuning a LLaMA-3.2-3B base model using standard Low-Rank Adaptation (LoRA). What’s novel is how they translate geometry into words, and how they school the model:
- Streamlined Postfix Representation (No Vision Encoders!): Instead of feeding pixel renderings into a vision encoder, the authors quantize continuous 2D coordinates into discrete integer tokens. Crucially, while standard SVG code uses prefix notation (declaring "draw a curve", then listing coordinates), DrawingsDreamer introduces hierarchical postfix tokenization: it outputs the coordinates first, then caps them with a semantic tag like
<end_line>or<end_curve>, grouping those into closed<end_path>loops and<end_view>blocks. (They also ditch the standard SVG "close-path"Zcommand, explicitly drawing the final closing line to shrink the vocabulary). - Microscopic-to-Macroscopic Curriculum: Jumping straight into generating four aligned views from scratch causes LLMs to hallucinate impossible geometries. While keeping Unconditional Generation active as a steady background anchor, the authors smoothly shift conditional training across three stages:
- Stage I (Local Syntax): Path-Level Semantic Masking—hiding single lines or loops so the model learns basic coordinate grammar.
- Stage II (Partial Alignment): Partial View Completion—giving the isometric view plus one flat view, asking for the remaining two.
- Stage III (Global Translation): Full Iso-to-Ortho and Ortho-to-Iso spatial reasoning from compressed contexts.
Datasets
Because no large-scale multi-view vector blueprint dataset existed, the authors built a pipeline to project 3D CAD models from the existing DeepCAD dataset into canonical 2D views (Front, Right, Top, and Isometric). This yielded 178,238 valid multi-view aligned SVG drawings, split 90%/5%/5% into 160,414 training, 8,912 validation, and 8,912 test models.
Key Insights and Ideas
- Coordinates before labels: Why does postfix beat standard prefix SVG formatting? Causal LLMs only attend to past tokens. Forcing the model to commit to exact spatial coordinates before naming the geometric primitive acts as a spatial anchor, noticeably boosting parameter accuracy over prefix baselines.
- Pixels blur precision: Skipping raster image encoders isn't just computationally cheaper—it’s more accurate. Vision encoders pre-trained on natural scenes lose the razor-sharp topological alignments that discrete coordinate tokens preserve effortlessly.
- Generalists beat specialists: You might expect a model trained only to translate isometric views into flat views to beat a multi-task model. Yet DrawingsDreamer's unified training outperforms isolated, single-task models—proving that local path-repair and reverse projections actively teach the LLM better 3D spatial intuition.
Key Results
Benchmarked against 5-shot GPT-4o, OmniSVG, and Zero123, DrawingsDreamer dominates across syntactic, visual, and geometric metrics:
- Isometric $\rightarrow$ Orthographic: Achieves 89.77% command accuracy and 80.82% coordinate parameter accuracy (nearly doubling GPT-4o's 46.44% and 35.54%). Visually, it hits 50.16 dB PSNR (vs. 33.53 for GPT-4o and 20.01 for OmniSVG) and drops 3D cross-view Chamfer Distance (CD) error from 0.34 down to 0.02.
- Orthographic $\rightarrow$ Isometric: Hits 73.53% command accuracy (vs. GPT-4o's 11.33%) and 32.03 PSNR.
- Partial View Completion & Unconditional: Reaches 92.82% command accuracy on view completion, and doubles distributional Coverage (66.24% vs. GPT-4o's 33.12%) when dreaming up new CAD drawings from scratch.
Limitations and Future Work
Currently, DrawingsDreamer's geometric vocabulary is streamlined down to the essentials: moves, straight lines, and cubic Bézier curves. Real-world industrial blueprints, however, are packed with explicit parametric constraints, dimension annotations, tolerances, and specialized symbols. The authors note that expanding this vocabulary to capture complex parametric rules is the next frontier for bringing sequence-modeling LLMs into everyday mechanical engineering workflows.
Summary updated