Sketch Learning by Analogy

Ulf Krumnack, Angela Schwering, Kai-Uwe Kühnberger, Helmar Gust, Ahmed M. H. Abdel-Fattah, Tarek R. Besold, Martin Schmidt, Stefan Schneider

The paper "Sketch Learning by Analogy" presents a cognitively inspired framework for how computers might finally "understand" sketches the way humans do—not as a collection of pixels, but as a structured arrangement of conceptual parts. By focusing on the structural relationships between parts rather than raw geometric data, the system can generalize abstract "perceptual categories" from just a few examples.

Addressing the Semantic Gap in Sketch Recognition

While humans are incredibly efficient at using sketches to communicate complex ideas, computers generally find them "inaccessible." Traditional image processing treats a sketch as a set of coordinates or pixels, but a sketch is actually a high-level abstraction. When you sketch a face, you aren't just drawing lines; you are representing "eyes above a nose."

The authors identify a major gap: most AI systems lack a competence model for the "Gestalt" nature of sketching. They struggle with visual ambiguity and usually require massive datasets to learn a single category. This paper seeks to bridge the gap between low-level computer vision and high-level conceptual reasoning.

A Three-Level Architecture for Learning

The authors propose a three-level architecture based on Heuristic-Driven Theory Projection (HDTP), a logic-based framework for analogy:

  1. Level 1: Analogical Generalization: The system takes two sketches and finds structural commonalities using "anti-unification" to create an abstract description of what both sketches share.
  2. Level 2: Inductive Refinement: By comparing multiple instances of the same object (e.g., four different sketches of a stove), the system identifies "essential" vs. "optional" components.
  3. Level 3: Category Hierarchy: The system compares different categories (e.g., "cups" vs. "mugs") to build a hierarchy. At the highest level, it extracts elementary geometric shapes that define broad classes of objects.
The three-level architecture showing the progression from specific instances to abstract geometric categories.

Qualitative Spatial Reasoning

A critical component of this method is re-representation. If the system can't find an analogy between two sketches, it uses spatial reasoning to "re-group" the elements (e.g., seeing a Star of David as two triangles instead of six small ones) until a structural match is found.

Humans don't think in absolute coordinates; we think in "left of," "inside," or "connected to." The authors suggest using qualitative spatial relations to handle these representations, allowing the system to recognize objects despite variations in line curvature or exact placement.

Qualitative spatial relations and grouping principles used to represent a stove sketch.

Key Insights and Results

  • Structure Over Pixels: Sketches are relational. A "cup" is defined by the topological relationship of a handle being attached to a cylinder, not by specific line coordinates.
  • Learning via Transfer: Unlike deep learning, analogy-making allows for incremental learning. The system can learn a new category by "transferring" knowledge from a known, similar category.
  • Recognition Heuristics: Successful retrieval is defined by three criteria: the depth of the match in the hierarchy, the coverage (how much of the sketch is explained), and the coherence (how well the parts fit together).

Limitations and Future Work

While the paper demonstrates that HDTP can successfully create valid generalizations, scaling logic-based analogy to thousands of categories remains a computational challenge. Future work involves developing a more robust, formal language for describing shapes that is "cognitively plausible" and refining heuristics to handle the messiness of real-world human sketches.

Summary updated

BibTeX
@inproceedings{krumnack2013sketch,
  author = {Ulf Krumnack and Angela Schwering and Kai-Uwe Kühnberger and Helmar Gust and Ahmed M. H. Abdel-Fattah and Tarek R. Besold and Martin Schmidt and Stefan Schneider},
  title = {{Sketch Learning by Analogy}},
  booktitle = {Shapes},
  year = {2013},
}
Figure