TL;DR
Large Language Models (LLMs) can generate physically valid LEGO structures that completely miss the intended meaning of a prompt—a failure mode termed PhysHack. This paper introduces a model-based data selection method using just 5% of the training data alongside a novel reinforcement learning framework, Physics-Voxel Policy Optimization (PVPO), to dramatically improve both the physical feasibility and semantic accuracy of 3D generative assembly.
What Problem Does This Paper Address?
LEGO Brick Assembly (LBA) challenges AI models to act as program synthesizers, translating a textual description (e.g., "a guitar") into a sequence of precise 3D brick placements. While modern LLMs are decent at generating syntactically correct code, they suffer from a systematic failure mode the authors call PhysHack.
Because local physical constraints (like collision-free placement and valid brick types) are easy for a model to satisfy, LLMs learn shortcuts. They generate physically stable, valid structures that completely ignore the prompt's intent—such as building a generic wall instead of a bookshelf. This issue is primarily data-induced: existing large-scale LBA datasets contain massive amounts of noisy, redundant, or semantically misaligned examples that pass physics checks but lack structural fidelity.
Methods
The authors address PhysHack using a two-step post-training pipeline:
- Value-Guided Data Selection: Instead of training on an entire noisy dataset, they use a Vision-Language Model (Qwen2.5-VL) as a judge. The VLM scores the semantic consistency between the text prompt and a rendered image of the target LEGO structure. By filtering out physically invalid examples and ranking the rest by semantic alignment and domain diversity, they isolate a compact, high-value training subset comprising just 5% of the original data.
- Physics-Voxel Policy Optimization (PVPO): To help the model balance low-level physical constraints with high-level semantic goals during generation, the authors implement a Group Relative Policy Optimization (GRPO)-style reinforcement learning framework. PVPO optimizes a coupled reward function:
- Physical Validity Reward ($R_{phys}$): The fraction of generated bricks that satisfy assembly constraints (no collisions, valid bounds).
- Voxel-Space Geometric Alignment Reward ($R_{vox}$): A symmetric Chamfer distance calculated directly from the generated brick occupancy against the target voxel grid.
By utilizing a voxel-space reward instead of rendering images during the RL loop, the authors bypass the computationally expensive rendering pipeline, making training highly efficient.
Datasets
The models were trained and evaluated using the open-source BrickGPT dataset, which contains 213,020 text-structure pairs.
- SFT Subset: An 11k example subset selected via the value-guided curation strategy.
- RL Subset: A further deduplicated 2K example subset of unique object-description pairs.
- Evaluation: Conducted on the official, clean, held-out evaluation split from the BrickGPT dataset to ensure rigorous out-of-sample testing.
Key Insights and Ideas
- More Data $\neq$ Better Reasoning: Training on 100% of the raw data actually reinforces the PhysHack shortcut. Pruning 95% of the dataset and keeping only high-value examples dramatically increases semantic alignment.
- The Reward Coupling Sweet Spot: Optimizing purely for physics ($\lambda=0$) maximizes validity but tanks semantic scores. Conversely, optimizing purely for voxel alignment ($\lambda=1$) causes physical validity to drop to 0.79 because the model ignores low-level assembly constraints. A balanced coupling ($\lambda=0.5$) forces the model to find structurally sound ways to express the requested semantics.
- Better Confidence Calibration: Models trained on full datasets are often overconfident yet wrong. PVPO aligns the model's self-reported confidence with actual downstream semantic and structural quality, lowering the Expected Calibration Error (ECE).
Key Results
- Data Efficiency: With only 5% of the training data, the value-guided selection method improved the Gemma semantic alignment score from 0.39 to 0.63 for Qwen2.5-3B-Instruct.
- Frontier Performance: A DeepSeek-Llama-8B model trained with PVPO outperformed frontier models like Kimi-K3 and DeepSeek-V4 variants across semantic (MiMo, Qwen-VL), structural (DINOv3), and physical metrics. Remarkably, this advantage held true even when Kimi-K3 was provided with a ground-truth reference image.
Limitations and Future Work
While PVPO shows impressive sample efficiency, the authors note a few limitations:
- Single-Turn Constraints: The framework has not yet been evaluated in long-horizon, agentic LBA settings where multi-turn planning and tool use are required.
- Credit Assignment: Integrating the model into an interactive tool harness will require more complex reward shaping and credit assignment strategies.
- Pipeline Latency: Sandboxed tool execution and 3D rendering still introduce substantial latency during inference and evaluation blocks.
Summary updated