From Signs to Sequences: Compositional Synthesis for Cuneiform Recognition Across Periods and Collections

Tiantong Lu, Jerry Cheng, Adam G. AndersonarXiv 2026

TL;DR

Humanity’s oldest writing system sits on hundreds of thousands of digitized clay tablets that computers still struggle to read because we lack line-by-line training data. By stitching together isolated photos of cuneiform signs using existing text transcriptions as a blueprint—much like a ransom note—researchers generated 387,000 synthetic lines to pre-train modern sequence-recognition models. This simple compositional trick slashes recognition error rates by up to 52 percentage points, turning disconnected archival resources into a functional engine for reading ancient history.

What Problem Does This Paper Address?

Cuneiform—wedge-shaped impressions pressed into clay—was used across the ancient Near East for millennia. Today, massive repositories hold scans and 3D renderings of tens of thousands of tablets, alongside abundant machine-readable text transcriptions. Yet, automated reading (OCR) for cuneiform is stuck in a classic data bottleneck.

While we have plenty of cropped images of individual signs and plenty of unaligned text corpora, we have almost no paired data showing a full line image mapped to its exact sequence of signs. Training sequence recognizers from scratch on a tiny handful of fully annotated tablets fails miserably. The authors ask: can we bridge this gap by synthesizing our own line-level supervision from the parts we already have, and how well does that generalize across centuries of changing handwriting and different archaeological collections?

Methods

The core technique is compositional supervision—a two-stage training pipeline that separates learning what sequences look like from adapting to real tablet layouts.

Overview of the compositional synthesis and two-stage training pipeline
  • Stage-A (Compositional Pre-training): The authors take normalized sign sequences from an ancient text corpus (Ur III period) and, for each sign, randomly sample a real image crop from a visual dictionary of ~199,000 isolated glyphs (using geometric and photometric augmentations for rare signs). They normalize the heights to 64 pixels and stitch them left-to-right into a synthetic line image.
  • Three Recognition Paradigms: They pre-train three standard sequence architectures on 387,315 of these synthetic lines: two Connectionist Temporal Classification (CTC) models that align visual features to text without needing character boundaries (CRNN and an SVTRv2-inspired vision transformer variant, SVTRv2), and a 0.9B-parameter autoregressive vision-language model (PaddleOCR-VL*) tuned via LoRA.
  • Stage-B (Target Adaptation): Next, they fine-tune the models on a small budget (25 or 100) of real, ground-truth annotated tablets.
  • Modular Whole-Side Pipeline: To read full, unannotated tablet sides automatically, they build an end-to-end system combining a YOLO26n sign detector, a DeiT3 isolated-sign classifier, geometric line-grouping rules, a 6-gram language model, and their Stage-A SVTRv2* model acting as a sequence-level verifier.

Datasets

Rather than minting a brand-new dataset from scratch, the authors cleverly weave together existing Assyriological collections—while establishing strict text-disjoint splits and a "no shared 4-gram" audit to prevent ancient administrative boilerplate from leaking into test evaluations:

  • Stage-A Synthesis Sources: Sign sequences come from CDLI (Cuneiform Digital Library Initiative) Ur III texts; real isolated sign crops come from the eBL (Electronic Babylonian Library) and Old Babylonian sign datasets.
  • MaiCuBeDa (Hilprecht Collection): 3D tablet renderings with sign and line annotations, used for Stage-B adaptation (Ur III period), in-period testing (100 tablets), and cross-period testing (192 tablets spanning six other historical periods, up to ~500 years apart).
  • MaiCuBeDa-HT (Haft Tappeh): Middle-Elamite Akkadian tablets (305 tablets) from a different site, language, scribal tradition, and annotation campaign, testing cross-collection transfer.
  • HeiCuBeDa: 34 source-disjoint Ur III tablet sides used to test the end-to-end automatic pipeline.

Key Insights and Ideas

  • It’s the multi-sign canvas, not the ancient grammar, doing the heavy lifting. Why does stitching signs help so much? Controlled ablations within SVTRv2 revealed a surprise: pre-training on randomly shuffled* multi-sign lines cut Sign Error Rate (SER) by 23–46 percentage points compared to training on the exact same signs one by one. Preserving real historical word order only shaved off an extra 1–4.6 points. Teaching the CTC decoder to handle multiple signs side-by-side on a shared canvas matters far more than implicitly learning language statistics.
Training-format contrasts showing huge gains from multi-sign lines over single signs, and modest gains from attested sign order
  • Synthetic stitches transfer to messy, real-world cuts. Even though Stage-A lines are artificial left-to-right concatenations, the learned representations transfer directly to natural line rectangles cut straight from 3D tablet renderings (without clean per-sign cropping), dropping in-period SER from a nearly unusable 89.2% down to 52.8%.
  • Local adaptation is period-selfish. Fine-tuning on 100 Ur III tablets improves Ur III recognition by 12–15 percentage points, but barely budges cross-period or cross-collection accuracy. Almost all off-domain generalization comes from Stage-A pre-training.
  • Per-sign classifiers and sequence models are better together. When given perfect ground-truth sign boxes, a strong isolated-sign classifier (DeiT3) actually beats SVTRv2 on out-of-domain tablets. However, using the compositionally pre-trained SVTRv2 to rescore DeiT3’s candidates beats either model alone across every single evaluation set—while running ~12x faster on CPU than DeiT3 alone.

Key Results

Error is measured via Sign Error Rate (SER, lower is better)—the token-level edit distance between predicted and true sign names across a closed vocabulary of 749 labels.

  • Massive Pre-training Gains: With oracle sign locations and 100 adaptation tablets, models achieve 17.9%–24.8% SER in-period (PaddleOCR-VL best at 17.9%). Removing Stage-A synthetic pre-training spikes SER by 24 to 52 percentage points across all models and domains—even for PaddleOCR-VL despite its strong pre-trained VLM weights.
  • Domain Shift Remains Steep: With Stage-A + 100 Ur III tablets, SER rises to 38.4%–41.9% on cross-period tablets and 66.1%–73.6% on the cross-collection Haft Tappeh set.
  • Whole-Tablet End-to-End Reading: On complete tablet sides without ground-truth boxes, the full modular pipeline achieves 38.05% SER on in-period tablets (versus 68.92% for the best original geometric baseline) and 46.49% SER on completely source-disjoint HeiCuBeDa tablets.

Limitations and Future Work

The authors are admirably transparent about what remains unsolved:

  • Closed-Vocabulary Blind Spots: The system uses a fixed 749-sign inventory and drops bare numeral notations. On the cross-collection Haft Tappeh set, 18.5% of signs fall outside this vocabulary and are excluded from oracle scoring—meaning true full-text transcription error is higher.
  • 3D Rendering Uniformity: Primary evaluations rely on Multi-Scale Integral Invariant (MSII) 3D renderings; generalizing to raw museum photographs with harsh lighting and shadows remains open.
  • Cross-Tradition Transfer: Moving across centuries, languages, and scribal schools (like Ur III Sumerian to Middle-Elamite Akkadian) still results in high error rates (>66% SER), pointing to a need for broader multi-period dictionaries and open-vocabulary modeling.

Summary updated

BibTeX
@misc{lu2026from,
  author = {Tiantong Lu and Jerry Cheng and Adam G. Anderson},
  title = {{From Signs to Sequences: Compositional Synthesis for Cuneiform Recognition Across Periods and Collections}},
  year = {2026},
  eprint = {2611.35319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35319},
}
Figure