arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.09998cs.CLmath.HO
收藏

通过提示干预控制大语言模型中的等式推理

Controlling Equational Reasoning in Large Language Models with Prompt Interventions

University of Manchester(曼彻斯特大学);Idiap Research Institute(Idiap研究所);National Biomarker Centre(国家生物标志物中心);CRUK-MI(英国癌症研究中心曼彻斯特研究所)

Jordan Meadows, Marco Valentino, Andre Freitas

AI总结:

本研究提出通过符号数据生成框架实施提示干预以控制LLM数学推理幻觉,实验发现T5-Large在相关任务上可超过GPT-4少样本表现,并结合多维度评估建立干预特征与推导质量的关联,为细粒度调控模型数学能力提供可能。

摘要:

本文研究如何通过一个符号数据生成框架控制大语言模型(LLM)的幻觉率,探究了特定数学错误的发生率与输入干预类型之间的基本关联。具体而言,我们使用符号引擎为推导生成任务系统地生成数据,对提示施加针对性干预,以扰动数学推导的特征,例如符号的表层形式、等式树结构以及数学上下文。随后我们在一系列LLM上评估提示干预的效果,包括经过微调的T5模型、GPT以及基于LLaMa的模型。我们的实验表明,在通过该框架生成的多个评估集上,T5-Large的表现能够超过GPT-4的少样本性能。然而,基于人工分析、基于模板的错误检测以及文本生成指标的全面评估显示,模型存在的缺陷超出了仅基于参考的指标所能描述的范围。我们利用这些结果将干预的特征分布足迹与LLM推导质量的人工评估关联起来,这有望实现对语言模型针对特定类型错误的细粒度数学能力的显著控制。

英文摘要:

This paper investigates how hallucination rates in Large Language Models (LLMs) may be controlled via a symbolic data generation framework, exploring a fundamental relationship between the rate of certain mathematical errors and types of input intervention. Specifically, we systematically generate data for a derivation generation task using a symbolic engine, applying targeted interventions to prompts to perturb features of mathematical derivations such as the surface forms of symbols, equational tree structures, and mathematical context. We then evaluate the effect of prompt interventions across a range of LLMs including fine-tuned T5 models, GPT, and LLaMa-based models. Our experiments suggest that T5-Large can outperform the few-shot performance of GPT-4 on various evaluation sets generated via the framework. However, an extensive evaluation based on human analysis, template-based error detection, and text generation metrics reveals model weaknesses beyond what the reference-based metrics singularly describe. We use these results to tie characteristic distributional footprints of interventions to the human evaluation of LLM derivation quality, potentially leading to significant control over fine-grained mathematical capabilities of language models with respect to specific types of errors.

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

↑