[论文解读] Impact of Pretraining Term Frequencies on Few-Shot Reasoning
这篇论文表明,基于 GPT 的模型在少样本数值推理上很大程度上取决于测试术语在预训练数据中的出现频率,凸显了超出预训练统计信息的泛化能力有限。
Pretrained Language Models (LMs) have demonstrated ability to perform numerical reasoning by extrapolating from a few examples in few-shot settings. However, the extent to which this extrapolation relies on robust reasoning is unclear. In this paper, we investigate how well these models reason with terms that are less frequent in the pretraining data. In particular, we examine the correlations between the model performance on test instances and the frequency of terms from those instances in the pretraining data. We measure the strength of this correlation for a number of GPT-based language models (pretrained on the Pile dataset) on various numerical deduction tasks (e.g., arithmetic and unit conversion). Our results consistently demonstrate that models are more accurate on instances whose terms are more prevalent, in some cases above $70\%$ (absolute) more accurate on the top 10\% frequent terms in comparison to the bottom 10\%. Overall, although LMs exhibit strong performance at few-shot numerical reasoning tasks, our results raise the question of how much models actually generalize beyond pretraining data, and we encourage researchers to take the pretraining data into account when interpreting evaluation results.
研究动机与目标
- 评估语言模型在少样本数值推理是否能泛化超出在预训练数据中频繁出现的术语。
- 量化在算术和单位换算任务中,准确性与预训练数据术语频率的相关性。
- 开发一个度量(性能差距)来衡量推理任务中对预训练术语频率的依赖程度。
- 分析模型大小和示例数对基于频率的性能差距的影响。
提出的方法
- 在预训练语料库中定义测试术语的频率(unigram、bigram,以及术语与共现的组合)。
- 构建以自然语言提示形式呈现的数值推理数据集(算术、运算推断、时间-单位换算)。
- 计算在不同术语频率定义下,最高频与最低频 10% 组之间的性能差距 Delta。
- 在少样本提示下评估多个 EleutherAI GPT 模型(GPT-J-6B、GPT-Neo-1.3B、GPT-Neo-2.7B)(k=0,2,4,8,16)。
- 分析各任务和术语频率定义下的结果,以评估推理的鲁棒性与记忆化的关系。
实验结果
研究问题
- RQ1预训练术语频率与少样本数值推理的准确性之间的相关性如何?
- RQ2在不同模型规模和示例数下,准确性差距是否仍然存在?
- RQ3单字项频率(单个数字)的影响对推理性能有多大?
- RQ4我们能否在少样本提示中区分真实推理与由预训练数据偏置的模式匹配吗?
主要发现
- 模型准确性与预训练数据中实例术语的频率高度相关,高频与低频术语之间存在很大差距(在前10%与后10%之间有时超过70%)。
- 算术任务显示出较大的性能差距,尤其是乘法,表明依赖预训练统计而非稳健推理。
- 运算推断和时间单位换算任务也存在显著的频率驱动差距,即使随着更多示例总体准确性提升。
- 较小的模型呈现相同趋势,但差距较小,表明模型大小放大了对预训练数据的依赖。
- 结果表明,许多少样本推理评估可能反映记忆或模式匹配,而非真正的可泛化推理。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。