From Small to Large Language Models: Revisiting the Federalist Papers
So Won Jeong, Veronika Ročková
TL;DR
This study evaluates whether off-the-shelf Large Language Model embeddings improve authorship attribution on the Federalist Papers relative to traditional small-language models. It systematically compares BoW-based topic embeddings (via LDA) and continuous LLM embeddings (from BERT, RoBERTa, GPT, Llama) using LASSO and BART classifiers, and analyzes thresholding with ROC and F1 criteria. The main finding is that LDA-based topic embeddings paired with a Bayesian classifier (BART) achieve the best out-of-sample accuracy, while larger, generic embeddings often underperform due to focusing on semantic content rather than stylistic markers like function words. The results reinforce the value of traditional stylometry methods for interpretable attribution, yet suggest practical guidelines for integrating LLMs with established statistical models when applying to nuanced authorship tasks. Overall, the work highlights dimension-reduction approaches as robust, interpretable, and competitive alternatives to large-scale embeddings in targeted text classification problems.
Abstract
For a long time, the authorship of the Federalist Papers had been a subject of inquiry and debate, not only by linguists and historians but also by statisticians. In what was arguably the first Bayesian case study, Mosteller and Wallace (1963) provided the first statistical evidence for attributing all disputed papers to Madison. Our paper revisits this historical dataset but from a lens of modern language models, both small and large. We review some of the more popular Large Language Model (LLM) tools and examine them from a statistical point of view in the context of text classification. We investigate whether, without any attempt to fine-tune, the general embedding constructs can be useful for stylometry and attribution. We explain differences between various word/phrase embeddings and discuss how to aggregate them in a document. Contrary to our expectations, we exemplify that dimension expansion with word embeddings may not always be beneficial for attribution relative to dimension reduction with topic embeddings. Our experiments demonstrate that default LLM embeddings (even after manual fine-tuning) may not consistently improve authorship attribution accuracy. Instead, Bayesian analysis with topic embeddings trained on ``function words" yields superior out-of-sample classification performance. This suggests that traditional (small) statistical language models, with their interpretability and solid theoretical foundation, can offer significant advantages in authorship attribution tasks. The code used in this analysis is available at github.com/sowonjeong/slm-to-llm
