Introduction
Quotation attribution—the task of identifying which character in a narrative spoke a specific line of direct speech—is a cornerstone of literary text analysis. While Large Language Models (LLMs) have demonstrated remarkable capabilities in creative writing and summarization, their performance on structured literary tasks remains under scrutiny. A primary concern is whether these models are genuinely reasoning through narrative context or simply retrieving memorized text from their vast pretraining data, which often includes public domain works like those in Project Gutenberg.
This study investigates the performance of Llama-3 (8b and 70b) on quotation attribution, introducing novel diagnostics to disentangle contextual reasoning from rote memorization.
Methodology
The researchers evaluated Llama-3 in a zero-shot setting using Chain-of-Thought (CoT) prompting. To optimize performance, they utilized Chunked Context, providing the model with 4096-token sequences. This approach allows the model to leverage the natural flow of dialogue and character interactions rather than treating each quote in isolation.
To address the "contamination" crisis, two primary diagnostic tools were employed:
- Corrupted-Speaker-Guessing (CSG): A passage is modified by replacing a character's name with a gender-matched pseudonym (e.g., "Anne" becomes "Emma"). If the model predicts the original name, it indicates memorization; if it predicts the pseudonym based on context, it indicates reasoning.
- Min-K% Detection: A statistical method used to determine if the specific evaluation annotations were present in the model's training set.
Performance Benchmarks
Llama-3 8b established a new state-of-the-art (SOTA) in quotation attribution, significantly outperforming specialized models and previous LLMs. On the Project Dialogism Novel Corpus (PDNC1), Llama-3 8b achieved an overall accuracy of 90.6%, compared to 78.5% for the SpanBERT-based BookNLP+ and 71% for ChatGPT.
The most notable gains were observed in "Other" quotes—those that are implicit or anaphoric (e.g., "she replied"). Llama-3 8b reached 89.1% accuracy on these challenging cases, a substantial jump from BookNLP+'s 68.9%. This suggests that modern LLMs possess superior coreference resolution and dialogue-tracking capabilities.
Disentangling Reasoning from Memorization
A critical finding of this research is that while Llama-3 has indeed memorized many classic literary works, this memorization is not the primary driver of its high performance. The CSG diagnostic revealed that the model consistently prioritizes contextual evidence over its internal "memory" of the text.
As shown in the diagnostic results, there is a strong correlation (ρ = 0.52*) between accuracy and the model's ability to reason through corrupted speaker names (CSG-Reasoning), whereas simple memorization tasks (Name-Cloze) show much weaker correlations. Furthermore, the model's dominant performance on a completely "Unseen" novel—published after the model's knowledge cutoff—confirms its ability to generalize reasoning to novel contexts.
Conclusion and Future Work
Llama-3 represents a significant leap forward for automated literary analysis. However, challenges remain regarding computational efficiency; processing a full novel with an LLM requires significantly more resources than traditional pipelines. Future research will explore how these models handle more complex literary devices, such as unreliable narrators, and the impact of removing "gold" character lists in favor of fully automated character extraction.
Summary updated