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

面向可靠需求验证的大语言模型推理时干预

Inference-Time Intervention in Large Language Models for Reliable Requirement Verification

University of Strathclyde(思克莱德大学);International Space University(国际空间大学)

Paul Darm, James Xie, Annalisa Riccardi

AI总结:

本文提出在推理时修改少量注意力头并结合自洽性,使 LLM 能基于 Capella SysML 图表示可靠验证空间任务需求,测试集精确率达到完美。

摘要:

调控大语言模型(LLM)的行为仍然是一项挑战,尤其是在精确性和可靠性至关重要的工程应用中。尽管微调和提示方法能够改变模型行为,但它们缺乏工程应用所需的动态且精确的控制能力。推理时干预技术提供了一种有前景的替代方案,允许对 LLM 输出进行有针对性的调整。在本研究中,我们展示了干预如何实现细粒度控制,以自动化基于模型的系统工程(MBSE)中通常耗时的需求验证过程。我们使用两个早期阶段的空间任务 Capella SysML 模型及其关联需求,将经过干预的 LLM 应用于对模型的图表示进行推理,以确定某项需求是否得到满足。我们的方法取得了稳健且可靠的输出,显著优于基线模型和微调方法。通过识别并修改少至一到三个专门的注意力头,我们就能显著改变模型行为。当与自洽性结合时,这使我们能够在留出测试集上实现完美精确率。

英文摘要:

Steering the behavior of Large Language Models (LLMs) remains a challenge, particularly in engineering applications where precision and reliability are critical. While fine-tuning and prompting methods can modify model behavior, they lack the dynamic and exact control necessary for engineering applications. Inference-time intervention techniques provide a promising alternative, allowing targeted adjustments to LLM outputs. In this work, we demonstrate how interventions enable fine-grained control for automating the usually time-intensive requirement verification process in Model-Based Systems Engineering (MBSE). Using two early-stage Capella SysML models of space missions with associated requirements, we apply the intervened LLMs to reason over a graph representation of the model to determine whether a requirement is fulfilled. Our method achieves robust and reliable outputs, significantly improving over both a baseline model and a fine-tuning approach. By identifying and modifying as few as one to three specialised attention heads, we can significantly change the model's behavior. When combined with self-consistency, this allows us to achieve perfect precision on our holdout test set.

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

↑