Evaluating LLM Generation Quality and 3D Scene Generation in Practice
Same-prompt side-by-side evaluation is a more reliable way to compare large models on long-horizon tasks than leaderboard scores alone. This article covers a controlled evaluation design, scoring dimensions, a four-stage 3D generation pipeline from sparse voxels to photorealistic rendering, and observability practices for production.
Why same-prompt side-by-side comparison is a useful evaluation starting point
In real model selection, developers often see similar leaderboard scores but large quality gaps in production. Leaderboards use standardized items; production measures stability on long pipelines. A more reliable approach is to hold variables constant: the same prompt, sampling parameters, and random seed, changing only the model under test, then inspect structure, executability, and how quickly iteration converges.
The point of this comparison is not to rank a model once. It is to build a repeatable, archivable evaluation asset that can be rerun as models change. Conclusions go stale quickly; the eval set itself should remain valid.
Evaluation design: controls and scoring dimensions
2.1 Control checklist
- Identical prompts, with no implicit rewriting
- Identical sampling parameters (for example temperature, nucleus sampling threshold, max output length)
- Fixed random seeds to reduce noise from chance
- The same output parser, execution environment, and render configuration
- Multiple runs per case, reporting mean and variance
2.2 Scoring dimensions
| Dimension | What to observe | How to judge |
|---|---|---|
| Instruction following | Missing constraints; extra or dropped requirements | Human check against a constraint list |
| Structural correctness | Scene graph, coordinates, hierarchy | Structure validation scripts |
| Executability | Whether code runs on the first attempt | Sandbox auto-execution |
| Render quality | Materials, lighting, occlusion, anti-aliasing | Fixed-camera screenshot scoring |
| Iteration efficiency | Rounds needed to reach the target | Logged interaction count |
2.3 Evaluation skeleton (illustrative)
def run_case(case, model_client, sandbox):record = {"case": case.id, "runs": []}for seed in case.seeds:raw = model_client.generate(prompt=case.prompt, # prompt held strictly fixedtemperature=0.2,top_p=0.9,max_tokens=8192,seed=seed,)artifact = parse(raw) # shared parserexec_ok, log = sandbox.run(artifact)shot = sandbox.capture(view=case.camera)record["runs"].append({"seed": seed,"exec_ok": exec_ok,"constraints": check_constraints(artifact, case.rules),"render_score": score_render(shot),"log": log,})record["exec_rate"] = mean(r["exec_ok"] for r in record["runs"])record["variance"] = variance(r["render_score"] for r in record["runs"])return record
exec_rate and variance matter most: the first is one-shot engineering usefulness; the second is output stability. Together they often predict landing cost better than a single pretty frame.
Case study: from nearly 10k voxels to photorealistic rendering
A representative overseas developer case: build a “pelican on a bicycle” scene at nearly 10,000 voxels from scratch, then switch to high-quality photorealistic rendering. Abstracted, that is a standard four-stage generation chain.
3.1 Stage 1: semantic parse and scene graph
The model should split natural language into entity, attribute, and relation triples: subject (pelican), vehicle (bicycle), action (riding), environment (ground, lighting). Output should be a checkable intermediate representation, not raw geometry.
{"entities": [{"id": "bird", "type": "creature", "pose": "riding"},{"id": "bike", "type": "vehicle", "parts": ["frame", "wheel", "pedal"]}],"relations": [{"from": "bird", "to": "bike", "type": "mounted_on"}],"environment": {"ground": "plane", "light": "directional"}}
3.2 Stage 2: voxelization and sparse storage
At nearly 10,000 voxels, dense 3D arrays waste space. A common pattern is a sparse hash table organized by chunks:
class VoxelChunk:def __init__(self, origin, size=16):self.origin = originself.size = sizeself.cells = {} # (x,y,z) -> material_iddef set(self, p, mat):self.cells[p] = matdef is_empty(self):return not self.cells
Voxels are forgiving for modeling and simple for boolean ops, so they work as a draft layer. Detail is limited, which is why they stay a sketch.
3.3 Stage 3: materials, lighting, and photorealism
Photoreal rendering centers on physically based materials and global illumination. Albedo, roughness, and metallic cover most everyday materials. Lighting can approximate with directional plus ambient light; image-based lighting improves realism further. Voxel-to-photoreal transition means replacing discrete color blocks with continuous surfaces and reconstructing normals—this step decides whether the look “jumps.”
3.4 Stage 4: engineering a seamless switch
Seamless switching is an engineering constraint, not a single model skill:
- Dual representations: voxel draft and photoreal scene both resident in memory
- Prebuild and cache: warm shaders and textures before the switch to avoid first-frame stalls
- Progressive load: order by frustum and distance, with LOD fallback
- Async: fetch assets from object storage and a CDN; the main thread only submits work
- Degrade gracefully: if load times out, fall back to the draft so interaction continues
Observability and elasticity for production
Once eval scripts are in continuous regression, put them on the pipeline: containers for sandbox execution and render jobs, logging that captures prompt, parameters, and errors, and alerts on sudden changes in first-pass rate and average interaction rounds. Rendering is bursty; autoscaling plus a task queue is usually cheaper than a fixed size.
Common pitfalls and practices
- Judging only stills and ignoring variance treats a lucky high score as stable skill
- Implicit constraints in the prompt break comparability
- Generating final geometry and skipping a checkable intermediate raises rework cost
- Unbounded voxel growth without sparse storage and chunk culling
- Coupling switch logic and asset load on the main thread, causing visible stutter
Closing
Evaluating generative models is moving from one-shot wow to long-horizon deliverability. Freeze prompt, parameters, parser, and runtime; prefer executability and stability over subjective impression; combine sparse voxels, physically based materials, and an async asset pipeline. That is how a demo becomes repeatable engineering capability.
