From Small to Large Language Models: Revisiting the Federalist Papers
Jeong, So Won, Rockova, Veronika
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
Feb-25-2025
- Country:
- Asia
- India > Bihar
- Patna (0.04)
- Middle East > Jordan (0.04)
- India > Bihar
- North America > United States
- Illinois > Cook County
- Chicago (0.04)
- New Mexico > Santa Fe County
- Santa Fe (0.04)
- Illinois > Cook County
- Asia
- Genre:
- Overview (1.00)
- Research Report > New Finding (1.00)
- Technology:
- Information Technology > Artificial Intelligence
- Machine Learning
- Learning Graphical Models
- Directed Networks > Bayesian Learning (0.45)
- Undirected Networks > Markov Models (0.46)
- Neural Networks > Deep Learning (1.00)
- Performance Analysis > Accuracy (0.67)
- Learning Graphical Models
- Natural Language > Large Language Model (1.00)
- Representation & Reasoning > Uncertainty
- Bayesian Inference (0.67)
- Machine Learning
- Information Technology > Artificial Intelligence