Beyond Code Generation: A Practical Look at Multimodal "Broad Coding" Capabilities
This article examines how multimodal large models are expanding from traditional code generation into "broad coding"—producing 3D scenes, videos, and interactive demos through scripts. It explains why architecture-level changes and visual modality matter more than post-training alone, walks through implementation patterns for three hard scenarios with sample code, and offers engineering and evaluation practices for turning these capabilities into reliable output.
1. From Writing Code to “Broad Coding”: Redefining the Boundaries
Over the past two years, code model evaluation has largely revolved around a few fixed dimensions: function-level completion, single-file refactoring, unit test generation, and repository-level Q&A. These tasks share one trait—both input and output are text, and verification is highly deterministic: it compiles, it runs, it passes the tests.
But once models are asked to handle tasks like “build a model from an image,” “generate a narrated explainer video from a voiceover,” or “draw an interactive schematic,” the traditional evaluation framework falls short. What these tasks have in common is that the final artifact is not a runnable program, but a visual or interactive result produced after the program runs. The model is no longer writing business logic; it is writing scripts that drive professional software, code that describes geometric voxel relationships, and automation flows that control timelines and keyframes.
The industry calls this expansion “broad coding”: any work that used to be done manually through point-and-click in professional graphics software, editing tools, or 3D modeling platforms can be abstracted into a code generation problem. This brings two direct benefits:
- Better reproducibility: Manual operation depends on feel and memory. Once codified, parameters, ordering, and dependencies become explicit, making version management and further edits easier.
- Compressed time cost: Take a narrated technical explainer video as an example. Manually aligning tracks, adding motion effects, and tuning transitions typically takes hours. Switching to model-generated scripts for batch production shifts the main effort to script debugging and result acceptance.
It is worth stressing that broad coding is not about “models replacing designers.” It hands the repetitive, rule-clear, parameter-dense operational layer to code, so people can focus on aesthetic judgment and final acceptance.
2. Architecture and Modality: Why Changing the Architecture Matters More Than Stacking Post-Training
As a general rule of model evolution, capability gains usually follow two paths.
The first is post-training driven: the base model stays fixed, and performance in specific scenarios is improved through large-scale instruction data, preference alignment, and long-horizon task sampling. This path is cost-controlled and fast to iterate, but its ceiling is limited by the base model’s representation capacity, and in long-horizon tasks it tends to show “correct early, drifting later” behavior.
The second is architecture driven: directly modifying the model structure to change how information is passed between layers and across steps. One direction repeatedly discussed over the past year is recurrent structures (Loop Transformer–style ideas)—letting the same set of parameters act repeatedly on the hidden state across multiple recurrent steps, trading shared weights for greater “effective compute depth.” Its engineering significance lies in:
- Increasing the number of compute steps at inference time without increasing parameter count, which is friendlier to tasks requiring multi-step reasoning (geometric constraint solving, state machine inference, long-file dependency analysis);
- Repeatedly refining the hidden state across loops, which helps maintain long-horizon consistency;
- Reducing memory footprint through parameter sharing, leaving budget for long context.
Another equally critical upgrade is completing the visual modality. A text model that cannot see a reference image cannot finish tasks like “model from an image” or “recreate a UI from a screenshot.” Once it has image understanding, the model can translate pixel information into a structured scene description and then map it to executable code. This essentially closes the loop from “perception” into “generation.”
3. Common Implementation Paths for Three High-Difficulty Scenarios
Scenario 1: Reconstructing a 3D Scene from a Reference Image
Given a pavilion reference image, the model is asked to build an equivalent structure with a script in 3D software. The difficulty here is not syntax but constraint decomposition. A reusable approach splits the task into four layers:
- Structure layer: number of columns, number of tiers and eave form, presence of a base and railings;
- Proportion layer: using column height as the base unit, derive plan dimensions and roof height;
- Material layer: roughness and color differentiation for wood, tile, and stone base;
- View layer: fix the camera position and lighting so the render can be compared against the reference image.
A schematic script skeleton is shown below (pseudocode, illustrating the layered organization):
UNIT = pillar_height # Use column height as the proportion baselinedef build_pavilion(spec):base = create_base(width=4*UNIT, height=0.3*UNIT)for i in range(spec.columns):add_pillar(position=polar(i, spec.columns, radius=2*UNIT), height=UNIT)roof = create_roof(type=spec.roof_type, overhang=0.6*UNIT)assign_material(base, "stone")assign_material(roof, "tile")setup_camera(azimuth=35, elevation=20)return render(engine="cycles", samples=128)
The practical tip: have the model output a parameter list first rather than modeling code directly, confirm proportions manually, and then generate the script. This significantly reduces rework.
Scenario 2: Code-Driven Explainer Video Composition
Given an existing voiceover and official assets, the goal is to produce an explainer video of fixed duration. The core cost of manual editing is aligning tracks and tuning motion effects line by line. Once codified, this becomes a timeline data structure design problem:
{"duration": 47,"tracks": [{"type": "audio", "src": "voiceover", "start": 0},{"type": "overlay", "src": "asset_01", "start": 2.4, "end": 9.8,"motion": {"from": [0.9, 1.0], "to": [1.0, 1.0], "ease": "out"}}]}
The model’s value is generating alignment automatically from the timestamps of the voice transcription and writing each shot’s entrance, zoom, and displacement into a config with a unified structure. Engineering recommendations: generate subtitles from the same source as the transcription text to avoid a second proofread; render in parallel segments and concatenate at the end to shorten production time.
Scenario 3: Interactive Demos of Mechanical Principles
“Draw a bicycle that can shift gears and backpedal, turn the crank one revolution and see how many turns the rear wheel makes”—this is essentially asking the model to build a state model of the transmission ratio. The key here is not drawing it accurately, but getting the constraints right:
- Chainring teeth
N_front, sprocket teethN_rear, transmission ratioi = N_front / N_rear; - One crank revolution turns the rear wheel
iturns, with chain linear speed equal at both ends; - When backpedaling, the freewheel mechanism does not drive; the rear wheel keeps its inertia, so the one-way constraint must be modeled explicitly.
def simulate(crank_angle, N_front=52, N_rear=16, backpedal=False):ratio = N_front / N_rearwheel_angle = 0 if backpedal else crank_angle * ratioreturn {"crank": crank_angle, "wheel": wheel_angle, "ratio": ratio}
This kind of task is well suited as a “physical consistency” evaluation case: results are quantifiable and assertable, and can directly expose whether the model is “drawing from impression.”
4. Engineering Practices and Evaluation Methods
- Layered prompting: Go structure first, then proportion, then material, and finally render parameters, avoiding one-shot output of an overly long script that accumulates mid-section errors.
- Assertable acceptance: Define machine-decidable metrics for each task type, such as bounding box error for 3D scenes, duration deviation for videos, and numerical correctness of transmission ratios.
- Rollback on failure: Scripted artifacts naturally support binary localization. Keep intermediate versions to quickly pinpoint which layer’s parameters went wrong.
- Controlled cost: Rendering and video composition are compute-intensive. Use object storage for assets, container platforms for elastic scaling of render jobs, and logging services with monitoring and alerting to track failure rates and durations.
- Clear human-machine division: The model handles rule-dense conversion and repetitive labor; humans handle aesthetics, narrative pacing, and final sign-off.
5. Conclusion
With multimodal capabilities and architecture-level optimization stacking up, the “deliverables” of large models have expanded from code snippets to 3D scenes, videos, and interactive demos. For developers, the real barrier has shifted from “can the model write it” to “can the task be described in a structured way and can the result be verified automatically.” Breaking tasks into assertable layers and establishing a standardized acceptance process is the key to reliably turning broad coding capability into productivity.
