arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01869cs.CLcs.LGstat.ML
收藏

从小型语言模型到大型语言模型:重访《联邦党人文集》

From Small to Large Language Models: Revisiting the Federalist Papers

Booth School of Business of the University of Chicago(芝加哥大学布斯商学院)

So Won Jeong, Veronika Ročková

AI总结:

本文重访《联邦党人文集》作者归属问题,比较小型与大型语言模型,发现基于功能词主题嵌入的贝叶斯方法优于默认 LLM 嵌入,表明传统统计语言模型在作者归属中仍具优势。

摘要:

长期以来,《联邦党人文集》的作者归属问题一直是语言学家、历史学家以及统计学家探究和争论的课题。在堪称首个贝叶斯案例研究中,Mosteller 和 Wallace(1963)首次提供了将所有有争议文章归属于麦迪逊的统计证据。本文从现代语言模型(包括小型和大型模型)的视角重新审视这一历史数据集。我们回顾了一些较为流行的大型语言模型(LLM)工具,并在文本分类的背景下从统计学角度对其进行了考察。我们探究了在不进行任何微调的情况下,通用嵌入构造是否能够对文体计量学和作者归属有用。我们解释了各种词/短语嵌入之间的差异,并讨论了如何在文档中聚合它们。与我们的预期相反,我们举例说明,相对于主题嵌入的降维,利用词嵌入进行维度扩展并不总是有利于作者归属。我们的实验表明,默认的 LLM 嵌入(即使在人工微调之后)可能无法持续提高作者归属的准确率。相反,基于在“功能词”上训练的主题嵌入进行贝叶斯分析,能够产生更优的样本外分类性能。这表明,传统(小型)统计语言模型凭借其可解释性和坚实的理论基础,在作者归属任务中可以提供显著优势。本分析所用代码可在 github.com/sowonjeong/slm-to-llm 获取。

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑