Learning from the Philologist's Corrections: Sequential Adaptation for Stone-Sutra Restoration

Automated restoration of damaged historical documents now works well enough that the expensive part is no longer the machine but the human. On the Fangshan Stone Sutras, a three-stage system that finds damage, predicts the missing text and repaints the page raises character accuracy from 46.83% with standard OCR to 84.05% on its own. With a philologist editing its guesses, accuracy exceeds 94% (AutoHDR). The remaining ten points therefore cost scarce expert hours on every page. The model never learns from those corrections, so the same mistake is fixed by hand on page one and again on page one thousand.

We propose to turn expert corrections into training data, adapting the text-prediction model step by step as an archive is worked through batch by batch. This is a sequential domain adaptation problem: adapting a model through an ordered series of training stages rather than one jump. Two risks come with it. Each new batch, perhaps a different sutra, carving period or damage regime, can make the model forget what it learned on earlier batches. A few hundred corrected pages can also be swamped if they are simply mixed into a large general corpus. Our question is concrete. Can a staged adaptation schedule, which narrows from general Classical Chinese to Buddhist text to synthetic damage and finally to accumulated expert corrections, reduce the number of characters a philologist must fix to reach a fixed accuracy, without losing accuracy on earlier batches?

Core Claim

The measure of success should be manual effort per page, not a one-shot accuracy number, and staged adaptation should be evaluated in a streaming deployment rather than on a static split. We expect a correction-fed, staged model to need clearly fewer expert edits per page than a static model as the archive is processed, while costing less compute than retraining from a pooled dataset at every round. We also make a narrower prediction. The gain should come mainly from pages without a known canonical parallel, such as variant readings, colophons and carving idiosyncrasies. For canonical passages, plain retrieval of the matching scripture may already suffice.

Relation to Prior Work

The restoration work motivates the gap. AutoHDR chains damage localization, a fine-tuned Qwen2 language model that predicts missing characters, and a diffusion model that repaints the page. It fine-tunes once on its target data and uses human edits only at inference. DiffHDR repairs document images with a diffusion model but needs the content and the damage mask supplied from outside. DiffACR restores isolated character crops from rubbings without page or linguistic context. Fetaya et al. fill cuneiform gaps with a masked recurrent language model. All four are trained once and frozen. None treats the expert as a source of labels that arrive over time. We restrict ourselves to the text-prediction component, because that is where the philologist's edits land and where AutoHDR reports failures under heavy context loss.

The sequential adaptation literature supplies the method and also limits it. Don't Stop Pretraining shows that continued pretraining on domain text and then on task text beats either alone. Its kNN-TAPT variant retrieves task-like sentences from a broad corpus by embedding similarity, and we reuse it to carve a Buddhist-register intermediate corpus out of broad Classical Chinese. MoZi and TALLRec stage general instruction tuning before narrow domain tuning to protect instruction following, the latter with low-rank adapters (small trainable weight matrices added to a frozen model). We borrow that staging. PathologyVLM finds that curated domain data beats raw volume. That is why we filter the intermediate corpus rather than enlarge it.

The most important constraint is Sajjad et al.. Their result has two halves. Stacked stages must run from the domain least like the target to the domain most like it. But the best system they found was not a long stack: it trained on all data concatenated and then fine-tuned on the target. A many-stage curriculum is therefore not presumed better. Pooled-then-fine-tune is our headline competitor. Our proposal departs from all of these papers in one way: the "target domain" grows during deployment, so the comparison is about cost and forgetting over a stream, not a single final score. MPRNet stages computation inside one restoration network trained on a single domain. Despite the shared word "stage", it addresses a different question.

Research Program

We first build a streaming protocol on FPHDR. The dataset has 1,633 annotated real rubbings and 6,543 synthetic pairs, with character boxes, transcriptions and damage-severity grades. We partition the real pages into an ordered sequence of batches. Where page metadata allows, batches follow sutra or carving period, since the collection spans Sui to Ming. Otherwise they follow clusters of visual style. If neither grouping turns out to be meaningful, we fall back to severity grade, and we will report which grouping was used.

A simulated philologist corrects the model's predicted characters in order of increasing model confidence, using the ground-truth transcription, until the page reaches a target accuracy. The headline metric is the number of corrections required. This simulation is an approximation. We will validate it on a small sample with a real expert, checking whether the confidence ordering matches where experts actually look.

The model is a Qwen2 language model of the size AutoHDR used, adapted with low-rank adapters through four stages. The first is continued pretraining on broad Classical Chinese. The second is a kNN-TAPT-selected Buddhist-register subset. The third is masked-character prediction on FPHDR's synthetic damage pairs. The fourth is the stream: after each batch, the corrected pages are added and the adapters are updated briefly on the new pages plus a small replay buffer of earlier corrections.

We will analyze forgetting by measuring, after every batch, accuracy on all earlier batches. We will also analyze where gains concentrate, stratifying pages by damage severity and by whether a canonical parallel exists.

Baselines

The naive reference is a static model. It is our reimplementation of AutoHDR's content predictor, fine-tuned once on FPHDR's synthetic pairs and the first batch, then frozen and corrected page by page. For context we quote the reported AutoHDR autonomous accuracy of 84.05% and the human-assisted figure of more than 94% on FPHDR (AutoHDR). We also report our own reproduction, because the comparison must use identical localization inputs. Beating this baseline means fewer cumulative corrections over the stream at matched final accuracy.

The strongest competitor is pooled retraining, following the best recipe in Sajjad et al., which reports 35.1 and 35.5 BLEU on Arabic-English and German-English TED with concatenation followed by target fine-tuning. Here that means mixing broad Classical Chinese, the Buddhist subset, the synthetic pairs and all corrections collected so far, then fine-tuning on the corrections. It is retrained from the base at every batch, with the same base model, adapter rank and hyperparameter search budget as our method. Because it sees everything at every round, it is the natural ceiling on accuracy. Beating it means matching its correction count within noise at a fraction of its cumulative compute. Clearly fewer corrections would be a strong win.

Three ablations isolate the key ingredients. The first removes the staged prefix and goes from the base model directly to the stream. The second removes replay. The third reverses the order of stages one and two, which tests the furthest-to-closest rule in this modality.

Why not just…?

Why not just pool everything and fine-tune once per batch? This is a real threat. Sajjad et al. found exactly this recipe to be the strongest. We do not argue it away; it is the main baseline. If it ties our method on corrections, the honest conclusion is that staging buys compute savings, not accuracy. We will report it that way.

Why not just retrieve the canonical sutra text and copy it into the gaps? The Fangshan carvings are largely copies of known scriptures, so aligning a damaged line to a digitized canonical edition could fill lacunae better than any adapted model. This is also a real threat. We will add retrieval-then-align as a baseline and as a component of every system. We will then evaluate separately on pages with and without a confident canonical match. Our claim survives only if adaptation clearly helps on the second group, or on variant characters within the first.

Why not just prompt a frontier vision-language model with a few corrected examples? The file gives indirect evidence that general models trail domain-adapted ones. On unseen pathology data PathologyVLM scores 62.98% against GPT-4o's 58.00% (PathologyVLM), and GPT-3.5 falls below 60% on intellectual-property questions (MoZi). Neither result concerns rubbings, so we will run an in-context baseline that places the most recent corrected pages in the prompt. Its results are what will settle the question.

Proposed Experiments and Decisive Checks

The main experiment runs every system through the same FPHDR stream over three batch orderings, chosen by period, cluster and random, with several seeds. We report three things: cumulative and per-batch corrections needed to reach the 94% level that AutoHDR attains with human help; autonomous character accuracy; and accuracy on earlier batches after the final batch. A secondary check on HDR28K's synthetic degradations tests whether the third stage's damage pretraining transfers. For context, DiffHDR reports 81.9% recognition accuracy there, though that number is for appearance repair given known content and is not directly comparable to our task.

The proposal is decisively supported if three things hold together. Correction counts per page fall over the stream faster for our method than for the static model. Our method stays close to pooled retraining at much lower compute. And earlier-batch accuracy degrades by no more than replay-free fine-tuning would predict. It is refuted if pooled retraining or canonical retrieval account for the entire gain.