Research
ScaffoldM3C: A Multimodal Sequential Monte Carlo Framework for Generative Stable Construction Planning
Automatically building physically realizable 3D structures out of blocks is hard because many different action orders and interchangeable components lead to the same final shape, while every…

- arXiv
- 2610.00487 · Preprint · not peer-reviewed
- Published
- 2026-09-30
- Authors
- Gadiel Sznaier Camps, Chengyang He, Guillaume Sartoretti, Eduardo Montijano, Mac Schwager
In plain words
Automatically building physically realizable 3D structures out of blocks is hard because many different action orders and interchangeable components lead to the same final shape, while every intermediate state must remain physically stable and collision-free. Prior work fine-tunes large language models to emit build steps from text only, ignores the practical role of temporary scaffolding, and is slow at inference.
AI summary
Overview
Research area: Robotics and automated construction — generative task planning for block-based assembly, combining multimodal vision-language models with sequential Monte Carlo inference.
Technical level: Advanced. The paper assumes familiarity with transformer architectures (causal attention, cross-attention, RoPE, MoE-style routing), sequential Monte Carlo / particle filtering, and 3D block-assembly stability reasoning.
Scope (one sentence): The paper introduces ScaffoldM3C, a 225M-parameter multimodal (text and image) autoregressive model that proposes candidate next blocks for brick assembly and uses Sequential Monte Carlo to maintain multiple parallel build sequences, with explicit auxiliary scaffold blocks to keep intermediate structures stable.
What This Paper Is About
Automatically building physically realizable 3D structures out of blocks is hard because many different action orders and interchangeable components lead to the same final shape, while every intermediate state must remain physically stable and collision-free. Prior work fine-tunes large language models to emit build steps from text only, ignores the practical role of temporary scaffolding, and is slow at inference. This paper reframes construction as probabilistic next-block generation with multimodal conditioning and a particle-based search that tracks several assembly hypotheses at once.
Key Contributions
- Probabilistic multi-hypothesis assembly formulation. Construction is modeled as a distribution over candidate blocks at each step (including scaffold blocks), which enables Sequential Monte Carlo inference to maintain a population of diverse, feasible build sequences instead of a single greedy rollout.
- An explicit scaffold block token. The block library is augmented with an auxiliary scaffold block with a 1×1 cross-section and adjustable height, placed before a target block to bridge gaps and restore stability to otherwise unsupported placements.
- A lightweight dual-stream Vision-Language-Construction architecture. A 225M-parameter model trained from scratch (no foundation-model initialization) with interwoven causal and cross-attention layers, Fourier-feature position encoding, a 4-bit quantized Gemma 3 encoder for prompts, and three cascaded heads predicting candidate positions, shape classes, and placement likelihoods.
- An extended multimodal, stability-aware dataset. The StableText2Brick dataset is replayed and augmented with the minimum number of scaffold blocks needed for every intermediate placement to be stable, and expanded with synthetic, realistic, and abstract image conditions — 13 condition–sequence pairs per sequence (five text-only, three image-only, five multimodal), reportedly 553K conditioned assembly sequences.
Main Findings
- Size and speed: ScaffoldM3C is reported as 4× smaller than competing baselines and yields a 5× to 20× inference speedup. In Table I, the SMC variant takes 1.7862 ± 2.0332 s per prompt on text versus 13.8635 ± 16.8635 s for BrickGPT with rejection sampling and 64.5053 ± 215.9353 s for BrickGPT-Scaffold.
- Zero collisions: Both the Top-K and SMC variants of the proposed model achieve e_collision = 0.0000 and a 100% collision-free rate (e_rate) on both text and image test sets, matching BrickGPT with rejection sampling and the ground-truth sequences on collisions.
- Overall stability: On text prompts the SMC variant reaches an overall stability rate s_overall of 26.7223% and an overall feasibility rate e_feasible of 26.7223%, versus 2.7254%/2.3061% for BrickGPT without rejection, 3.1315%/3.1315% with rejection, and 11.4823%/11.2735% for BrickGPT-Scaffold.
- Per-block stability trade-off: BrickGPT-Scaffold reports higher average per-block stability (s_inter 0.9183, s_final 0.9188 on text) than the proposed SMC model (0.8330, 0.8356), but it also produces 0.4280 ± 2.4044 average collisions per block and scores far lower on the whole-structure stability and feasibility rates.
- SMC beats Top-K: Adding Sequential Monte Carlo consistently improves over Top-K sampling on the same model — text s_inter 0.8330 vs 0.8149, s_overall 26.7223% vs 20.0418%; image s_inter 0.8231 vs 0.8095, s_overall 20.4861% vs 18.4028% — at the cost of inference time (1.7862 s vs 0.5827 s on text; 2.1261 s vs 0.6158 s on image).
- Scaffold usage close to ground truth: On text the SMC model emits 29.1879 ± 26.8442 scaffolds per structure against 28.0313 ± 22.3448 in the ground-truth sequences, while producing longer plans (126.9395 ± 81.1712 blocks vs 111.0271 ± 70.0497).
- Image conditioning works; baselines cannot do it: All three BrickGPT variants are marked "—" for image prompts, while the proposed model achieves s_inter 0.8231 and s_overall 20.4861% from images alone. Semantic alignment on image prompts is notably higher than on text (a_sim 0.3774 ± 0.3129 vs 0.2708 ± 0.0272 for SMC).
- Real-world validation: The authors report autonomous construction of several physical structures with an xArm Lite robotic manipulator, in addition to simulation results on 479 text and 288 image test prompts. Detailed physical success rates are not reported in the provided excerpt.
Methodology in Plain English
The system treats building a structure as a sequence of choices. At each step, a transformer looks at the partial build so far plus the user's prompt — text, an image, or both — and proposes a small set of candidate next blocks. For each candidate it predicts a position, a shape type, and a confidence score, using three cascaded output heads fed by a windowed attention layer whose window equals the candidate pool size.
The prompt is encoded with a 4-bit quantized Gemma 3 model and kept in a separate "conditioning" stream that is repeatedly mixed into the block stream through cross-attention. Block positions are lifted into a higher-dimensional space with Fourier features, shape types get learned embeddings, and sequence order is captured with both learned absolute positional embeddings and RoPE. The training objective borrows from Mixture-of-Experts practice — prediction, router, load-balance, and router-stability terms — plus a cosine-similarity diversity loss so the candidates do not all collapse onto the same prediction.
At inference, the model is plugged into a Sequential Monte Carlo loop. Several particle trajectories are run in parallel, each maintaining its own partial build. When a proposed block overlaps something already placed, a 2D constrained Minimum Translation Vector pushes it aside, and candidates are penalized by exp(−‖v‖₂) on the size of that correction, so heavily corrected or unresolvable placements score low. Particles then sample a block according to the normalized scores, update their weights multiplicatively, harvest finished sequences into a pool, and resample the survivors. At the end the longest harvested sequence wins, with cumulative weight breaking ties.
Stability itself is checked with a deliberately simple conservative rule: a block is stable if it touches the ground or if the vertical projection of its centroid falls inside the 2D convex hull of the contact faces of the blocks directly beneath it. When that test fails, a scaffold — a thin, adjustable-height post — can be inserted first to extend the support region.
The dataset was rebuilt to match this rule: every sequence in StableText2Brick was replayed, its placements checked, and the minimum number of scaffolds inserted. Three image conditions were added — simulated renders of the finished structure, realistic text-to-image generations from a Qwen model, and abstract artistic interpretations — and each sequence was expanded into 13 training pairs.
Why This Matters
The work shows that a small, purpose-built multimodal model plus a particle-based search can match the stability and collision behavior of a 1B-parameter language model that needs expensive rejection sampling and rollbacks, while being dramatically faster and able to accept images. It also makes scaffolding a first-class part of the plan rather than a post-hoc patch, which broadens the geometries a planner can reach.
Real-world applications:
- Autonomous robotic assembly of brick, block, or modular structures on construction sites and in prefabrication.
- Rapid prototyping from sketches or reference photos, where a user supplies an image rather than a written spec.
- On-orbit or remote/off-world assembly, where plans must be validated before execution because rollback and human intervention are impractical.
- Educational and interactive robotics, where a lightweight model can run on modest hardware and respond to visual prompts.
Industry relevance: The 5× to 20× inference speedup and 225M-parameter footprint matter for deployment on robot-mounted compute, and the explicit stability-plus-collision feasibility metric matches what construction automation actually needs — a plan that can be executed step by step, not just one that looks right when finished.
Future Directions
- Richer stability physics. The paper explicitly adopts a "simplified, conservative stability formulation," leaving open how the framework would behave under full rigid-body or snap-fit mechanics, friction, and gravity-induced toppling over longer horizons.
- Scaling structure size and the action space. Whether SMC particle counts and the continuous-coordinate output scale to much larger structures, and how inference cost grows with the number of candidates, is only partially explored (the ablation uses just 24 text prompts).
- Closing the semantic gap on text. Prompt-render similarity is markedly lower for text (a_sim 0.2708) than for images (0.3774), and the semantic-alignment metrics and 3D Chamfer analysis are cut off in the provided excerpt, so the fidelity-versus-stability trade-off remains an open question.
- Bridging to foundation-model priors. The model is trained from scratch; combining its speed and multimodal conditioning with pretrained visual or spatial backbones is a natural next step, as is extending scaffolding to richer or non-uniform support structures.
Target Audience
Robotics and AI researchers working on task planning, assembly, and generative models for physical structures; practitioners building construction or modular-assembly automation who need fast, stability-aware planners; and graduate students interested in how particle-based inference (SMC) can be layered on top of autoregressive generative models to handle multi-hypothesis decision problems. Readers without a background in transformers or particle filters will find the architecture and inference sections demanding.
Authors’ abstract
Autonomously constructing physically realizable 3D structures remains a significant challenge due to combinatorial action spaces, interchangeable components, equifinal assembly sequences, and strict stability requirements during construction. State-of-the-art methods fine-tune large language models for text-based generative construction. However, these approaches do not allow for Multimodal (text, image, sketch) conditioning, overlook the practical role of scaffolding for…
The full abstract on arXivRelated papers
- PRIMAL3: Pathfinding via Reinforcement and Imitation Multi-Agent Learning - Leveraging LaCAM3 2026-08-05 · cs.RO · Also by Chengyang He, Gadiel Sznaier Camps +2
- RoboFoundry: System-as-Policy Evolution for Self-Learning Embodied Agents 2026-09-26 · cs.RO · Also by Chengyang He, Guillaume Sartoretti
- MiniWAM: Learning Compact Future Targets for Efficient World-Action Modeling 2026-10-08 · cs.RO · Also by Chengyang He, Guillaume Sartoretti
- EmbodiedSWE: Coding Agents for Long Horizon Dexterous Robotics 2026-09-23 · cs.RO · Also by Mac Schwager
- REACT: Rolling Denoising and Dual Decoupling for Reactive Robot Control with VLA Models 2026-10-08 · cs.RO · Also by Chengyang He