泛化是稳定性,而非准确性:对LLMs的多轴评估

·

研究论文 · 2026/10/02

大语言模型(LLM)的泛化能力是指同一输入以不同方式表达时,模型产生一致且语义稳定输出的能力。现有工作通常通过单一提示格式、任务或变体集上的聚合准确率来评估泛化,这混淆了鲁棒性与整体基准性能。在本工作中,我们展示了对单个示例、跨多个输入变体以及跨模型行为不同方面的泛化评估,关注变异性,而非将性能简化为可通过窄训练或其他掩盖泛化评估的方式提升的分数。遵循这一观点,我们引入了稳定性感知泛化目标(SAGO),一个衡量同一输入在不同变体和基准下模型行为变化程度的框架,捕捉包括生成一致性、内部激活、置信度和响应镜像在内的多个维度的变异性。我们表明,许多常用模型表现出统计显著且一致的泛化不稳定性:没有模型能均匀泛化,行为轴捕捉独立的失败模式,跨数据集变化可能逆转模型排名。

该研究挑战了以准确率衡量泛化的传统做法,提出关注稳定性的新视角和SAGO框架,揭示了LLM泛化的深层不稳定性,对模型评估和鲁棒性研究具有重要启示。

Generalization in large language models (LLMs) is the ability to produce consistent and semantically stable outputs when the same input is expressed in different ways. Existing work typically evaluates generalization through aggregate accuracy on a single prompt format, task, or set of variations, which conflates robustness with overall benchmark performance. In this work, we show generalization evaluation at the level of individual examples, across multiple input variants, and across different aspects of model behavior, focusing on variability rather than reducing performance to a score that can be improved through narrow training or other ways that obfuscate generalization evaluation. Following this view, we introduce the Stability-Aware Generalization Objective (SAGO), a framework that measures how much model behavior changes for the same input under different variations and benchmarks, capturing variability across several dimensions including generation consistency, internal activations, confidence, and response mirroring. We show that many commonly used models exhibit statistically significant and consistent generalization instability: no model generalizes uniformly, behavioral axes capture independent failure modes, and cross-dataset variation can reverse model rankings.

阅读原文

参与讨论