arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.23652cs.AI
收藏

一个策略,无限NPC:用于可扩展游戏智能体的可追溯共享RL策略

One Policy, Infinite NPCs: Persona-Traceable Shared RL Policies for Scalable Game Agents

Independent Researcher(独立研究者)

Yoosung Hong

AI总结:

提出一种基于冻结LLM嵌入的条件共享强化学习策略pcsp,实现大规模NPC的个性化控制,在300人生活模拟基准上零样本身份识别提升17倍,推理速度比LLM策略快22倍。

摘要:

在300人生活模拟基准上,pcsp实现了组合零样本角色识别,准确率比随机高17倍,Spearman相关系数约0.73的语义-行为对齐,推理速度比LLM作为策略的基线快22倍。生活模拟游戏需要数百到数千个非玩家角色(NPC),这些角色具有一致的个性,同时通过设计师编写的自然语言保持可控。现有方法在个性一致性、可控性或实时推理等约束下失败。我们引入了pcsp(个性条件共享策略),这是一种单一的强化学习策略,以自由形式个性描述的冻结LLM嵌入为条件。pcsp结合了每个NPC一次的个性编码、低秩个性投影、神经个性调节以及PPO + InfoNCE一致性 + KL多样性训练目标。在三个实验设置中,消融实验表明InfoNCE轨迹一致性目标是关键:移除它会导致零样本角色识别降至随机水平。在Melting Pot 2.4.0子任务上的外部验证证实,我们的方法在多智能体战略环境中产生了基于个性的行为差异。我们区分了两种保留评估的含义:组合零样本和词汇扩展保留。最后,在UE5部署中,以64个智能体在引擎内重现了基于个性的消融实验,故障率低,表明子帧推理轮廓在商业游戏引擎中得以保留。这些结果证明,共享RL策略可以支持可扩展、实时、基于个性的NPC控制。

英文摘要:

On a 300-persona life-simulation benchmark, pcsp achieves compositional zero-shot persona identification up to 17x above chance, Spearman rho approx 0.73 semantic-behavioral alignment, and 22x faster inference than an LLM-as-policy baseline. Life simulation games require hundreds to thousands of non-player characters (NPCs) that behave consistently with distinct personalities while remaining controllable through designer-authored natural language. Existing methods fail on constraints like persona consistency, controllability, or real-time inference. We introduce pcsp (Persona Conditioned Shared Policy), a single reinforcement learning policy conditioned on frozen LLM embeddings of free-form persona descriptions. pcsp combines once-per-NPC persona encoding, low-rank persona projection, neural persona conditioning, and a PPO + InfoNCE consistency + KL diversity training objective. Across three experimental settings, ablations show that the InfoNCE trajectory-consistency objective is load bearing: removing it collapses zero-shot persona identification to chance. External validation on Melting Pot 2.4.0 substrates confirms that our method produces persona-conditioned behavioral divergence in multi-agent strategic environments. We distinguish two senses of held-out evaluation: compositional zero-shot and vocabulary-expansion held-out. Finally, a UE5 deployment reproduces the in-engine persona-conditioning ablation at 64 agents with a low failure rate, showing that the sub-frame inference profile survives in a commercial game engine. These results prove that shared RL policies can support scalable, real-time, persona-conditioned NPC control.

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

↑