UniSketch: A Unified Framework for Parametric Sketch Generation and Constraint Prediction

Authors

  • Jing Lin Wuhan University
  • Fazhi He Wuhan University
  • Rubin Fan Wuhan University

DOI:

https://doi.org/10.1609/aaai.v40i28.39525

Abstract

In modern Computer-Aided Design (CAD), parametric sketches play a crucial role by capturing both the geometric structure and design intent through constraints. However, existing deep learning–based sketch methods remain restricted to simple geometric primitives and limited constraint types, hindering their application to complex real-world engineering tasks. To address this gap, we introduce the UniSketch dataset, comprising 3,836,290 sketches. It offers a comprehensive and diverse collection of 7 types of geometric primitives and 23 types of 2D constraints, all represented as unified vector sequences suitable for deep learning applications. Leveraging the UniSketch dataset, we propose a unified multi-task Transformer framework as a true foundation model for parametric sketch modeling, supporting diverse core tasks like image-to-sketch generation, constraint prediction, and unconditional sketch synthesis. Furthermore, the generated sketches can be efficiently converted to CAD-compatible formats, enabling seamless integration with industrial CAD system for re-editing and reusing. The experimental results show that UniSketch outperforms existing methods in multiple tasks, demonstrating its versatility and practical value in industrial CAD applications.

Downloads

Published

2026-03-14

How to Cite

Lin, J., He, F., & Fan, R. (2026). UniSketch: A Unified Framework for Parametric Sketch Generation and Constraint Prediction. Proceedings of the AAAI Conference on Artificial Intelligence, 40(28), 23532–23540. https://doi.org/10.1609/aaai.v40i28.39525

Issue

Section

AAAI Technical Track on Machine Learning V