arXiv:2601.23206cs.AI2026-01

用小模型实现高质量游戏内容实时生成,突破大模型依赖云端的瓶颈。

High-quality generation of dynamic game content via small language models: A proof of concept

  • 通过窄范围、强约束的任务微调,提升小模型生成质量。
  • 在典型游戏引擎下实现低延迟、可预测的实时内容生成。
  • 适合开发离线运行的智能游戏系统,替代云端大模型。

大型语言模型(LLMs)在动态游戏内容生成中前景广阔,但存在叙事不连贯和高昂运营成本等问题。由于其规模庞大,通常需依赖云端访问,限制了离线游戏的应用。转向小型语言模型(SLMs)可解决多数实际问题,但现有研究中生成质量较差。本文提出一种策略:通过在刻意限定的任务范围内,结合狭窄上下文或结构约束进行激进微调,实现高质量的SLM生成。具体而言,任务越复杂,所需范围越窄、对训练语料越专一。训练数据采用基于有向无环图(DAG)的方法合成,使模型扎根于特定游戏世界。此类模型可作为基于叙事框架的智能体网络的基础,相比依赖云服务的LLMs更具实用性与鲁棒性。为验证该方法,我们以单一专用SLM为核心构建概念验证,设计了一个最小化的角色扮演游戏循环,围绕声誉修辞战展开。实验表明,采用简单重试至成功策略,即可达到由LLM评判的合格生成质量,且延迟可控,适合实时生成。尽管本地质量评估仍待解决,但结果证明在典型游戏引擎约束下,实时生成具备可行性。

原文摘要 · Abstract (English)

Large language models (LLMs) offer promise for dynamic game content generation, but they face critical barriers, including narrative incoherence and high operational costs. Due to their large size, they are often accessed in the cloud, limiting their application in offline games. Many of these practical issues are solved by pivoting to small language models (SLMs), but existing studies using SLMs have resulted in poor output quality. We propose a strategy of achieving high-quality SLM generation through aggressive fine-tuning on deliberately scoped tasks with narrow context, constrained structure, or both. In short, more difficult tasks require narrower scope and higher specialization to the training corpus. Training data is synthetically generated via a DAG-based approach, grounding models in the specific game world. Such models can form the basis for agentic networks designed around the narratological framework at hand, representing a more practical and robust solution than cloud-dependent LLMs. To validate this approach, we present a proof-of-concept focusing on a single specialized SLM as the fundamental building block. We introduce a minimal RPG loop revolving around rhetorical battles of reputations, powered by this model. We demonstrate that a simple retry-until-success strategy reaches adequate quality (as defined by an LLM-as-a-judge scheme) with predictable latency suitable for real-time generation. While local quality assessment remains an open question, our results demonstrate feasibility for real-time generation under typical game engine constraints.

小模型游戏生成实时生成智能体

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。