只随机一次:在基于约束的 PCG 中塑造统计特性

Jediah Katz, Bahar Bateni, Adam M. Smith
{"title":"只随机一次:在基于约束的 PCG 中塑造统计特性","authors":"Jediah Katz, Bahar Bateni, Adam M. Smith","doi":"arxiv-2409.00837","DOIUrl":null,"url":null,"abstract":"In procedural content generation, modeling the generation task as a\nconstraint satisfaction problem lets us define local and global constraints on\nthe generated output. However, a generator's perceived quality often involves\nstatistics rather than just hard constraints. For example, we may desire that\ngenerated outputs use design elements with a similar distribution to that of\nreference designs. However, such statistical properties cannot be expressed\ndirectly as a hard constraint on the generation of any one output. In contrast,\nmethods which do not use a general-purpose constraint solver, such as Gumin's\nimplementation of the WaveFunctionCollapse (WFC) algorithm, can control output\nstatistics but have limited constraint propagation ability and cannot express\nnon-local constraints. In this paper, we introduce You-Only-Randomize-Once\n(YORO) pre-rolling, a method for crafting a decision variable ordering for a\nconstraint solver that encodes desired statistics in a constraint-based\ngenerator. Using a solver-based WFC as an example, we show that this technique\neffectively controls the statistics of tile-grid outputs generated by several\noff-the-shelf SAT solvers, while still enforcing global constraints on the\noutputs.1 Our approach is immediately applicable to WFC-like generation\nproblems and it offers a conceptual starting point for controlling the design\nelement statistics in other constraint-based generators.","PeriodicalId":501208,"journal":{"name":"arXiv - CS - Logic in Computer Science","volume":"75 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"You-Only-Randomize-Once: Shaping Statistical Properties in Constraint-based PCG\",\"authors\":\"Jediah Katz, Bahar Bateni, Adam M. Smith\",\"doi\":\"arxiv-2409.00837\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"In procedural content generation, modeling the generation task as a\\nconstraint satisfaction problem lets us define local and global constraints on\\nthe generated output. However, a generator's perceived quality often involves\\nstatistics rather than just hard constraints. For example, we may desire that\\ngenerated outputs use design elements with a similar distribution to that of\\nreference designs. However, such statistical properties cannot be expressed\\ndirectly as a hard constraint on the generation of any one output. In contrast,\\nmethods which do not use a general-purpose constraint solver, such as Gumin's\\nimplementation of the WaveFunctionCollapse (WFC) algorithm, can control output\\nstatistics but have limited constraint propagation ability and cannot express\\nnon-local constraints. In this paper, we introduce You-Only-Randomize-Once\\n(YORO) pre-rolling, a method for crafting a decision variable ordering for a\\nconstraint solver that encodes desired statistics in a constraint-based\\ngenerator. Using a solver-based WFC as an example, we show that this technique\\neffectively controls the statistics of tile-grid outputs generated by several\\noff-the-shelf SAT solvers, while still enforcing global constraints on the\\noutputs.1 Our approach is immediately applicable to WFC-like generation\\nproblems and it offers a conceptual starting point for controlling the design\\nelement statistics in other constraint-based generators.\",\"PeriodicalId\":501208,\"journal\":{\"name\":\"arXiv - CS - Logic in Computer Science\",\"volume\":\"75 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-09-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Logic in Computer Science\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2409.00837\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Logic in Computer Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.00837","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

在程序化内容生成中,将生成任务建模为一个约束满足问题,可以让我们定义生成输出的局部和全局约束。然而,生成器的感知质量往往涉及统计数据,而不仅仅是硬约束。例如,我们可能希望生成的输出使用的设计元素的分布与参考设计相似。然而,这种统计特性无法直接表达为对任何一个输出结果生成的硬约束。相比之下,不使用通用约束求解器的方法,如古敏对波函数塌缩(WFC)算法的简化,可以控制输出统计特性,但约束传播能力有限,无法表达非局部约束。在本文中,我们介绍了 "只随机一次"(YORO)预滚算法,这是一种为基于约束的生成器编码所需统计数据的约束求解器设计决策变量排序的方法。以基于求解器的 WFC 为例,我们展示了这一技术可以有效控制多个现成 SAT 求解器生成的瓦片网格输出统计量,同时还能对输出强制执行全局约束1。我们的方法立即适用于类似 WFC 的生成问题,并为控制其他基于约束的生成器中的设计元素统计量提供了一个概念起点。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
You-Only-Randomize-Once: Shaping Statistical Properties in Constraint-based PCG
In procedural content generation, modeling the generation task as a constraint satisfaction problem lets us define local and global constraints on the generated output. However, a generator's perceived quality often involves statistics rather than just hard constraints. For example, we may desire that generated outputs use design elements with a similar distribution to that of reference designs. However, such statistical properties cannot be expressed directly as a hard constraint on the generation of any one output. In contrast, methods which do not use a general-purpose constraint solver, such as Gumin's implementation of the WaveFunctionCollapse (WFC) algorithm, can control output statistics but have limited constraint propagation ability and cannot express non-local constraints. In this paper, we introduce You-Only-Randomize-Once (YORO) pre-rolling, a method for crafting a decision variable ordering for a constraint solver that encodes desired statistics in a constraint-based generator. Using a solver-based WFC as an example, we show that this technique effectively controls the statistics of tile-grid outputs generated by several off-the-shelf SAT solvers, while still enforcing global constraints on the outputs.1 Our approach is immediately applicable to WFC-like generation problems and it offers a conceptual starting point for controlling the design element statistics in other constraint-based generators.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信