Fast and Accurate Quotation Attribution in Literary Texts
Gaspard Michel, Hugo Attali, Elena V. Epure
cs.CL
Submitted: 2026-08-03
Code: https://github.com/gasmichel/ModernBookNLP
License: http://creativecommons.org/licenses/by/4.0/
The gist: Attributing quotations to their speakers in literary texts remains an open challenge.
Terminology
Abstract
Attributing quotations to their speakers in literary texts remains an open challenge. Standard methods, which independently predict a speaker mention for each quotation, are efficient but still limited in accuracy. In contrast, large language model (LLM) approaches achieve strong performance, but their computational cost limits their use in large-scale literary analysis. We propose an encoder-based efficient formulation that resolves multiple quotation attributions within a shared, large context window. Using our new formulation, joint scoring, we report state-of-the-art (SOTA) performance on the Project Dialogism Novel Corpus (PDNC), comprising more than 35,000 manually annotated quotations from 22 English novels. Our best model reaches 94.5% overall attribution accuracy while processing novels 20 times faster than comparable standard methods and more than 1000 times faster than LLM-based approaches on an A100 GPU. An analysis of models' representations suggests that joint scoring improves on challenging attribution examples by preserving long-range anaphora resolution signal, an information that we found already present in pretrained encoders. To facilitate adoption, we release ModernBookNLP, a modified fork of BookNLP that replaces its quotation attribution model with our best system available at https://github.com/gasmichel/ModernBookNLP QA/.
Sources
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- GraphLit: Learning Text-Enriched Dynamic Character Network Representations for Literary Study
- SIG: Speaker Identification in Literature via Prompt-Based Generation
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering