## Language models struggle to pinpoint exact historical topics in archival texts

URL: https://theprimary.com/ai-tech/2026-11-27/czechtopic-archival-ai-benchmark
Published: 2026-11-27T16:20:34.139Z
Updated: 2026-11-27T16:20:34.557Z
Category: AI-Tech

Identifying where ideas begin and end in historical documents exposes sharp performance gaps among artificial intelligence systems, according to a new benchmark comparing model predictions against human reader agreement.

Archival documents rarely organise themselves around a single subject. A 19th-century newspaper page might glide from the founding of a regional printing press into the economic fallout of a coal strike, before pivoting immediately to agricultural drought conditions in neighbouring counties. For historians and researchers working through centuries of print, discovering whether a publication touches on an issue is only the first step. The deeper challenge lies in isolating the exact sentences where an argument begins, develops, and ends, while disregarding the unrelated reporting packed into the surrounding columns.

Automated search tools have traditionally categorised entire texts under broad themes or chopped documents into continuous blocks. Neither approach reflects how people read complex source material. A single paragraph can weave together distinct threads, such as local politics and labour relations, allowing multiple concepts to occupy the same printed lines. Identifying those overlapping sections requires continuous boundary judgments about where a specific thought starts and stops.

A research team led by Martin Kostelník, Michal Hradiš, and Martin Dočekal at the Faculty of Information Technology at Brno University of Technology in the Czech Republic has created a benchmark to test how well automated systems handle this challenge. In a paper published in the ICDAR Springer Proceedings, the authors introduced CzechTopic, a human-annotated collection designed for zero-shot topic localization in historical Czech publications. Zero-shot localization refers to identifying targeted textual spans for subjects that an automated model has never encountered during training, relying solely on a short label and an explanatory description.

## Why does pinpointing topic boundaries prove so difficult?

Locating a topic within a passage requires isolating discrete phrases rather than deciding whether an entire document fits a broad category. In conventional document classification, an automated system decides if an entire text belongs to a single predefined label, such as sports or business. In contrast, topic localization requires word-by-word decisions that define where an idea surfaces, allowing different topics to overlap in the same sentence or recur in multiple disconnected passages across a single page.

To understand the mechanics of this task, consider how a reader identifies an issue in an archival text. A reader begins with a concept in mind, such as labour unrest, defined by specific indicators like wage disputes, strikes, and negotiations between employees and owners. Next, the reader scans the printed lines to identify sentences where those specific conditions are discussed. The reader then sets boundary markers around the relevant words, separating the discussion of the labour dispute from adjacent sentences detailing building construction or weather reports. Finally, if the dispute is mentioned again several paragraphs later, the reader marks a second, independent segment. That sequence demands semantic interpretation alongside precise boundary placement.

Earlier natural language benchmarks have struggled to capture this combination of demands. Standard question answering datasets typically direct models to extract a single brief answer to a specific factual query. Topic segmentation benchmarks, by comparison, divide documents into mutually exclusive blocks of continuous prose, assuming that an entire section belongs to one subject until a clean topical shift occurs. The authors noted that historical archives do not conform to those clean divisions. Important historical themes often surface as brief, non-contiguous passages nested inside unrelated reports.

## How did the researchers build the CzechTopic benchmark?

The researchers constructed the benchmark by sampling scanned historical books and periodicals gathered from 23 different Czech libraries represented in the Czech Digital Library portal. Because the original materials existed only as page scans, the authors processed the digitized pages using an optical character recognition system called PERO-OCR. The system transcribed the historical typography into digital text lines, which were subsequently assembled into continuous prose and divided into segments ranging between 768 and 1,024 characters.

To prevent the task from becoming a trivial exercise in sorting obvious differences, the team grouped semantically related texts before asking annotators to define topics. The authors generated dense vector representations of the text segments using a Gemma 2 embedding model, creating mathematical summaries of the semantic content in each passage. Using the K-means clustering algorithm, the researchers clustered those embeddings into groups of closely related excerpts. Selecting passages situated close to each cluster centroid forced both human annotators and computational models to distinguish between subtle conceptual variations within the same general subject area.

Human annotators then developed the benchmark through a two-phase protocol designed to decouple topic creation from personal bias. In the first phase, an annotator examined five texts within a single cluster and proposed between two and five recurring topics. Each proposed topic had to appear in at least two of the five texts, could not encompass the entire document, and could not be so narrow that it collapsed into named entity recognition. Annotators wrote a title of at most four words and a descriptive summary averaging 13 words for every topic, before marking the exact text spans corresponding to those definitions. Completing this initial phase required approximately 30 to 45 minutes for each five-text cluster.

Refining these boundary standards required addressing early disagreements over span length. Martin Kostelník, the lead author, said in response to questions from Primary that “the main issue was span granularity,” explaining that early test readers disagreed on whether to highlight entire sentences, entire excerpts, or merely a few topical words. As Kostelník noted, “Two annotators marking the same topic on the same document could produce very different spans,” which prompted the team to establish stricter instructions governing valid text boundaries.

In the second phase, independent annotators received the same clusters alongside the written topic names and descriptions created during the first phase. Working without access to the original span selections, these independent reviewers marked the text spans they believed matched the written descriptions, spending roughly 15 to 25 minutes per cluster. This separation allowed the researchers to determine whether independent readers could interpret and localize the topics consistently based solely on the textual descriptions, rather than relying on unstated assumptions held by the original author.

## How do artificial intelligence models measure up to human readers?

Evaluating automated models against human readers revealed that top-performing language models approach human consistency, but performance varies widely across different architectures. The benchmark incorporates 105 annotated text clusters containing 525 historical texts, yielding 363 distinct topics and 1,820 annotated text-topic pairs. The historical excerpts average 130 words in length. Rather than measuring system accuracy against a single definitive reference, the researchers measured performance relative to average pairwise agreement among human annotators, establishing how often independent human readers agreed on the boundaries of a given topic.

The authors evaluated a diverse selection of publicly available large language models alongside cross-encoder models based on BERT, a bidirectional transformer architecture. The BERT models were fine-tuned on a separate distilled development dataset created for the task. The authors observed substantial variability across large language models, with outputs spanning from near-human topic detection to severe breakdowns in locating exact text spans. When large language models failed, they rarely produced corrupted spans. Instead, Kostelník explained to Primary, “The model would simply default to claiming the topic wasn't present at all,” indicating an architecture-level blind spot rather than an issue caused by unusual vocabulary or sentence structure.

Meanwhile, the smaller cross-encoder models remained competitive with much larger systems despite their reduced scale. Kostelník told Primary that the smaller models operate through a fundamentally different design: “Our BERT models are cross-encoders that jointly encode the topic and the text in one pass, score each text token by its similarity to the topic, and read spans directly off the tokenizer's character offsets.” Because this approach avoids generative decoding and does not need to re-match generated text against noisy character transcriptions, the compact networks achieved strong accuracy after training on labels distilled from larger models.

The choice of how a model generates its predictions proved critical to its success. Large language models generally tackle text extraction through three strategies: tagging, where the model reproduces the passage while inserting boundary markers; matching, where the model outputs the extracted words for post-processing alignment; and indexing, where the model outputs numerical character coordinates. Because language models frequently struggle with numerical positional reasoning, the authors focused exclusively on the tagging and matching methods, omitting indexing approaches from their benchmark evaluation.

## What are the limits of the current findings?

The CzechTopic benchmark provides an empirical framework for evaluating text localization, but several boundaries constrain the scope of the results. The dataset is a targeted evaluation benchmark and fine-tuning suite constructed from historical Czech documents, not an exhaustive assessment of all archival document processing. The source documents represent a specific linguistic and historical domain transcribed through automated optical character recognition, meaning that subtle transcription errors inherent to historical text recognition are embedded within the passages.

The study also reflects the inherent subjectivity of setting boundaries for abstract concepts. Because human annotators themselves do not achieve unanimous consensus on where an abstract topic begins and ends, the benchmark measures alignment with human agreement distributions rather than an absolute mathematical ground truth. However, aggregate agreement scores can obscure qualitative flaws. Kostelník told Primary that smaller BERT models can produce spans whose boundaries start or end mid-phrase, noting that “Two humans disagreeing about exactly where a topic starts or ends still produces a span that reads as sensible text, whereas a model cutting a span at an awkward boundary does not.”

Additionally, the benchmark tests models on relatively short historical excerpts averaging 130 words rather than entire archival books or dense, multi-page newspaper broadsheets. Scaling the task to full volumes creates distinct technical barriers for both architectures. As Kostelník pointed out, fixed context limits force smaller cross-encoders to rely on chunking, where boundaries split across windows can lose necessary context, while generative models struggle to match quoted phrases across repeated text and lose accuracy when information sits buried deep in long documents. Furthermore, the findings have been published in the ICDAR Springer Proceedings.

## What changes for archival research?

Demonstrating that smaller fine-tuned models can compete with large language models provides a practical path forward for cultural institutions and digital humanities initiatives. Archival institutions often manage millions of digitized pages but lack the computational budgets required to deploy massive commercial language models across entire collections. A compact, specialized cross-encoder fine-tuned for topic localization could allow libraries to offer semantic search tools that highlight exact passages for researchers without prohibitive processing costs.

The research also clarifies the distinction between identifying the presence of an idea and pinpointing its boundaries. As archival collections expand, historians will need automated tools that do not merely flag whether a publication mentions a topic, but reliably isolate the supporting arguments. The CzechTopic framework establishes a public testing ground for those capabilities, helping researchers measure whether tomorrow's language models can navigate human ambiguity across the printed record.
