arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.29223cs.LG
收藏

从流行文本记忆推断大型语言模型的规模

Inferring the Size of Large Language Models From Popular Text Memorization

National University of Singapore(新加坡国立大学)

Ivica Nikolic

AI总结:

提出一种黑盒方法,通过分析模型对流行文本的记忆准确性,仅从生成文本推断LLM参数规模的下界,并验证了开源和闭源模型。

摘要:

最广泛使用的大型语言模型(LLM)的参数数量通常被其开发者隐瞒,使得模型规模——解释能力和成本的主要参考点——在很大程度上未被公开。我们提出了一种黑盒方法,仅从生成的文本输出推断LLM规模的下界,除了提交文本片段和观察下一个词预测的能力外,不需要任何其他条件。我们的方法基于一个关键观察:流行的、广泛传播的文本——如古典文学、宗教文本和基础文档——几乎存在于每个大规模预训练语料库中,而模型在不同长度文本片段上预测下一个词的准确度是其记忆程度的可靠信号,而记忆程度又从根本上受到其总参数数量的限制。我们将来自不同文本和片段长度的记忆信号聚合成每个模型的单一准确率轮廓向量,并在此基础上构建了两种互补的推断方法:一种成对统计检验,用于确定两个模型中哪个更大;以及一种缩放律估计器,通过主成分分析(PCA)从这些向量中提取一维潜在指数,将聚合信号映射到参数数量。在广泛的开源模型上验证,两种方法都产生了准确可靠的下界。当应用于流行的闭源模型时,我们的框架恢复了内部产品层级,并揭示了行业扩展策略的明显分歧:虽然一些开发者产生了显著更高的下界,表明代际参数大幅增长,但其他开发者在严格的参数上限下运行,表明即使在严格的API限制下,隐藏的设计选择也可以被系统地探测。

英文摘要:

The parameter counts of the most widely used large language models (LLMs) are often withheld by their developers, leaving model size -- a primary reference point for interpreting capabilities and costs -- largely undisclosed. We propose a black-box method to infer conservative lower bounds on LLM size from generated text outputs alone, requiring nothing beyond the ability to submit text fragments and observe next-token predictions. Our approach is grounded in a key observation: popular, widely-circulated texts -- such as classical literature, religious texts, and foundational documents -- are present in virtually every large-scale pretraining corpus, and how accurately a model predicts the next word across text fragments of varying length is a reliable signal of how much it has memorized them, which in turn is fundamentally limited by its total parameter count. We aggregate this memorization signal across a diverse corpus of texts and fragment lengths into a single accuracy profile vector per model, and build two complementary inference methods on top of it: a pairwise statistical test that determines which of two models is larger, and a scaling-law estimator that extracts a one-dimensional latent index from these vectors via Principal Component Analysis (PCA) to map the aggregated signal to a parameter count. Validated on a broad set of open-weight models, both methods produce accurate and reliable lower bounds. When applied to popular closed-weight models, our framework recovers internal product hierarchies and reveals a clear divergence in industry scaling strategies: while some developers yield significantly higher bounds indicative of large generational parameter growth, others operate under strict parameter ceilings, demonstrating that hidden design choices can be systematically probed even under strict API limitations.

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

↑