Camera-captured documents often exhibit mixed degradations, such as highlights, shadows, and blur, that distort backgrounds and obscure text details. Document appearance enhancement (DAE) aims to mitigate these degradations and improve readability. Existing document appearance enhancement methods rely either on input-derived visual cues that can become unreliable under severe degradation or on LLM-based degradation diagnosis that lacks spatial guidance. Notably, we find that pretrained document visual encoders continue to attend to text regions in degraded documents, providing content-aware guidance. Based on this insight, we propose DocPristine, which adaptively fuses multi-layer features from a frozen document visual encoder and injects them into a pixel restoration network. To integrate these features into a pixel restoration network, DocPristine combines Adaptive Multi-Layer Feature Fusion (AMFF), Hierarchical Gated Conditioning (HGC), and Shifted-Window Cross-Attention (SWCA). Specifically, SWCA draws on structural cues from neighboring locations across window boundaries to recover fine text details.We also introduce DocACE, with a synthetic mixed-degradation training set (DocACE-Synthetic) and a real-world test set (DocACE-Real) containing manually restored ground-truth images and document parsing annotations. Comprehensive experiments across three benchmarks demonstrate that DocPristine achieves state-of-the-art appearance enhancement quality and consistently improves downstream document parsing. Code, models, and data will be publicly available.
Figure 2: Visualization of attention maps from different visual encoders on clean and degraded document images.
Figure 3: Overall architecture and key components of DocPristine, which integrates features from a document-adapted visual encoder into the restoration backbone through Adaptive Multi-Layer Feature Fusion (AMFF), Hierarchical Gated Conditioning (HGC), and Shifted-Window Cross-Attention (SWCA).
Figure 4: Overview of DocACE-Synthetic Generation Pipeline and DocACE-Real Construction Pipeline.
Benchmark
PDF-like Target
Real Captures
Mixed Degradations
OCR Metrics
DocUNet [ 25 ]
✓
✓
×
×
RealDAE [ 36 ]
✓
✓
×
×
MixedDoc [ 19 ]
×
×
✓
✓
DocACE-Real (Ours)
✓
✓
✓
✓
Table 1: Comparison of document appearance enhancement benchmarks in terms of PDF-like restoration target, real-world captures, mixed degradations, and OCR evaluation.
Method
Venue
DocUNet [ 25 ]
RealDAE [ 36 ]
DocACE-Real
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
TxE ↓
FCM ↑
TDS ↑
OCROverall↑
Input
–
13.09
0.7195
12.26
0.8264
7.05
0.4872
0.2329
78.21
80.92
78.61
GT
–
–
–
–
–
–
–
0.1148
85.20
86.95
86.89
DocProj [ 20 ]
TOG’19
14.71
0.7098
19.35
0.8684
8.24
0.4725
0.4415
47.61
47.26
50.24
DocIIW [ 9 ]
BMVC’20
16.42
0.7276
19.87
0.8633
17.68
0.8026
0.1509
78.35
80.73
81.33
DocTr [ 11 ]
MM’21
15.78
0.7067
18.62
0.7925
15.26
0.5488
0.1741
74.85
75.64
77.69
Table 2: Quantitative comparison of document appearance enhancement methods on DocUNet, RealDAE, and DocACE-Real. The best results are in bold , and second-best results are underlined .
Visual Encoder
Params (B)
DocUNet [ 25 ]
RealDAE [ 36 ]
DocACE-Real
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
OCROverall↑
None
–
17.27
0.7725
23.22
0.9181
19.31
0.8482
81.59
DINOv3-L [ 30 ]
0.3
17.57
0.7734
23.12
0.9173
20.75
0.8851
82.13
Qwen3.5-4B ViT [ 29 ]
0.3
17.58
0.7690
23.94
0.9260
21.26
0.8856
82.06
WeVisDoc-4B ViT [ 34 ]
0.3
17.88
0.7826
24.64
0.9418
21.22
0.9045
83.06
MonkeyOCRv2-B [ 24 ]
0.1
18.24
0.8032
25.01
0.9499
21.86
0.9140
83.66
Table 3: Comparison of visual encoders for appearance enhancement guidance. The best results are in bold , and the second-best results are underlined .
HGC
SWCA
DocUNet [ 25 ]
RealDAE [ 36 ]
DocACE-Real
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
OCROverall↑
×
×
17.27
0.7725
23.22
0.9181
19.31
0.8482
81.59
✓
×
17.39
0.7850
24.20
0.9215
20.63
0.8892
82.66
×
✓
17.92
0.7994
24.89
0.9462
21.35
0.9033
83.09
✓
✓
18.24
0.8032
25.01
0.9499
21.86
0.9140
83.66
Table 4: Ablation of HGC and SWCA. Green checkmarks and red crosses indicate enabled and disabled components. OCROverall is the downstream document parsing score on DocACE-Real. The best results are in bold , and the second-best results are underlined .
f3
f6
f9
f12
DocUNet [ 25 ]
RealDAE [ 36 ]
DocACE-Real
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
PSNR ↑
SSIM ↑
OCROverall↑
×
×
×
×
17.27
0.7725
23.22
0.9181
19.31
0.8482
81.59
✓
×
×
×
18.29
0.8017
25.20
0.9529
21.30
0.9007
82.27
×
✓
×
×
18.16
0.8024
24.96
0.9515
21.43
0.9084
82.59
×
×
✓
×
18.18
0.8033
24.97
0.9496
21.74
0.9101
83.18
×
×
×
✓
18.17
0.8030
24.92
0.9476
21.85
0.9094
83.52
Table 5: Ablation of feature layer selection. Zero, one, and four checkmarks indicate the baseline without feature injection, single-layer guidance, and adaptive fusion of all four layers, respectively.
Figure 5: Comparison of results on DocACE-Real. Zoom in for a closer inspection of the appearance enhancement details.
College of Computer Science and Artificial Intelligence, Wenzhou University, Wenzhou, China · AI Analytics Team, Nasdaq, St. John's, Canada · vivo Mobile Communication Co., Ltd, Shanghai, China +1