Contrastive Attention Networks for Attribution of Early Modern Print

Nikolai Vogler, Kartik Goyal, Kishore Pv Reddy, Elizaveta Pertseva, Samuel V. Lemley, Christopher N. Warren, Max G'Sell, Taylor Berg-Kirkpatrick

Introduction

In the Early Modern period (c. 1500–1800), the printing press was a site of significant political and religious tension. To evade harsh censorship laws, approximately 25% of books were published anonymously or with false imprints. For centuries, historians have relied on "analytical bibliography" to identify these clandestine printers. This forensic method involves searching for "damaged type"—individual pieces of metal letter-forms that developed unique physical defects, such as bends, fractures, or chips, over time. When the same uniquely damaged character appears in two different books, it serves as a "smoking gun" linking them to the same printing house.

However, manual forensic analysis is an immense undertaking, requiring scholars to sift through millions of characters across tens of thousands of volumes. This paper introduces Contrastive Attention-based Metric Learning (CAML), a deep learning approach designed to automate and scale this process by identifying these microscopic "fingerprints" in digitized historical archives.

The Challenge: Signal vs. Noise

Computational approaches to type attribution face a significant hurdle: the "noise" of the printing process. Variations in paper quality, inking levels (over-inking or under-inking), and scanning artifacts often drown out the subtle structural deviations that signal actual physical damage to the metal type. Standard computer vision models typically focus on the general shape of a letter (the font style) rather than the microscopic cracks that identify a specific piece of metal.

The CAML Architecture

To overcome these challenges, the researchers developed the CAML framework, which incorporates three key innovations:

  • Template Feature-Map Residuals: To force the model to ignore the standard geometry of a letter, the system subtracts a grayscale "template" (an average of undamaged characters) from the input images. This isolates the residuals, highlighting the specific areas where damage is likely to reside.
  • Contrastive Attention Mechanism: Unlike standard models that process images in isolation, CAML utilizes a joint attention mechanism. It compares pairs of images simultaneously, learning to "attend" to specific spatial locations where local deformations match between two samples.
  • Paired Damage Synthesis: Because labeled datasets of matching damaged type are extremely rare, the team created a sophisticated data augmentation pipeline. They applied synthetic "bends" (via Bezier curves) and "fractures" (via local erosion/dilation) to clean historical scans. This allowed the model to learn the characteristics of physical damage using a massive, supervised synthetic training set.

Experimental Results and Historical Validation

The model was evaluated using several specialized datasets, including a validation set from John Milton’s Areopagitica and a test set of ornaments from Thomas Hobbes’s Leviathan.

Key Performance Metrics

On the Leviathan Ornaments test set, CAML achieved a Recall@5 of approximately 56-58%. This represents a significant improvement over standard Image L2 distance and Triplet Embedding baselines, outperforming them by 15–18 percentage points. Crucially, visualization of the model’s attention maps confirmed that the network focuses on the same fractures and bends that human experts use for identification.

Real-World Deployment

In a deployment study involving over 500,000 type-imprint images from 138 different 17th-century books, the model was used to rank candidates for the anonymous printer of Leviathan. An expert bibliographer reviewing the top-10 results identified high-confidence matches pointing to the printer John Richardson. This result provides computational evidence for recent historical theories that previously required years of manual labor to investigate.

Limitations and Future Directions

While CAML demonstrates the power of synthetic-to-real generalization, several challenges remain:

  • Alignment and OCR: The model is sensitive to the initial alignment of characters. Errors in OCR segmentation or rotation can degrade matching accuracy.
  • Progressive Damage: Metal type wears down over time; a small crack in an early printing may become a major break in a later one. Future work aims to track this "evolutionary" damage.
  • Scaling: The ultimate goal is to scale this system to the hundreds of thousands of works in archives like Early English Books Online (EEBO), providing a comprehensive map of the clandestine printing trade in the Early Modern world.

Summary updated

BibTeX
@inproceedings{vogler2023contrastive,
  author = {Nikolai Vogler and Kartik Goyal and Kishore PV Reddy and Elizaveta Pertseva and Samuel V. Lemley and Christopher N. Warren and Max G'Sell and Taylor Berg-Kirkpatrick},
  title = {{Contrastive Attention Networks for Attribution of Early Modern Print}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i4.25659},
}
Figure