arXiv:2609.40322cs.CVSep 2026

Manuscript Offprint

arXiv:2609.40322

MatLoom: Layered Text-to-Material Generation in a Compact Program Space

Anson Y. Lam, Shuqing Li, Michael R. Lyu

ABSTRACT

Material generation should produce not only an appearance, but also the rules that construct it. We introduce MATLOOM, a compact, layer-oriented language for text-to-material generation with pretrained language models. Each program composes alpha-masked layers whose shared spatial expressions define coverage and physically based rendering (PBR) channels, making dependencies between patterns, color, and relief explicit. A standalone interpreter evaluates the program into material maps, while the source retains named fields and layer parameters for subsequent authoring. Without task-specific fine-tuning, our pipeline uses parser-guided repair and preview-based critique to revise material designs, then searches noise seeds while keeping each candidate's remaining source fixed. On a curated benchmark of 141 prompts evaluated with six backbones, our best-performing configuration achieves higher mean scores than three diffusion baselines on all four flat-layout prompt-alignment metrics. Its initial programs already exceed all three baselines on mean BLIPScore, before critique or seed search. Retained programs have a median length of 21 lines when pooled across backbones. In a blind four-way comparison involving 30 participants and 20 prompts, our renders receive 59.2% of choices, compared with 19.3% for the most-preferred baseline. Compact executable programs thus offer a way to generate prompt-aligned materials while retaining their construction as part of the asset.

Figure

Wood planks

Black slate flooring

Hammered rusty metal

Black and white

marble checker tile

Triangle ceramic

tiles

Brown and white

checkered cotton

fabric

Figure 1: Selected text-to-material outputs from MATLOOM, rendered in the flat layout. Each render comes from a compact executable material program.

1 INTRODUCTION

Material authoring rarely ends with the first render. A designer may ask to widen the grout between tiles, roughen a coating, or change a glaze color while preserving the rest of the surface (Figure 5). Text-to-material diffusion methods generate detailed physically based rendering (PBR) maps (Vecchio et al., 2024; Vecchio, 2026; Kocsis et al., 2025), but their raster outputs do not expose the construction rules behind spatial layout, relief, and reflectance. Procedural programs and graphs keep those rules as operations and parameters (Guerrero et al., 2022; Li et al., 2024; 2025), making the generated asset easier to inspect, re-evaluate, and revise.

∗^{*}Corresponding author.

Can compact material programs serve as an effective output space for pretrained language models, combining text-to-material fidelity with explicit authoring structure? This question follows a broader line of work on programs as visual representations (Sharma et al., 2018; Jones et al., 2020; Zhang et al., 2025; Wu et al., 2025). For materials, the representation must express coupled decisions: a tile lattice defines both coverage and height, a crack has shape and relief, and a coating changes reflectance only where it is applied. Existing material languages and systems expose different parts of this structure. MDL supports declarative material definitions and layering (Kettner et al., 2015; NVIDIA, 2014); MultiMat serializes Substance graphs in a compact DSL with validation and visual feedback (Belouadi et al., 2026); and Material Apprentice synthesizes procedural materials from text by retrieving expert process traces (Gupta et al., 2026). We study a more restricted point in this design space: a layer-oriented field language between a natural-language request and rendered material maps.

We introduce MATLOOM, a compact language that represents a material as a stack of alpha-masked layers (Figure 1). Each layer assigns PBR channels through expressions over a two-dimensional domain, and named spatial fields can be shared across masks, color, roughness, and height. This design exposes three authoring decisions to the model: which spatial patterns to define, how layers use those patterns, and which stochastic realization of the noise fields to render. A standalone interpreter evaluates the program into material maps at a chosen raster resolution, with pinned noise seeds for repeatable execution within a fixed implementation. The restricted vocabulary trades the breadth of a general graph or shader language for concise programs whose dependencies remain visible in source.

Our synthesis procedure uses that separation to organize inference. A pretrained language model writes and repairs a program using parser feedback. A critic then inspects a fast preview, channel statistics, and source code where configured, and revises the material design. Finally, a text–image scorer selects candidates from the revision trajectory and searches noise seeds while keeping each candidate's other expressions fixed. The same explicit program is therefore the object of generation, repair, critique, selection, seed exploration, and later rendering.

We evaluate MATLOOM on a curated benchmark of 141 prompts with six language-model backbones and three diffusion baselines. Across retained programs from all backbones, the median length is 21 lines. The best configuration exceeds the baselines in mean score on all four flat-layout alignment metrics, and its initial programs already exceed all baselines on mean BLIPScore before critique or seed search. In a blind four-way study with 30 participants and 20 prompts, MATLOOM receives 59.2% of choices, compared with 19.3% for the most-preferred baseline. These results show that compact executable programs can be competitive for prompt-aligned material generation while preserving construction as part of the asset. They do not yet establish a causal advantage over every procedural representation; matched comparisons against alternatives such as direct Blender, MDL, and released procedural systems remain important follow-up tests.

Our contributions are:

• A layered authoring representation. Shared spatial expressions connect coverage and PBR channels through explicit compositing rules, retaining compact source for inspection, parameter edits, and procedural resampling (Section 3).

• A synthesis procedure that separates design from realization. Parser-guided repair and preview-based critique revise programs, while seed search explores stochastic variants of fixed candidate designs without task-specific fine-tuning (Section 4).

• An empirical analysis across backbones and inference stages. A 141-prompt benchmark and a blind preference study show strong prompt alignment against diffusion baselines while exposing backbone dependence and metric disagreement (Section 5).

References (87)