From Restoration to Redrawing: Revitalizing Ancient Chinese Characters by SVG Code Generation and Editing
Authors: Weiguang Zhang, Linhua Dong, Bin Dong, Shanshan Jiang, Maizhen Ning, Xiaoqiang Kang, Kun Zhang, Hao Xu, Xiaowei Huang, Wei Wang, Kaizhu Huang, Qiufeng Wang
Organizations: University of Liverpool · Xi’an Jiaotong-Liverpool University · Ricoh Software Research Center Beijing Co., Ltd. · Tencent · Duke Kunshan University
Hanjian manuscripts written on Han Dynasty bamboo and wooden slips are invaluable heritage of ancient Chinese writing but suffer from damaged ink and incomplete strokes. Existing image-to-image restoration methods may alter observed strokes and offer limited control over stroke geometry. Inspired by experts' manual redrawing practices, we address these issues by introducing ReDraw, a two-stage vision-language model(VLM) that reformulates character restoration as Scalable Vector Graphics(SVG) code generation and editing. Stage one targets faithful vectorization of observed strokes geometry or conservative tracing of mildly degraded strokes. Guided by skeleton chain-of-thought reasoning and reinforcement learning with structure-aware rewards, stage two predicts skeletons before contours to redraw severely incomplete strokes by appending paths while keeping existing SVG paths unchanged. To support training, we develop a multi-layer data synthesis pipeline that disentangles ink, material, and degradation to generate 1.2M samples, and derive up to 6,400 adaptation pairs from 320 annotated real glyphs. Experiments demonstrate synthetic restoration performance and adaptability to real Hanjian glyphs. Code and demo will be available upon acceptance.
Figures & tables
Figure 1: Comparison on ancient Chinese character restoration paradigms. Image-to-image restoration models (a) and general-purpose VLMs (b) may alter observed strokes or fail to restore severely incomplete strokes. ReDraw (c) generates SVGs through faithful vectorization or conservative tracing, then redraws incomplete strokes through skeleton-guided editing that appends paths while keeping existing SVG paths unchanged.
Figure 2: The pipeline of multi-layer data synthesis. Ink, degradation, and material layers produce degraded observations with paired SVG labels for three subtasks: faithful vectorization, conservative tracing, and skeleton-guided stroke completion.
Figure 3: Overview of ReDraw. A shared VLM generates SVGs for faithful vectorization or conservative tracing first, and then predicts interleaved skeleton–contour paths for stroke completion, appending only contours while preserving existing paths.
Method
Avg. Efficiency
Restoring ’old’ as ’old’
Restoring ’old’ as ’new’
Restoring ’new’ as ’full’
Time/s
Tokens
SSIM ↑
LPIPS ↓
MSE ↓
SSIM ↑
LPIPS ↓
MSE ↓
SSIM ↑
LPIPS ↓
MSE ↓
General-purpose VLMs
GPT-6 Astra [ 36 ]
50.3
2169
0.8546
0.1768
0.0334
0.8814
0.1072
0.0247
0.8983
0.1396
0.0456
Claude Opus 5.5 [ 1 ]
16.6
1305
0.6737
0.5651
0.1482
0.8155
0.1823
0.0558
0.8413
0.2125
0.0751
DeepSeek-V4.1-Flash [ 9 ]
34.0
3643
0.7241
0.3697
0.1059
0.7260
0.3248
0.1151
0.8958
0.1677
0.0579
Kimi K3 [ 34 ]
58.1
1054
0.7256
0.3985
0.1070
0.7036
0.3398
0.1288
0.8897
0.1671
0.0565
Table 1: Comparison of current vectorization models and our ReDraw on 600 synthetic test samples. Time and token counts are measured only for O2O. Best and second-best performance are marked in bold and underlined, respectively.
Figure 4: Qualitative comparison on synthetic character restoration. These examples compare image-to-image baselines with ReDraw’s completed results and clean references (GT). ReDraw restore incompleted stroke segments while retaining observed strokes.
Method
Venue
SSIM ↑
LPIPS ↓
MSE ↓
SwinIR [ 25 ]
ICCVW’21
0.8458
0.1747
0.04781
Uformer-B [ 54 ]
CVPR’22
0.8375
0.1438
0.03580
CharFormer [ 45 ]
ACM MM’22
0.8033
0.2145
0.05164
PromptIR [ 38 ]
NeurIPS’23
0.8707
0.1321
0.03224
DocDiff [ 61 ]
ACM MM’23
0.6260
0.3771
0.17152
DocRes [ 64 ]
CVPR’24
0.8732
0.1367
0.02813
Table 2: Comparison with Image-to-image restoration on the synthetic test set. All methods use the same degraded inputs and clean, complete character references. Best and second-best performance are marked in bold and underlined, respectively.
Figure 5: Qualitative results of synthetic-to-real adaptation on unseen character glyphs. Black denotes observed stroke ink, green represents correctly completed regions (missing strokes in GT), red represents incorrect additions, and blue shows missed regions. As the number of shots increases, the green areas gradually expand, while the red and blue areas gradually decrease.
Setting
Seen glyphs
Unseen glyphs
SSIM ↑
LPIPS ↓
MSE ↓
SSIM ↑
LPIPS ↓
MSE ↓
0-shot
—
—
—
0.9508
0.0642
0.02387
1-shot
0.9769
0.0330
0.01032
0.9721
0.0389
0.01042
2-shot
0.9779
0.0349
0.00802
0.9767
0.0311
0.00933
3-shot
0.9810
0.0283
0.00664
0.9760
0.0274
0.00783
4-shot
0.9812
0.0261
0.00717
—
—
—
Table 3: Synthetic-to-real adaptation: Seen/unseen refer to glyphs within the same characters; their subsets vary with k . The 0-shot row covers all 80 character classes(correspond to 320 real glyphs).
Figure 6: Quantitative comparison of SFT and GRPO. Error bars indicate the standard error of the mean (SEM).
Pipeline Setting
SSIM ↑
LPIPS ↓
MSE ↓
Single-stage complement
0.8916
0.1210
0.04153
Two-stage complement
0.9055
0.1120
0.03881
Table 4: Ablation of stage decomposition for character restoration. Single-stage redrawing directly generates the complete SVG; two-stage redrawing uses the full O2N–N2F pipeline.
Figure 7: Qualitative comparison of SFT and GRPO. Both variants receive model-predicted O2N partial SVGs as input. The model trained by GRPO can output cleaner and more compliant SVG code for stroke complement.
Full-page blind restoration of historical Manchu manuscripts is challenging due to scarce annotations, unknown degradation regions, and fragile connected strokes. Generic restoration models may improve visual quality but often modify intact content, leading to over-restoration. We propose SAGE-Restore (Stroke-Aware Gated rEstoration), a selective restoration framework that first assesses where restoration is needed and then uses this assessment to guide restoration candidate generation and pixel-level selection. Its encoder predicts patch-level repair probabilities from complementary appearance and stroke-structural cues to condition restoration candidate generation, while the corresponding repair logits are refined into a pixel-level soft gate that selectively controls where the restoration candidate is applied. We further introduce a fidelity-aware evaluation protocol that jointly measures degraded-region recovery, intact-content preservation, and their balance. SAGE-Restore achieves the highest R-Recovery (0.463) and RFS (0.626), while maintaining high U-Fidelity (0.968), demonstrating an effective balance between restoration and content preservation.
Mingqiu Liang, Dongdong Wang, Siyang Lu +2
School of Computer Science and Technology, Beijing Jiaotong University, Beijing, China · College of Design, Construction, and Planning, University of Florida, Gainesville, FL, USA · School of Japanese Studies, Dalian University of Foreign Languages, Dalian, China
Historical Manchu documents preserve invaluable linguistic and cultural heritage, yet their digitization is hindered by severe degradations and the scarcity of paired training data. Existing document restoration methods primarily optimize pixel-level reconstruction, which can produce visually plausible results while failing to preserve the structural identity of Manchu glyphs. To address this limitation, we propose a retrieval-guided glyph-aware restoration framework that goes beyond pixel reconstruction by explicitly incorporating glyph-level structural knowledge. Our method retrieves relevant glyph exemplars to provide structural guidance during restoration and integrates this information into the reconstruction process, improving the recovery of degraded character structures under low-resource conditions. Extensive experiments on Manchu historical documents demonstrate that the proposed approach improves both image restoration quality and glyph-level fidelity compared with existing restoration methods. These results highlight the importance of incorporating character-aware structural priors for reliable restoration of low-resource historical documents.
Ting Huang, Dongdong Wang, Mingqiu Liang +1
School of Computer Science and Technology, Beijing Jiaotong University, Beijing, China · College of Design, Construction, and Planning, University of Florida, Gainesville, FL, USA
Ancient inscriptions frequently suffer missing or corrupted regions from fragmentation, erosion, or other damage, hindering reading, and analysis. We review prior image restoration methods and their applicability to inscription image recovery, then introduce MESA (Multi-Exemplar, Style-Aware) -an image-level restoration method that uses well-preserved exemplar inscriptions (from the same epigraphic monument, material, or similar letterforms) to guide reconstruction of damaged text. MESA encodes VGG19 convolutional features as Gram matrices to capture exemplar texture, style, and stroke structure; for each neural network layer it selects the exemplar minimizing Mean-Squared Displacement (MSD) to the damaged input. Layer-wise contribution weights are derived from Optical Character Recognition-estimated character widths in the exemplar set to bias filters toward scales matching letter geometry, and a training mask preserves intact regions so synthesis is restricted to damaged areas. We also summarize prior network architectures and exemplar and single-image synthesis, inpainting, and Generative Adversarial Network (GAN) approaches, highlighting limitations that MESA addresses. Comparative experiments demonstrate the advantages of MESA. Finally, we provide a practical roadmap for choosing restoration strategies given available exemplars and metadata.
Vasileios Toulatzis, Sofia Theodoridou, Ioannis Fudos