Recognizing cuneiform signs is challenging: sign shapes vary across historical periods, scribal practices, and preservation conditions, while expert annotations are scarce. We study whether domain-specific self-supervised pretraining yields better cuneiform sign representations than generic natural-image pretraining. We pretrain a masked autoencoder, CuneiMAE, on over 900K unlabeled sign crops and compare it with ImageNet-pretrained MAE, CLIP, and DINOv2 on a 218-class sign recognition benchmark. CuneiMAE learns substantially stronger frozen representations (43.7% linear-probe accuracy vs. 25.2% for ImageNet-MAE), with gains over ImageNet-MAE on cross-period transfer. Under fine-tuning, CuneiMAE outperforms ImageNet-pretrained baselines on our internal benchmark, with the largest gains when labels are scarce (+20.4 pp over ImageNet-MAE with 1% of labels). On an external benchmark, CuneiMAE reaches 69.9% top-1 accuracy after fine-tuning, about 8 pp above the ResNet-18 baseline from prior work. Explicit structural priors, such as edge-guided masking and part bottlenecks, do not improve over standard masked reconstruction. Overall, domain-specific self-supervision shows strong performance on cuneiform recognition tasks, particularly when labels are limited.
Figures & tables
Figure 1: Overview of the self-supervised pretraining variants for cuneiform sign representation learning. During downstream evaluation, the MAE decoder is discarded and only the pretrained encoder is retained for feature extraction and downstream classification.
Figure 2: Qualitative comparison of spatial response maps on held-out cuneiform sign crops. From top to bottom, the rows show input crops, ImageNet-MAE heatmaps, and CuneiMAE heatmaps. Each heatmap is computed from the ℓ2 norms of the final transformer block’s patch tokens. The resulting 14×14 grid is bilinearly upsampled to 224×224 and min–max normalized separately for each crop and encoder.
Pretraining Strategy
Top-1 (%)
Top-5 (%)
Majority-class predictor
4.08
–
ImageNet-MAE
25.21
48.45
CLIP (ViT-B/16)
20.45
44.09
DINOv2 (ViT-B/14)
24.93
50.93
CuneiMAE
43.66
66.88
Table 1: Frozen linear probing on the 218-class test set. Best results in bold ; second-best underlined .
Variant
Top-1 (%)
Top-5 (%)
Edge Loss
31.32
55.98
Dual Target
29.72
53.71
Edge40 Masking
21.31
44.28
Edge75 Masking
31.86
56.62
Part Bottleneck ( K=8 )
24.56
48.84
CuneiMAE-10
34.74
59.06
Table 2: Comparison of structure-aware pretraining variants under frozen linear probing on the test split. Best results in bold ; second-best underlined . All models in this comparison were pretrained for 10 epochs.
%Train
ResNet-18
MAE
CuneiMAE
Δ Gain
1%
15.65
23.09
43.53
+20.44
25%
71.94
75.31
79.26
+3.95
50%
75.70
80.01
82.70
+2.69
75%
77.94
82.27
84.45
+2.18
100%
79.63
83.93
85.49
+1.56
Table 3: Supervised fine-tuning Top-1 test accuracy (%) across varying train set fractions (%Train; out of 105,872 total images). Reported gains ( Δ Gain; in pp) are with respect to ImageNet-MAE (MAE). ResNet-18 is pretrained on ImageNet. Best model results in bold ; second-best model underlined .
Backbone
k=1
k=5
k=10
k=15
k=20
ImageNet-MAE
6.07
6.91
7.79
8.03
8.35
CuneiMAE
13.74
14.83
16.29
16.88
16.99
Δ (pp)
+7.67
+7.92
+8.50
+8.85
+8.64
Table 4: Frozen k -NN classification Top-1 accuracy over varying neighborhoods k on the held-out test split (218 classes). Best results in bold .
Transfer Split
MAE
CuneiMAE
Δ (pp)
OB → MB
10.25
21.05
+10.80
MB → OB
10.71
17.79
+7.08
OB → NA
9.10
14.57
+5.47
NA → OB
9.72
12.97
+3.25
Table 5: Cross-period transfer Top-1 accuracy (%) under frozen linear probing. Training images are drawn from the source period (left-hand side of “Transfer Split”) and images being evaluated are drawn from the target period (right-hand side). MAE refers to ImageNet-MAE. Best results in bold .
Transfer Split
Majority
MAE
CuneiMAE
Δ (pp)
OB → MB
3.24
3.70
6.86
+3.16
MB → OB
2.21
3.40
7.52
+4.12
OB → NA
4.70
3.30
5.04
+1.74
NA → OB
5.76
3.97
6.17
+2.20
Table 6: Cross-period non-parametric k -NN evaluation ( k=10 ) Top-1 accuracy (%). Potential neighbor images are drawn from the source period (left-hand side of “Transfer Split”) and query images being evaluated are drawn from the target period (right-hand side). Majority predicts the most frequent source-period class for all queries. MAE refers to ImageNet-MAE; Δ is relative to MAE. Best results in bold .
Model / Setting
Acc.
Rare Acc.
Bal.
Rare Bal.
ResNet-18
CSDD
58.72
46.14
37.08
32.90
+SD-
62.99
52.66
40.86
37.04
+CN-
63.80
52.41
40.54
36.48
CuneiMAE (scratch)
CSDD
67.49
57.29
43.32
39.27
Table 7: Sign-classification performance on the reconstructed 187-class CSDD-derived test split (%) [ 13 ] without cropping. CSDD denotes training on real data only. SD- and CN- use synthetic samples from the released ProtoSnap diffusion and ControlNet models, respectively. Augmented runs use 8 epochs of training on real and synthetic data, followed by 10 epochs of fine-tuning on real data. Bal. denotes balanced accuracy. Bold marks the best result for each metric within each model block.
Model
Acc.
Rare Acc.
Bal.
Rare Bal.
ResNet-18
61.97
49.93
39.30
35.27
ViT-B/16 [ 15 ]
58.02
47.39
35.16
31.39
ImageNet-MAE [ 17 ]
56.54
44.65
33.35
29.19
CuneiMAE (scratch)
67.55
58.44
47.90
44.54
CuneiMAE (ImageNet init.)
69.87
60.78
51.82
48.60
Table 8: Sign-classification performance on the reconstructed 187-class CSDD-derived test split (%) after 90 epochs of end-to-end fine-tuning without synthetic augmentation. Checkpoints are selected on the validation split. Bal. denotes balanced accuracy. For each metric, the best result is in bold and the second-best is underlined .
Setting
Configuration
Pretraining
Batch / effective batch
64 / 256 (accumulation 4)
Mask ratio
0.75
LR / WD
1.5×10−4 / 0.05
Epochs / warm-up
100 / 5
Linear Probing
Table 9: Additional implementation and preprocessing details for the internal 218-class benchmark. LR=learning rate; WD=weight decay.
Setting
MAE (ViT-B/16)
ResNet-18
Initialization
CuneiMAE, ImageNet-MAE
ImageNet-1K
Optimizer
Adam
Adam
Epochs
100
100
Batch size
32 (effective 64)
64
Accumulation steps
2
–
Base LR / LR
1×10−4
5×10−4
Table 10: Label-efficiency fine-tuning settings on the internal 218-class benchmark. Both MAE models share identical settings and differ only in initialization.
Figure 3: Training and validation reconstruction losses for scratch- and ImageNet-initialized CuneiMAE. Curves end at their final logged epochs: index 99 (100 completed) and index 38 (39 completed), respectively.
Figure 4: Qualitative comparison of frozen nearest-neighbor retrieval using cosine similarity. Green borders indicate correct-class neighbors and red borders indicate mismatches.
Stage
Data
Synthetic
Total
Epochs
SD Stage 1
Real + SD
8,450
12,061
8
CN Stage 1
Real + CN
7,800
11,411
8
Stage 2
Real only
–
3,611
10
Validation
Real only
–
919
Every epoch
Final test
Real only
–
3,442
Once
Table 11: Two-stage synthetic-augmentation protocol on the reconstructed 187-class CSDD-derived benchmark.
Method / Setting
Acc.
Rare Acc.
Bal.
Rare Bal.
Panel A: Crop-and-flip preprocessing
ResNet-18
CSDD
33.99
20.41
13.53
9.31
+SD-
39.19
30.16
20.25
17.18
+CN-
42.24
28.52
19.51
15.26
CuneiMAE (pretrained 10 epochs)
Table 12: Preprocessing and pretraining-duration ablations on the reconstructed 187-class CSDD-derived test split (%). Panel A reports crop-and-flip results. Panel B reports direct-resizing results for CuneiMAE checkpoints pretrained for 10, and 27 epochs. Synthetic settings use 8 epochs of real+synthetic training followed by 10 epochs of fine-tuning on real data. SD- and CN- denote augmentation with samples generated using the released ProtoSnap diffusion and ControlNet models, respectively. Bal. is Balanced Accuracy. Bold indicates the best result within each model and setting group.
School of CS and Engineering, Vellore Institute of Technology, Vellore, India · Technology Innovation Hub, Indian Institute of Technology, India · College of Technology and Engineering, WestCliff University, USA +2