Evaluating Multimodal and Long-Horizon Capabilities in Large Language Models
A practical framework for evaluating large language models beyond short demos, covering multimodal 3D scene reconstruction, constraint retention in long-running tasks, temporal consistency in video generation, and code optimization for maintainability. The approach combines reproducible inputs, verifiable constraints, automated checks, runtime validation, and human review.
Evaluating whether a large language model is truly useful requires more than looking at isolated demos or short conversations. The model should be tested within a complete task workflow: Can it understand multimodal inputs? Can it preserve constraints throughout a long task? Can it deliver runnable code? Can it maintain consistency in video and other temporal tasks? Can the result remain maintainable after multiple rounds of iteration?
This article presents an engineering-oriented evaluation framework focused on four areas: multimodal 3D scene reconstruction, long-horizon task execution, video capabilities, and code optimization.
1. Evaluation Principles: From “Can Generate” to “Can Be Accepted”
Model evaluations should follow four principles.
First, tasks must be reproducible. Record the inputs, prompts, acceptance criteria, and runtime environment to avoid results that are impressive once but impossible to reproduce.
Second, constraints must be verifiable. Requirements such as single-file delivery, no external models or textures, no console errors, and support for drag-to-rotate and scroll-to-zoom should be converted into checklists or automated tests.
Third, quality should be evaluated across multiple dimensions. Score composition, lighting, materials, interaction, text, performance, and maintainability separately instead of assigning one subjective overall score.
Fourth, long-horizon tasks should be evaluated based on their later stages. Many models remember constraints at the beginning but start forgetting them in the middle or later parts of the code. Common failures include introducing external resources, replacing procedural textures with images, omitting interaction, or failing to handle runtime errors.
For each evaluation, create a record containing at least:
- Task objective
- Input materials
- Prompt version
- Number of generation rounds
- Constraint satisfaction rate
- Number of runtime errors
- Human evaluation scores
- Execution time and resource consumption
- Regression conclusions
Evaluation artifacts can be archived in object storage, while runtime logs can be connected to logging, monitoring, and alerting systems. General-purpose services such as object storage, logging, and monitoring offerings from Baidu AI Cloud can support these archiving and observability scenarios. The goal is not to add unnecessary process overhead, but to make evaluation results traceable and comparable.
2. Multimodal 3D Scene Reconstruction: Turning Reference Images into Runnable Scenes
3D scene reconstruction is a representative task for testing multimodal understanding and code-generation capabilities. A typical task provides the model with a reference image and asks it to recreate the 3D scene in a single HTML file.
The task can require the following:
- Use a general-purpose WebGL rendering library through module imports with a fixed version.
- Generate all geometry, materials, and lighting programmatically.
- Do not reference external models, textures, or inline images.
- Support mouse-drag rotation and scroll-wheel zoom.
- Run directly in a browser with no console errors.
- Match the overall composition and lighting direction of the reference image.
- Reproduce at least two material characteristics.
- Render text and UI elements with code rather than textures.
- First summarize the model’s understanding of the reference image, then provide the complete code.
A reusable prompt template can be written as follows:
You will receive a reference image. Recreate the 3D scene in a single HTML file.Requirements:1. Use a general-purpose WebGL rendering library through module imports. The library name, version, and URL must follow the internal specification.2. Generate all geometry, materials, and lighting programmatically in code.3. Do not reference external models, textures, or base64-encoded inline images.4. Support mouse-drag rotation and scroll-wheel zoom.5. The file must run in a browser when opened directly, with no console errors.6. Reproduce the composition, perspective, lighting direction, and at least two material characteristics.7. Render text or UI elements with Canvas instead of textures.8. First provide a one-sentence interpretation of the scene, followed by the complete HTML code.
Acceptance testing should focus on six areas.
Composition and Perspective
Check whether the subject’s position, camera height, and near-far scale relationship are close to the reference image.
Lighting
Evaluate the direction of the main light, the balance between warm and cool fill lighting, and the realism of ground reflections.
Materials
Verify that at least two features—such as metal reflections, wet pavement, fabric texture, or a corroded surface—are reproduced through procedural parameters rather than image textures.
Text
Text such as clock numerals, landmark names, year inscriptions, and festival messages should be rendered with Canvas. Check the font, alignment, and perspective stability.
Interaction
Verify that drag-to-rotate and scroll-to-zoom work correctly. If the scene includes a pointer or clock, check whether it updates according to the local system time.
Engineering Delivery
Check whether the output is a single file, contains no unauthorized external resources, captures runtime errors, and leaves no unexpected warnings in the console.
The following illustrative skeleton shows the structure without binding the example to a specific library or URL:
<!-- Import the rendering library through a general module mechanism.The exact library, version, and URL are defined by the internal specification. --><div id="app"></div><script type="module">// Pseudocode: initialize the scene, camera, and rendererconst ctx = createRenderContext({ antialias: true });const scene = createScene();const camera = createPerspectiveCamera({ fov: 45, near: 0.1, far: 1000 });const renderer = createRenderer(ctx, { shadows: true });// Generate geometry and materials procedurallyconst base = createProgrammaticMesh('stoneBase', { roughness: 0.9 });const gear = createProgrammaticMesh('metalGear', { metalness: 0.8, roughness: 0.3 });const wetGround = createProgrammaticMesh('wetAsphalt', { roughness: 0.15 });// Lighting: warm key light from below and cool fill lightaddSpotLight(scene, { color: 0xffb066, position: [0, -1, 3] });addAmbientLight(scene, { color: 0x88aaff, intensity: 0.2 });// Interaction: drag rotation and scroll zoombindOrbitInteraction(camera, renderer.domElement);// Draw text with Canvasconst label = drawCanvasText('Landmark Name', {font: 'bold 24px sans-serif'});// Self-check: capture runtime errorswindow.addEventListener('error', e => console.error('[runtime]', e.message));renderLoop(renderer, scene, camera);</script>
This task simultaneously exposes a model’s multimodal understanding, spatial reasoning, code organization, and self-checking ability. If the model introduces external resources in the latter part of the code or turns text into a texture, its ability to retain long-term constraints is insufficient. Uncaught console errors also indicate that the engineering delivery does not meet the acceptance criteria.
3. Long-Horizon Task Capability: Can Constraints Survive from Start to Finish?
Long-horizon capability is not the same as producing a long answer. It refers to maintaining goals, state, and constraints across multiple stages of a task.
A suitable evaluation can divide the work into the following phases:
- Understand the requirements.
- Create an implementation plan.
- Build the main scene or feature.
- Add interaction.
- Perform self-checks and fix errors.
- Deliver the final result.
Each phase should include checkpoints, such as:
- Is the output still a single file?
- Are external resources still prohibited?
- Is text still rendered with Canvas?
- Are drag and zoom interactions still present?
Common failure modes include stating that constraints will be followed at the beginning, simplifying the implementation midway through the task, and omitting interaction at the end. Other examples include using inline images instead of procedural textures or failing to add error handling, which can result in a blank page when the file is opened directly.
A three-layer verification process is recommended:
- Static scanning: Check external links, image references, domains, and unauthorized import URLs.
- Runtime validation: Use browser automation to collect console errors and warnings and capture screenshots for key-frame comparison.
- Human review: Score composition, lighting, materials, text, and interaction.
Long-horizon evaluations should also record the point at which the model first forgets a constraint. This is often more informative than simply recording whether the final result passed or failed.
4. Video Capability: Evaluate Temporal Consistency and Script Alignment
Video evaluation should not focus only on whether the frames look attractive. It should also assess temporal consistency, camera movement, physical plausibility, text stability, and alignment with the script.
A practical setup is to provide a storyboard and ask the model either to generate a short video or to produce prompts for video generation. During acceptance testing, sample key frames and check the following:
- Whether the main subject drifts
- Whether lighting changes unexpectedly
- Whether text flickers
- Whether motion follows physical expectations
- Whether each shot matches the described script
Useful evaluation dimensions include:
- Shot consistency
- Subject consistency
- Lighting consistency
- Text stability
- Duration and resolution consistency
- Stability across repeated generations
Use qualitative scores together with inspection records. Do not invent performance figures; record the actual results and failure cases observed in the current task.
5. Code Optimization: From Runnable to Maintainable
Code optimization should evaluate whether the model can improve maintainability without changing existing functionality.
Relevant criteria include:
- Parameterized configuration
- Separation of material factories and text-rendering functions
- Exception handling
- Reduced code duplication
- Preserved interaction
- Preserved performance
Before-and-after comparisons may include error counts, duplication rate, function complexity, first-screen load time, and frame-rate stability. These measurements should come from actual tests rather than fabricated data.
A successful optimization should preserve all original constraints and interactions, introduce no new console errors, and produce a clearer code structure.
6. Conclusion
Evaluating multimodal and long-horizon capabilities in large language models should be based on reproducible tasks, verifiable constraints, measurable acceptance criteria, and regression comparisons.
3D scene reconstruction is well suited to testing multimodal understanding and procedural generation. Long-horizon tasks reveal whether the model can retain constraints and repair its own errors. Video tasks test temporal consistency, while code optimization measures engineering maintainability.
Only by turning isolated demonstrations into systematic engineering evaluations can we obtain conclusions that are genuinely useful to developers.
