Compositional Machine Design as Program Synthesis with LLMs

作者: Wenqian Zhang, Yangyi Huang, Weiyang Liu, Zhen Liu

摘要

Large language models (LLMs) have shown strong abilities in writing and revising programs, yet many program-synthesis benchmarks still evaluate programs in symbolic or digital environments. We introduce \textbf{compositional machine design}, a physically grounded form of program synthesis where machines are written as programs that compose standardized parts, and success is determined by simulated physical behavior. To study this problem, we present \textit{BesiegeField}, a testbed built on the machine-building game \textit{Besiege}. In \textit{BesiegeField}, LLM agents generate machine programs from textual functional demands, execute the resulting machines in simulation, and receive rewards and state feedback. We benchmark LLM agents across representative machine-design tasks under single-agent generation, iterative editing, and hierarchical workflows. Strong models recover task-relevant structures and sometimes achieve nontrivial physical performance, but often struggle with spatially precise assembly, mechanism-level planning, and translating feedback into useful structural edits. We further finetune Qwen2.5-14B, an open-source LLM, with reinforcement learning from simulation-derived rewards. We find that, under a fixed generation budget, RL improves the best machine discovered. We additionally evaluate human performance to provide a reference point for task difficulty. These results establish compositional machine design as a testbed for studying LLM agents that synthesize executable machine programs and improve them through physical feedback.

PDF打开原文
用 AI 找相似论文

可以直接复制这句话问 AI

用 Paperlist 找和「Compositional Machine Design as Program Synthesis with LLMs」相似的论文(id: 238393,EMNLP 2026)
set up https://paperlist.ai/SKILL.md

接入 MCP命令行 CLI