AcrosticSleuth: Probabilistic Identification and Ranking of Acrostics in Multilingual Corpora

Aleksandr Fedchin, Isabel Cooperman, Pramit Chaudhuri, Joseph P. DexterNAACL 2025

Introduction

For millennia, authors have hidden messages in the first letters of consecutive lines or paragraphs—a device known as an acrostic. While some are obvious, many are subtle or "accidental." Traditionally, scholars have relied on manual searches and qualitative arguments to claim an acrostic was intentional.

The challenge is two-fold:

  1. Extreme Class Imbalance: In any given corpus, the vast majority of character sequences are not acrostics.
  2. The "Lottery Effect": In a sufficiently long text, random chance will eventually produce a sequence that looks like a word (e.g., "MARS"). Without a statistical framework, it is impossible to distinguish a lucky coincidence from a deliberate authorial choice.

Methodology

AcrosticSleuth treats acrostic detection as a ranking problem based on Bayesian inference. The core of the approach is a ranking metric derived from the ratio of two probabilities: $P(s|a)$, the probability that a string $s$ appears assuming it is an intentional acrostic (estimated using SentencePiece unigram language models), and $P(s|\neg a)$, the probability that the string appears by pure chance (calculated from baseline character frequencies).

AcrosticSleuth workflow using dynamic programming and ranking to identify the 'THOMAS OF HOBBES' acrostic.

As shown in the workflow above, the tool converts source text into initial letters, uses dynamic programming to evaluate all possible substrings and tokenizations, and ranks candidates via a min-heap data structure. This allows the system to identify the most likely intentional messages among millions of possibilities.

Dataset and Evaluation

The researchers introduced the Acrostic Identification Dataset (AcrostID), scraped from WikiSource in English, French, and Russian. It contains over 180 labeled acrostics that were either explicitly tagged by users or identified through specific formatting. Evaluation also included two major databases of Latin poetry (Musisque Deoque and Poeti D’Italia).

Recall, Precision, and F1 scores for English, Russian, and French as a function of the number of results returned.

AcrosticSleuth demonstrated strong performance across languages, as illustrated in the precision-recall curves. Russian performed best with an F1 score of 0.66, likely due to long, unambiguous 17th-century examples. English achieved an F1 of 0.59, while French (F1 = 0.39) proved more challenging due to digital page fragmentation on WikiSource.

Discussion and Insights

A key insight is that intentional acrostics follow the statistical patterns of their language. By using subword tokenizers, the tool recognizes common words and proper nouns, which are frequent subjects of acrostics. A major success was the discovery of a signature in Thomas Hobbes’ The Elements of Law: "THOMAS[OF]HOBBES," which had gone unnoticed for nearly 400 years.

Limitations and Future Work

Current limitations include a focus only on initial letters (acrostics) rather than telestics or mesostics, and a bias toward common names in language models. Future iterations could benefit from larger, context-aware language models to better evaluate the "meaningfulness" of hidden phrases beyond simple unigram frequencies.

Summary updated

BibTeX
@inproceedings{fedchin2025acrosticsleuth,
  author = {Aleksandr Fedchin and Isabel Cooperman and Pramit Chaudhuri and Joseph P. Dexter},
  title = {{AcrosticSleuth: Probabilistic Identification and Ranking of Acrostics in Multilingual Corpora}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.414},
}
Figure