NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Sketch-based Creativity Support Tools using Deep Learning

Forrest Huang, Eldon Schoop, David Ha, Jeffrey Nichols, John F. CannyarXiv 2021 · DOI

Abstract

Sketching is a natural and effective visual communication medium commonly used in creative processes. Recent developments in deep-learning models drastically improved machines' ability in understanding and generating visual content. An exciting area of development explores deep-learning approaches used to model human sketches, opening opportunities for creative applications. This chapter describes three fundamental steps in developing deep-learning-driven creativity support tools that consume and generate sketches: 1) a data collection effort that generated a new paired dataset between sketches and mobile user interfaces; 2) a sketch-based user interface retrieval system adapted from state-of-the-art computer vision techniques; and, 3) a conversational sketching system that supports the novel interaction of a natural-language-based sketch/critique authoring process. In this chapter, we survey relevant prior work in both the deep-learning and human-computer-interaction communities, document the data collection process and the systems' architectures in detail, present qualitative and quantitative results, and paint the landscape of several future research directions in this exciting area.

Introduction

Sketching is a fundamental tool for creativity; it is fast, low-fidelity, and allows designers to communicate abstract ideas without getting bogged down in technical details. However, a massive "semantic gap" exists between a rough human sketch and a finished digital product. Current AI tools often struggle to understand the intent behind a sketch, frequently failing to recognize complex domain-specific layouts like mobile user interfaces (UIs). This research aims to bridge that gap by providing the data and model architectures necessary to make sketches "machine-readable" in a way that actively supports the creative workflow.

The SWIRE Dataset

A primary contribution of this research is the creation of the SWIRE dataset. Most existing sketch datasets focus on single, isolated objects (e.g., "a cat"). SWIRE, however, provides a large-scale collection of paired UI sketches and screenshots.

The SWIRE data collection pipeline: a UI screenshot is provided to a designer, who sketches it on a template. The result is then post-processed using computer vision techniques and ArUco markers for calibration.

As shown in the pipeline above, the dataset contains 3,702 sketches of 2,201 UI examples from the Rico dataset, created by professional UI/UX designers. By using ArUco markers for calibration, the researchers were able to precisely align hand-drawn elements with their digital counterparts, creating a robust training set for semantic understanding.

Swire: Semantically Aware UI Retrieval

To help designers find inspiration, the researchers developed Swire, a retrieval system that finds professional UI designs based on hand-drawn sketches. Unlike traditional methods that rely on simple edge matching (such as HOG filters), Swire uses a dual-encoder CNN architecture (a variant of VGG-A).

This system maps both UI screenshots and hand-drawn sketches into a shared 64-dimensional embedding space. By training with a Triplet Loss function, the model learns to minimize the distance between a sketch and its corresponding UI design while maximizing the distance from unrelated designs. This allows the model to recognize "UI patterns"—understanding, for instance, that three horizontal lines likely represent a "hamburger menu" even if the drawing is messy.

Scones: Conversational Scene Generation

While Swire focuses on retrieval, Scones explores the generation of complex sketched scenes through natural language instructions. Scones uses a hierarchical approach to mimic human drawing processes:

  1. Composition Proposer: A Transformer-based decoder acts as the "planner," taking text instructions (e.g., "put a tree on the left") and previous scene states to output a high-level layout including object classes, positions, and sizes.
  2. Object Generators: Based on Sketch-RNN, these modules handle the stroke-level rendering. A novel mask-conditioning technique was introduced to force the generator to fit strokes within specific shapes and aspect ratios defined by the planner.

This separation of planning from execution allows the system to handle complex spatial instructions that traditional end-to-end models struggle with.

Key Results and Insights

The research yielded significant improvements over existing baselines:

  • Retrieval Accuracy: Swire achieved a Top-10 accuracy of 60.9% in UI retrieval tasks, significantly outperforming the strong non-neural baseline (BoW-HOG) at 38.8%.
  • Generative Quality: On the CoDraw scene-authoring task, Scones achieved a similarity score of 3.55/5, surpassing previous state-of-the-art neural models (3.39).
  • User Experience: In an exploratory study with 50 participants, users found Scones intuitive and fun. Many participants began using it as a "mixed-initiative" tool, allowing the AI to draw a base scene which they then manually refined.

Conclusion and Future Work

While these systems represent a major step forward, limitations remain. Swire currently struggles with highly colorful or rare UI elements, and Scones is more adept at adding objects than modifying or removing them. Future research will focus on scaling the datasets, developing truly bidirectional conversational interfaces where the AI can ask for clarification, and integrating these models directly into professional design software like Figma or Sketch.

Summary updated

BibTeX
@misc{huang2021sketch,
  author = {Forrest Huang and Eldon Schoop and David Ha and Jeffrey Nichols and John F. Canny},
  title = {{Sketch-based Creativity Support Tools using Deep Learning}},
  year = {2021},
  eprint = {2111.09991},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.09991},
}
Figure