TL;DR
This paper revisits the classic Federalist Papers authorship attribution problem using modern Large Language Models (LLMs). Surprisingly, they found that traditional, smaller statistical models using "function words" outperformed LLM embeddings, even after fine-tuning, suggesting that LLMs might overlook crucial stylistic features for attribution.
What Problem Does This Paper Address?
The authorship of several essays in the Federalist Papers has been a long-standing historical and statistical puzzle. While early statistical methods like those by Mosteller and Wallace (1963) provided strong evidence for James Madison authoring the disputed papers, the advent of powerful LLMs raises the question of whether these new tools can offer even better insights. This paper investigates whether general-purpose LLM embeddings, without task-specific fine-tuning, can effectively capture the subtle stylistic nuances needed for authorship attribution, or if traditional methods still hold an advantage.
Methods
The authors compare various approaches to authorship attribution, focusing on how text is represented as numerical "embeddings." They explore:
- Bag-of-Words (BoW) models: These represent documents as vectors of word counts, ignoring word order. They experiment with different word sets: all words, words excluding common "stopwords," and a curated list of "function words" (like prepositions and conjunctions) identified by previous studies.
- Dimensionality Reduction Techniques: Methods like Latent Dirichlet Allocation (LDA), Latent Semantic Analysis (LSA), and Nonnegative Matrix Factorization (NMF) are used to create lower-dimensional topic-based embeddings from BoW representations.
- Continuous Embedding Approaches: This includes embeddings from established LLMs like BERT, RoBERTa, BART, GPT, and Llama. They also explore different ways to aggregate token-level embeddings into document-level representations (e.g., averaging).
- Classification: The generated embeddings are then fed into classifiers like LASSO and Bayesian Additive Regression Trees (BART) to predict authorship.
- Fine-tuning: They also investigate the impact of fine-tuning LLM embeddings on a task-specific dataset.
Datasets
The primary dataset used is the collection of 85 Federalist Papers. This is a well-established benchmark for authorship attribution studies. The authors also mention using a subset of these papers for training and testing when fine-tuning models.
Key Insights and Ideas
- Function words are king (for attribution): The study strongly suggests that traditional "function words" (like "on," "upon," "while," "whilst") are more discriminative for authorship attribution than the broad semantic understanding captured by LLMs. LLMs tend to group these function words too closely in their embedding space, reducing their distinctiveness.
- LLMs don't automatically win: Contrary to the expectation that larger models are always better, vanilla LLM embeddings (even after fine-tuning) did not consistently outperform traditional methods. This highlights that LLMs excel at semantic tasks but may miss subtle stylistic cues crucial for attribution.
- Dimension reduction can be beneficial: While LLMs often use dimension expansion (high-dimensional embeddings), the paper shows that dimension reduction techniques like LDA, when applied to function words, can yield superior results for authorship attribution.
- Interpretability matters: Traditional statistical models, especially those based on function words, offer more interpretable results, which is crucial for understanding why an attribution is made.
Key Results
- Best performance: The best out-of-sample classification performance was achieved by a Bayesian analysis using topic embeddings trained on function words, outperforming LLM embeddings.
- LLM limitations: Default LLM embeddings, even after manual fine-tuning, did not consistently improve authorship attribution accuracy.
- BoW vs. Continuous Embeddings: BoW-based embeddings, particularly those derived from function words (Type 3), led to more polarized probability distributions, effectively separating authors, whereas continuous embeddings often resulted in overlapping distributions and higher uncertainty.
- Fine-tuning challenges: Fine-tuning LLMs for authorship attribution led to overfitting, where the model performed well on the training data but poorly on unseen data.
Limitations and Future Work
- LLM fine-tuning: The paper notes that fine-tuning LLMs can lead to overfitting, suggesting that careful regularization or alternative approaches might be needed.
- Generalization of findings: While the Federalist Papers are a classic case, the authors suggest that similar findings might hold for other authorship attribution tasks where stylistic features are paramount.
- Combining approaches: The authors recommend exploring ways to combine the strengths of LLMs (e.g., for semantic understanding) with traditional statistical models (e.g., for stylistic analysis) for more comprehensive results.
- Interpretability of LLMs: Further research could focus on making LLM embeddings more interpretable for tasks like authorship attribution.
Summary updated