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

使大语言模型与程序规则对齐:面向游戏内交易的自回归状态跟踪提示方法

Aligning Large Language Models with Procedural Rules: An Autoregressive State-Tracking Prompting for In-Game Trading

Minkyung Kim, Junsik Kim, Woongcheol Yang, Sangdon Park, Sohee Bae

AI总结:

针对大语言模型在游戏内规则化交易中难遵循程序流程的问题,提出自回归状态跟踪提示方法搭配状态特定占位符后处理,实现高合规率与计算精度,小模型即可匹配大模型性能且大幅缩短响应时间,适配商业游戏需求。

摘要:

大语言模型(LLMs)可实现动态游戏交互,但在受规则约束的交易系统中无法遵循核心程序流程,会削弱玩家信任。本研究解决了LLMs的创造性灵活性与游戏内交易(浏览-出价-审核-确认)的程序要求之间的核心矛盾。为此,本文提出了自回归状态跟踪提示(Autoregressive State-Tracking Prompting,ASTP)方法,该方法以经过策略性设计的提示为核心,迫使LLM将其状态跟踪过程显性化且可验证。ASTP不依赖隐式的上下文理解,而是要求LLM从上一轮对话中识别并报告预定义的状态标签。为确保交易完整性,该方法还搭配了针对特定状态的占位符后处理方法,以实现精准的价格计算。在300段交易对话上的评估表明,该方法的状态合规率超过99%,计算准确率达99.3%。值得注意的是,搭配占位符后处理的ASTP在较小模型(Gemini-2.5-Flash)上的表现与更大模型(Gemini-2.5-Pro)相当,同时将响应时间从21.2秒缩短至2.4秒,为同时满足商业游戏的实时性要求与资源约束奠定了实用基础。

英文摘要:

Large Language Models (LLMs) enable dynamic game interactions but fail to follow essential procedural flows in rule-governed trading systems, eroding player trust. This work resolves the core tension between the creative flexibility of LLMs and the procedural demands of in-game trading (browse-offer-review-confirm). To this end, Autoregressive State-Tracking Prompting (ASTP) is introduced, a methodology centered on a strategically orchestrated prompt that compels an LLM to make its state-tracking process explicit and verifiable. Instead of relying on implicit contextual understanding, ASTP tasks the LLM with identifying and reporting a predefined state label from the previous turn. To ensure transactional integrity, this is complemented by a state-specific placeholder post-processing method for accurate price calculations. Evaluation across 300 trading dialogues demonstrates >99% state compliance and 99.3% calculation precision. Notably, ASTP with placeholder post-processing on smaller models (Gemini-2.5-Flash) matches larger models' (Gemini-2.5-Pro) performance while reducing response time from 21.2s to 2.4s, establishing a practical foundation that satisfies both real-time requirements and resource constraints of commercial games.

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

↑