扶摇AI知识笔记AI 前沿知识库
智能体应用

Long-Lived Characters, Local Inference: Incremental Memory Maintenance for Game NPCs

来源:arXiv cs.CL 论文速递 约 2114 字 memory
arXiv cs.CL
转载

本文转载自 arXiv cs.CL,版权归原作者及原发布平台所有。本站仅作知识整理与转载分享,如涉版权问题请联系客服删除。

01核心要点

  • A game character should not have to reread its entire life before every conversation.
  • For locally deployed language-model characters, however, revising a few memories can invalidate a long reusable prefix.
  • The resulting preparation cost competes with both foreground dialogue and the maintenance of other characters.

02正文全文

Abstract:A game character should not have to reread its entire life before every conversation. For locally deployed language-model characters, however, revising a few memories can invalidate a long reusable prefix. The resulting preparation cost competes with both foreground dialogue and the maintenance of other characters. This matters especially when dialogue feeds game-defined actions and value judgments: a fluent but incorrect account of who owns an item, or whether a transfer has already happened, can corrupt the input to otherwise deterministic rules. We study incremental memory maintenance for long-lived game NPCs in a quantized Qwen hybrid recurrent-attention model. Our runtime removes superseded attention KV entries, computes replacement records at the true sequence tail, and preserves the continuing recurrent state and unchanged KV. Existing local experiments combine multi-update dialogue replays, fixed-input placement ablations, and attention diagnostics. Independent block composition weakens query-conditioned memory selection without a uniform chunk-initial attention collapse. True-tail updates preserve important current-state and historical bindings across eight scripted maintenance rounds; a placement case recovers the full-refill quantity in three reconstructions, while slot-preserving alternatives repeat a double-subtraction error. Attention-distribution proximity alone does not explain these semantic differences. The results motivate treating a character's inference state as a maintained, history-dependent resource, rather than only a disposable encoding of its latest memory text.

Ancillary files (details):

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

03原文直达

本文内容转载自 arXiv cs.CL,如需查看原排版、配图与最新修订,请访问原始出处。

阅读原文(arXiv cs.CL)

下载论文 PDF

正在校验阅读权限…
RELATED

相关阅读

更多 智能体应用