用可编程约束语言实现精准可控的3D软件自动生成
3D Software Synthesis Guided by Constraint-Expressive Intermediate Representation
- 提出ScenethesisLang语言作为细粒度约束中间表示
- 准确捕捉80%以上需求,90%以上硬约束被满足
- 适合需要精确控制3D界面布局的开发者
图形用户界面(UI)软件正从传统二维桌面/网页/移动界面转向三维空间环境。尽管现有方法在自动化生成2D软件(如HTML/CSS和移动端界面代码)方面取得显著进展,但3D软件生成仍处于探索阶段。当前3D生成方法通常整体生成环境,难以修改或控制特定元素,且难以处理真实世界中复杂的空间与语义约束。为此,我们提出Scenethesis,一种敏感于需求的3D软件合成方法,保持用户需求与生成3D软件之间的形式可追溯性。Scenethesis基于ScenethesisLang——一种领域专用语言,作为细粒度约束感知的中间表示(IR),连接自然语言需求与可执行3D软件。它既可作为全面场景描述语言实现对3D元素的精细修改,也可作为形式化约束表达语言,刻画复杂空间约束。通过将3D软件合成分解为基于ScenethesisLang的多个阶段,Scenethesis实现了独立验证、定向修改与系统性约束满足。评估表明,Scenethesis能准确捕捉超过80%的用户需求,满足超过90%的硬约束,同时处理超过100个约束。此外,其在BLIP-2视觉评估中得分相比最先进方法提升42.8%。
原文摘要 · Abstract (English)
Graphical user interface (UI) software has undergone a fundamental transformation from traditional two-dimensional (2D) desktop/web/mobile interfaces to spatial three-dimensional (3D) environments. While existing work has made remarkable success in automated 2D software generation, such as HTML/CSS and mobile app interface code synthesis, the generation of 3D software still remains under-explored. Current methods for 3D software generation usually generate the 3D environments as a whole and cannot modify or control specific elements in the software. Furthermore, these methods struggle to handle the complex spatial and semantic constraints inherent in the real world. To address the challenges, we present Scenethesis, a novel requirement-sensitive 3D software synthesis approach that maintains formal traceability between user specifications and generated 3D software. Scenethesis is built upon ScenethesisLang, a domain-specific language that serves as a granular constraint-aware intermediate representation (IR) to bridge natural language requirements and executable 3D software. It serves both as a comprehensive scene description language enabling fine-grained modification of 3D software elements and as a formal constraint-expressive specification language capable of expressing complex spatial constraints. By decomposing 3D software synthesis into stages operating on ScenethesisLang, Scenethesis enables independent verification, targeted modification, and systematic constraint satisfaction. Our evaluation demonstrates that Scenethesis accurately captures over 80% of user requirements and satisfies more than 90% of hard constraints while handling over 100 constraints simultaneously. Furthermore, Scenethesis achieves a 42.8% improvement in BLIP-2 visual evaluation scores compared to the state-of-the-art method.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。