Domain-Specific Self-Supervised Learning for Cuneiform Sign Representation
Organizations: Ludwig-Maximilians-Universität München · Munich Center for Machine Learning (MCML) · University of Miami · Ariel University
Abstract
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
| 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 |
| Variant | Top-1 (%) | Top-5 (%) |
|---|---|---|
| Edge Loss | ||
| Dual Target | ||
| Edge40 Masking | ||
| Edge75 Masking | ||
| Part Bottleneck ( ) | ||
| CuneiMAE-10 |
| %Train | ResNet-18 | MAE | CuneiMAE | Gain |
|---|---|---|---|---|
| 1% | +20.44 | |||
| 25% | +3.95 | |||
| 50% | +2.69 | |||
| 75% | +2.18 | |||
| 100% | +1.56 |
| Backbone | |||||
|---|---|---|---|---|---|
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Setting | Configuration |
|---|---|
| Pretraining | |
| Batch / effective batch | 64 / 256 (accumulation 4) |
| Mask ratio | 0.75 |
| LR / WD | / 0.05 |
| Epochs / warm-up | 100 / 5 |
| Linear Probing | |
| 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 |
| 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 |
| 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 | |||
| +CN- | 28.52 | 19.51 | 15.26 | |
| CuneiMAE (pretrained 10 epochs) | ||||
Self-Supervised Visual Representation Learning
Self-supervised visual representation learning trains image, video, and 3D encoders on unlabeled data to produce transferable visual features.
See all 265 papers