知晓事实却选择捷径:理解大型语言模型如何比较实体
Knowing the Facts but Choosing the Shortcut: Understanding How Large Language Models Compare Entities
AI总结:
研究发现大型语言模型在比较实体时更依赖数值知识,而小型模型则受启发式偏差影响,通过链式思考提示可引导模型更依赖数值特征。
摘要:
大型语言模型(LLMs)正在越来越多地用于基于知识的推理任务,但理解它们何时依赖真实知识而非表面启发式方法仍具有挑战性。我们通过实体比较任务探讨这一问题,通过要求模型在数值属性(例如“哪条河流更长,多瑙河还是尼罗河?”)上进行比较,这些任务提供了清晰的地面真实值以进行系统分析。尽管拥有足够的数值知识来正确回答,LLMs却经常做出与这种知识相矛盾的预测。我们识别出三种强烈影响模型预测的启发式偏差:实体流行度、提及顺序和语义共现。对于较小的模型,仅使用这些表面线索的简单逻辑回归比模型自身的数值预测更能准确预测模型选择,这表明启发式方法在很大程度上超越了原则性推理。关键的是,我们发现较大的模型(32B参数)在数值知识更可靠时会优先使用数值知识,而较小的模型(7-8B参数)则没有这种选择性,这解释了为什么即使较小的模型拥有更准确的知识,较大的模型仍能超越它们。链式思考提示使所有模型在所有模型大小上都倾向于使用数值特征。
英文摘要:
Large Language Models (LLMs) are increasingly used for knowledge-based reasoning tasks, yet understanding when they rely on genuine knowledge versus superficial heuristics remains challenging. We investigate this question through entity comparison tasks by asking models to compare entities along numerical attributes (e.g., ``Which river is longer, the Danube or the Nile?''), which offer clear ground truth for systematic analysis. Despite having sufficient numerical knowledge to answer correctly, LLMs frequently make predictions that contradict this knowledge. We identify three heuristic biases that strongly influence model predictions: entity popularity, mention order, and semantic co-occurrence. For smaller models, a simple logistic regression using only these surface cues predicts model choices more accurately than the model's own numerical predictions, suggesting heuristics largely override principled reasoning. Crucially, we find that larger models (32B parameters) selectively rely on numerical knowledge when it is more reliable, while smaller models (7--8B parameters) show no such discrimination, which explains why larger models outperform smaller ones even when the smaller models possess more accurate knowledge. Chain-of-thought prompting steers all models towards using the numerical features across all model sizes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。