SVG code generation restores damaged ancient Chinese characters
Headline and summary by local AI
A new vision-language model called ReDraw restores damaged Han Dynasty characters by generating and editing Scalable Vector Graphics (SVG) code.
Researchers developed the system to improve upon existing image-to-image restoration methods, which often alter original stroke geometry or lack precise control. The ReDraw model functions in two stages to mimic how experts manually redraw ancient scripts. The first stage creates faithful vector paths from observed strokes or traces mildly degraded ones.
The second stage uses skeleton chain-of-thought reasoning and reinforcement learning to predict the structure of a character before it draws the contours. This allows the system to append new paths to severely incomplete strokes without changing the existing parts of the character. To train the model, the team built a multi-layer data synthesis pipeline that separates ink, material, and degradation effects. This process created 1.2 million samples and produced up to 6,400 adaptation pairs from 320 annotated real glyphs.
The system successfully restored synthetic data and demonstrated adaptability when applied to real Hanjian manuscripts, which are ancient Chinese texts written on bamboo or wooden slips.
Selected and summarized by local AI How we work
