FoldSketchDrawings That Unfold When Folded

FoldSketch draws one vector sketch for two prompts. Flat, it reads as . Fold it in half and the same strokes draw .

Try it yourself!

Slide from Flat to Fold, or tap a sheet. Each one folds like tracing paper, so both layers stay in view and the same strokes draw something new.

Every sheet here is a FoldSketch result, drawn from its vector strokes.

Abstract

Fold the owl in half and it becomes a lighthouse. For half a century the back page of MAD magazine ended this way, with a fold-in that Al Jaffee planned line by line so that the open page and the folded one each made sense. We ask whether a machine can draw one, and in a stricter form than his: Jaffee's fold hides the middle of the page, ours hides nothing, so every stroke stays in view and must earn its place in both pictures. A fold is a reflection about the crease, so the folded drawing is the flat drawing superimposed on its own mirror image. It piles ink up instead of rearranging it: the map is many-to-one, and the inverse-view denoising behind visual anagrams no longer applies. Sparse strokes are what make such illusions legible: the strokes of two layers pass between each other where two folded photographs mix at every pixel. FoldSketch takes a prompt per reading and a set of creases and returns one SVG with the folds that reveal each reading. A composable fold operator acts on the strokes themselves, so any sequence of creases is one map applied in turn. Shared-stroke distillation lets every stroke be shaped by each reading it takes part in, reading balance shifts weight towards the weaker reading, and a crease loss keeps the two layers of a fold from drawing over each other. FoldScore rates a sheet by its worst reading, so that a sheet counts only if every reading works. On 50 pairs of concepts, FoldSketch scores higher than every vector sketch method we compare with and level with a raster illusion method that inks 54% of the sheet where FoldSketch inks 6%.

Results

One sketch, two readings

Eight FoldSketch sheets, each flat and folded: a butterfly and an hourglass, a face and a giraffe, a snowman and a fire hydrant, a pear and a guitar, an owl and a lighthouse, a spider and the Eiffel Tower, a t-shirt and a hammer, an elephant and a palm tree.
Each pair shows one sheet of vector strokes, flat and then folded. Flat, it reads as the first prompt. Folding its left half over the right one, as on tracing paper, turns it into the second. The dashed outline marks where the folded half lay.

New pairs

Beyond the 50 pairs of the paper, FoldSketch folds objects along either crease, famous people, characters and landmarks, and whole scenes. The horizontal fold lays the upper half over the lower one, so its folded concepts are wide and low, such as a helicopter or a tortoise.

FoldSketch sheets for new pairs: objects, vertical fold, each flat and folded.

The bands of a beehive become the tiers of a pagoda.

Orange arrow: the left half folds over the right oneBlue arrow: the upper half folds over the lower one

Each sheet has 128 strokes and ran for 5,000 steps. The dashed outline marks where the folded half lay. For display, strokes are drawn thicker, each view is cropped to 80% of the sheet and a few short strokes that lie apart from the rest are hidden.

Three readings

With 96 strokes, one sheet can hold three drawings: flat, folded along the vertical crease and folded along the horizontal one. Every stroke serves all three.

Two sheets with three readings each: an owl, a lighthouse and a car, and a face, a giraffe and a whale.
Two sheets of 96 strokes, each flat, folded along the vertical crease and folded along the horizontal one. The dashed outline marks where the folded half lay.

Folded by hand

We redrew two sheets by hand on transparent film with a permanent marker. Film keeps every layer in view, as FoldSketch assumes, and each sheet folds into its second drawing.

Two sheets of transparent film with a butterfly and a face drawn in marker.
Flat
The same two sheets, each half folded over.
Folding
Folded, the butterfly sheet shows an hourglass and the face sheet a giraffe.
Folded

Method

Overview of FoldSketch: strokes, a differentiable rasteriser, the flat and folded readings scored by a frozen diffusion model with noise-free score distillation, reading balance from CLIP and a crease loss.
Overview of FoldSketch. The strokes are rendered once per step, and the image is folded for each reading, with the resident strokes in black and the mirrored strokes in orange. Each reading is centred on a white square and scored against its prompt by a frozen diffusion model with noise-free score distillation, weighted by reading balance from CLIP, and a crease loss keeps the blurred layers of a fold apart. In shared-stroke distillation, the gradients of all readings meet in the shared control points. The sheet shown is a real result.
Composable fold operator
A fold clips every stroke at the crease and reflects the moving half onto the half that stays. Each reading is again a set of strokes, so it exports as SVG and can be folded again for the next crease.
Shared-stroke distillation
One set of strokes serves every reading. A stroke on the moving half gets gradients from the flat drawing where it lies and, mirrored back, from the folded drawing where the fold lays it.
Reading balance
Every 25 steps CLIP checks how well each reading reads and shifts weight towards the weaker one, so that one drawing does not take over the shared strokes.
Crease loss
Ink laid on ink adds nothing to a folded drawing. The crease loss keeps the two layers of a fold apart, so the halves lay their strokes side by side.
FoldScore
A sheet counts only if every reading works. FoldScore rates a sheet by its worst reading on CLIP, ImageReward and HPS.

Optimisation of one sheet

An owl sheet that folds into a lighthouse over 2,000 steps, with cross-attention maps for owl and lighthouse.
An owl that folds into a lighthouse, at the start, every 100 steps up to step 500 and every 500 steps after the dashed line. The first and third rows show the strokes flat and folded along the vertical crease. The second and fourth rows show the cross-attention of Stable Diffusion to “owl” and “lighthouse”. From step 100, “owl” attention peaks at the head, and from step 200 “lighthouse” attention runs along the tower.

Comparison

On 50 pairs of concepts, FoldSketch has the highest FoldScore among the vector sketch methods we compare with. It is level with Diffusion Illusions, a raster method that inks 54% of the sheet where FoldSketch inks 6%.

In a user study with 1,000 votes, raters preferred FoldSketch over every other sketch method in at least 64% of their comparisons, and over Nano Banana Pro in 75%.

Comparison on five pairs with Diffusion Illusions, Nano Banana Pro, CLIPasso, SketchDreamer, DiffSketcher, SketchAgent and three seeds of FoldSketch.
Five pairs, the flat concept above the arrow and the folded one below it, each sheet flat and folded, with three seeds of FoldSketch, which hides each half of the folded concept in the flat drawing.

BibTeX

@inproceedings{foldsketch,
  title     = {FoldSketch: Drawings That Unfold When Folded},
  author    = {Utintu, Chaitat and Basu, Arkaprabha and Dutta, Anjan and Song, Yi-Zhe},
  booktitle = {TODO},
  year      = {TODO}
}